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(system-tests-k8s): hourly targets #3514

Merged
merged 6 commits into from
Jan 20, 2025
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
21 changes: 20 additions & 1 deletion .github/workflows/system-tests-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,25 @@ jobs:
env:
TNET_KUBECONFIG: ${{ secrets.TNET_KUBECONFIG }}

- name: Get Bazel Target List
shell: bash
run: |
# Query Bazel for targets: system tests with k8s flag AND (long_test flag OR system_test_hourly flag)
T=$(bazel query 'attr(tags, "k8s", tests(attr(tags, "long_test|system_test_hourly", //...))) except attr(tags, "colocated|manual|system_test_nightly", //...)')

# Handle empty target list
if [[ -z "$T" ]]; then
echo "No Bazel targets found matching the criteria."
echo "TARGETS=" >> $GITHUB_ENV
exit 1
fi

# Convert to space-separated list and trim
T=$(echo "$T" | tr '\n' ' ' | sed -e 's/,$//' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')

# Export to GitHub environment
echo "TARGETS=$T" >> $GITHUB_ENV

- name: Run System Tests on K8s
id: bazel-test-all
uses: ./.github/actions/bazel-test-all/
Expand All @@ -140,7 +159,7 @@ jobs:
BAZEL_COMMAND: "test"
BAZEL_TARGETS: "${{ env.TARGETS }}"
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
BAZEL_EXTRA_ARGS: "--jobs=${{ env.JOBS }} --test_tag_filters=k8s,long_test,system_test_hourly,-manual,-colocated,-system_test_nightly --k8s"
BAZEL_EXTRA_ARGS: "--jobs=${{ env.JOBS }} --test_tag_filters=k8s --k8s"
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}

- name: Upload bazel-bep
Expand Down
Loading