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

Joshua's CI playground #76797

Closed
wants to merge 8 commits into from
Closed

Joshua's CI playground #76797

wants to merge 8 commits into from

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Sep 16, 2020

r? @ghost

Otherwise, we may not have a standard library built for the native "host" target
of the rustc being run.
@jyn514
Copy link
Member Author

jyn514 commented Sep 16, 2020

@bors try

@bors
Copy link
Contributor

bors commented Sep 16, 2020

⌛ Trying commit 2fc94e2f720ecd5d08e38d0c48c521937f66473a with merge cff6960b14475a21f0d6b91e97c3e4556164baba...

@bors
Copy link
Contributor

bors commented Sep 16, 2020

💔 Test failed - checks-azure

@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Sep 16, 2020
@jyn514
Copy link
Member Author

jyn514 commented Sep 16, 2020

@bors try

@bors
Copy link
Contributor

bors commented Sep 16, 2020

⌛ Trying commit 589c5151f9636052e409f11f0306d6bcb97b2959 with merge 3be6ca7fecf8a45a45069280f80c6a1a5664fb57...

This isn't an issue for most folks who use x.py dist, which will directly depend
on this. But for x.py build, if we don't properly set target here rustdoc will
not be built.

Currently, there is not a default-on step for generating a rustc for a given
target either, so we will fail to build a rustc as well.
@bors
Copy link
Contributor

bors commented Sep 16, 2020

💔 Test failed - checks-azure

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
   Compiling serde_json v1.0.57
   Compiling same-file v1.0.6
   Compiling fnv v1.0.7
   Compiling unicode-width v0.1.8
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling opener v0.4.1
   Compiling build_helper v0.1.0 (/checkout/src/build_helper)
   Compiling thread_local v1.0.1
   Compiling getopts v0.2.21
---
   Compiling ignore v0.4.16
   Compiling toml v0.5.6
   Compiling bootstrap v0.0.0 (/checkout/src/bootstrap)
    Finished dev [unoptimized + debuginfo] target(s) in 48.50s
[src/bootstrap/config.rs:593] &config.cmd = Build {
    paths: [
        "nonexistent/path/to/trigger/cargo/metadata",
    ],
Build completed successfully in 0:00:58
bin_root (bootstrap.RustBuild)
Doctest: bootstrap.RustBuild.bin_root ... ok
bootstrap_binary (bootstrap.RustBuild)
---
DirectMap4k:      180160 kB
DirectMap2M:     6111232 kB
DirectMap1G:    54525952 kB
    Finished dev [unoptimized + debuginfo] target(s) in 0.18s
[src/bootstrap/config.rs:593] &config.cmd = Dist {
    paths: [],
}
[src/bootstrap/config.rs:598] flags.stage = None
[src/bootstrap/config.rs:598] dbg!(flags . stage).or(build.dist_stage).unwrap_or(2) = 2
Building stage0 tool unstable-book-gen (x86_64-unknown-linux-gnu)
---
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling scopeguard v1.1.0
   Compiling syn v1.0.38
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling maybe-uninit v2.0.0
   Compiling semver-parser v0.7.0
   Compiling smallvec v1.4.2
   Compiling log v0.4.11
---
[100%] Built target clang_rt.tsan-x86_64
cargo:root=/checkout/obj/build/x86_64-unknown-linux-gnu/native/sanitizers
 finished in 13.232
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling libc v0.2.77
   Compiling std v0.0.0 (/checkout/library/std)
   Compiling compiler_builtins v0.1.35
   Compiling unwind v0.0.0 (/checkout/library/unwind)
---
   Compiling scopeguard v1.1.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling byteorder v1.3.4
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling log v0.4.11
   Compiling smallvec v1.4.2
   Compiling semver-parser v0.7.0
   Compiling instant v0.1.6
---
Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
 Documenting core v0.0.0 (/checkout/library/core)
    Finished release [optimized + debuginfo] target(s) in 10.69s
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling compiler_builtins v0.1.35
    Checking rustc-std-workspace-core v1.99.0 (/checkout/library/rustc-std-workspace-core)
 Documenting alloc v0.0.0 (/checkout/library/alloc)
    Finished release [optimized + debuginfo] target(s) in 18.62s
---
   Compiling unicode-xid v0.2.1
    Checking scopeguard v1.1.0
    Checking smallvec v1.4.2
   Compiling byteorder v1.3.4
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling semver-parser v0.7.0
   Compiling log v0.4.11
    Checking hashbrown v0.9.0
   Compiling getrandom v0.1.14
---
   Compiling maybe-uninit v2.0.0
   Compiling pkg-config v0.3.18
   Compiling scopeguard v1.1.0
   Compiling rayon-core v1.7.1
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling adler v0.2.3
   Compiling yaml-rust v0.3.5
   Compiling either v1.6.0
   Compiling crossbeam-utils v0.7.2

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @rust-lang/infra. (Feature Requests)

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
   Compiling regex-syntax v0.6.18
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.57
   Compiling same-file v1.0.6
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling unicode-width v0.1.8
   Compiling build_helper v0.1.0 (/checkout/src/build_helper)
   Compiling opener v0.4.1
   Compiling thread_local v1.0.1
---
   Compiling ignore v0.4.16
   Compiling toml v0.5.6
   Compiling bootstrap v0.0.0 (/checkout/src/bootstrap)
    Finished dev [unoptimized + debuginfo] target(s) in 51.50s
[src/bootstrap/flags.rs:102] args = [
    "build",
    "--stage",
    "2",
    "nonexistent/path/to/trigger/cargo/metadata",
]
[src/bootstrap/config.rs:593] &config.cmd = Build {
    paths: [
        "nonexistent/path/to/trigger/cargo/metadata",
    ],
Build completed successfully in 0:01:06
bin_root (bootstrap.RustBuild)
Doctest: bootstrap.RustBuild.bin_root ... ok
bootstrap_binary (bootstrap.RustBuild)
---
DirectMap2M:     4990976 kB
DirectMap1G:    55574528 kB
+ python2.7 ../x.py dist --host x86_64-unknown-linux-gnu --target x86_64-unknown-linux-gnu
    Finished dev [unoptimized + debuginfo] target(s) in 0.19s
[src/bootstrap/flags.rs:102] args = [
    "dist",
    "--host",
    "x86_64-unknown-linux-gnu",
    "--target",
    "x86_64-unknown-linux-gnu",
]
[src/bootstrap/config.rs:593] &config.cmd = Dist {
    paths: [],
}
[src/bootstrap/config.rs:598] flags.stage = None
[src/bootstrap/config.rs:598] dbg!(flags . stage).or(build.dist_stage).unwrap_or(2) = 2
Building stage0 tool unstable-book-gen (x86_64-unknown-linux-gnu)
---
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.19
   Compiling scopeguard v1.1.0
   Compiling unicode-xid v0.2.1
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling syn v1.0.38
   Compiling maybe-uninit v2.0.0
   Compiling smallvec v1.4.2
   Compiling log v0.4.11
---
[100%] Built target clang_rt.tsan-x86_64
cargo:root=/checkout/obj/build/x86_64-unknown-linux-gnu/native/sanitizers
 finished in 15.414
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling libc v0.2.77
   Compiling std v0.0.0 (/checkout/library/std)
   Compiling compiler_builtins v0.1.35
   Compiling unwind v0.0.0 (/checkout/library/unwind)
---
   Compiling proc-macro2 v1.0.19
   Compiling scopeguard v1.1.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling maybe-uninit v2.0.0
   Compiling semver-parser v0.7.0
   Compiling smallvec v1.4.2
   Compiling log v0.4.11
---
Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
 Documenting core v0.0.0 (/checkout/library/core)
    Finished release [optimized + debuginfo] target(s) in 11.61s
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling compiler_builtins v0.1.35
    Checking rustc-std-workspace-core v1.99.0 (/checkout/library/rustc-std-workspace-core)
 Documenting alloc v0.0.0 (/checkout/library/alloc)
    Finished release [optimized + debuginfo] target(s) in 19.37s
---
   Compiling unicode-xid v0.2.1
    Checking scopeguard v1.1.0
   Compiling byteorder v1.3.4
    Checking smallvec v1.4.2
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling log v0.4.11
   Compiling semver-parser v0.7.0
    Checking hashbrown v0.9.0
    Checking instant v0.1.6
---
  Downloaded lzma-sys v0.1.16
   Compiling maybe-uninit v2.0.0
   Compiling pkg-config v0.3.18
   Compiling scopeguard v1.1.0
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling crc32fast v1.2.0
   Compiling adler v0.2.3
   Compiling yaml-rust v0.3.5
   Compiling either v1.6.0

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @rust-lang/infra. (Feature Requests)

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).
@jyn514
Copy link
Member Author

jyn514 commented Sep 16, 2020

@bors try

@bors
Copy link
Contributor

bors commented Sep 16, 2020

⌛ Trying commit 5af35c1 with merge 9a613af76f246c2eb66ca037efd1917900857e00...

@rust-log-analyzer
Copy link
Collaborator

The job dist-x86_64-linux of your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
   Compiling fnv v1.0.7
   Compiling serde_json v1.0.57
   Compiling itoa v0.4.6
   Compiling unicode-width v0.1.8
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling build_helper v0.1.0 (/checkout/src/build_helper)
   Compiling thread_local v1.0.1
   Compiling walkdir v2.3.1
   Compiling getopts v0.2.21
---
   Compiling ignore v0.4.16
   Compiling toml v0.5.6
   Compiling bootstrap v0.0.0 (/checkout/src/bootstrap)
    Finished dev [unoptimized + debuginfo] target(s) in 50.37s
[src/bootstrap/config.rs:593] &config.cmd = Build {
    paths: [
        "nonexistent/path/to/trigger/cargo/metadata",
    ],
Build completed successfully in 0:01:02
bin_root (bootstrap.RustBuild)
Doctest: bootstrap.RustBuild.bin_root ... ok
bootstrap_binary (bootstrap.RustBuild)
---
DirectMap4k:      223168 kB
DirectMap2M:     7116800 kB
DirectMap1G:    52428800 kB
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
[src/bootstrap/config.rs:593] &config.cmd = Dist {
    paths: [],
}
[src/bootstrap/config.rs:598] flags.stage = None
[src/bootstrap/config.rs:598] dbg!(flags . stage).or(build.dist_stage).unwrap_or(2) = 2
Building stage0 tool unstable-book-gen (x86_64-unknown-linux-gnu)
---
   Compiling lazy_static v1.4.0
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling scopeguard v1.1.0
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling syn v1.0.38
   Compiling maybe-uninit v2.0.0
   Compiling log v0.4.11
   Compiling semver-parser v0.7.0
---
[100%] Built target clang_rt.tsan-x86_64
cargo:root=/checkout/obj/build/x86_64-unknown-linux-gnu/native/sanitizers
 finished in 13.199
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling libc v0.2.77
   Compiling std v0.0.0 (/checkout/library/std)
   Compiling compiler_builtins v0.1.35
   Compiling unwind v0.0.0 (/checkout/library/unwind)
---
   Compiling proc-macro2 v1.0.19
   Compiling scopeguard v1.1.0
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.38
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling maybe-uninit v2.0.0
   Compiling log v0.4.11
   Compiling semver-parser v0.7.0
   Compiling smallvec v1.4.2
---
Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
 Documenting core v0.0.0 (/checkout/library/core)
    Finished release [optimized + debuginfo] target(s) in 10.95s
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling compiler_builtins v0.1.35
    Checking rustc-std-workspace-core v1.99.0 (/checkout/library/rustc-std-workspace-core)
 Documenting alloc v0.0.0 (/checkout/library/alloc)
    Finished release [optimized + debuginfo] target(s) in 18.57s
---
   Compiling unicode-xid v0.2.1
    Checking scopeguard v1.1.0
    Checking smallvec v1.4.2
   Compiling byteorder v1.3.4
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling log v0.4.11
   Compiling semver-parser v0.7.0
    Checking hashbrown v0.9.0
    Checking instant v0.1.6
---
  Downloaded crossbeam-queue v0.2.3
  Downloaded crc32fast v1.2.0
   Compiling maybe-uninit v2.0.0
   Compiling scopeguard v1.1.0
   Compiling cc v1.0.59 (https://github.com/alexcrichton/cc-rs?rev=192a84d9313210e09f2af1d7a8c27f70bd6a0f6e#192a84d9)
   Compiling pkg-config v0.3.18
   Compiling crc32fast v1.2.0
   Compiling adler v0.2.3
   Compiling either v1.6.0

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @rust-lang/infra. (Feature Requests)

@bors
Copy link
Contributor

bors commented Sep 16, 2020

💔 Test failed - checks-actions

@jyn514 jyn514 closed this Sep 16, 2020
RalfJung added a commit to RalfJung/rust that referenced this pull request Sep 19, 2020
Don't generate bootstrap usage unless it's needed

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).

r? @Mark-Simulacrum
This should fix the CI failures in rust-lang#76797 and rust-lang#75991.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Don't generate bootstrap usage unless it's needed

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).

r? @Mark-Simulacrum
This should fix the CI failures in rust-lang#76797 and rust-lang#75991.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Don't generate bootstrap usage unless it's needed

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).

r? @Mark-Simulacrum
This should fix the CI failures in rust-lang#76797 and rust-lang#75991.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Sep 19, 2020
Don't generate bootstrap usage unless it's needed

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).

r? @Mark-Simulacrum
This should fix the CI failures in rust-lang#76797 and rust-lang#75991.
RalfJung added a commit to RalfJung/rust that referenced this pull request Sep 20, 2020
Don't generate bootstrap usage unless it's needed

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).

r? @Mark-Simulacrum
This should fix the CI failures in rust-lang#76797 and rust-lang#75991.
RalfJung added a commit to RalfJung/rust that referenced this pull request Sep 20, 2020
Don't generate bootstrap usage unless it's needed

Previously, `x.py` would unconditionally run `x.py build` to get the
help message. After rust-lang#76165,
when checking the CI stage was moved into `Config`, that would cause an
assertion failure (but only only in CI!):

```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `2`', src/bootstrap/config.rs:619:49
```

This changes bootstrap to only generate a help message when it needs
to (when someone passes `--help`).

r? @Mark-Simulacrum
This should fix the CI failures in rust-lang#76797 and rust-lang#75991.
@jyn514 jyn514 deleted the debug-ci branch November 7, 2020 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants