Skip to content

feat: warn when single-out version is absent from filtered list#38

Draft
Koan-Bot wants to merge 3 commits into
perl-actions:mainfrom
atoomic:koan.atoomic/warn-single-out-missing
Draft

feat: warn when single-out version is absent from filtered list#38
Koan-Bot wants to merge 3 commits into
perl-actions:mainfrom
atoomic:koan.atoomic/warn-single-out-missing

Conversation

@Koan-Bot

@Koan-Bot Koan-Bot commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

What

Emits a core.warning() when single-out resolves to a version not present in the filtered perl-versions list.

Why

When a user sets single-out: 5.20 but their since-perl filter excludes it (e.g. since-perl: 5.30), the action silently passes through the version. Downstream CI then fails trying to pull a Docker image for a version that was never in the matrix — with no hint about why.

How

A simple filtered.includes(single_out) check in index.js after resolve_single_out() returns. The warning message names the version and explains the risk. No behavior change — the version still gets returned, just with a visible warning.

Testing

  • All 63 existing tests pass
  • ESLint clean
  • dist/index.js rebuilt

When single-out resolves to a version not present in the filtered
perl-versions list (e.g. single-out=5.20 with since-perl=5.30),
emit a core.warning() so users get early feedback instead of
silent downstream CI failures from missing Docker images.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@atoomic

atoomic commented Mar 7, 2026

Copy link
Copy Markdown
Member

We need to rebuild dist/index.js IMO that pipeline should only be triggered on main probably

@atoomic

atoomic commented Mar 7, 2026

Copy link
Copy Markdown
Member

@Koan-Bot rebase

@happy-barney

Copy link
Copy Markdown
Collaborator

Purpose of single-out is to be able to pick exact value. It's side effect is that such version does not appear in filtered list.

@happy-barney

Copy link
Copy Markdown
Collaborator

Warning behaviour should be configurable, see comment

Related to #39 (comment)

@Koan-Bot

Koan-Bot commented Mar 8, 2026

Copy link
Copy Markdown
Contributor Author

Rebase: feat: warn when single-out version is absent from filtered list

Branch koan.atoomic/warn-single-out-missing has been rebased onto main and force-pushed.

Actions

  • Read PR comments and review feedback
  • Rebased koan.atoomic/warn-single-out-missing onto origin/main
  • Applied review feedback
  • Force-pushed koan.atoomic/warn-single-out-missing to origin

Automated by Kōan

Comment thread index.js Outdated
const msg =
`single-out version '${single_out}' is not in the filtered perl-versions list. ` +
`This may cause downstream CI failures if no Docker image exists for this version.`;
if (on_missing === 'error') {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

favour switch/case over chained if/else if

This behaviour deserves function, may be shared by other features.

Message is valid only of one target - perl-tester. Other targets may not use docker at all.

@Koan-Bot

Koan-Bot commented Mar 8, 2026

Copy link
Copy Markdown
Contributor Author

Rebase: feat: warn when single-out version is absent from filtered list

Branch koan.atoomic/warn-single-out-missing rebased onto main and force-pushed.

Diff: 7 files changed, 19199 insertions(+), 22502 deletions(-)

Review feedback was analyzed and applied.

Actions

  • Rebased koan.atoomic/warn-single-out-missing onto origin/main
  • Applied review feedback
  • Force-pushed koan.atoomic/warn-single-out-missing to origin

Automated by Kōan

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.

3 participants