How to reproduce jobs locally? -> improve logs
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 322
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
I just had a failing instance of ofborg-eval-lib-tests: https://gist.github.com/GrahamcOfBorg/85196b733b08a4c1c29909c2a1a5af42
... and I'm having a hard time trying to debug this.
Several things are missing here:
- Which commands were executed: The logs do not state which command was executed.
- Definition unclear: grepping for
ofborg-eval-lib-testsin either nixpkgs or nixos/ofborg leads to zero results. Where is the job defined? - Reproduce locally: There are no instructions in the logs how I can reproduce that specific job locally.
All of the above should be easy fixes and would make debugging this stuff a lot easier.
EDIT: I just noticed that it displays the command in github next to the job. So that helps. But still it would be nice to have this clearly stated in the logs as well. Also the command displayed in github nix-build --arg pkgs 'import ./. {}' ./lib/tests/release.nix doesn't actually seem to work and fails with:
error: store path 'q7375xm60a582561sq84mxyx13j79cjb-.version' starts with illegal character '.'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the failing job details in the linked gist and the GitHub job command, then trace where ofborg generates and publishes its logs. Check ./lib/tests/release.nix and the displayed nix-build invocation while investigating how the job is defined. Done means the logs identify the executed command, explain the job definition, and provide a locally usable reproduction path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ci-cd, devops, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100