You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
…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
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
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.
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".
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()
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()
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()
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Why this shape
74 files, under the 100-file limit. Oldest first among approved PRs with no conflict and no open thread.
Verification
Model Used
Claude Opus 5.5
🤖 Generated with Claude Code