Skip to content

fix(scripts-test): dependabot npm tests accept deliberate single-directory npm blocks - #17665

Merged
developing-today-fleet[bot] merged 2 commits into
mainfrom
xaltha/17661-dependabot-npm-test
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 2 commits into
mainfrom
xaltha/17661-dependabot-npm-test

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17661

Fixes the stale scripts/tests/test_dependabot_npm_targets.py that failed main run 46503746940 (AssertionError: expected one npm update block, found 3, 2 test failures in basic: scripts-test (3.12)).

.github/dependabot.yml deliberately has 3 npm blocks — the shared enumerated block plus two documented single-directory splits (grok-cli ignore carrier #15492 with open-pull-requests-limit: 0; atlas-search/worker vitest split #16880) — and the config is unchanged by this PR. The test now encodes the actual contract:

  • npm_block() selects the enumerated block (the one carrying directories:; exactly one must exist).
  • New npm_single_directories() collects the single-directory: npm blocks; the manifest test asserts each is manifest-backed, none double-covers an enumerated target, and the enumerated expectation subtracts them.
  • The Bun disjointness assertion now covers the single-directory npm targets too.

Verification: remote dispatch of the exact CI step (python3 -m unittest discover -s scripts/tests -p 'test_dependabot_npm_targets.py' -v) on this head — run id and executed-test count recorded on #17661 when it concludes.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T21:15:25Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ebda2b97-1d36-4d0b-82ec-9e8c20875a3b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit 8c7e87c into main Nov 30, 2026
3 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/17661-dependabot-npm-test branch November 30, 2026 21:28
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 30, 2026
#17681)

PR #17665 added /pm-stack/dispatch-hosted to the npm directories, but
that directory is Bun-managed: it carries bun.lock and package.json
with no package-lock.json/yarn.lock/pnpm-lock.yaml, so the npm_and_yarn
updater aborts the whole grouped job with the Bun misconfiguration
error (run 46517120901). Move it to the bun block and add it to
BUN_DIRS in the npm-targets test so both stay in lockstep.

pkgs/fleet/conductor-hosted (the other directory #17665 added) stays
in npm: it has a tracked package.json and no bun.lock, so it is
genuinely npm-managed.

Diagnosis firsthand from the failed run log; fix shape specified by
lane 0900-FV, which root-caused it before standing down to this claim.
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.

main CI failure: scripts-test — Dependabot npm target tests stale (expected one npm block, found 3 deliberate blocks)

0 participants