Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: improve action not found error #2171

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

ChristopherHX
Copy link
Contributor

This change now adds information about what has not been found

on: push
jobs:
  _:
    runs-on: ubuntu-latest
    steps:
    - uses: ChristopherHX/ChristopherHX/test@main
    # - uses: ./test # uncomment for local action error

remote action error in host mode after change (new action cache)

[w.yml/_] Cleaning up container for job _
[w.yml/_] 🏁  Job succeeded
Error: failed to read 'action.yml' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist
failed to read 'action.yaml' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist
failed to read 'Dockerfile' from action 'ChristopherHX/ChristopherHX/test@main' with path 'test' of step file does not exist

local action error in host mode after change

[w.yml/_] ⭐ Run Main ./test
[w.yml/_]   ❌  Failure - Main ./test
[w.yml/_] failed to read 'action.yml' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/action.yml: no such file or directory
failed to read 'action.yaml' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/action.yaml: no such file or directory
failed to read 'Dockerfile' from action './test' with path '' of step lstat /home/christopher/.cache/act/932a1fabcd53bbac/hostexecutor/test/Dockerfile: no such file or directory
[w.yml/_] 🏁  Job failed
Error: Job '_' failed

vscode launch config

        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}",
            "args": [
                "-W",
                "w.yml",
                "-P",
                "ubuntu-latest=-self-hosted",
                "--use-new-action-cache"
            ]
        }

@ChristopherHX ChristopherHX requested a review from a team as a code owner January 28, 2024 15:14
Copy link
Contributor

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 1 0 0.01s
✅ REPOSITORY gitleaks yes no 2.3s
✅ REPOSITORY git_diff yes no 0.17s
✅ REPOSITORY grype yes no 7.68s
✅ REPOSITORY secretlint yes no 1.16s
✅ REPOSITORY trivy-sbom yes no 0.62s
✅ REPOSITORY trufflehog yes no 7.54s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

Copy link

codecov bot commented Jan 28, 2024

Codecov Report

Attention: 1026 lines in your changes are missing coverage. Please review.

Comparison is base (4989f44) 61.22% compared to head (9fc6578) 60.96%.
Report is 307 commits behind head on master.

Files Patch % Lines
pkg/artifactcache/handler.go 65.32% 103 Missing and 43 partials ⚠️
pkg/runner/run_context.go 73.37% 75 Missing and 19 partials ⚠️
pkg/runner/expression.go 55.17% 66 Missing and 12 partials ⚠️
pkg/container/docker_run.go 1.47% 66 Missing and 1 partial ⚠️
pkg/runner/action_cache.go 50.74% 49 Missing and 17 partials ⚠️
pkg/container/docker_network.go 0.00% 56 Missing ⚠️
pkg/model/planner.go 28.57% 53 Missing and 2 partials ⚠️
pkg/model/workflow.go 52.72% 42 Missing and 10 partials ⚠️
pkg/runner/reusable_workflow.go 52.47% 42 Missing and 6 partials ⚠️
pkg/common/outbound_ip.go 0.00% 44 Missing ⚠️
... and 27 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2171      +/-   ##
==========================================
- Coverage   61.22%   60.96%   -0.26%     
==========================================
  Files          46       53       +7     
  Lines        7141     8998    +1857     
==========================================
+ Hits         4372     5486    +1114     
- Misses       2462     3072     +610     
- Partials      307      440     +133     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mergify mergify bot merged commit a6ec2c1 into master Jan 28, 2024
10 checks passed
@mergify mergify bot deleted the fix-improve-action-not-found-error branch January 28, 2024 16:37
jmikedupont2 pushed a commit to meta-introspector/act that referenced this pull request Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants