Skip to content

Hla 966 validation regexes#47

Merged
MJGaughran merged 7 commits into
mainfrom
HLA-966-validation-regexes
Jan 9, 2026
Merged

Hla 966 validation regexes#47
MJGaughran merged 7 commits into
mainfrom
HLA-966-validation-regexes

Conversation

@MJGaughran

Copy link
Copy Markdown
Contributor

Add validation regexes for as many fields as possible.

For the most part, I have been permissive where possible as we assume that people are not trying to break the system.

I will try to add validation for URLs, but that is better off in a separate PR as I need to change and test how the schema is generated and yaml is processed.

As part of this, the regexes used for finding module versions have also
been fixed. It would previously exclude any versions using any
characters in ".version", rather than excluding only the whole string
With the use of large JSON objects for storing configuration, these
error messages are otherwise too cluttered to be useful.
ContainerImage.version will be renamed to tag in a later release. For
now, we will keep the interface identical.
This is restrictive, but currently supports all existing modules in use
at Diamond.
@codecov

codecov Bot commented Dec 19, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.69%. Comparing base (03fdc83) to head (30a15cc).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   76.43%   76.69%   +0.25%     
==========================================
  Files          24       25       +1     
  Lines         904      914      +10     
==========================================
+ Hits          691      701      +10     
  Misses        213      213              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/deploy_tools/models/module.py
@MichaelStubbings

Copy link
Copy Markdown
Collaborator

Looks good, the regexes seem sensible and give us a clean structure to work with should we need to make any changes when it goes live.

@MJGaughran
MJGaughran merged commit 690441e into main Jan 9, 2026
11 checks passed
@MJGaughran
MJGaughran deleted the HLA-966-validation-regexes branch January 9, 2026 13:00
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