-
Notifications
You must be signed in to change notification settings - Fork 1
add reusable workflow to update test durations #29
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
Conversation
silv-io
left a comment
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.
LGTM! Will merge right after the next release
| REPO_PATH="${{ inputs.path }}" # 'localstack' or 'localstack-pro' | ||
| if [ "$REPO_PATH" = "localstack-pro" ]; then | ||
| WF_FILE=".github/workflows/aws_main.yml" | ||
| else | ||
| WF_FILE=".github/workflows/aws-main.yml" | ||
| fi |
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.
Should get rid of this inconsistency and also just give the option to overwrite the workflow file. But I'll change that in a future iteration.
Motivation
Centralize and reuse the “update test durations” logic across repositories.
This moves the implementation into the
metarepo as a reusable workflow so it can be invoked from:localstack/localstack(Updating the test duration workflow localstack#13170), andlocalstack/localstack-pro(https://github.com/localstack/localstack-pro/pull/5297).This reduces duplication, keeps behavior consistent, and makes future maintenance/changes single-sourced.
Changes
.github/workflows/update-test-durations.ymlin meta.pytest-split-durations-<platform>-*artifacts into${{ inputs.outPath }}.UPLOAD_ARTIFACT, orCREATE_PRusingpeter-evans/create-pull-request.