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

ci: skipping students version if on remote #3668

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions .ci/build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ LATEST=3 # for 'latest-ubuntu' and 'latest-ubuntu-student'
# Run only ubuntu jobs
ONLY_UBUNTU="${ONLY_UBUNTU:-false}"

# On remote
ON_REMOTE="${ON_REMOTE:-false}"

# Do not process more than the $AUTH_USER_LIMIT_VERSIONS versions in above list
AUTH_USER_LIMIT_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-2}"
AUTH_USER_LIMIT=$((LATEST+AUTH_USER_LIMIT_VERSIONS*3))
Expand Down Expand Up @@ -97,6 +100,13 @@ for version in "${versions[@]}"; do
continue
fi

# Skipping if on remote and on student
if [[ "$ON_STUDENT" == "true" && "$ON_REMOTE" == "true" ]]; then
echo "Skipping student versions when running on remote"
echo ""
continue
fi

# Skipping student versions on auth_user
# if [[ "$auth_user" == "true" && "$ON_STUDENT" == "true" ]]; then
# echo "Skipping student versions when user is authenticated"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ jobs:
env:
extended_testing: ${{ github.event_name == 'schedule' || ( github.event_name == 'workflow_dispatch' && inputs.run_all_tests ) || ( github.event_name == 'push' && contains(github.ref, 'refs/tags') ) }}
auth_user: ${{ steps.is_organization_member.outputs.isTeamMember == 'true' || github.actor == 'dependabot[bot]' }}
ON_REMOTE: true
run: .ci/build_matrix.sh

build-test-remote:
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3668.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: skipping students version if on remote
Loading