Skip to content

Commit 12cc675

Browse files
committed
Revert "feat: add self-validating workflow gate jobs (aws-observability#477)"
This reverts commit 646e5ac.
1 parent 696ed8a commit 12cc675

File tree

2 files changed

+0
-70
lines changed

2 files changed

+0
-70
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -95,38 +95,3 @@ jobs:
9595
uses: github/codeql-action/analyze@v3
9696
with:
9797
category: "/language:${{matrix.language}}"
98-
99-
all-codeql-checks-pass:
100-
runs-on: ubuntu-latest
101-
needs: [analyze]
102-
if: always()
103-
steps:
104-
- name: Checkout to get workflow file
105-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
106-
107-
- name: Check all jobs succeeded and none missing
108-
run: |
109-
# Check if all needed jobs succeeded
110-
results='${{ toJSON(needs) }}'
111-
if echo "$results" | jq -r '.[] | .result' | grep -v success; then
112-
echo "Some jobs failed"
113-
exit 1
114-
fi
115-
116-
# Extract all job names from workflow (excluding this gate job)
117-
all_jobs=$(yq eval '.jobs | keys | .[]' .github/workflows/codeql.yml | grep -v "all-codeql-checks-pass" | sort)
118-
119-
# Extract job names from needs array
120-
needed_jobs='${{ toJSON(needs) }}'
121-
needs_list=$(echo "$needed_jobs" | jq -r 'keys[]' | sort)
122-
123-
# Check if any jobs are missing from needs
124-
missing_jobs=$(comm -23 <(echo "$all_jobs") <(echo "$needs_list"))
125-
if [ -n "$missing_jobs" ]; then
126-
echo "ERROR: Jobs missing from needs array in all-codeql-checks-pass:"
127-
echo "$missing_jobs"
128-
echo "Please add these jobs to the needs array of all-codeql-checks-pass"
129-
exit 1
130-
fi
131-
132-
echo "All CodeQL checks passed and no jobs missing from gate!"

.github/workflows/pr-build.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -100,38 +100,3 @@ jobs:
100100

101101
- name: Build with Gradle
102102
run: cd performance-tests; ./gradlew spotlessCheck
103-
104-
all-pr-checks-pass:
105-
runs-on: ubuntu-latest
106-
needs: [static-code-checks, lint, spotless, build, build-lambda]
107-
if: always()
108-
steps:
109-
- name: Checkout to get workflow file
110-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #5.0.0
111-
112-
- name: Check all jobs succeeded and none missing
113-
run: |
114-
# Check if all needed jobs succeeded
115-
results='${{ toJSON(needs) }}'
116-
if echo "$results" | jq -r '.[] | .result' | grep -v success; then
117-
echo "Some jobs failed"
118-
exit 1
119-
fi
120-
121-
# Extract all job names from workflow (excluding this gate job)
122-
all_jobs=$(yq eval '.jobs | keys | .[]' .github/workflows/pr-build.yml | grep -v "all-pr-checks-pass" | sort)
123-
124-
# Extract job names from needs array
125-
needed_jobs='${{ toJSON(needs) }}'
126-
needs_list=$(echo "$needed_jobs" | jq -r 'keys[]' | sort)
127-
128-
# Check if any jobs are missing from needs
129-
missing_jobs=$(comm -23 <(echo "$all_jobs") <(echo "$needs_list"))
130-
if [ -n "$missing_jobs" ]; then
131-
echo "ERROR: Jobs missing from needs array in all-pr-checks-pass:"
132-
echo "$missing_jobs"
133-
echo "Please add these jobs to the needs array of all-pr-checks-pass"
134-
exit 1
135-
fi
136-
137-
echo "All checks passed and no jobs missing from gate!"

0 commit comments

Comments
 (0)