Skip to content

fix cases where codespeed errors - #117

Merged
mattip merged 2 commits into
python:mainfrom
mattip:500-fixes
Nov 29, 2026
Merged

mattip merged 2 commits into
python:mainfrom
mattip:500-fixes

Conversation

@mattip

@mattip mattip commented Nov 19, 2026

Copy link
Copy Markdown

I ran into this when trying to run benchmarks on a tag longer than 20 chars. Checking the logs showed more errors.

  • tag is more than 20 chars (release-pypy3.12-v8.0.0 is 23). This requires a migration which is backwards compatible.
  • accept None for lastrevisions

These are latent, I did not see them in the errors but they could happen

  • more than one tag for a revision
  • clean rev log again so an over-long value (author name) will error cleanly
- tag is more than 20 chars (release-pypy3.12-v8.0.0 is 23)
- more than one tag
- clean rev log again so an over-long value (author name) will error cleanly
- accept None for lastrevisions
@mattip

mattip commented Nov 21, 2026

Copy link
Copy Markdown
Author

Would anyone like to take a look at this PR?

@StanFromIreland

Copy link
Copy Markdown
Member

I'm at PyCon Ireland currently, but I can take a look tomorrow!

Comment thread codespeed/results.py
Comment on lines +130 to +133
try:
rev.full_clean()
except ValidationError as e:
return str(e), True

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

An over-long author name or tag comes from the repo, so the submitter cannot fix it, and every result for that commit is refused. I suggest truncating author/tag to the field length to keep the data.

This can be left to a follow-up, if you prefer.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, let’s leave as a follow up

@mattip

mattip commented Nov 29, 2026

Copy link
Copy Markdown
Author

ping

@StanFromIreland

Copy link
Copy Markdown
Member

I approved before, hmm, did I somehow leave my review pending? It looks alright to me, although with GitHub nowadays you never really know...

@mattip

mattip commented Nov 29, 2026

Copy link
Copy Markdown
Author

Yes, you approved but did not merge.

@StanFromIreland

Copy link
Copy Markdown
Member

Oh, feel free to merge if I approve (I wanted to leave it to you here)! If I give it my green tick, I'm happy ;-)

@mattip
mattip merged commit 4ab1233 into python:main Nov 29, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants