Skip to content

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?

@github-actions
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
@github-actions
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
@github-actions
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
@github-actions
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
@github-actions
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!

@github-actions
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