Separate build jobs for artifacts and trigger tests with workflow_run #1269
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.
Description of the issue
The
integration-test.yml
workflow has exceeded the reusable workflow limit of 20 (https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#limitations) due to changes in the nested reusable workflows in theapplication-signals-e2e-test.yml
workflow and no longer runs (https://github.com/aws/amazon-cloudwatch-agent/actions/runs/10221982238).There isn't currently a way to increase the limit.
Description of changes
One way around this limitation is to move the application signals E2E workflow out of the integration test workflow. The build jobs that were previously in the integration test workflow have been separated out into their own workflow since both test workflows rely on the build artifacts for the commit. The test workflows are now triggered on the build workflow completion and success.
License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Triggered the build with a PR event (https://github.com/aws/amazon-cloudwatch-agent/actions/runs/10222942184?pr=1269), but am unable to test the workflow_run
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run
Requirements
Before commit the code, please do the following steps.
make fmt
andmake fmt-sh
make lint