Skip to content

A batch of random changes#4

Closed
sweettea wants to merge 8 commits intodm-vdo:mainfrom
sweettea:main
Closed

A batch of random changes#4
sweettea wants to merge 8 commits intodm-vdo:mainfrom
sweettea:main

Conversation

@sweettea
Copy link
Copy Markdown

A grab bag of random fixups I stumbled across when trying to get a test setup going.

I have no idea what format for changes in this repo is.

It adds little value and isn't always packaged, so make it optional.
It has exactly one usage, and that one does some munging of the result.
It's simpler to use for that one user to use Time::Piece (which is core
as of 5.10).
It's a bit overkill to use athinfo on localhost.
For some reason, AlbireoTestUtils wants to read Triage::TestInfo's
TEST_INFO hash, which isn't actually exported, and asserts that the
relevant key is defined. So just export it.
autodie has been around since 5.10 and Fatal is deprecated in favor of
it.

One complication: :void, which makes the following imports not autodie
if their return isn't checked, no longer exists. But it doesn't seem
that we actually cared about this behavior.
We can finally delete permatest/printk hopefully? Whatever behavior we
observed with /dev/kmsg way back in the day has aged out, as far as I
can tell.
It's currently uninterruptable, making you wait till timeout. Very
annoying.
At present, cleanup pkill can fail like this:

2025-03-30 06:16:40,646 DEBUG [106393] SystemUtils - _doSystem: running: pkill -QUIT '^udsCalculateSize$'
2025-03-30 06:16:40,661 DEBUG [106393] SystemUtils - runSystemCommand: command exited with status 1
2025-03-30 06:16:40,661 DEBUG [106393] SystemUtils - runSystemCommand: stderr: [
  pkill: pattern that searches for process name longer than 15 characters will result in zero matches
  Try `pkill -f' option to match against the complete command line.
]

Most of the other pkill invocations already have -f, so add -f here too.
Copy link
Copy Markdown
Member

@lorelei-sakai lorelei-sakai left a comment

Choose a reason for hiding this comment

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

Definitely some good idea in here. We won't be able to aceppt this series in this form, though, because the common repo is really read-only. (It's a mirror of the Perforce source.)

I'll definitely try to get some of these (and your other series) pulled into main and common internally, though, which should end up getting reflected here.

Comment thread perl/Permabit/Triage/TestInfo.pm
Comment thread perl/Permabit/RemoteMachine.pm
Comment thread perl/Permabit/TestRunner.pm
Comment thread perl/Permabit/Utils.pm
Copy link
Copy Markdown
Member

@lorelei-sakai lorelei-sakai left a comment

Choose a reason for hiding this comment

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

There's a pending change to pull some of these things into common, so they should be updated early next week. I've noted which ones in the individual commits.

Comment thread perl/Permabit/TestRunner.pm
Comment thread packaging/perl-Permabit-Core/MANIFEST
Comment thread perl/Permabit/LabUtils/LabMachine.pm
Comment thread perl/Permabit/PlatformUtils.pm
Comment thread perl/Permabit/RemoteMachine.pm
Comment thread perl/Permabit/Utils.pm
Comment thread perl/Permabit/Testcase.pm
@lorelei-sakai
Copy link
Copy Markdown
Member

The changes we are accepting should now be reflect on main. Since we will not take the remaining suggestions right now, this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants