Skip to content

merge develop into main#146

Merged
principle-lgtm merged 6 commits into
mainfrom
develop
May 19, 2026
Merged

merge develop into main#146
principle-lgtm merged 6 commits into
mainfrom
develop

Conversation

@principle-lgtm
Copy link
Copy Markdown
Contributor

merge develop into main

principle-lgtm and others added 6 commits May 16, 2026 19:22
Fix the Nix substituter URL and trusted keys, migrate to the current Darwin SDK package, add a lockfile, and wire up cache publishing CI.

Also include Metal shader sources in the Nix source filter and make mlx-bench tests robust in source-only Nix builds.
Harden the migration tools workflow with least-privilege permissions, concurrency, and v5 GitHub actions.

Make strangler diff failures explicit, parse Cargo.toml with toml, report walkdir errors, and add focused tests plus README/CONTRIBUTING docs.
…145)

The `if: ${{ secrets.ANTHROPIC_API_KEY != '' }}` at job level was
invalid — the `secrets` context isn't available in job-level `if:`
expressions, only inside step `run:`/`uses:`/`with:` blocks. GitHub
Actions therefore rejected the file on every push event, surfacing a
0-second "workflow file issue" failure even though the workflow is
`workflow_dispatch` only.

Fix:
- Drop the job-level `if:`.
- Add a first-step guard that exits 1 with a clear ::error:: message
  if ANTHROPIC_API_KEY is empty at runtime, so manual triggers without
  the secret configured fail loud at the gate instead of mid-evaluation.
- Quote `$GITHUB_STEP_SUMMARY` in the report step (SC2086).

Closes #143
1. Delete `test_validate_patch_async_timeout`. The previous form was a
   tautology — it asserted that `tokio::time::timeout(1ms, sleep(1s))`
   returns Err, which tests tokio itself, not validate_patch_async.
   The real timeout integration lives at the call site (line ~137)
   and tokio::time::timeout is upstream-tested.
   `test_validate_patch_async_invalid_header` still covers the
   function's own error path.

2. `Strangler::tracked_paths()` now bails on git failure instead of
   silently returning `Vec::new()`. Silent empty would classify as
   "no legacy hits" and let `--mode scan` report all-clear on a
   corrupted git state. Mirrors `diff_paths`'s existing behaviour.
   Adds `tracked_paths_reports_git_errors` regression test.

3. `.github/workflows/migration-tools.yml` job summary now wraps the
   OpenAPI and strangler JSON outputs in fenced code blocks. Without
   fences they render as unstyled inline text in the GitHub Actions
   UI.

cargo build / clippy --all-targets -D warnings / test all green on
migration-tools and mlx-bench. cargo fmt clean.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@principle-lgtm principle-lgtm merged commit 8f091c0 into main May 19, 2026
13 checks passed
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