-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update ARM Template Deployment and Fix Transient Test #7352
Update ARM Template Deployment and Fix Transient Test #7352
Conversation
…nt variable name, fixed transient test that was missing a sleep
@hemanttanwar and @danieljurek could you validate the changes made to the ARM deployment template? |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
primaryShareClient.setAccessPolicy(Arrays.asList(identifier)) | ||
|
||
// Sleep 30 seconds if running against the live service as it may take ACLs that long to take effect. | ||
sleepIfLive(30000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use polling with shorter sleeps instead of sleeping for a fixed 30 seconds? Large, fixed sleeps like this are bad because they make tests slower than necessary and still aren't guaranteed to be reliable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be do-able with shorter sleeps then poll, mind writing an issue for it as this is a commonly used pattern across the other modules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking Issue: #7353
I am OK with the sleep in this PR since we are already doing it in other tests. However, I think we should use the same name and code as the existing helper method sleepIfRecord()
, instead of adding a new helper method with a different name and implementation.
primaryShareClient.setAccessPolicy(Arrays.asList(identifier)) | ||
|
||
// Sleep 30 seconds if running against the live service as it may take ACLs that long to take effect. | ||
sleepIfLive(30000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracking Issue: #7353
I am OK with the sleep in this PR since we are already doing it in other tests. However, I think we should use the same name and code as the existing helper method sleepIfRecord()
, instead of adding a new helper method with a different name and implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARM template changes and yml changes will work. One small cleanup for the yml file.
@@ -27,5 +27,5 @@ jobs: | |||
STORAGE_DATA_LAKE_ACCOUNT_KEY: $(STORAGE_DATA_LAKE_ACCOUNT_KEY) | |||
AZURE_STORAGE_FILE_ACCOUNT_NAME: $(AZURE_STORAGE_FILE_ACCOUNT_NAME) | |||
AZURE_STORAGE_FILE_ACCOUNT_KEY: $(AZURE_STORAGE_FILE_ACCOUNT_KEY) | |||
AZURE_STORAGE_QUEUE_ACCOUNT_NAME: $(AZURE_STORAGE_FILE_ACCOUNT_NAME) | |||
AZURE_STORAGE_QUEUE_ACCOUNT_NAME: $(AZURE_STORAGE_QUEUE_ACCOUNT_NAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From our latest updates to the resource provisioning scripts you do not need to do the variable indirection here. All of the EnvVars
of the form AZURE_STORAGE_QUEUE_ACCOUNT_NAME: $(AZURE_STORAGE_QUEUE_ACCOUNT_NAME)
can be removed.
You'll only need to keep the variables that are not set by the ARM template (AZURE_TEST_MODE
, AZURE_TENANT_ID
, AZURE_CLIENT_ID
, AZURE_CLIENT_SECRET
)
Agreed to work on follow-up issue
ACCOUNT_NAME
andACCOUNT_KEY
.SignedIdentifiers
, these take up to 30 seconds to take effect and resolves a transient testing issue.