Skip to content

uptime: refactor, move some codes to uucore #7289

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

Merged
merged 3 commits into from
Feb 20, 2025

Conversation

Bluemangoo
Copy link
Contributor

@Bluemangoo Bluemangoo commented Feb 9, 2025

Move some code from uu_uptime to uucore, to use them in uu_top.

It may duplicate #7256. When I started, #7256 was not yet open.

I also implement Windows(except load average, it seems impossible)

@Bluemangoo
Copy link
Contributor Author

Some functions throw errors, should I create a thiserror enum? or is there a existed one i can add some entries?

Copy link

github-actions bot commented Feb 9, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch 2 times, most recently from a4b78ae to 7fd063b Compare February 10, 2025 09:47
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch 3 times, most recently from 2a69c60 to c704d7f Compare February 10, 2025 13:10
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@Bluemangoo
Copy link
Contributor Author

I encountered a problem: How to install libsystemd-dev for the corresponding arch in cross. in cross image there are no apt source for it(only amd64 and i386).

For example, in armhf, I try to add source(in pre-build command, and then install):

dpkg --add-architecture armhf&&echo 'deb [arch=armhf] http://ports.ubuntu.com/ bionic main restricted
deb [arch=armhf] http://ports.ubuntu.com/ bionic-updates main restricted
deb [arch=armhf] http://ports.ubuntu.com/ bionic universe
deb [arch=armhf] http://ports.ubuntu.com/ bionic-updates universe
deb [arch=armhf] http://ports.ubuntu.com/ bionic multiverse
deb [arch=armhf] http://ports.ubuntu.com/ bionic-updates multiverse
deb [arch=armhf] http://ports.ubuntu.com/ bionic-backports main restricted universe multiverse'>>/etc/apt/sources.list&&apt-get update

Failed for dependent conflicts :(

@sylvestre sylvestre force-pushed the feature/refactor-uptime branch from c704d7f to c6c1dc5 Compare February 12, 2025 09:16
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/rm/rm2 is no longer failing!

@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch from c6c1dc5 to 585b84e Compare February 13, 2025 09:18
@Bluemangoo Bluemangoo force-pushed the feature/refactor-uptime branch from 585b84e to 5a28db5 Compare February 13, 2025 09:40
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/misc/tee is no longer failing!

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

@Bluemangoo
Copy link
Contributor Author

Done!

Maintainers can start review now.

@Bluemangoo
Copy link
Contributor Author

all fixed.

@sylvestre sylvestre merged commit 047ec99 into uutils:main Feb 20, 2025
65 checks passed
sylvestre pushed a commit to sylvestre/coreutils that referenced this pull request Feb 24, 2025
@Bluemangoo Bluemangoo deleted the feature/refactor-uptime branch March 11, 2025 03:37
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