Skip to content

CI: run cargo check for Redox OS - #15688

Open
oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:noredoxer
Open

oech3 wants to merge 1 commit into
uutils:mainfrom
oech3:noredoxer

Conversation

@oech3

@oech3 oech3 commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@xtqqczze

This comment was marked as outdated.

@xtqqczze

This comment was marked as outdated.

@oech3
oech3 marked this pull request as ready for review October 23, 2026 13:44
@xtqqczze

This comment was marked as resolved.

@oech3

This comment was marked as resolved.

@oech3

This comment was marked as outdated.

@oech3

This comment was marked as resolved.

@oech3
oech3 force-pushed the noredoxer branch 2 times, most recently from 40325c8 to 4200800 Compare October 24, 2026 09:58
@xtqqczze

Copy link
Copy Markdown
Collaborator

We can compile uutests once #14739 is merged.

@oech3

oech3 commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

I'm currently not interested in non-executbles. (--all-features might useful for devs, but it is not something for consumers.)

@xtqqczze

Copy link
Copy Markdown
Collaborator

We can compile uutests once #14739 is merged.

It will enable successfully compiling test targets:

 cargo check --all-targets --features feat_os_unix_redox --target x86_64-unknown-redox

Comment thread .github/workflows/redox.yml
@xtqqczze

Copy link
Copy Markdown
Collaborator

We can check with clippy once #14627 is merged.

@oech3

oech3 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

clippy for minor targets are really overkill. It does not change production itself.
Disadvantage by blocking CI for it is larger than advantages.

@xtqqczze

Copy link
Copy Markdown
Collaborator

Disadvantage by blocking CI for it is larger than advantages.

The main blocker for CI is macOS due to reduced concurrency limits for macOS runners, see #15105.

@xtqqczze

xtqqczze commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

This is why we need CI for tests:

error[E0432]: unresolved import `uutests::util::pty_path`
    --> tests/by-util/test_more.rs:17:5
     |
  17 | use uutests::util::pty_path;
     |     ^^^^^^^^^^^^^^^--------
     |                    |
     |                    no `pty_path` in `util`
     |
note: found an item that was configured out
    --> tests/uutests/src/lib/util.rs:3115:8
     |
3114 | #[cfg(all(unix, not(target_os = "redox")))]
     |                    --------------------- the item is gated here
3115 | pub fn pty_path() -> (String, File, File) {
     |        ^^^^^^^^

error[E0432]: unresolved import `uutests::util::pty_path`
    --> tests/by-util/test_stty.rs:10:38
     |
  10 | use uutests::util::{expected_result, pty_path};
     |                                      ^^^^^^^^ no `pty_path` in `util`
     |
note: found an item that was configured out
    --> tests/uutests/src/lib/util.rs:3115:8
     |
3114 | #[cfg(all(unix, not(target_os = "redox")))]
     |                    --------------------- the item is gated here
3115 | pub fn pty_path() -> (String, File, File) {
     |        ^^^^^^^^

warning: unused import: `at_and_ucmd`
  --> tests/by-util/test_nohup.rs:12:15
   |
12 | use uutests::{at_and_ucmd, util::TestScenario, util_name};
   |               ^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

@xtqqczze

Copy link
Copy Markdown
Collaborator

@oech3 Please remove more, stty and nohup from feat_os_unix_redox since their tests do not compile.

@oech3

oech3 commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

No. Target of this PR is executables. NOT tests. You should fix tests at different PR if needed.

@xtqqczze

Copy link
Copy Markdown
Collaborator

Ok, we can address tests separately: #15827.

This branch has not been deployed

No deployments
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