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 student versions when user is authenticated #3564

Merged
merged 4 commits into from
Nov 22, 2024
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
11 changes: 9 additions & 2 deletions .ci/build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ LATEST=3 # for 'latest-ubuntu' and 'latest-ubuntu-student'
ONLY_UBUNTU="${ONLY_UBUNTU:-false}"

# Do not process more than the $AUTH_USER_LIMIT_VERSIONS versions in above list
AUTH_USER_LIMIT_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-3}"
AUTH_USER_LIMIT_VERSIONS="${AUTH_USER_LIMIT_VERSIONS:-2}"
AUTH_USER_LIMIT=$((LATEST+AUTH_USER_LIMIT_VERSIONS*3))

# Students licenses only last a year, hence $NON_AUTH_USER_LIMIT_VERSIONS cannot be more than 2.
Expand Down Expand Up @@ -87,13 +87,20 @@ for version in "${versions[@]}"; do
echo " - Student: $ON_STUDENT"
echo " - Ubuntu: $ON_UBUNTU"

# Early exiting if on Ubuntu only
# Skipping if on Ubuntu only
if [[ "$ON_UBUNTU" != "true" && "$ONLY_UBUNTU" == "true" ]]; then
echo "Skipping non-ubuntu versions"
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"
echo ""
continue
fi

# main logic
if [[ "$auth_user" == "true" ]]; then
if [[ "$extended_testing" == "true" ]]; then
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/3564.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: skipping student versions when user is authenticated
Loading