Skip to content

Conversation

Jamesbarford
Copy link
Contributor

  • Add Nullable job_id to the error table, remove unique constraint.
  • Rename columns benchmark and error to context and message.
  • Pass through job_id in collector code.

…`job_id` and rename columns

Pass through an `Option<u32>` for job id to record errors

fix postgres-to-sqlite

fix insert statements for job_id

more fixes for postgres-to-sqlite

fixes for sqlite-to-postgres

sqlite does not support `SERIAL`

add an id column for the error converter

add an job_id column for the error converter
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks! Could you please update the docs MD file too?

// not with a benchmark.
conn.record_error(
artifact_row_id,
&format!("job:{}", benchmark_job.id()),
Copy link
Member

Choose a reason for hiding this comment

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

We can change the context now, because the job ID will be stored explicitly in the table now. Not sure what the context should be named in this case though, maybe just "unknown" or "general".

Copy link
Member

Choose a reason for hiding this comment

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

Let's use something more general please as the context, retry count exhaustion is not the only thing that can happen, even now we have four different kinds of permanent errors. Maybe just Job failure, to distinguish it from benchmark failures.

@Jamesbarford
Copy link
Contributor Author

Thanks! Could you please update the docs MD file too?

I'm not sure which docs file you are referring too?

@Kobzol
Copy link
Member

Kobzol commented Sep 16, 2025

schema.md, the one you already updated :)

@Jamesbarford
Copy link
Contributor Author

schema.md, the one you already updated :)

I thought I'd updated it? I've changed job => error. Or was there something else too?

@Kobzol
Copy link
Member

Kobzol commented Sep 16, 2025

Your updates are fine - I wrote that message before you did the MD docs update 😅 Maybe you just some some outdated GitHub comment? I'm fine with the current state of the PR :)

Tried it locally and it seems to work fine.

@Kobzol Kobzol changed the title Fix; error table Add job ID to error table Sep 16, 2025
@Kobzol Kobzol merged commit 55388f1 into rust-lang:master Sep 16, 2025
11 checks passed
@Jamesbarford Jamesbarford deleted the fix/error-table branch September 18, 2025 06:54
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