Skip to content

ci: compile and format-check active EVM task scripts - #836

Draft
jackchuma wants to merge 4 commits into
mainfrom
ci/compile-active-evm-tasks
Draft

jackchuma wants to merge 4 commits into
mainfrom
ci/compile-active-evm-tasks

Conversation

@jackchuma

Copy link
Copy Markdown
Contributor

Summary

  • Add scripts/check-active-evm-tasks.py to format-check and compile Solidity scripts under active/evm/tasks/*/script/.
    • fmt runs forge fmt --check across all active task Solidity scripts and exits cleanly when none exist.
    • build groups active task scripts by their pinned BASE_CONTRACTS_COMMIT (read from config/*/.env, falling back to the active/evm default), reuses the already-installed active/evm/lib when the pin matches, and installs each distinct non-default pin once in an isolated temp directory before running forge build.
  • Add unit tests in scripts/tests/test_active_evm_tasks.py.
  • Wire unit tests, format check, and compilation into .github/workflows/validate-common-scripts.yml.

Testing

  • python3 -B -m unittest scripts.tests.test_active_evm_tasks -v (8/8 passed)
  • python3 -B scripts/check-active-evm-tasks.py fmt (4 active task scripts passed)
  • python3 -B scripts/check-active-evm-tasks.py build --default-commit 385f21a41f277d287db92fffe88dca41299162ea (compiled 2026-10-08-denim-system-config against 385f21a4... and 2026-10-15-upgrade-l2-predeploys against 8c21f6d0...)
  • python3 -B scripts/task-status.py check
  • python3 -B scripts/validation-drift.py check

@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 2
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 2
2
1 if commit is unverified 0
1 if authored by an app that is not allowlisted and lacks verified human attribution 0
Sum 2

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