Skip to content

cirrus: setup WSL logging #25882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

cirrus: setup WSL logging #25882

wants to merge 1 commit into from

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented Apr 15, 2025

To debug some of the WSL issues we are seeing try to setup logging, the script parts are taken from the offical logging script[1] but modified to use a predictable dir/filename we can upload in cirrus and I also removed the interactive prompts.

[1] https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added release-note-none do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Apr 15, 2025
Copy link
Contributor

openshift-ci bot commented Apr 15, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 15, 2025
@Luap99
Copy link
Member Author

Luap99 commented Apr 15, 2025

@baude or maybe @l0rd PTAL
Can either of you figure this out? I think cirrus wise my changes should be around what we need but I cannot for my life figure this powershell script stuff out and I have no windows box so I cannot tests anything basically and I really don't have the time to repush all at the time just to test something.

@l0rd
Copy link
Member

l0rd commented Apr 16, 2025

I have tried to split the script into two parts (start collecting and stop collecting) and it worked fine locally.

We could try executing the first one right before tests execution and the second in function RunCommand (where we execute logformatter) (making sure that the Cirrus job doesn't fail if the WSL log collection fails).

To debug some of the WSL issues we are seeing try to setup logging,
the script parts are taken from the offical logging script[1].

[1] https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99
Copy link
Member Author

Luap99 commented Apr 16, 2025

Thanks, I pushed the changes. Hopefully this works for CI.

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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants