Skip to content

chore(ci): consolidate test commands into justfiles and fix invocation#2228

Open
Copilot wants to merge 7 commits intomainfrom
copilot/refactor-ci-workflow-actions
Open

chore(ci): consolidate test commands into justfiles and fix invocation#2228
Copilot wants to merge 7 commits intomainfrom
copilot/refactor-ci-workflow-actions

Conversation

Copy link

Copilot AI commented Feb 2, 2026

CI workflows were running raw cargo-test-sbf, go test, and pnpm commands directly, creating drift between local development and CI environments.

Changes

Added granular justfile targets

  • program-tests/justfile: 18 test targets (account-compression, system-cpi variants, compressed-token tests)
  • sdk-tests/justfile: 17 test targets (native, anchor, pinocchio, token suites)
  • prover/server/justfile: Added lean-install for formal verification setup
  • js/justfile: Added V2-specific test targets
  • Main justfile: Consolidated lint functionality (dependencies, readmes, feature checks)

Fixed workflow invocations

  • Corrected submodule syntax: just cli buildjust cli::build (8 workflows)
  • Added missing just installation to prover-test.yml (6 jobs)

Affected workflows

  • programs.yml, sdk-tests.yml, prover-test.yml: Now use just <module>::<target>
  • cli-v1.yml, cli-v2.yml, js.yml, js-v2.yml: Fixed CLI and JS test invocations
  • forester-tests.yml, rust.yml: Fixed module target syntax
  • lint.yml: Now uses just lint instead of direct script execution

Example

# Before
- run: cargo-test-sbf -p account-compression-test
- run: go test ./prover/... -timeout 60m

# After
- run: just program-tests::test-account-compression
- run: just prover::test-unit

Commands now have single source of truth in justfiles. CI executes identical commands to local development.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 2, 2026 23:09
- Add granular test targets to program-tests/justfile
- Update programs.yml to use justfile targets instead of raw cargo commands
- Add granular test targets to sdk-tests/justfile
- Update sdk-tests.yml to use justfile targets
- Add granular test targets to prover/server/justfile (including lean-install)
- Update prover-test.yml to use justfile targets for all test types
- Add test-compressed-token-e2e-ctoken-v2 target to js/justfile
- Update js-v2.yml to use justfile command
- Add comprehensive lint targets to main justfile
- Update lint.yml to use justfile instead of direct script call

Co-authored-by: sergeytimoshin <123843+sergeytimoshin@users.noreply.github.com>
Use :: separator for module::target syntax instead of space separator

Co-authored-by: sergeytimoshin <123843+sergeytimoshin@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor CI workflow to use Justfile for test runs Consolidate CI test commands into Justfiles Feb 2, 2026
Copilot AI requested a review from sergeytimoshin February 2, 2026 23:14
Co-authored-by: sergeytimoshin <123843+sergeytimoshin@users.noreply.github.com>
Copilot AI changed the title Consolidate CI test commands into Justfiles chore(scripts): consolidate CI test commands into justfiles Feb 2, 2026
@sergeytimoshin sergeytimoshin changed the title chore(scripts): consolidate CI test commands into justfiles chore(scripts): consolidate CI test commands into justfile Feb 2, 2026
@sergeytimoshin sergeytimoshin marked this pull request as ready for review February 2, 2026 23:20
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 2, 2026

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords (5)
  • wip
  • draft
  • temp
  • test
  • experimental

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI and others added 2 commits February 2, 2026 23:30
Co-authored-by: sergeytimoshin <123843+sergeytimoshin@users.noreply.github.com>
Use double colon (::) separator for just submodule commands instead of space.
This fixes test failures caused by incorrect command syntax.

Fixed in workflows:
- cli-v1.yml: just cli::build, just cli::test
- cli-v2.yml: just cli::build, just cli::test
- forester-tests.yml: just cli::build, just forester::*
- js.yml: just cli::build, just js::*
- js-v2.yml: just cli::build, just js::*, just sdk-tests::build-anchor-test
- programs.yml: just cli::build
- rust.yml: just cli::build, just program-libs::*
- sdk-tests.yml: just cli::build, just sdk-libs::test

Co-authored-by: sergeytimoshin <123843+sergeytimoshin@users.noreply.github.com>
Copilot AI changed the title chore(scripts): consolidate CI test commands into justfile fix: correct just submodule invocation syntax in workflows Feb 2, 2026
The prover-test.yml workflow was failing because 'just' was not installed
before attempting to run 'just prover::*' commands. Added the just installation
step using extractions/setup-just@v2 to all test jobs in the workflow.

Fixed jobs:
- test-no-redis: Added just installation before running test targets
- test-with-redis: Added just installation before running test targets
- integration-test-lightweight: Added just installation
- integration-test-lightweight-lazy: Added just installation
- integration-test-full: Added just installation
- lean-verification: Added just installation before lean-install

Co-authored-by: sergeytimoshin <123843+sergeytimoshin@users.noreply.github.com>
Copilot AI changed the title fix: correct just submodule invocation syntax in workflows chore(ci): consolidate test commands into justfiles and fix invocation Feb 2, 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