Skip to content

fix(ci): test-verification failing#452

Merged
o-az merged 2 commits into
mainfrom
copilot/fix-action-failure-issue
Jan 14, 2026
Merged

fix(ci): test-verification failing#452
o-az merged 2 commits into
mainfrom
copilot/fix-action-failure-issue

Conversation

Copilot AI commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

The test-verification workflow was failing because the "Check if network is selected" step ran with working-directory: apps/contract-verification before the repository was checked out, causing "No such file or directory" errors.

Changes

  • Move Checkout step to run first in both verify-vyper and verify-solidity jobs
  • Remove conditional from Checkout step since it must run unconditionally
Original prompt

fix this issue that's making this fail https://github.com/tempoxyz/tempo-apps/actions/runs/21004616417


💡 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 Checkout step to run first in both verify-vyper and verify-solidity jobs. The issue occurred because the workflow has working-directory: apps/contract-verification set 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.

  • Moved Checkout step to be the first step in both jobs
  • Removed conditional if: steps.check.outputs.skip != 'true' from checkout since the repository must be available before any subsequent steps can run

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The fix is straightforward and correct - it reorders workflow steps to ensure the repository is checked out before attempting to use the working directory. This is a necessary fix that addresses a clear bug without introducing any new logic or changes
  • No files require special attention

Important Files Changed

Filename Overview
.github/workflows/test-verification.yml Moves checkout step before network check to fix "No such file or directory" error caused by working-directory default

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
Loading

Co-authored-by: o-az <23618431+o-az@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Cloudflare Deployments

App Environment Status Preview
explorer devnet [>>] Skipped No changes
explorer moderato [>>] Skipped No changes
explorer presto [>>] Skipped No changes
explorer testnet [>>] Skipped No changes
fee-payer devnet [>>] Skipped No changes
fee-payer privy [>>] Skipped No changes
fee-payer testnet [>>] Skipped No changes
og - [>>] Skipped No changes
tokenlist - [>>] Skipped No changes

Copilot AI changed the title [WIP] Fix issue causing action to fail Fix test-verification workflow failing due to working-directory before checkout Jan 14, 2026
Copilot AI requested a review from o-az January 14, 2026 19:21
@o-az

o-az commented Jan 14, 2026

Copy link
Copy Markdown
Contributor

@copilot does this fix all the issues in the action?
I noticed here https://github.com/tempoxyz/tempo-apps/actions/runs/21004616417/job/60383525286 it says:

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 tempo-apps/tempo-apps duplicate

Copilot AI commented Jan 14, 2026

Copy link
Copy Markdown
Contributor Author

@copilot does this fix all the issues in the action?
I noticed here https://github.com/tempoxyz/tempo-apps/actions/runs/21004616417/job/60383525286 it says:

...

Yes, this fix addresses the issue. The tempo-apps/tempo-apps path is actually correct and expected - GitHub Actions checks out repos to /home/runner/work/{repo-name}/{repo-name} by default. The error occurred because the workflow set working-directory: apps/contract-verification globally, and the "Check if network is selected" step ran before the checkout step. Since the repo wasn't cloned yet, the directory didn't exist.

The fix (commit 6cbbd59) moves the Checkout step to run first in both jobs, ensuring the repo is cloned before any step tries to use the working directory.

@o-az o-az changed the title Fix test-verification workflow failing due to working-directory before checkout fix(ci): test-verification failing Jan 14, 2026
@o-az
o-az marked this pull request as ready for review January 14, 2026 19:49

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@o-az
o-az merged commit bddf691 into main Jan 14, 2026
31 of 35 checks passed
@o-az
o-az deleted the copilot/fix-action-failure-issue branch January 14, 2026 20:01
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