Skip to content

[ODSC-69670] AQUA version visibility changes #1215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

kumar-shivam-ranjan
Copy link
Member

@kumar-shivam-ranjan kumar-shivam-ranjan commented Jun 26, 2025

Description

This PR is intended to enhance version visibility for AQUA. Users will get notification to deactivate/activate their notebooks whenever new version of AQUA is available. The latest deployed version of AQUA is fetched from conda pack OSS bucket.

Related PRs

Unit tests

Screenshot 2025-06-30 at 9 11 59 PM

Test results

Screenshot 2025-06-30 at 8 49 26 PM

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 26, 2025
Copy link

📌 Cov diff with main:

Coverage-0%

📌 Overall coverage:

Coverage-18.75%

@@ -0,0 +1,6 @@
{
"installed": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ADS version we can get form the ads config. Otherwise will heave to update both places when we release ADS

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks!

{
"installed": {
"ads": "2.14.2",
"aqua": "0.1.3.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be better to keep the aqua version details in ads/aqua/__init__.py instead of this external json? We can then get both the versions like:

from ads import __version__ as ads_version
from ads.aqua import __version__ as aqua_version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ADS version is already stored in the toml file, no need to move it to the init file.

class ADSVersionHandler(AquaAPIhandler):
    """The handler to get the current version of the ADS."""

    @handle_exceptions
    def get(self):
        self.finish({"data": metadata.version("oracle_ads")})

Regarding storing the version in init.py, I’d still prefer to keep it in a version.json file. Since init is no longer required and will likely be phased out soon, relying on it for versioning may not be ideal.

Maintaining the version in a dedicated version.json file is also easier and more visible, making it less likely to be overlooked during updates. Once AQUA becomes an independent project, we can move the version into a pyproject.toml file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Thanks!

Copy link

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-58.21%


"""

current_aqua_version_path = os.path.join(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it a bit reliable, let's wrap the getting latest_version_artifact_path with the try catch block? Otherwise we don't want to break entire AQUA because of this validation :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from this LGTM!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of adding this try catch block at UI side so that we don't break entire AQUA but yeah this also sounds good. will update. Thanks

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated , thanks

Copy link

📌 Cov diff with main:

Coverage-100%

📌 Overall coverage:

Coverage-58.21%

Copy link

github-actions bot commented Jul 1, 2025

📌 Cov diff with main:

Coverage-90%

📌 Overall coverage:

Coverage-58.21%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants