-
Notifications
You must be signed in to change notification settings - Fork 55
misc: refactor artifact size metrics & service check batch #1701
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
e935583
misc: refactor artifact size metrics & service check batch
0marperez e1b9325
get ready for review
0marperez a72d5cf
self review
0marperez 8a69120
track repo tools changes
0marperez 6d7b514
rerun workflows
0marperez 22a44c9
rerun workflows
0marperez d8b8fd7
rerun workflows with different commit message?
0marperez f839f3e
rerun workflows after update to action
0marperez 3559c8a
rerun workflows after matching repo tools branch
0marperez 17166e2
rerun workflows after updating matching repo tools branch from main
0marperez 3b85d80
debug download and process
0marperez 59319ac
debug download and process fix
0marperez 32be86a
debug download and process fix (GH cancelled previous attempt)
0marperez ef24f21
remove debug setup
0marperez 377ced8
rerun workflows after bootstrapping release data in new format
0marperez 2687da4
rerun workflows because e2e tests got stuck
0marperez 58abad7
fix permissions
0marperez 2858f9f
change action branch to main
0marperez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: E2E tests | ||
|
|
||
| on: | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| e2e-tests: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Configure credentials | ||
| uses: aws-actions/configure-aws-credentials@v4 | ||
| with: | ||
| role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | ||
| aws-region: us-west-2 | ||
|
|
||
| - name: Tests | ||
| id: e2e-tests | ||
| uses: aws-actions/aws-codebuild-run-build@v1 | ||
| with: | ||
| project-name: gh-aws-sdk-kotlin-e2e-tests | ||
| source-version-override: ${{ github.ref }} | ||
|
|
||
| - name: Cancel | ||
| if: ${{ cancelled() }} | ||
| env: | ||
| BUILD_ID: ${{ steps.e2e-tests.outputs.aws-build-id }} | ||
| run: | | ||
| if [ ! -z "$BUILD_ID"]; then | ||
| echo "Cancelling in-progress build: $BUILD_ID" | ||
| aws codebuild stop-build --id $BUILD_ID | ||
| fi | ||
|
|
||
| concurrency: | ||
| group: ${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| name: Release metrics | ||
|
|
||
| on: | ||
| release: | ||
| types: [ published ] | ||
|
|
||
| jobs: | ||
| build-sdk: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Configure credentials | ||
| uses: aws-actions/configure-aws-credentials@v4 | ||
| with: | ||
| role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | ||
| aws-region: us-west-2 | ||
|
|
||
| - name: Build and upload metrics | ||
| env: | ||
| GITHUB_REPOSITORY: ${{ github.repository }} | ||
| UPLOAD: 'true' | ||
| RELEASE_METRICS: 'true' | ||
| IDENTIFIER: 'null' # Only needed for pull requests | ||
| uses: aws-actions/aws-codebuild-run-build@v1 | ||
| with: | ||
| project-name: aws-sdk-kotlin-service-build | ||
| source-version-override: ${{ github.ref }} | ||
| env-vars-for-codebuild: GITHUB_REPOSITORY, UPLOAD, RELEASE_METRICS, IDENTIFIER | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| name: Service CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-sdk: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Configure credentials | ||
| uses: aws-actions/configure-aws-credentials@v4 | ||
| with: | ||
| role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | ||
| aws-region: us-west-2 | ||
|
|
||
| - name: Build and upload metrics | ||
| id: build | ||
| env: | ||
| GITHUB_REPOSITORY: ${{ github.repository }} | ||
| UPLOAD: 'true' | ||
| RELEASE_METRICS: 'false' | ||
| IDENTIFIER: ${{ github.ref_name }} | ||
| uses: aws-actions/aws-codebuild-run-build@v1 | ||
| with: | ||
| project-name: aws-sdk-kotlin-service-build | ||
| source-version-override: ${{ github.ref }} | ||
| env-vars-for-codebuild: GITHUB_REPOSITORY, UPLOAD, RELEASE_METRICS, IDENTIFIER | ||
|
|
||
| - name: Process metrics | ||
| uses: awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/download-and-process@asm-v2 # TODO: Change to main before merging | ||
| with: | ||
| download: 'true' | ||
|
|
||
| - name: Cancel | ||
| if: ${{ cancelled() }} | ||
| env: | ||
| BUILD_ID: ${{ steps.build.outputs.aws-build-id }} | ||
| run: | | ||
| if [ ! -z "$BUILD_ID"]; then | ||
| echo "Cancelling in-progress build: id=$BUILD_ID" | ||
| aws codebuild stop-build --id $BUILD_ID | ||
| fi | ||
|
|
||
| concurrency: | ||
| group: ${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
| id-token: write | ||
| contents: read | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: these typically go at the top of the file