-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(experiments/run.py): Stop duplication of RUN_TC_TAG on Consecutive Experiment Runs #3608
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
fix(experiments/run.py): Stop duplication of RUN_TC_TAG on Consecutive Experiment Runs #3608
Conversation
…to tags only if it doesn't exist in the tags in the _append_run_tc_label_to_tags function This change is to stop the RUN_TC_TAG from being duplicated if you run multiple experiments using the same variable for your tags
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.
/bot run all
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@alex6499cat Thank you for this fix! Can you please remove the trailing whitespace in test_run.py:914 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
You're welcome! I just made a commit to remove it. @claytonparnell |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
/bot run slow-tests
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
/bot run all
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
…e Experiment Runs (aws#3608)
…e Experiment Runs (aws#3608)
Issue #, if available:
Description of changes:
Whenever you execute an experiment run, the RUN_TC_TAG is appended to your run tags via the _append_run_tc_label_to_tags function. If you pass the same variable for tags over more than one experiment run, the RUN_TC_TAG gets appended more than once to your tag variable. This will cause a duplicate tag exception unless you manually remove the RUN_TC_TAG after each run. This change is to make sure that the RUN_TC_TAG doesn't get duplicated if it already exists on your tags.
RUN_TC_TAG
Exception
Scenario to re-create the exception
Testing done:
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
unique_name_from_base
to create resource names in integ tests (if appropriate)By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.