Repository navigation
Harden double_wide projects with the pinned LibreLane 2, like every other type - #40
Merged
Merged
Conversation
…ther type dw_openframe_user_project hardens with LibreLane 2.4.6 (chipfoundry/openlane-2 CI2511) and connection macros, the same release openframe_user_project uses. cf harden still had a separate double_wide path from when the template pinned LibreLane 3: it ran the project's flake through nix develop, queried the step list through it with a 120 s timeout (a first nix develop on a clean machine takes far longer, so the command failed with 'Failed to load LibreLane 3 step list'), and refused --use-docker. That path is removed. A double_wide project now goes through the standard path: step list from the cf setup venv, then Nix or Docker with the pinned openlane_version. Also: - The standard path now honours --dry-run. Only the removed path did; without it a dry run would have started a real hardening run. - The Nix availability check waits 60 s instead of 5 s, since the first call on a machine downloads the flake. - cf precheck --dry-run prints its command on one line, which fixes test_precheck_mounts_symlinked_harness where a line break could fall inside the mount argument. - Version 2.7.4. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012An2D298wKhTxUBnAccUV3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
dw_openframe_user_projecthardens with LibreLane 2.4.6 (chipfoundry/openlane-2CI2511) and connection macros, the same releaseopenframe_user_projectuses (chipfoundry/dw_openframe_user_project#3).cf hardenstill had a separatedouble_widepath from when the template pinned LibreLane 3. On a clean machine that path fails:The step list was queried through
nix developon the project's flake with a 120 s limit, and a firstnix developon a clean machine takes far longer than that.Changes
double_widepath is removed. A double-wide project goes through the standard path: step list from thecf setupvenv, then Nix or Docker with the pinnedopenlane_version.--use-dockerworks._harden_double_wideand the fourdouble_wide_*helpers inlibrelane_run.pyare deleted, with the unused LibreLane 3 pin inutils.py.--dry-run. Only the removed path did. Without this,cf harden <macro> --dry-runon any project type starts a real run.cf precheck --dry-runprints its command on one line. This fixestest_precheck_mounts_symlinked_harness, which failed when a line break fell inside the-vmount argument.hardenhelp text no longer mention LibreLane 3.Behaviour change for double-wide users:
cf hardennow needscf setupfirst (the LibreLane venv and the PDK underdependencies/pdks), as for openframe projects. The project'sflake.nixis no longer whatcf hardenruns.Verification
pytest tests)test_precheck_mounts_symlinked_harness).cf harden double_wide_openframe_project_wrapper --list-from-stepson the real project, LibreLane 2.4.6 venvuser_proj_counterhardened with the command this path builds and cf-cli's pinned PDK (3e0e31dc)double_wide_openframe_project_wrapper, same command and PDKWhy the PDK check: cf-cli pins sky130 at
3e0e31dc, while the views merged in the user project were hardened with the PDK the project's flake resolves (0fe599b2). Both give a clean wrapper.Not verified
cf hardenend to end through Nix or Docker. The container this was written in cannot fetch GitHub flake tarballs and has no Docker daemon, so the Nix and Docker command lines are covered by the dry-run tests only. The LibreLane invocation itself was run by hand with the same arguments.cf setupfollowed bycf harden.🤖 Generated with Claude Code
https://claude.ai/code/session_012An2D298wKhTxUBnAccUV3