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

[bug] Explicitly listed path that starts with a dot is ignored. #618

Open
ioquatix opened this issue Sep 16, 2024 · 5 comments
Open

[bug] Explicitly listed path that starts with a dot is ignored. #618

ioquatix opened this issue Sep 16, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@ioquatix
Copy link

What happened?

Explicitly referenced files, e.g. .coverage.db are not uploaded.

What did you expect to happen?

The file should be uploaded as it exists and is explicitly listed: socketry/protocol-http@0361015

How can we reproduce it?

Explicitly listing a path that starts with a dot.

Anything else we need to know?

No response

What version of the action are you using?

v4

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

No response

@ioquatix ioquatix added the bug Something isn't working label Sep 16, 2024
@ioquatix
Copy link
Author

I understand the value of ignoring hidden files when using glob patterns, but ignoring a file which is explicitly listed with an error "Warning: No files were found with the provided path: .covered.db. No artifacts will be uploaded." is extremely confusing, and made me think something was wrong with my own software. Suggest the following:

  • Indicate in the error that files were matched but ignored.
  • If an explicit path is given and matches, it should not be ignored.

@ioquatix
Copy link
Author

It might also be a nice idea to document somewhere what hidden files are, e.g. are we talking about dot files, .gitignoreed files, or anything else?

@abravalheri
Copy link

abravalheri commented Sep 25, 2024

I think I am also hitting this problem in https://github.com/abravalheri/validate-pyproject/actions/runs/11034259945/job/30647361576.

image

In this GHA step, I am making sure all files exist and that the directory to be uploaded is not empty:

abravalheri/validate-pyproject@v0.20...v0.20.1

but even when they exist the upload-artifact action seems to be ignoring them.

I agree that is better to always cache files/directories that are explicitly listed, even if they are hidden, rather than requiring users to set more attributes.

@markfickett
Copy link

It would be great to log "Ignored hidden files .env, .bin/, and 9 others, use include-hidden-files: true if you want to include them.".

@defanator
Copy link

It would be great to log "Ignored hidden files .env, .bin/, and 9 others, use include-hidden-files: true if you want to include them.".

Agree. Just stumbled upon this on one of self-hosted runners with updated action, all the logs were quite misleading (and enabling debug didn't help at all).

WorldSEnder added a commit to WorldSEnder/yew that referenced this issue Dec 28, 2024
WorldSEnder added a commit to yewstack/yew that referenced this issue Dec 28, 2024
* explicit duplicate key check in debug_assertions

also a bit more defensive in production code, this should not lead to any slowdown
or changes in code with proper keys

CI changes:

* force install cli tools over cached versions on version mismatch
* Upload PR information for CI
   see also: actions/upload-artifact#618

misc:

* fix panic in panic
   don't set the panic hook if we are already panicking
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants