bazel-contrib / bazel-contrib/target-determinator
TestDigestsSingleSourceFile fails in clean codespace
- Dominant language
- Go
- Stars
- 182
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce on d9d591146932088ddf8fa1628efa034942072084:
1. Create a [new codespace](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=488968597).
2. Run `npm install -g @bazel/bazelisk`
3. Run `bazel test //...`
Note that `TestDigestsSingleSourceFile` fails:
```
$ bazel test //...
INFO: Analyzed 36 targets (0 packages loaded, 0 targets configured).
INFO: Found 28 targets and 8 test targets...
FAIL: //pkg:pkg_test (see /home/codespace/.cache/bazel/_bazel_codespace/982569728e62b3340e5f2051314017bd/execroot/__main__/bazel-out/k8-fastbuild/testlogs/pkg/pkg_test/test.log)
INFO: From Testing //pkg:pkg_test:
==================== Test output for //pkg:pkg_test:
--- FAIL: TestDigestsSingleSourceFile (0.00s)
hash_cache_test.go:117: Wrong hash: want 33e4ab761182518bbdaabdb916ecea5ad264778881dbe4ce93567f07ea89784b got 00da44523270e18ac5d8529b6f477cadd88dbd6326d6ea9fb7eeb7fc02faac97
FAIL
================================================================================
INFO: Elapsed time: 0.569s, Critical Path: 0.07s
INFO: 2 processes: 1 internal, 1 linux-sandbox.
INFO: Build completed, 1 test FAILED, 2 total actions
```
Contributor guide
Research direction
Start by reproducing the failure in a clean codespace with the pinned commit, installing @bazel/bazelisk and running `bazel test //...`. Inspect `hash_cache_test.go` around `TestDigestsSingleSourceFile` and its test output; done means the test passes with the expected digest in a clean environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- build-system, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100