[eas-cli][build-tools][steps] Validate local composite functions referenced from workflow hooks; extract the shared loader into steps - #4064
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## szymonswierk/eng-22387-build-tools-hook-composite-catalog #4064 +/- ##
=============================================================================================
- Coverage 62.66% 62.66% -0.00%
=============================================================================================
Files 999 998 -1
Lines 45207 45190 -17
Branches 9488 9492 +4
=============================================================================================
- Hits 28326 28314 -12
+ Misses 15433 15428 -5
Partials 1448 1448 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
a32c830 to
cc4a09e
Compare
cc4a09e to
9f8972c
Compare
9f8972c to
9a9c633
Compare
9a9c633 to
a4a94b7
Compare
a4a94b7 to
3cb953a
Compare
3cb953a to
bc5f0bb
Compare
bc5f0bb to
bc5dee9
Compare
bc5dee9 to
51157f3
Compare
51157f3 to
6f6441f
Compare
6f6441f to
e6a3b9a
Compare
c99eeea to
34605fd
Compare
2fa436b to
ba6e97f
Compare
ba6e97f to
eb63c1a
Compare
|
Also, moving an open discussion from the previous eas-cli PR in the stack: #4064 |
eb63c1a to
5038af8
Compare
5038af8 to
c3e6849
Compare
51c7e4c to
a78602b
Compare
steps
2c769a5 to
f40e28c
Compare
f40e28c to
d3a4b3a
Compare
|
✅ Thank you for adding the changelog entry! |
🤖 AI code reviewDecision: Approve with comments The reviewers found warning-level issues in workflow validation and the shared loader. The CLI can miss static custom roots or fail on ignored hooks. The loader can misclassify bad config and echo control characters from a path. 🟡 Warning (4)
This review is advisory — it never blocks a merge and never auto-approves. |
|
Re. AI review:
That's a deliberate skip. Validating it would need injecting the vcs client. Will change it if human reviewers advise doing so
Not specific to this PR, worth considering as a follow up
not specific to this PR, a general pattern
It does hold up, but it was deliberate: we can only do static verification here, so that's the only way we can check those functions within |
|
Subscribed to pull request
Generated by CodeMention Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead. |
Why
Workflow validation already checks local composite functions referenced from job steps, but hooks can also use
uses: ./.....eas workflow:validatedon't catch problems with composite functions in hooks.This PR also includes an extraction of duplicated (eas-cli and build-tools) composite function loader to
@expo/steps.How
Validation of workflows in
eas-clinow reads each job'shookssteps too, not justjob.steps.Removed a duplicate loader from
eas-cliandbuild-tools, moved it tosteps.Note: no validation when
project_root_directoryis set.Test Plan
Added unit tests.