Skip to content

fix: cross-repo sync — git -c compatibility + detailed error messages#41

Merged
avrabe merged 1 commit intomainfrom
fix/cross-repo-sync
Mar 18, 2026
Merged

fix: cross-repo sync — git -c compatibility + detailed error messages#41
avrabe merged 1 commit intomainfrom
fix/cross-repo-sync

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 18, 2026

Summary

Two fixes for cross-repo linking:

  1. git -c instead of --config — the --config long flag requires git 2.32+ but CI runners often have older git. Changed to -c which works on all versions.

  2. Detailed error messages — when external artifact loading fails, pinpoint exactly why:

    • "external project at X has no rivet.yaml — expected config at Y"
    • "source 'artifacts' does not exist at /path/to/external/artifacts"
    • "external project at X loaded 0 artifacts — check sources in rivet.yaml"

Test plan

  • All tests pass
  • git_clone_disables_hooks test still passes (checks core.hooksPath=/dev/null string)

🤖 Generated with Claude Code

…sages

1. Change git --config to git -c for hook protection. The --config
   long flag requires git 2.32+, but -c works on all git versions.
   This fixes CI failures on runners with older git.

2. Better error messages when external artifacts aren't found:
   - "external project has no rivet.yaml" with full path
   - "source does not exist at path" with expected location
   - "loaded 0 artifacts" warning with troubleshooting hint
   - Info log with artifact count on successful load

Fixes: FEAT-034
Refs: SC-19

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit ac932f0 into main Mar 18, 2026
@avrabe avrabe deleted the fix/cross-repo-sync branch March 18, 2026 06:06
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 36.00000% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rivet-core/src/externals.rs 36.00% 16 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 5ce5085 Previous: ac932f0 Ratio
link_graph_build/10000 41905135 ns/iter (± 3429220) 32017580 ns/iter (± 1801944) 1.31
validate/10000 6304522 ns/iter (± 753907) 5118452 ns/iter (± 378084) 1.23

This comment was automatically generated by workflow using github-action-benchmark.

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.

1 participant