Skip to content

chore(merge-train): #20430 #20572 #20575 #20603 #20697 - #20691

Merged
mrveiss merged 58 commits into
mainfrom
train-2026-11-02-88r
Nov 3, 2026
Merged

mrveiss merged 58 commits into
mainfrom
train-2026-11-02-88r

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Thinking Path

Second train alongside the one led by #20662: approved PRs with no conflict and no open thread, oldest first, leaving room in the 100-file limit for fixes. This merge train is built on current main.

What Changed

Member Frozen head Title
#20430 f3af101 fix(frontend): primary-fill labels read --text-on-primary, not a literal white (#20425)
#20572 66f47a0 ci(dependabot): the daily workflow only closes stale Dependabot PRs; retire the no-op retarget and dead branch triggers (#20564)
#20575 901182c feat(company-os): agents are told apart by name and show whether they can run, on the dashboard first (#20519)
#20603 0264e7a ci(codegen): the required verify-generated-types check and the autofix report cover workflow.ts (#16568)
#20697 39de488 fix(update): the backup task no longer stops every update before migrations (#20693)

Why this shape

74 files, under the 100-file limit. Oldest first among approved PRs with no conflict and no open thread.

Verification

  • The listed repo guards were run on the merged tree; no full suite was run. CI is the check.
  • Not run locally: stylelint, vue-tsc, generated types.
  • None of the frontend changes has been seen in a browser.

Model Used

Claude Opus 5.5

🤖 Generated with Claude Code

mrveiss and others added 30 commits November 1, 2026 03:39
…hether they can run (#20519)

The agent list and org chart responses now carry can_run and cannot_run_reason from the
dispatcher's own adapter and status check, which the heartbeat dispatch now also uses.
A shared label helper adds role or adapter, then a short id suffix, only on a name clash.
The company dashboard agent cards, run table and budgets use it.

Refs #20519, #20507
# Conflicts:
#	repo_tests/undefined_css_var_ratchet_17552_test.py
#	repo_tests/vnc_password_not_in_frontend_source_16299_test.py
@mrveiss mrveiss changed the title chore(merge-train): #20430 #20572 #20575 #20603 chore(merge-train): #20430 #20572 #20575 #20603 #20697 Nov 2, 2026
@mrveiss

mrveiss commented Nov 2, 2026

Copy link
Copy Markdown
Owner Author

Correction: commit d51824c's subject names #20572, but the change it fixes came in with #20575.

@coderabbitai coderabbitai Bot 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.

Follow-up Comments

Minor follow-up Fail the verify gate when workflow.ts is not tracked.

95-98: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fail the verify gate when workflow.ts is not tracked.

If a PR deletes the committed workflow.ts, the regeneration step recreates it as an untracked file. git diff --exit-code ignores untracked paths and exits 0, so the gate passes. Add an index check before the diff.

Suggested fix
         run: |
+          if ! git ls-files --error-unmatch autobot-frontend/src/types/_generated/workflow.ts >/dev/null 2>&1; then
+            echo "::error::autobot-frontend/src/types/_generated/workflow.ts is not tracked."
+            exit 1
+          fi
           if ! git diff --exit-code autobot-frontend/src/types/_generated/workflow.ts; then

Open the source location

Minor follow-up The workflow closes a PR using the timestamp captured in the initial paginated listing, without rec…

46-54: ⚠️ Potential issue | 🟡 Minor | 💤 Low value

The workflow closes a PR using the timestamp captured in the initial paginated listing, without rechecking its activity before the update.

The workflow closes a PR that became active during the run.

This can occur when: A maintainer comments on an apparently stale PR after it is listed but before its turn in the closure loop.

Open the source location

Minor follow-up Record failed notifications in the run result.

66-71: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Record failed notifications in the run result.

The per-PR try block at .github/workflows/dependabot-close-stale.yml:54-72 closes the pull request, then posts the notification comment. If the comment request fails, the catch block logs the error and the loop continues. The pull request stays closed without its notification.

The workflow lists only open pull requests (lines 39-43). A pull request closed without a notification is not listed again, so the comment is not retried.

The Generate summary step runs with if: always(). It writes fixed text that closed pull requests receive a notification (lines 76-85). The summary does not record per-pull-request outcomes. The job still succeeds, and the failure appears only in the step log. That log line reads "Could not close PR" even when only the comment failed.

Choose one of these changes:

  • Record each pull request whose comment failed. Report those pull requests in the summary step, or fail the run after the loop.
  • Add a recovery step that finds closed Dependabot pull requests without a notification comment and posts the missing comments.

Open the source location

Nitpick Rename the backup-include test, or extend it to match its name.

23-24: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Rename the backup-include test, or extend it to match its name.

test_no_shell_block_in_the_backup_include_has_an_odd_apostrophe asserts only that "libpq's" is absent. A shell block with a different odd apostrophe, such as # PostgreSQL's variables, passes this test.

The ordinary pytest run collects this file. The splitter test skips there because ansible-core is not installed. The dedicated ansible-free-form-args workflow runs the full splitter check on qualifying non-draft pull requests that touch autobot-slm-backend/ansible/**. That check refuses such a block.

Choose one remedy:

  • Rename the test so its name matches the libpq's assertion.
  • Add a quote-aware check that follows the splitter's quote rules, including comments.

Do not reject every apostrophe. Do not count apostrophes or quotes per block. A plain count can reject valid double-quoted text, such as echo "it's".

Open the source location

Nitpick Add a test that pins the stale-close cutoff direction.

17-26: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a test that pins the stale-close cutoff direction.

The workflow closes a Dependabot PR only when updatedAt < cutoffDate (line 51). The current tests do not reference the cutoff. If that comparison were reversed, the workflow would close recently updated PRs, and both tests would still pass.

A short test can pin the direction:

🧪 Suggested test
 def test_it_filters_on_the_author_because_the_listing_cannot() -> None:
     script = _script()
     assert "creator:" not in script
     assert "pr.user.login === 'dependabot[bot]'" in script
     assert "for (const pr of prs)" in script
+
+
+def test_it_closes_only_prs_older_than_the_cutoff() -> None:
+    assert "updatedAt < cutoffDate" in _script()

Open the source location

Nitpick Add an assertion for the closed state of the stale-PR update.

18-19: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Add an assertion for the closed state of the stale-PR update.

test_it_merges_nothing checks that pulls.update appears in the script and that pulls.merge does not appear in the workflow. Neither check covers the state value. The pulls.update call sets state: 'closed'. If that value changes to 'open', or the state key is removed, both assertions still pass. No other test in repo_tests asserts the update arguments.

Add a test that checks the close state:

🧪 Suggested test addition
     assert "pulls.merge" not in _WORKFLOW.read_text(encoding="utf-8")
+
+
+def test_it_closes_stale_prs() -> None:
+    assert "state: 'closed'" in _script()

Open the source location

Nitpick Add a test for the close notification.

17-19: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add a test for the close notification.

The workflow posts a comment on each PR it closes, using issues.createComment. The current tests check pulls.update and the absence of pulls.merge. They do not check the comment. Removing the issues.createComment call leaves both tests passing.

🧪 Suggested test addition
 def test_it_merges_nothing() -> None:
     assert "pulls.update" in _script()
     assert "pulls.merge" not in _WORKFLOW.read_text(encoding="utf-8")
+
+
+def test_it_notifies_each_closed_pr() -> None:
+    assert "issues.createComment" in _script()

Open the source location

Nitpick Extend the primary-fill scanner to Vue :style object bindings.

93-98: 🎯 Functional Correctness | 🔵 Trivial | ⚖️ Poor tradeoff

Extend the primary-fill scanner to Vue :style object bindings.

The inline-style scan uses _INLINE_STYLE (line 35). That pattern also matches :style="...", but it treats the value as CSS declarations. For an object binding such as :style="{ background: 'var(--color-primary)', color: 'white' }", _DECL (line 38) assigns the rest of the text to background. No color key is produced, so _is_hit (lines 70-76) returns False. The scanner does not flag this form.

No current template in the repository applies a white foreground to a primary fill in this form. The docstring (lines 11-18) does not name object bindings, so this is a coverage gap, not a current violation.

If object bindings should be covered, parse them as object literals. Add a fixture that the scanner flags, and add it together with that parser change. If the boundary is intended to stay literal-only, state that limit in the docstring.

Open the source location

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