Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

add_key() and string measurements don't check Lente column sizes

Open Beginner friendly
#62 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, sqlalchemy
Domain
backend, databases

Research direction

Start by reading docs/source/_traceability.rst for the documented column limits, then locate ResultBaseKeysV1.add_key() and measurement() in the scripts. Check how existing errors are logged and how RECORD_RESULT_INTERNAL_ERROR is returned. Done means overlong keys and string values are caught on the station before Lente inserts the record.

Written by the indexing model from the issue text.

Description

ResultBaseKeysV1.add_key() stores "<name>:<value>" with no length check, but Lente's record.key0-key4 columns are String(64). measurement() checks the name (128) but not a string value, and measurement.value is String(128).

A longer key or string value passes on Prism and only fails when Lente inserts the record, so the result goes to quarantine.

Suggested fix: check the length in add_key() (return False and log) and in measurement() for str values (RECORD_RESULT_INTERNAL_ERROR), so the problem shows on the station during development. The limits are now documented in docs/source/_traceability.rst.

Dominant language
C++
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sistemicorp/scripts

All issues in sistemicorp/scripts

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.