Skip to content

IONOS(ci): scope the NC-version suffix gate away from rc/* branches - #324

Merged
printminion-co merged 1 commit into
ionos-dev-v31from
agents/trigger-artifactory-push-workflow-v31
Aug 24, 2026
Merged

IONOS(ci): scope the NC-version suffix gate away from rc/* branches#324
printminion-co merged 1 commit into
ionos-dev-v31from
agents/trigger-artifactory-push-workflow-v31

Conversation

@printminion-co

Copy link
Copy Markdown

Summary

  • Fixes the same RC-gate scoping bug found by review on PR IONOS(ci): trigger artifactory/ghcr.io/remote-trigger jobs on per-major dev/stable branches #322/IONOS(ci): trigger artifactory/ghcr.io/remote-trigger jobs on per-major dev/stable branches #323, ported back to ionos-dev-v31 — the branch this whitelist-gate pattern was originally introduced on.
  • The NC-version suffix check (endsWith(ref_name, REMOTE_TRIGGER_NC_VERSION)) was being evaluated for any branch reaching that point in the trigger-remote-dev-workflow job's if: condition, including rc/* branches. An rc/* branch whose name happens to end with the whitelisted NC version string could incorrectly pass the gate, bypassing the intended exact REMOTE_TRIGGER_RC_BRANCH match.
  • Scopes the suffix check to only apply to ionos-dev-v*/ionos-stable-v* branches, both in the real job if: condition and in the informational diagnostic step's bash logic.
  • REMOTE_TRIGGER_NC_VERSION/REMOTE_TRIGGER_RC_BRANCH are currently unset repo-wide, so this bug is currently dormant — this is a correctness/future-proofing fix, not a behavior change today.

Test plan

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the branch-scoping for the REMOTE_TRIGGER_NC_VERSION suffix whitelist in the Trigger remote workflow job of the HiDrive Next CI workflow, ensuring rc/* branches cannot accidentally satisfy the NC-version suffix gate by coincidence.

Changes:

  • Scoped the NC-version suffix check so it only applies to ionos-dev-v* / ionos-stable-v* branches, not rc/*.
  • Updated the diagnostic “Check configuration” step’s bash logic to apply the same scoping.
  • Clarified inline workflow comments describing the version/RC gating behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +142 to +145
# Version gate check: ionos-(dev|stable)-v* branches must end with
# REMOTE_TRIGGER_NC_VERSION; all other branches reaching here (rc/*) must match
# REMOTE_TRIGGER_RC_BRANCH exactly — the suffix check must NOT apply to rc/* or it
# could match by coincidence of name.
Comment on lines 548 to 550
# Applies only to 'ionos-dev-v*'/'ionos-stable-v*' branches (checked by suffix); other
# branches for other versions (e.g. ionos-dev-v31) will still build & push images but
# will NOT trigger the remote QA workflow. Leave unset (empty) to allow all versions.
The version-gate suffix check (branch name endsWith REMOTE_TRIGGER_NC_VERSION)
was being evaluated for any branch reaching that point, including rc/*
branches. An rc/* branch whose name happens to end with the whitelisted NC
version string would incorrectly pass the gate, bypassing the intended exact
REMOTE_TRIGGER_RC_BRANCH whitelist match. Scope the suffix check to only
apply to ionos-dev-v*/ionos-stable-v* branches.

Also match the diagnostic step's dev-branch handling to the real job
condition: */dev/* branches bypass the NC-version gate entirely (gated
solely by ENABLE_REMOTE_TRIGGER_USER_DEV), but the diagnostic ran the
version-gate check regardless and could report a false WILL BE SKIPPED
for such branches. And reword the job-level version-gate comment, since
the gate is scoped by branch prefix and version suffix together, not by
suffix alone.

Ports the fix already applied to ionos-dev-v32/v33 back to ionos-dev-v31,
the branch this gate pattern was originally introduced on.

Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
@printminion-co
printminion-co force-pushed the agents/trigger-artifactory-push-workflow-v31 branch from 3697103 to 1748db4 Compare August 24, 2026 14:39
@printminion-co
printminion-co requested a lite review from Copilot August 24, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +142 to +144
USER_DEV_PATTERN='^[^/]+/dev/.*$'
if [[ "${{ github.ref_name }}" =~ $USER_DEV_PATTERN ]]; then
# */dev/* branches bypass the version gate entirely — they're controlled solely
@printminion-co
printminion-co merged commit 50f81a3 into ionos-dev-v31 Aug 24, 2026
9 of 11 checks passed
@printminion-co
printminion-co deleted the agents/trigger-artifactory-push-workflow-v31 branch August 24, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants