Skip to content

ci: Update UI tests to use the 243 release #5388

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

Merged
merged 10 commits into from
Feb 20, 2025
Merged

Conversation

manodnyab
Copy link
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@manodnyab manodnyab requested a review from a team as a code owner February 18, 2025 22:59
@manodnyab
Copy link
Contributor Author

manodnyab commented Feb 18, 2025

/runUiTests

@@ -28,6 +30,7 @@ class OfflineAmazonQInlineCompletionTest {
di = DI {
extend(di)
bindSingleton<CIServer>(overrides = true) { TestCIServer }
ConfigurationStorage.Companion.logEnvironmentVariables(false)
Copy link
Contributor

Choose a reason for hiding this comment

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

we should override the defaults so reset() does not flip this back

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried doing that but the ConfigurationStorage class which has the default values cannot be directly inherited from...

Copy link
Contributor

Choose a reason for hiding this comment

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

try

            val defaults = ConfigurationStorage.instance().defaults.toMutableMap().apply {
                put("LOG_ENVIRONMENT_VARIABLES", "false")
            }

            bindSingleton<ConfigurationStorage>(overrides = true) {
                ConfigurationStorage(this, defaults)
            }

Copy link
Contributor Author

@manodnyab manodnyab Feb 19, 2025

Choose a reason for hiding this comment

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

Yep, sorry, I could access the vars only in 243, I think I was trying in 242 earlier. The var is public

@manodnyab manodnyab changed the title Update tests to use the 243 release ci: Update UI tests to use the 243 release Feb 19, 2025
@manodnyab
Copy link
Contributor Author

manodnyab commented Feb 19, 2025

/runUiTests

@manodnyab manodnyab enabled auto-merge (squash) February 19, 2025 22:39
@manodnyab manodnyab disabled auto-merge February 19, 2025 22:41
@manodnyab manodnyab enabled auto-merge (squash) February 19, 2025 22:42
@manodnyab
Copy link
Contributor Author

/runUiTests

@manodnyab manodnyab merged commit a39df44 into main Feb 20, 2025
15 of 20 checks passed
@manodnyab manodnyab deleted the manodnyb/removeEnvVars branch February 20, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants