Skip to content
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

fix: get e2e jobs #10689

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,22 +166,32 @@ jobs:
# (Note ARM uses just 2 tests as a smoketest)
- name: Create list of non-bench end-to-end jobs
id: e2e_list
env:
REF: contains(github.ref_name, 'gh-readonly-queue') && 'master' || github.ref_name
run: |
if [[ "$GITHUB_REF_NAME" == *"gh-readonly-queue"* ]]; then
REF="master"
else
REF="$GITHUB_REF_NAME"
fi
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
LABELS=$(jq -r '.pull_request.labels | map(.name) | join(",")' "$GITHUB_EVENT_PATH")
else
LABELS=""
fi
echo REF: $REF
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gunna leave this here as its useful for debugging

echo Labels: $LABELS
echo "list=$(./scripts/ci/get_e2e_jobs.sh $REF "$LABELS")"
echo "list=$(./scripts/ci/get_e2e_jobs.sh $REF "$LABELS")" >> $GITHUB_OUTPUT
- name: Create list of bench end-to-end jobs
id: bench_list
env:
REF: contains(github.ref_name, 'gh-readonly-queue') && 'master' || github.ref_name
run: |
if [[ "$GITHUB_REF_NAME" == *"gh-readonly-queue"* ]]; then
REF="master"
else
REF="$GITHUB_REF_NAME"
fi
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
LABELS=$(jq -r '.pull_request.labels | map(.name) | join(",")' "$GITHUB_EVENT_PATH")
else
Expand Down
Loading