Skip to content
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

test: Attach VM's XML and logs to a failed test #1158

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

skobyda
Copy link
Contributor

@skobyda skobyda commented Jul 24, 2023

  • Add these files to test/common/link-patterns.json

@martinpitt
Copy link
Member

Fails everywhere:

# test/machineslib.py:18:1: I001 [*] Import block is un-sorted or un-formatted

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This is a nice idea!

test/machineslib.py Show resolved Hide resolved
test/machineslib.py Outdated Show resolved Hide resolved
test/machineslib.py Outdated Show resolved Hide resolved
test/machineslib.py Outdated Show resolved Hide resolved
@skobyda skobyda force-pushed the testVmArtifacts branch 2 times, most recently from 75fd5a0 to 41dfaba Compare July 31, 2023 09:25
@skobyda
Copy link
Contributor Author

skobyda commented Jul 31, 2023

Hmmm that's weird, locally I don't get the error test/machineslib.py:18:1: I001 [*] Import block is un-sorted or un-formatted, even when running test/static-code manually

Edit: Ah wait, I don't have ruff installed

@martinpitt
Copy link
Member

@skobyda ruff is installed in our cockpit/tasks container now, see https://github.com/cockpit-project/cockpit/blob/main/HACKING.md#setting-up-development-container

@skobyda skobyda requested a review from martinpitt July 31, 2023 10:31
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! Do you have a failure somewhere to prove that it works?

@martinpitt
Copy link
Member

This run has a flake, and the result dir at least has the XML (no log, though)

@martinpitt
Copy link
Member

Also no log here

test/machineslib.py Outdated Show resolved Hide resolved
@skobyda
Copy link
Contributor Author

skobyda commented Aug 3, 2023

Fixed the VM logs (I forgot to run .strip() over output of m.execute). Now the result directory contains both the XML and VM logs: https://cockpit-logs.us-east-1.linodeobjects.com/pull-1158-20230803-071442-53f6290d-arch/index.html

@skobyda skobyda requested a review from martinpitt August 3, 2023 08:30
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eeeeexcellent, thanks!

@skobyda skobyda merged commit 4ed6795 into cockpit-project:main Aug 3, 2023
13 checks passed
skobyda added a commit to skobyda/cockpit that referenced this pull request Sep 6, 2023
Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
skobyda added a commit to skobyda/cockpit that referenced this pull request Sep 6, 2023
Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
skobyda added a commit to skobyda/cockpit that referenced this pull request Sep 6, 2023
Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
skobyda added a commit to skobyda/cockpit that referenced this pull request Sep 6, 2023
Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
skobyda added a commit to skobyda/cockpit that referenced this pull request Sep 6, 2023
Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
martinpitt pushed a commit to cockpit-project/cockpit that referenced this pull request Sep 6, 2023
Capturing VM's xml and logs was implemented in [1], now it's time to
also include the in our link-patterns.

[1] cockpit-project/cockpit-machines#1158
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