Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Error reporting missing details #307

Closed
udim opened this issue Dec 3, 2020 · 1 comment · Fixed by #308
Closed

Error reporting missing details #307

udim opened this issue Dec 3, 2020 · 1 comment · Fixed by #308

Comments

@udim
Copy link
Contributor

udim commented Dec 3, 2020

Hi, I believe our Jenkins environment is somehow broken, but it's hard to tell which file is not found and there's no way to enable stacktraces either (how do you pass debug to main()?).

From our CI logs:

14:21:34 ==> Detecting CI provider
14:21:34     Jenkins Detected
14:21:34     Fixing merge commit SHA
14:21:34 ==> Preparing upload
14:21:34 Error: 'FileNotFoundError' object has no attribute 'returncode'

Full log: https://ci-beam.apache.org/job/beam_PreCommit_Python_Commit/16554/consoleFull

I believe the issue is with this line:

% (cmd, e.returncode, str(getattr(e, "output", str(e))))

@udim
Copy link
Contributor Author

udim commented Dec 4, 2020

Adding mercurial to the virtualenv seems to resolve the failure.

==> Detecting CI provider
  -> Got branch from git/hg
  -> Got sha from git/hg
==> Preparing upload
    Error running `['hg', 'locate']`: returncode=255, output=b''
    Error running `['hg', 'locate']`: returncode=255, output=b''
==> Processing gcov (disable by -X gcov)

edit: This was running on a Jenkins node in a git repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant