Skip to content

The superseded count reported flags, not assemblies — "2" for one name - #3260

Draft
rbuergi wants to merge 1 commit into
mainfrom
fix/supersede-count-names-flags-not-assemblies
Draft

The superseded count reported flags, not assemblies — "2" for one name#3260
rbuergi wants to merge 1 commit into
mainfrom
fix/supersede-count-names-flags-not-assemblies

Conversation

@rbuergi

@rbuergi rbuergi commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The defect

${#superseded[@]} counts array elements, and each superseded assembly contributes two
the flag --superseded-image-assembly and its value. So one assembly logs as two:

superseding 2 image assembl(y|ies) from the reference set: MeshWeaver.Blazor.Views

Observed on MeshWeaver.Plugins#1268's first green run. The build is correct — the flags are
built and passed properly, and the compile does exactly what it should. Only the narration is wrong.

Why bother

This line is the only evidence in the log of what left the reference set. Someone reconciling a
CS0436 — or checking whether a superseded entry has gone stale (#3223) — reads it and is told two
assemblies were dropped when one was, then goes looking for a second that does not exist. A count
that disagrees with the list beside it is worse than no count.

The fix

Count the names, not the flags. Verified both ways under the same shell semantics the lane uses
(${SUPERSEDED//,/ } word-splitting):

one name    -> 1
"A,B C"     -> 3

actionlint clean.

Provenance

Mine, from #3225 — the third defect from that change, after #3226 (a YAML insertion split
always-modules: from its default:) and #3234 (SUPERSEDED defined on a step that never read
it). Those two broke builds; this one only misreports. Recording the count here because the pattern
matters more than any of them individually: all three were introduced by the same change and each
was found by a consumer rather than by its author's own verification.

Pairs-with: none — narration only; no behaviour change.
No What's New — internal CI log text.

…e name

`${#superseded[@]}` counts array ELEMENTS, and each assembly contributes two
(`--superseded-image-assembly` and its value). So a single superseded assembly
logged as:

  superseding 2 image assembl(y|ies) from the reference set: MeshWeaver.Blazor.Views

Observed on MeshWeaver.Plugins#1268's green run — the build is correct, only the
narration is wrong. It is worth fixing rather than tolerating: this line is the
only evidence in the log of what the reference set dropped, so a reader
reconciling a CS0436 against it would be told two assemblies were superseded
when one was, and would go looking for the second.

Counts the names instead. Verified both ways with the same shell semantics the
lane uses: one name → 1, "A,B C" → 3. actionlint clean.

Mine, from #3225.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G4xPnGYEbdu8AVvR5jytyj
Copilot AI lite review requested due to automatic review settings September 3, 2026 18:56
@meshweaver-cloud
meshweaver-cloud Bot enabled auto-merge September 3, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is narrowly scoped to CI log output and the updated count aligns with the workflow’s existing argument-construction semantics.

Pull request overview

Fixes a misleading log message in the reusable module-pack workflow by counting superseded assembly names (not the --superseded-image-assembly <name> flag/value pairs) when printing the “superseding N image assemblies …” line, so the narration matches the actual arguments passed to build-project.

Changes:

  • Introduce an explicit superseded_n counter derived from the same word-splitting semantics used to build the superseded flag array.
  • Update the echo condition/message to use superseded_n instead of ${#superseded[@]}.
File summaries
File Description
.github/workflows/node-repo-module-pack.yml Corrects CI log narration by counting assembly names rather than flag/value array elements when reporting superseded image assemblies.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 0)

243 tests  ±0   243 ✅ ±0   2m 16s ⏱️ -4s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 1)

459 tests  ±0   459 ✅ ±0   59s ⏱️ +3s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 5)

    4 files  ±0      4 suites  ±0   1m 40s ⏱️ +2s
1 404 tests ±0  1 404 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 405 runs  ±0  1 405 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 3)

353 tests  ±0   351 ✅ ±0   46s ⏱️ +2s
  3 suites ±0     2 💤 ±0 
  3 files   ±0     0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 4)

2 207 tests  ±0   2 207 ✅ ±0   2m 36s ⏱️ -3s
    3 suites ±0       0 💤 ±0 
    3 files   ±0       0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results (shard 2)

578 tests  ±0   386 ✅ ±0   2m 37s ⏱️ -1s
  3 suites ±0   192 💤 ±0 
  3 files   ±0     0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Test Results

   15 files  ±0     15 suites  ±0   10m 57s ⏱️ ±0s
5 244 tests ±0  5 050 ✅ ±0  194 💤 ±0  0 ❌ ±0 
5 245 runs  ±0  5 051 ✅ ±0  194 💤 ±0  0 ❌ ±0 

Results for commit 798aed3. ± Comparison against base commit 3a1ae13.

@meshweaver-cloud
meshweaver-cloud Bot added this pull request to the merge queue Sep 3, 2026
@rbuergi
rbuergi marked this pull request as draft September 3, 2026 19:55
@rbuergi
rbuergi removed this pull request from the merge queue due to a manual request Sep 3, 2026
@meshweaver-cloud

Copy link
Copy Markdown
Contributor

ℹ️ Merge-queue steward: no action — removed from the queue with reason MANUAL — the steward takes no action for this reason.

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