Skip to content

Write ginkgo output to stderr#10

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-eng:mainfrom
stbenjam:writer
Oct 8, 2024
Merged

Write ginkgo output to stderr#10
openshift-merge-bot[bot] merged 1 commit intoopenshift-eng:mainfrom
stbenjam:writer

Conversation

@stbenjam
Copy link
Member

@stbenjam stbenjam commented Oct 8, 2024

OTE was discarding the output ginkgo was writing to stdout -- this had the side-effect of throwing away the test's output. We want that to be stored in ExtensionTestResult.

Now that I'm running some longer running kube tests, it was also a little weird we're silent for so long. This changes the behavior so we do include the tests output as it's generated, but it goes to stderr.

This should make it easier for origin to consume the JSON result from stdout, but raw ginkgo test outputs still end up in the logs via stderr.

Needs openshift/onsi-ginkgo#16

OTE was discarding the output ginkgo was writing to stdout -- this had
the side-effect of throwing away the test's output. We want that to be
stored in ExtensionTestResult.

Now that I'm running some longer running kube tests, it was also a
little weird we're silent for so long.  This changes the behavior so we
do include the tests output as it's generated, but it goes to stderr.

This should make it easier for origin to consume the JSON result from
stdout, but raw ginkgo test outputs still end up in the logs via stderr.

Note: this relies on a patch to ginkgo to expose configuring the writer,
stdout is hardcoded.
@openshift-ci openshift-ci bot requested review from deads2k and jupierce October 8, 2024 15:32
@openshift-ci
Copy link

openshift-ci bot commented Oct 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stbenjam

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 8, 2024
@xueqzhan
Copy link
Contributor

xueqzhan commented Oct 8, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 8, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 62692bb into openshift-eng:main Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments