GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: scan suite covgap files get real homes (#1089) by mikolalysenko · Pull Request #1583 · SocketDev/socket-patch

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Oct 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

LLM Description written by Claude Code:claude-opus-5-5

Refs #1089 (scan/ slice of child 6; the issue stays open for the core crate's covgap_* files, and #1580 covers update/)

Summary

The scan test binary still carried four coverage-gap files, and two of them tested other commands. This PR moves each test to a named home:

Old New
scan/covgap_ecosystem_dispatch.rs (deno apply + rollback dispatch, adapted copies of another file's oracles) ecosystem_dispatch_e2e.rs::dispatch_branch_deno / rollback_dispatch_branch_deno, using that file's shared oracles. RollbackFixture.global: bool becomes scope_args so deno can pass --global-prefix
scan/covgap_commands_fetch_stage.rs offline no-local-source report apply/apply_render.rs: one render check (header total, five distinct purls listed, ... and N more, repair remedy). The existing --json test in apply_silent_staging_errors.rs now also checks the offline_missing_sources warning code (no CLI test asserted it before), applied == 0, and an unchanged manifest and .socket/blobs
scan/covgap_commands_fetch_stage.rs cold-cache online apply The fetch behavior (blob-only requests, applied, nothing in .socket/blobs) is already in apply/apply_network.rs. What stays is one render check in apply_render.rs: the result line on stderr, no permanent progress, nothing on stdout
scan/coverage_fix_scan_discovery_corrupt_ledger.rs scan/scan_prune_corrupt_vendor_ledger.rs (already --json; now parses through common::envelope)
scan/covgap_commands_scan_vendor_flow.rs scan/scan_vendor_flow.rs (already --json; every envelope now parses through common::envelope)

apply_fixture.rs gets one shared write_sourceless_npm_patches(root, n), which replaces apply_silent_staging_errors.rs's private copy. No product code changes.

CI cost: test-only. A lean PR run is unchanged: about 28 Linux jobs and ~8 min, before and after, with no new test binary. Six moved tests become six checks, plus stronger assertions on one existing test. All are local or wiremock and take under a second each.

Test evidence

  • cargo test -p socket-patch-cli --all-features --test scan --test apply --test ecosystem_dispatch_e2e: 241 + 148 (1 ignored, pre-existing) + 43 passed, three runs in a row.
  • cargo fmt --all -- --check and cargo clippy --locked --workspace --all-features -- -D warnings are clean. Clippy with --tests on these three binaries reports 33 lints both before and after this PR. They are pre-existing (file is loaded as a module multiple times, …) and none is in a line this PR adds.
  • CI on 1e87433: all 86 checks finished with no failures, and ci-ok passed. Bugbot found no issues.
  • This PR moves tests, so there is no red→green regression test.

/code-review high findings

All seven fixed in 1e87433:

  • The vacuous node_modules/miss-0 check is gone. The offline bail now checks the manifest bytes and .socket/blobs.
  • The duplicate --json offline test was dropped. Its new assertions moved into the existing apply_json_offline_missing_source_keeps_stderr_clean. That test's warnings check is "contains offline_missing_sources, not sources_download_failed", not exact equality.
  • There is now one sourceless-manifest fixture, and it returns (). The render check matches listed lines against the fixture purls. The order isn't pinned because the report lists purls in hash order.
  • scan_vendor_flow.rs::assert_vendor_step_error uses parse_json_envelope. The deno apply runner takes (String, String) env, like run_rollback.

🤖 Generated with Claude Code

https://claude.ai/code/session_018CDpmXSF81omP1jGKngH54

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@claude
CI: give the scan suite's covgap files real homes
20a1c9a
The scan test binary still carried four coverage-gap files, two of
which tested other commands:

- covgap_ecosystem_dispatch.rs held the deno apply and rollback
  dispatch checks as adapted copies of ecosystem_dispatch_e2e.rs's
  oracles. They now live in that file and use its shared oracles;
  RollbackFixture takes scope flags so the deno case can pass
  --global-prefix.
- covgap_commands_fetch_stage.rs drove apply's staging output. Its
  cold-cache fetch duplicated apply_network.rs, so what stays is one
  render check per message family in apply_render.rs (the offline
  no-local-source report, the download result line) plus a new
  --json check in apply_failure_paths.rs that the offline bail
  reports the offline_missing_sources warning code, which no CLI test
  asserted before.
- coverage_fix_scan_discovery_corrupt_ledger.rs and
  covgap_commands_scan_vendor_flow.rs already asserted through --json;
  they are renamed scan_prune_corrupt_vendor_ledger.rs and
  scan_vendor_flow.rs and parse through common::envelope.

Test-only; no production change and no new test binary.

Refs #1089

Assisted-by: Claude Code:claude-opus-5-5
@mikolalysenko Mikola Lysenko (mikolalysenko) mentioned this pull request Oct 15, 2026
Tracking: assert stable codes instead of human sentences in CLI tests, and fold the covgap suites #1089
Open
14 tasks
@claude
CI: fold review fixes into the apply staging tests
1e87433
- The offline --json bail already had a test in
  apply_silent_staging_errors.rs, so the new copy is dropped and that
  test now also checks the offline_missing_sources warning code, that
  nothing is applied, and that the manifest and .socket/blobs are left
  as they were.
- That file's private sourceless-manifest writer is replaced by the
  shared write_sourceless_npm_patches fixture.
- The offline report lists purls in no fixed order, so the render
  check counts five distinct fixture purls instead of a prefix match.
- scan_vendor_flow.rs parses every envelope through common::envelope,
  and the deno apply runner takes env as (String, String) like the
  rollback runner.

Refs #1089

Assisted-by: Claude Code:claude-opus-5-5
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review October 15, 2026 17:09
@mikolalysenko

Mikola Lysenko (mikolalysenko) commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator Author

BugBot review


Generated by Claude Code

cursor[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Oct 15, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1e87433. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mikolalysenko Mikola Lysenko (mikolalysenko) added the Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review label Oct 15, 2026
Tanmay182003
Tanmay Singla (Tanmay182003) approved these changes Oct 15, 2026
View reviewed changes
This was referenced Oct 15, 2026
CI: core covgap tests join their suites (#1089) #1585
Merged
Swarm health manager log #1382
Open
@mikolalysenko
Mikola Lysenko (mikolalysenko) added this pull request to the merge queue Oct 15, 2026
Merged via the queue into main with commit f420739 Oct 15, 2026
86 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the agent/fix-ci-scan-envelope-asserts branch October 15, 2026 18:58
@mikolalysenko Mikola Lysenko (mikolalysenko) mentioned this pull request Oct 16, 2026
CI performance dashboard #1182
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments
@Tanmay182003 Tanmay Singla (Tanmay182003) Tanmay182003 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

Ready for review Agent-verified: mergeable, CI green, Bugbot clean — awaiting human review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mikolalysenko @Tanmay182003 @claude
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.