Skip to content

[FOU-594] Pin the safedep/code merge of #58 on main - #853

Merged
abhisek merged 1 commit into
v2from
claude/pin-code-shared-graph
Oct 31, 2026
Merged

abhisek merged 1 commit into
v2from
claude/pin-code-shared-graph

Conversation

@abhisek

@abhisek abhisek commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

What was wrong

#851 merged before safedep/code#58. It pinned safedep/code to 2e58e5d, the head of the branch of #58, so vet v2 built from a commit that main of safedep/code did not hold.

What this changes

Tests

make check passes, including the reach corpus and the acceptance suite.

Part of FOU-594.


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated an underlying component to a newer version. No user-facing changes are described in this update.
  • Tests
    • Expanded automated checks to include recognition of os usage in analysis results. This improves coverage of the analysis behavior; no additional product changes are specified.

vet #851 pinned safedep/code to the head of the branch of code#58,
before code#58 merged. vet v2 so built from a commit that main did not
hold. This pins the merge commit of code#58 on main.

The pin also takes code#55, which merged on main before code#58. It
links Python dependency code, reads Python type hints, adds the
distribution graph, and moves fileindex.Version from 14 to 15. The new
version makes each index in cache.db miss once.

The test of the file plugin now also checks that the usage of the plain
tree holds os, as CodeRabbit asked on #851. Without the check, the test
passed when the plugin dropped all usage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PFQbqPqd9xn1fT6hBsyoUm
@safedep

safedep Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

Package Details
Package Malware Vulnerability Risky License Report
icon github.com/safedep/code @ v0.0.0-20261031030044-0661438dbec5
go.mod
ok icon
ok icon
ok icon
🔗

View complete scan results →

This report is generated by SafeDep GitHub App

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T03:13:15.094931Z 5982869 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 56d52159-5b0c-45ac-ac06-05cb7af53c95
Commits

Reviewing files that changed from the base of the PR and between c753a0c and 5982869.

Files ignored due to path filters: 1
  • go.sum is excluded by !**/*.sum
Files selected for processing: 2
  • go.mod
  • internal/plugins/enrichers/codeusage/analyze_cgo_test.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The pull request updates the github.com/safedep/code dependency and adds an assertion that serialized test data contains os module usage.

Changes: Code usage test update

Layer / File(s) Summary
Dependency revision and test assertion
go.mod, internal/plugins/enrichers/codeusage/analyze_cgo_test.go
The required dependency version changes. The test now checks that serialized data contains os module usage.

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Possibly related PRs

  • safedep/vet#851: Updates the file plugin to use the indexer call graph and adds the related test.
  • safedep/vet#837: Introduces the code index and call-graph analysis used by later file-plugin graph processing.

Suggested reviewers: claude

Merge Risk: Minimal · up to 59828

The dependency pin and test assertion introduce no established production or workflow risk requiring action before merge.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "[FOU-594] Pin the safedep/code merge of #58 on main" matches the main change. The PR updates the safedep/code pseudo-version in go.mod to the merge commit of #58 on main, which is the core …
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "[FOU-594] Pin the safedep/code merge of #58 on main" matches the main change. The PR updates the safedep/code pseudo-version in go.mod to the merge commit of #58 on main, which is the core purpose of the PR. The ticket prefix is an identifier and does not reduce clarity. The title does not mention the test strengthening or the included #55 changes, but the task allows the title to omit secondary details.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • 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

@codecov

codecov Bot commented Oct 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.28%. Comparing base (498577f) to head (5982869).
⚠️ Report is 3 commits behind head on v2.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2     #853      +/-   ##
==========================================
+ Coverage   73.05%   73.28%   +0.23%     
==========================================
  Files         332      335       +3     
  Lines       20247    20450     +203     
==========================================
+ Hits        14791    14987     +196     
- Misses       5455     5462       +7     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@abhisek
abhisek merged commit 24750c1 into v2 Oct 31, 2026
17 checks passed
@abhisek
abhisek deleted the claude/pin-code-shared-graph branch October 31, 2026 12:39
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