Skip to content

Conversation

@zdrapela
Copy link
Member

@zdrapela zdrapela commented Dec 5, 2025

Description

Revert the use of new log class in reporting.sh to fix errors like this: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-redhat-developer-rhdh-main-e2e-ocp-helm-nightly/1996973958125064192#1:build-log.txt%3A4890
Because the the pipeline script relies on this:

The long term solution would be to move the scripts directly to the pipeline scripts at openshift/release to reduce the complexity and interconnection between the repositories, or to source also the lib directory.

Which issue(s) does this PR fix

  • Fixes #?

PR acceptance criteria

Please make sure that the following steps are complete:

  • GitHub Actions are completed and successful
  • Unit Tests are updated and passing
  • E2E Tests are updated and passing
  • Documentation is updated if necessary (requirement for new features)
  • Add a screenshot if the change is UX/UI related

How to test changes / Special notes to the reviewer

@openshift-ci openshift-ci bot requested review from gustavolira and psrna December 5, 2025 17:57
@openshift-ci
Copy link

openshift-ci bot commented Dec 5, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign subhashkhileri for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2025

gustavolira added a commit to gustavolira/rhdh that referenced this pull request Dec 5, 2025
Add log::*_stdout() functions to lib/log.sh for special cases where
output must be written to stdout instead of stderr. This fixes the
Slack notification system in reporting.sh which parses stdout.

Changes:
- Add log::emit_line_stdout() and log::emit_stdout() core functions
- Add log::debug_stdout(), log::info_stdout(), log::warn_stdout(),
  log::success_stdout() convenience functions
- Update reporting.sh to use *_stdout variants for all log calls

The *_stdout variants maintain the same formatting, colors, and log
level filtering as the standard log functions, but write to stdout
instead of stderr to ensure compatibility with external parsers.

Related: redhat-developer#3813
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.

1 participant