Skip to content

Refactor checks into a set and add Janet test suite check - #4

Closed
pepegar wants to merge 2 commits into
mainfrom
claude/review-c-code-6ApPR
Closed

Refactor checks into a set and add Janet test suite check#4
pepegar wants to merge 2 commits into
mainfrom
claude/review-c-code-6ApPR

Conversation

@pepegar

@pepegar pepegar commented Mar 18, 2026

Copy link
Copy Markdown
Owner

Summary

Restructured the checks attribute from a single parinfer check into a set of multiple checks, and added a new Janet test suite runner.

Key Changes

  • Converted checks.parinfer to checks set: Changed from a single check definition to a set-based structure that can contain multiple checks
  • Added build check: Reuses the existing gent package derivation to verify the project compiles
  • Added janet-tests check: New check that runs the Janet test suite by executing janet/test/run.janet with proper environment setup (temporary HOME directory)
  • Preserved parinfer check: Moved the existing parinfer formatting validation into the new checks set structure without functional changes

Implementation Details

  • The janet-tests check copies the Janet source directory, sets proper permissions, and runs the test suite with an isolated HOME directory
  • All three checks (build, janet-tests, parinfer) are now organized under a single checks attribute set for better organization and discoverability
  • No changes to the actual logic of the parinfer check; it was only reformatted and nested within the new structure

https://claude.ai/code/session_01Gcqi4mU3iHcN61yXdnhdne

claude added 2 commits March 18, 2026 22:52
Expand `nix flake check` from just parinfer formatting to also verify
the project compiles (via the package derivation, which runs cargo test)
and run the Janet test suite. This makes `nix flake check` a single
command that validates everything.

https://claude.ai/code/session_01Gcqi4mU3iHcN61yXdnhdne
Replace the manual Rust/Janet installation and individual test steps in
the test jobs of ci.yml, release.yml, and nightly.yml with a single
`nix flake check -L` invocation. This uses DeterminateSystems' Nix
installer and magic-nix-cache for fast cached builds.

The integration, twin, build, release, and smoke jobs are left unchanged
as they require Docker, tui-wright, or cross-compilation tooling that
isn't suitable for Nix.

https://claude.ai/code/session_01Gcqi4mU3iHcN61yXdnhdne
@pepegar pepegar closed this Mar 18, 2026
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