Skip to content

Improve CI jobs logs and error handling#374

Merged
adayton1 merged 3 commits into
developfrom
woptim/ci-logs-and-errors
Jun 4, 2026
Merged

Improve CI jobs logs and error handling#374
adayton1 merged 3 commits into
developfrom
woptim/ci-logs-and-errors

Conversation

@adrienbernede

Copy link
Copy Markdown
Member

Summary

This ports the GitLab CI log-folding improvements from llnl/Umpire#1049 to CARE's GitLab build script.

The goal is to make CI logs easier to navigate without changing the underlying build/test workflow.

What changed

  • add reusable helpers for GitLab collapsible sections
  • add portable UTC timestamps and elapsed-time reporting
  • add nested section support for clearer CI log structure
  • redirect stderr to stdout so section output stays grouped in CI logs
  • replace ad hoc timing messages with structured foldable sections
  • improve error/info/warning output for failed CI steps
  • preserve command exit status when piping ctest output through tee
  • use safer host-config discovery with nullglob

Project-specific notes

This keeps the existing CARE behavior intact, including its project-specific build, test, and cleanup logic. Only the CI log structure and related error/reporting flow were updated.

Why

Large GitLab logs are difficult to inspect when everything is printed as a flat stream. Foldable sections make it much easier to:

  • jump to the relevant phase
  • spot failures quickly
  • understand where time is spent in CI

Testing

  • bash -n scripts/gitlab/build_and_test.sh

Comment thread scripts/gitlab/build_and_test.sh Outdated
@adayton1 adayton1 requested a review from liu15 June 4, 2026 17:37
@adayton1 adayton1 merged commit edc5687 into develop Jun 4, 2026
17 checks passed
@adayton1 adayton1 deleted the woptim/ci-logs-and-errors branch June 4, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants