fix(ci): test-verification failing#452
Conversation
Co-authored-by: o-az <23618431+o-az@users.noreply.github.com>
Cloudflare Deployments
|
|
@copilot does this fix all the issues in the action? Error: An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/tempo-apps/tempo-apps/apps/contract-verification'. No such file or directory notice how there’s |
... Yes, this fix addresses the issue. The The fix (commit |
The
test-verificationworkflow was failing because the "Check if network is selected" step ran withworking-directory: apps/contract-verificationbefore the repository was checked out, causing "No such file or directory" errors.Changes
Checkoutstep to run first in bothverify-vyperandverify-solidityjobsCheckoutstep since it must run unconditionallyOriginal prompt
💡 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.
Greptile Summary
Fixed workflow failure by moving the
Checkoutstep to run first in bothverify-vyperandverify-solidityjobs. The issue occurred because the workflow hasworking-directory: apps/contract-verificationset as a default, but the "Check if network is selected" step was attempting to run before the repository was checked out, causing "No such file or directory" errors.Checkoutstep to be the first step in both jobsif: steps.check.outputs.skip != 'true'from checkout since the repository must be available before any subsequent steps can runConfidence Score: 5/5
Important Files Changed
Sequence Diagram
sequenceDiagram participant GHA as GitHub Actions participant Runner as Runner participant Repo as Repository Note over GHA,Repo: Before Fix (Failed) GHA->>Runner: Start Job Runner->>Runner: Set working-directory: apps/contract-verification Runner->>Runner: Run "Check if network is selected" Note right of Runner: ERROR: Directory doesn't exist! Note over GHA,Repo: After Fix (Works) GHA->>Runner: Start Job Runner->>Repo: Checkout repository Repo-->>Runner: Repository files available Runner->>Runner: Set working-directory: apps/contract-verification Runner->>Runner: Run "Check if network is selected" Note right of Runner: SUCCESS: Directory exists Runner->>Runner: Continue with other steps