Skip to content

Conversation

@thpierce
Copy link
Contributor

@thpierce thpierce commented Sep 22, 2025

Add gate jobs that fail if any workflow job fails OR if any job is missing from the gate's needs array. Prevents both job failures and configuration drift when adding new workflow jobs. Callout: I don't think it's possible to have one gate for both workflows, but it should not be the case that we add more over time.

Testing:

  • Confirmed if even one subjob in a matrix fails, the job fails: PASS
    • lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass fails.
  • Confirmed if a job is missing, the job fails: PASS

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@thpierce thpierce added the skip changelog doesn't need a CHANGELOG entry label Sep 22, 2025
@thpierce thpierce changed the title One job feat: add workflow gate jobs to require all PR checks pass Sep 22, 2025
@thpierce thpierce changed the title feat: add workflow gate jobs to require all PR checks pass feat: add self-validating workflow gate jobs Sep 22, 2025
@thpierce thpierce merged commit d4fa47e into main Sep 23, 2025
16 checks passed
@thpierce thpierce deleted the one-job branch September 23, 2025 00:18
thpierce added a commit to aws-observability/aws-otel-js-instrumentation that referenced this pull request Sep 23, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
thpierce added a commit to aws-observability/aws-otel-dotnet-instrumentation that referenced this pull request Sep 23, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
thpierce added a commit to aws-observability/aws-otel-java-instrumentation that referenced this pull request Sep 23, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
thpierce added a commit to aws-observability/aws-application-signals-test-framework that referenced this pull request Sep 23, 2025
Add gate job that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs.

Add CodeQL advanced config to align with ADOT Lang (e.g.
https://github.com/aws-observability/aws-otel-python-instrumentation/blob/main/.github/workflows/codeql.yml),
add gate job to workflow.Callout: I don't think it's possible to have
one gate for both workflows, but it should not be the case that we add
more over time.

CodeQL is generated by using the GitHub UI to enable advance config. I
only changed `<action>@v#` -> `<action>@<SHA>` and added the
`all-codeql-checks-pass` job, aligning with other repos.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477

*Rollback procedure:*

Revert

*Ensure you've run the following tests on your changes and include the
link below:*

PR workflow sufficient

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
jj22ee pushed a commit to jj22ee/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
* Confirmed if even one subjob in a matrix fails, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930014615/job/50985189015?pr=477)
* lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass
fails.
* Confirmed if a job is missing, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930365916/job/50986188220?pr=477)


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
jj22ee pushed a commit to jj22ee/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
* Confirmed if even one subjob in a matrix fails, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930014615/job/50985189015?pr=477)
* lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass
fails.
* Confirmed if a job is missing, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930365916/job/50986188220?pr=477)


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
jj22ee pushed a commit to jj22ee/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
* Confirmed if even one subjob in a matrix fails, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930014615/job/50985189015?pr=477)
* lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass
fails.
* Confirmed if a job is missing, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930365916/job/50986188220?pr=477)


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
jj22ee pushed a commit to jj22ee/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
* Confirmed if even one subjob in a matrix fails, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930014615/job/50985189015?pr=477)
* lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass
fails.
* Confirmed if a job is missing, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930365916/job/50986188220?pr=477)


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
ezhang6811 pushed a commit to ezhang6811/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
* Confirmed if even one subjob in a matrix fails, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930014615/job/50985189015?pr=477)
* lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass
fails.
* Confirmed if a job is missing, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930365916/job/50986188220?pr=477)


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
ezhang6811 added a commit to ezhang6811/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
jj22ee pushed a commit to jj22ee/aws-otel-python-instrumentation that referenced this pull request Oct 22, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
* Confirmed if even one subjob in a matrix fails, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930014615/job/50985189015?pr=477)
* lint(lint) passes, but lint (spellcheck) fails, and all-pr-checks-pass
fails.
* Confirmed if a job is missing, the job fails:
[PASS](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/17930365916/job/50986188220?pr=477)


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
jj22ee added a commit that referenced this pull request Oct 22, 2025
*Issue #, if available:*
Cherry-picks:
-
#477
-
#497

*Description of changes:*


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

---------

Co-authored-by: Thomas Pierce <[email protected]>
jj22ee pushed a commit to aws-observability/aws-otel-java-instrumentation that referenced this pull request Oct 24, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
jj22ee pushed a commit to aws-observability/aws-otel-java-instrumentation that referenced this pull request Oct 24, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
jj22ee pushed a commit to aws-observability/aws-otel-java-instrumentation that referenced this pull request Oct 27, 2025
Add gate jobs that fail if any workflow job fails OR if any job is
missing from the gate's needs array. Prevents both job failures and
configuration drift when adding new workflow jobs. Callout: I don't
think it's possible to have one gate for both workflows, but it should
not be the case that we add more over time.

### Testing:
See:
aws-observability/aws-otel-python-instrumentation#477


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog doesn't need a CHANGELOG entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants