Skip to content

Improved CI jobs logs and error handling#739

Merged
daboehme merged 2 commits into
masterfrom
woptim/ci-logs-and-errors
Jun 10, 2026
Merged

Improved CI jobs logs and error handling#739
daboehme merged 2 commits into
masterfrom
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 Caliper'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 Caliper 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

@adrienbernede adrienbernede changed the title Woptim/ci logs and errors Improved CI jobs logs and error handling Jun 4, 2026
@daboehme daboehme merged commit 64c6ef7 into master Jun 10, 2026
5 of 11 checks passed
@adrienbernede adrienbernede deleted the woptim/ci-logs-and-errors branch June 11, 2026 10:43
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.

2 participants