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

Path Validation Error in Post Setup Ape [APE-1158] #23

Closed
pcaversaccio opened this issue Jul 1, 2023 · 7 comments · Fixed by #27
Closed

Path Validation Error in Post Setup Ape [APE-1158] #23

pcaversaccio opened this issue Jul 1, 2023 · 7 comments · Fixed by #27

Comments

@pcaversaccio
Copy link
Contributor

For replication, see this run and go to the section Post Setup Ape

Post job cleanup.
Post job cleanup.
Cache hit occurred on the primary key [3](https://github.com/pcaversaccio/snekmate/actions/runs/5430063261/jobs/9875534341#step:30:3).11-pip-, not saving cache.
Post job cleanup.
Post job cleanup.
Cache hit occurred on the primary key Linux-build-cache, not saving cache.
Post job cleanup.
Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
@vany365 vany365 changed the title Path Validation Error in Post Setup Ape Path Validation Error in Post Setup Ape [APE-1158] Jul 1, 2023
@antazoey
Copy link
Member

antazoey commented Jul 8, 2023

I have also noticed this.

@antazoey
Copy link
Member

antazoey commented Feb 2, 2024

Unfortunately the GitHub cache action requires archives to exist if you say you want to cache them. In our case:

  1. the .build won't exist if you are not compiling
  2. the .vvm won't exist if you are not using vyper
  3. the .solc won't exist if you are not using solc

There is no setting (yet) in the action to allow empty.
Related issue: actions/cache#1241

I have a workaround in place that creates empty directories if they do not exist (see #27).

@pcaversaccio
Copy link
Contributor Author

pcaversaccio commented Feb 2, 2024

Unfortunately the GitHub cache action requires archives to exist if you say you want to cache them. In our case:

  1. the .build won't exist if you are not compiling
  2. the .vvm won't exist if you are not using vyper
  3. the .solc won't exist if you are not using solc

There is no setting (yet) in the action to allow empty. Related issue: actions/cache#1241

I have a workaround in place that creates empty directories if they do not exist (see #27).

Thanks for fixing it, but I'm not sure I can fully follow. In my case, for example, I'm using ape Vyper compilation here. Does this mean that just the .solc folder is missing (since I use compilation & Vyper) in that case and thus the warning is issued?

@antazoey
Copy link
Member

antazoey commented Feb 2, 2024

Does this mean that just the .solc folder is missing (since I use compilation & Vyper) in that case and thus the warning is issued?

I believe that is the case. Do you mind checking if the fix has resolved the warning for you?

@pcaversaccio
Copy link
Contributor Author

Does this mean that just the .solc folder is missing (since I use compilation & Vyper) in that case and thus the warning is issued?

I believe that is the case. Do you mind checking if the fix has resolved the warning for you?

Is it already released? If yes, I can simply retrigger the latest CI run for snekmate.

@antazoey
Copy link
Member

antazoey commented Feb 2, 2024

Is it already released? If yes, I can simply retrigger the latest CI run for snekmate.

It is not released yet, but it's merged. I think you can use branches like this:

- uses: ApeWorX/github-action@main

But otherwise I noticed the WARNINGs are gone from the test runs of the action.

@pcaversaccio
Copy link
Contributor Author

Is it already released? If yes, I can simply retrigger the latest CI run for snekmate.

It is not released yet, but it's merged. I think you can use branches like this:

- uses: ApeWorX/github-action@main

But otherwise I noticed the WARNINGs are gone from the test runs of the action.

I can confirm that the warnings are gone now:
image

https://github.com/pcaversaccio/snekmate/actions/runs/7766317138/job/21182002650

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 a pull request may close this issue.

2 participants