Skip to content
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

Merged

Conversation

alzimmermsft
Copy link
Member

  • Updates the ARM deployment template to emit File and Queue ACCOUNT_NAME and ACCOUNT_KEY.
  • Adds 30 second sleep to Share test that uses SignedIdentifiers, these take up to 30 seconds to take effect and resolves a transient testing issue.

…nt variable name, fixed transient test that was missing a sleep
@alzimmermsft
Copy link
Member Author

@hemanttanwar and @danieljurek could you validate the changes made to the ARM deployment template?

@alzimmermsft
Copy link
Member Author

/azp run java - storage - tests

@azure-pipelines
Copy link

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)
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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)
Copy link
Member

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.

Copy link
Member

@danieljurek danieljurek left a 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)
Copy link
Member

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)

@alzimmermsft alzimmermsft dismissed mikeharder’s stale review January 13, 2020 00:25

Agreed to work on follow-up issue

@alzimmermsft alzimmermsft merged commit 14c8c1d into Azure:master Jan 13, 2020
@alzimmermsft alzimmermsft deleted the AzStorage_FileAndQueueSASFailures branch January 13, 2020 00:26
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.

3 participants