Skip to content

GitHub Actions: a one-dimension matrix lies across again, so compact workflows fit a short stage - #289

Merged
agorischek merged 2 commits into
mainfrom
gha-fit-stage
Dec 3, 2026
Merged

agorischek merged 2 commits into
mainfrom
gha-fit-stage

Conversation

@agorischek

@agorischek agorischek commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 11ad1706fe902179ca289044115fcd631135c615

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ The new short-stage spec fails on main for github-actions/delivery (div.gha-scroll 526>520) and passes with the fix, in the diff and at Before and After; it also passes for github-actions/build and dependency-injection/orders.
↑ Built-in checks pass on all four GitHub Actions scenarios (spread over chromium-desktop, webkit-desktop and chromium-mobile); the renderer's browser suite (Chromium and WebKit desktop), the kit tests (195) and the extractor goldens pass.
↑ Fit scale in the 520 px stage is 0.72 against a 0.67 text floor, about 55 px of natural height to spare.
↓ The private hosted suite isn't run here; the re-bumped pin will confirm the carousel at 1280×800 on Linux fonts.
Diagnosis confidence 9/10 ↑ #284 laid every single-axis matrix down the side, though the axis model (axes.ts) puts a lone non-runner axis across, as the renderer drew it before; in the diff node: [20, 22] → [22, 24] became four rows instead of two.
↑ Reproduced in the public harness at the carousel's size with the same overflowing element.
Evidence fit 9/10 ↑ The private failure names the same element (div.gha-scroll.pk-dot-grid 536>521) and the same scenario content, copied into the new public fixture.

What

projections.private's homepage carousel shows the delivery-pipeline example (a test job on node: [22, 24]) in a 1056 × ~520 stage. Since #284, the GitHub Actions renderer drew a one-dimension matrix as one row per value, which in the diff (20, 22, 24) made the card tall enough that the view scrolled by about 15 px.

  • Renderer: a lone dimension other than the runner now lies across, in one row under its values, as axes.ts intends and as the renderer drew it before Agentic workflows and GitHub Actions on the kit's quiet text #284. A runner dimension still goes down the side, where its long labels fit.
  • Kit: MatrixGrid gains across for a single axis laid out in one row. The row's heading is the grid's name, for screen readers only.
  • Fixture and scenario: github-actions-jobs/tests/fixtures/delivery (the same workflow) with goldens and an extraction test, and the scenario github-actions/delivery.
  • Harness: browser/short-stage.spec.ts opens compact scenarios in a 1056 × 520 stage, in the diff and at Before and After, and fails if anything in the renderer's document scrolls vertically. opens-fitted accepts opening at the text floor and scrolling, so it couldn't catch this.
  • Changelog fragment changelog.d/gha-single-axis.md.

Before / after

github-actions/delivery in the diff, in a 1056 × 520 stage. Before, the view scrolls (526 > 520). After, it fits with room to spare.

Before: node 20, 22 and 24 as three rows down the side; the view scrolls
After: node 20 22 24 across in one row with their marks beneath; the view fits

…and compact scenarios must open whole in a short stage

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🟡 Changes recommended

The regression test measures the same diff view in both iterations, leaving Before/After endpoint overflow undetected.

1 open issue
What changed in this PR

Restores horizontal layout for single non-runner GitHub Actions matrix dimensions, helping compact workflows fit short stages after the regression introduced in #284.

Changes:

  • Adds MatrixGrid.across and integrates it into the GitHub Actions renderer.
  • Adds a delivery scenario, extraction fixtures, and short-stage overflow checks.
  • Updates documentation and the changelog.
File Description
packages/​renderers/​kit/​test/​matrix-grid.test.mjs Tests horizontal single-axis markup.
packages/​renderers/​kit/​src/​react/​matrix-grid.tsx Adds the across layout option.
packages/​renderers/​harness/​README.md Documents short-stage checks.
packages/​renderers/​harness/​browser/​short-stage.spec.ts Adds compact-stage overflow checks.
packages/​renderers/​github-actions/​src/​matrix.tsx Uses horizontal layout for lone non-runner axes.
packages/​renderers/​github-actions/​scenarios.json Registers the delivery scenario.
packages/​renderers/​github-actions/​README.md Documents layout and scenario changes.
packages/​extractors/​github-actions-jobs/​tests/​fixtures/​delivery/​inputs.json Selects the delivery workflow.
packages/​extractors/​github-actions-jobs/​tests/​fixtures/​delivery/​before/​.github/​workflows/​delivery.yml Adds the original delivery workflow.
packages/​extractors/​github-actions-jobs/​tests/​fixtures/​delivery/​before.expected.json Adds the original extraction golden.
packages/​extractors/​github-actions-jobs/​tests/​fixtures/​delivery/​after/​.github/​workflows/​delivery.yml Adds updated versions and worker deployment.
packages/​extractors/​github-actions-jobs/​tests/​fixtures/​delivery/​after.expected.json Adds the updated extraction golden.
packages/​extractors/​github-actions-jobs/​tests/​extractions.rs Tests delivery versions and dependencies.
packages/​extractors/​github-actions-jobs/​README.md Documents the delivery fixture pair.
docs/​reference/​renderer-kit.md Updates the MatrixGrid API reference.
docs/​guides/​renderer-kit-type.md Explains horizontal single-axis usage.
changelog.d/​gha-single-axis.md Records the layout fix.

Review effort: Balanced

…tation draws them; renderers reference lists the delivery scenario

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🔵 Needs a closer look

Real-frame fit and clipping remain unverified because browser checks could not run and the private carousel’s Linux-font validation is still outstanding.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@agorischek
agorischek merged commit 58769f6 into main Dec 3, 2026
142 of 146 checks passed
@agorischek
agorischek deleted the gha-fit-stage branch December 3, 2026 11:18
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