Skip to content

fix cases where codespeed errors - #117

Open
mattip wants to merge 2 commits into
python:mainfrom
mattip:500-fixes
Open

mattip wants to merge 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

This branch has not been deployed

No deployments
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