Skip to content

Commit 589b55e

Browse files
committed
add prints
1 parent 96efb8a commit 589b55e

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
uses: actions/checkout@v3
9696
with:
9797
repository: succinctlabs/sp1
98-
ref: dev
98+
ref: n/toolchain-verbose
9999
path: sp1
100100

101101
- name: Build

src/bootstrap/src/bin/main.rs

+9
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,17 @@ fn main() {
7979
println!("{suggestion}");
8080
}
8181

82+
println!("suggest setup completed");
83+
8284
let pre_commit = config.src.join(".git").join("hooks").join("pre-commit");
8385
let dump_bootstrap_shims = config.dump_bootstrap_shims;
8486
let out_dir = config.out.clone();
8587

88+
println!("building");
8689
Build::new(config).build();
90+
println!("build completed");
8791

92+
println!("checking setup");
8893
if suggest_setup {
8994
println!("WARNING: you have not made a `config.toml`");
9095
println!(
@@ -94,6 +99,7 @@ fn main() {
9499
} else if let Some(suggestion) = &changelog_suggestion {
95100
println!("{suggestion}");
96101
}
102+
println!("checking setup completed");
97103

98104
// Give a warning if the pre-commit script is in pre-commit and not pre-push.
99105
// HACK: Since the commit script uses hard links, we can't actually tell if it was installed by x.py setup or not.
@@ -107,6 +113,7 @@ fn main() {
107113
Consider moving it to .git/hooks/pre-push instead, which runs less often."
108114
);
109115
}
116+
println!("pre-commit check completed");
110117

111118
if suggest_setup || changelog_suggestion.is_some() {
112119
println!("NOTE: this message was printed twice to make it more likely to be seen");
@@ -134,6 +141,8 @@ fn main() {
134141
t!(file.write_all(lines.join("\n").as_bytes()));
135142
}
136143
}
144+
145+
println!("dump bootstrap shims completed");
137146
}
138147

139148
fn check_version(config: &Config) -> Option<String> {

src/bootstrap/src/lib.rs

+12
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,19 @@ impl Build {
544544

545545
/// Executes the entire build, as configured by the flags and configuration.
546546
pub fn build(&mut self) {
547+
println!("build started");
548+
547549
unsafe {
548550
crate::utils::job::setup(self);
549551
}
550552

553+
println!("build setup completed");
554+
551555
// Download rustfmt early so that it can be used in rust-analyzer configs.
552556
let _ = &builder::Builder::new(self).initial_rustfmt();
553557

558+
println!("rustfmt download completed");
559+
554560
// hardcoded subcommands
555561
match &self.config.cmd {
556562
Subcommand::Format { check, all } => {
@@ -570,6 +576,8 @@ impl Build {
570576
_ => (),
571577
}
572578

579+
println!("handled subcommand");
580+
573581
if !self.config.dry_run() {
574582
{
575583
// We first do a dry-run. This is a sanity-check to ensure that
@@ -586,6 +594,8 @@ impl Build {
586594
builder.execute_cli();
587595
}
588596

597+
println!("execute cli completed");
598+
589599
// Check for postponed failures from `test --no-fail-fast`.
590600
let failures = self.delayed_failures.borrow();
591601
if failures.len() > 0 {
@@ -596,6 +606,8 @@ impl Build {
596606
exit!(1);
597607
}
598608

609+
println!("postponed failures check completed");
610+
599611
#[cfg(feature = "build-metrics")]
600612
self.metrics.persist(self);
601613
}

0 commit comments

Comments
 (0)