Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FI-3241: Verify runnable id length #547

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

Jammjammjamm
Copy link
Collaborator

Summary

Some runnable ids were becoming longer than the length limit on the columns for runnable ids in the database. SQLite doesn't actually enforce those limits, so this issue wouldn't be noticed until trying to run on QA/prod. This branch checks runnable ids on creation so that they will be noticed immediately.

Testing Guidance

You can do something like change the id of the demo suite to 'a' * 256, and Inferno will fail to start.

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.08%. Comparing base (a3c913e) to head (439c8b2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #547   +/-   ##
=======================================
  Coverage   84.07%   84.08%           
=======================================
  Files         261      261           
  Lines       11386    11392    +6     
  Branches     1251     1252    +1     
=======================================
+ Hits         9573     9579    +6     
  Misses       1803     1803           
  Partials       10       10           
Flag Coverage Δ
backend 92.18% <100.00%> (+0.01%) ⬆️
frontend 79.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Shaumik-Ashraf Shaumik-Ashraf left a comment

Choose a reason for hiding this comment

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

  • inferno dev_validator suite works
  • inferno fails to start correctly if demo suite id is changed to 'a' * 256

@Jammjammjamm Jammjammjamm force-pushed the fi-3241-verify-runnable-id-length branch from 649a160 to 439c8b2 Compare October 23, 2024 17:35
@Jammjammjamm Jammjammjamm merged commit 5b83481 into main Oct 23, 2024
10 checks passed
@Jammjammjamm Jammjammjamm deleted the fi-3241-verify-runnable-id-length branch October 23, 2024 18:48
@Shaumik-Ashraf Shaumik-Ashraf mentioned this pull request Oct 29, 2024
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.

3 participants