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

Crawls fail at the setup phase #44

Closed
tidoust opened this issue Dec 4, 2019 · 2 comments
Closed

Crawls fail at the setup phase #44

tidoust opened this issue Dec 4, 2019 · 2 comments

Comments

@tidoust
Copy link
Member

tidoust commented Dec 4, 2019

The last 4 crawls have failed at the Setup Reffy step with an "[error]No such file or directory" message. I cannot tell whether the error is during the creation of the config.json file or while running npm ci.

Cc @foolip FYI and in case you already bumped into such errors in the past.

Raw log:

2019-12-04T12:31:37.3649287Z ##[group]Run echo "***" | base64 --decode > config.json
2019-12-04T12:31:37.3650743Z �[36;1mecho "***" | base64 --decode > config.json�[0m
2019-12-04T12:31:37.3650888Z �[36;1mnpm ci�[0m
2019-12-04T12:31:37.3679235Z shell: /bin/bash -e {0}
2019-12-04T12:31:37.3679469Z ##[endgroup]
2019-12-04T12:31:37.3876971Z ##[error]No such file or directory
2019-12-04T12:31:37.3925685Z Cleaning up orphan processes

Corresponding bits in the raw log of last successful crawl:

2019-12-03T12:31:56.5566224Z ##[group]Run echo "***" | base64 --decode > config.json
2019-12-03T12:31:56.5566674Z �[36;1mecho "***" | base64 --decode > config.json�[0m
2019-12-03T12:31:56.5566777Z �[36;1mnpm ci�[0m
2019-12-03T12:31:56.5604591Z shell: /bin/bash -e {0}
2019-12-03T12:31:56.5604819Z ##[endgroup]
2019-12-03T12:32:04.8831917Z 
2019-12-03T12:32:04.8833968Z > core-js@3.4.2 postinstall /home/runner/work/reffy-reports/reffy/node_modules/@snyk/cocoapods-lockfile-parser/node_modules/core-js
2019-12-03T12:32:04.8834778Z > node -e "try{require('./postinstall')}catch(e){}"
2019-12-03T12:32:04.8835124Z 
2019-12-03T12:32:04.9650180Z �[96mThank you for using core-js (�[94m https://github.com/zloirock/core-js �[96m) for polyfilling JavaScript standard library!�[0m
2019-12-03T12:32:04.9651288Z 
2019-12-03T12:32:04.9652214Z �[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: �[0m
2019-12-03T12:32:04.9653018Z �[96m>�[94m https://opencollective.com/core-js �[0m
2019-12-03T12:32:04.9653962Z �[96m>�[94m https://www.patreon.com/zloirock �[0m
2019-12-03T12:32:04.9654435Z 
2019-12-03T12:32:04.9655275Z �[96mAlso, the author of core-js (�[94m https://github.com/zloirock �[96m) is looking for a good job -)�[0m
2019-12-03T12:32:04.9655632Z 
2019-12-03T12:32:05.0065580Z 
2019-12-03T12:32:05.0067371Z > puppeteer@2.0.0 install /home/runner/work/reffy-reports/reffy/node_modules/puppeteer
2019-12-03T12:32:05.0067875Z > node install.js
2019-12-03T12:32:05.0068162Z 
2019-12-03T12:32:06.2998563Z 
2019-12-03T12:32:12.9652041Z Chromium downloaded to /home/runner/work/reffy-reports/reffy/node_modules/puppeteer/.local-chromium/linux-706915
2019-12-03T12:32:13.0073663Z 
2019-12-03T12:32:13.0075623Z > core-js@2.6.10 postinstall /home/runner/work/reffy-reports/reffy/node_modules/core-js
2019-12-03T12:32:13.0076115Z > node postinstall || echo "ignore"
2019-12-03T12:32:13.0076371Z 
2019-12-03T12:32:13.1336269Z 
2019-12-03T12:32:13.1338156Z > respec@24.35.0 postinstall /home/runner/work/reffy-reports/reffy/node_modules/respec
2019-12-03T12:32:13.1338592Z > opencollective-postinstall
2019-12-03T12:32:13.1338693Z 
2019-12-03T12:32:13.2119277Z �[96m�[1mThank you for using respec!�[96m�[1m
2019-12-03T12:32:13.2131572Z �[0m�[96mIf you rely on this package, please consider supporting our open collective:�[22m�[39m
2019-12-03T12:32:13.2132644Z > �[94mhttps://opencollective.com/respec/donate�[0m
2019-12-03T12:32:13.2133055Z 
2019-12-03T12:32:13.3312167Z added 589 packages in 16.236s
tidoust added a commit that referenced this issue Dec 6, 2019
Version 2 (beta) of the actions/checkout GitHub Action, released 3 days ago,
considers that `path` is always relative to `GITHUB_WORKSPACE`. Our steps were
expecting them to be relative to the parent folder. As such, `working-directory`
directives have become wrong and triggered failures reported in #44.

This update fixes the `working-directory` directives and also forces the
checkout of `reffy-reports` into a subfolder to avoid integrating files from
`reffy` when `git add -A` gets run.
@tidoust
Copy link
Member Author

tidoust commented Dec 6, 2019

Now fixed. This was due to a change of behavior of the actions/checkout action, which now always puts the results of the checkout relative to GITHUB_WORKSPACE and not relative to its parent folder.

@tidoust tidoust closed this as completed Dec 6, 2019
@foolip
Copy link
Member

foolip commented Dec 11, 2019

Thanks for fixing this, @tidoust! I did see this on another repo as well, and I guess the new behavior is better since it was pretty hard to get the paths right previously.

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

No branches or pull requests

2 participants