Skip to content
New issue

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

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

Already on GitHub? # to your account

Excluded_files listed in .pronto.yml are ignored if it does not exist but results in No such file or directory error on runner initialize #338

Open
kwokster10 opened this issue Apr 23, 2019 · 0 comments

Comments

@kwokster10
Copy link

Issue background:

Using Gitlab CI to build a docker image, where thePRONTO_GITLAB_API_PRIVATE_TOKEN=${TOKEN} bundle exec pronto run -f gitlab -c origin/master --exit-code command is run in the container that is spun up.

When the image is built, several files are ignored, including the README.md.

README.md has been added to the .pronto.yml exclude but is not returned by Dir['README.md'] in pronto/config.rb#excluded_files, as the file does not exist. However, the runner tries to run against the file as it was changed and is raising /<working_dir>/cache/ruby/2.5.0/gems/pronto-0.10.0/lib/pronto/runner.rb:50:in 'initialize': No such file or directory @ rb_sysopen - /<working_dir>/README.md (Errno::ENOENT).

Contents of .pronto.yml

all:
  exclude:
  - 'spec/**/*'
  - 'README.md'
  - '.gitlab-ci.yml'

Have also tried '**/*.md', '**/README.md', and other wildcard combinations. '.gitlab-ci.yml' also doesn't work as it is also ignored.

Some contents of .dockerignore

log/
.dockerignore
.gitignore
README.md
gitlab-ci.yml

These work but seem hacky

  • touched empty README.md and gitlab-ci.yml into the docker container
  • stop ignoring those files in .dockerignore

Other suggestions and workarounds welcome!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant