Skip to content

Conversation

@NathanielRN
Copy link
Contributor

@NathanielRN NathanielRN commented Sep 27, 2021

Description

Follow up to #84, we make some small edits to the Soak Tests:

  1. Delete oldest snapshots in the commits/<current_commit_id>/runs/ folder as well as the commits/ folder.
  2. Set the CPU threshold and Memory Threshold based on this comment which found these values to work for all apps
  3. With Support repo.repo and repo.owner as template variables JasonEtco/create-an-issue#114 merged, we can use the upstream JasonEtco/create-an-issue action again! (This will be broken until the next minor release)
  4. Fix authentication by using aws sts get-session-token instead of GitHub OIDC. This is because we found that the OIDC token expires after 5 minutes, and Soak Tests might not refresh until 10 or 40 minutes later. That's why for Soak Tests specifically we need this different way of using "temporary credentials". Moved to Use STS get-session-token for short lived AWS authentication with OIDC #88

It would be interesting to check in the future if using aws sts get-session-token allow us to remove the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY secrets.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

shutil.rmtree(old_snapshots_dir, ignore_errors=True)
# Delete oldest run folders in most recent commit and oldest commit folders

for snapshots_dir in [
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you split the change to auth and the other edits into separate PRs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, can do!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved authentication updates to #88

@anuraaga anuraaga merged commit 818d535 into aws-observability:main Sep 28, 2021
@NathanielRN NathanielRN deleted the edits-to-soak-tests branch September 28, 2021 04:01
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