shuke987 opened a new pull request, #61410:
URL: https://github.com/apache/doris/pull/61410

   ## Summary
   - Add optional build profiling to `build.sh`, gated by `DORIS_BUILD_PROFILE` 
environment variable
   - Records build metadata (user, base branch, commit, modified files, 
duration, exit code, load average) as JSON Lines to `.build_profile.jsonl`
   - Auto-detects base branch (master/branch-x.y/branch-selectdb-doris-x.y) by 
finding the closest remote main branch
   - Only tracks files modified since last build (mtime > last_build_time)
   - Zero impact when `DORIS_BUILD_PROFILE` is not set — no behavior change for 
external users
   
   ## Deployment
   Set in `custom_env.sh` on dev machines (no root required):
   ```bash
   echo "export DORIS_BUILD_PROFILE=1" >> custom_env.sh
   ```
   
   ## Test plan
   - [ ] Build with `DORIS_BUILD_PROFILE=1`, verify `.build_profile.jsonl` is 
created with correct fields
   - [ ] Build without `DORIS_BUILD_PROFILE`, verify no side effects
   - [ ] Interrupt build (Ctrl+C), verify record is still written with 
exit_code=130
   - [ ] Verify build failure records exit_code correctly via trap ERR
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to