Test-HermeticBuild blames a read-only home for any build.ps1 failure

Open Beginner friendly
#549 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp, powershell

Research direction

Start with tools/Test-HermeticBuild.ps1 and trace how it handles a failed build.ps1 run and checks for files written outside the checkout. Make the reported failure include build.ps1's own failure line, and show the outside-checkout message only when that check finds a file. Verify with the reported stale command/trial.json failure and a case where a file is written outside the checkout.

Written by the indexing model from the issue text.

Description

tools/Test-HermeticBuild.ps1 reports "build.ps1 failed with a read-only home: a tool wrote outside the checkout" whenever build.ps1 fails for any reason. On PR #509 (job 140512638660) the real failure was "Help golden is stale; entries that differ: command/trial.json", and nothing wrote outside the checkout. The message sent triage to the wrong place.

Next: print build.ps1's own failure line, and report "wrote outside the checkout" only when the check finds a file outside it.

🤖 Generated with Claude Code

Dominant language
C#
Stars
1
Forks
0
Avg merge
6h 4m
Merged PRs (30d)
156

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sillsdev/motif

All issues in sillsdev/motif

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.