Skip to content

Add CSV output mode - #105

Merged
Kobzol merged 2 commits into
rust-lang:masterfrom
Kobzol:csv-output
Aug 13, 2026
Merged

Add CSV output mode#105
Kobzol merged 2 commits into
rust-lang:masterfrom
Kobzol:csv-output

Conversation

@Kobzol

@Kobzol Kobzol commented Jul 21, 2026

Copy link
Copy Markdown
Member

I created this to make it easier to run tests (#99).

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me, one suggestion inline

if you want, I can switch the #99 implementation to replace things with comma separators rather than | separators, and then you could

  • merge that first
  • as part of this PR, switch the tests to using the CSV output, and show that the actual list doesn't change

Comment thread src/main.rs
let mut file = BufWriter::new(std::fs::File::create(directory.join(format!("{version}.csv")))?);
for score in authors.scores {
let AuthorScore { rank, author, email, commits } = score;
writeln!(file, "{rank},{author},{email},{commits}")?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the email is always going to be reported for CSV mode, then under DEBUG_EMAILS it will be output twice

@Kobzol Kobzol Aug 11, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's fine, it's just a debugging thing, it shouldn't be enabled on CI or when re-blessing the file (but good catch!).

@Kobzol
Kobzol requested a review from Mark-Simulacrum August 11, 2026 07:50
@Kobzol

Kobzol commented Aug 13, 2026

Copy link
Copy Markdown
Member Author

Let's merge this to unblock tests.

@Kobzol
Kobzol merged commit cfc0dda into rust-lang:master Aug 13, 2026
2 checks passed
@Kobzol
Kobzol deleted the csv-output branch August 13, 2026 12:23
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