René's URL Explorer Experiment


Title: Refuse a whole-number float in an integer field at config validate by shipmill-romamo[bot] · Pull Request #603 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Refuse a whole-number float in an integer field at config validate by shipmill-romamo[bot] · Pull Request #603 · cloudfall-dev/cloudfall

X Title: Refuse a whole-number float in an integer field at config validate by shipmill-romamo[bot] · Pull Request #603 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar (Q-1) Files: sdk/tests/test_strict_integer.py (new), sdk/src/cloudfall/validation.py, changelog.d/602-strict-integer.md; review fix: sdk/src/cloudfall/domain.py, sdk/tests/test_retain_releases.py Order: commit the failing regression test alone first (a whole-number float in spec.proxy.upstream.port and in spec.proxy.maxRequestBodyMegabytes is refused by config validate with its field path; plain integers still pass; true is still refused); then build SchemaCatalog's validators from a Draft202012Validator extended with a strict integer type checker, with its changelog fragment Proof: uv run pytest sdk/tests/test_strict_integer.py fails on main and passes with the fix; sdk/tests/test_validation.py, sdk/tests/test_domain_request_body_limit.py and the other validation tests stay green; uv run cloudfall config validate --project config/examples passes Kind: fix Tests changed: sdk/tests/test_retain_releases.py: it asserted that retainReleases: 2.0 validates and reads as 2, the one integer field that coerced a whole-number float; under this change 2.0 is refused like every other integer field, so its cases move from the accepted to the refused lists Summary SchemaCatalog built a stock Draft202012Validator, whose integer type accepts a float with a zero fractional part. A Domain with spec.proxy.upstream.port: 8100.0 passed cloudfall config validate, then the value object (_required_bounded_integer) raised TypeError and the command that read it, such as cloudfall domains apply, failed with HANDLER_CRASHED. The catalog now builds its validators from jsonschema.validators.extend(Draft202012Validator, type_checker=...), whose integer accepts only a Python int and still refuses bool. Every integer field of every schema refuses 8100.0 at config validate, reported as schema_validation_failed with the field's path, like any other schema error. check_schema still checks each schema against the 2020-12 metaschema, and $refs resolve through the same strict validator class. The value objects' TypeError stays as the second line of defence. Behaviour change: a project that writes a whole-number float in any integer field now fails config validate. For every field but one, such a value passed and then crashed the command that read it. The exception is a Component's spec.deployment.retainReleases: RetainReleases.from_boundary turned 2.0 into 2, so retainReleases: 2.0 validated and worked on main. It is now refused like the rest, and the value object no longer coerces it (review fix). No example or fixture writes an integer as a float. The changelog entry is under ### Breaking, as D-14 requires for a change after which a config that validated before stops validating, and names retainReleases and the step a user takes before upgrading. Test notes New: sdk/tests/test_strict_integer.py, failing on main, passing here Changed in review: sdk/tests/test_retain_releases.py, where 2.0 joins the refused values and the value object's refused list (the latter fails on the old coercion) Ran locally: uv run ruff check ., uv run mypy, uv run cloudfall config validate --project config/examples, and the validation and retain-releases test files; the full suite is left to CI Fixes #602 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar (Q-1) Files: sdk/tests/test_strict_integer.py (new), sdk/src/cloudfall/validation.py, changelog.d/602-strict-integer.md; review fix: sdk/src/cloudfall/domain.py, sdk/tests...

X Description: Plan Serves: quality bar (Q-1) Files: sdk/tests/test_strict_integer.py (new), sdk/src/cloudfall/validation.py, changelog.d/602-strict-integer.md; review fix: sdk/src/cloudfall/domain.py, sdk/tests...

Opengraph URL: https://github.com/cloudfall-dev/cloudfall/pull/603

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b52c5071-0d48-914d-bcd5-5e20d3ce9c2d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD500:20F35A:EBE057:141DB18:6B0557C4
html-safe-noncee41a2bb4da04a794310ea4c9a462a42ee331ed8dcf3b7a959b5da94f3027df57
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTAwOjIwRjM1QTpFQkUwNTc6MTQxREIxODo2QjA1NTdDNCIsInZpc2l0b3JfaWQiOiIxMDk2NTU1NjUyNjg5Nzc4NjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac31111d783eab347ebbd621876a4aafc80c51210b588c01a9d7bc7555ed6cb9c1
hovercard-subject-tagpull_request:5460447969
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/cloudfall-dev/cloudfall/pull/603/files
twitter:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5600783?s=400&v=4
og:image:altPlan Serves: quality bar (Q-1) Files: sdk/tests/test_strict_integer.py (new), sdk/src/cloudfall/validation.py, changelog.d/602-strict-integer.md; review fix: sdk/src/cloudfall/domain.py, sdk/tests...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git
octolytics-dimension-user_id339512759
octolytics-dimension-user_logincloudfall-dev
octolytics-dimension-repository_id1360999777
octolytics-dimension-repository_nwocloudfall-dev/cloudfall
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1360999777
octolytics-dimension-repository_network_root_nwocloudfall-dev/cloudfall
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release10dff83edfd4f3617a7792a152d44991587b434c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/603/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F603%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F603%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=cloudfall-dev%2Fcloudfall
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/603/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/603/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/603/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues78 (78)https://github.com/cloudfall-dev/cloudfall/issues
Pull requests10 (10)https://github.com/cloudfall-dev/cloudfall/pulls
Discussionshttps://github.com/cloudfall-dev/cloudfall/discussions
Actionshttps://github.com/cloudfall-dev/cloudfall/actions
Security and qualityhttps://github.com/cloudfall-dev/cloudfall/security
Insightshttps://github.com/cloudfall-dev/cloudfall/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcloudfall-dev%2Fcloudfall%2Fissues%2Fnew%2Fchoose
shipmill-romamohttps://github.com/apps/shipmill-romamo
mainhttps://github.com/cloudfall-dev/cloudfall/tree/main
fix/602-strict-integerhttps://github.com/cloudfall-dev/cloudfall/tree/fix/602-strict-integer
Conversation 1 https://github.com/cloudfall-dev/cloudfall/pull/603
Commits 5 https://github.com/cloudfall-dev/cloudfall/pull/603/commits
Checks 3 https://github.com/cloudfall-dev/cloudfall/pull/603/checks
Files changed 5 https://github.com/cloudfall-dev/cloudfall/pull/603/files
Refuse a whole-number float in an integer field at config validate https://github.com/cloudfall-dev/cloudfall/pull/603/files#top
Show all changes 5 commits https://github.com/cloudfall-dev/cloudfall/pull/603/files
81f3dc0 Test that an integer field refuses a whole-number float shipmill-romamo[bot] Nov 23, 2026 https://github.com/cloudfall-dev/cloudfall/pull/603/commits/81f3dc038ab0f98b4f60568c5f1ce14c4eb945d2
e061f9a Refuse a whole-number float in an integer field at config validate shipmill-romamo[bot] Nov 23, 2026 https://github.com/cloudfall-dev/cloudfall/pull/603/commits/e061f9a29227a2bbddc6c194e7e3c20970f218de
7fa43f2 Move the strict-integer changelog entry under Breaking shipmill-romamo[bot] Nov 23, 2026 https://github.com/cloudfall-dev/cloudfall/pull/603/commits/7fa43f2323fd5b9a43707cf8c18e7c47062e974f
0054ce0 Refuse a whole-number float in retainReleases like every integer field shipmill-romamo[bot] Nov 24, 2026 https://github.com/cloudfall-dev/cloudfall/pull/603/commits/0054ce03b57f0189d3117ce145b2f83f3f2e5102
7015bf1 Name retainReleases in the strict-integer Breaking entry shipmill-romamo[bot] Nov 24, 2026 https://github.com/cloudfall-dev/cloudfall/pull/603/commits/7015bf1e65b8f73f22a8eb7b93a0549b23a229ff
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/603/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/603/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/603/files
602-strict-integer.md https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-186e76566e7dae23c9f589b5ee24117523636ad5d4ac3cdfc32dc9a34d352035
domain.py https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
validation.py https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
test_retain_releases.py https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-293f513e608e584517bef83817457f84b2c0601fb0e40f6c4482bbc03648c58d
test_strict_integer.py https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-2e43eeaff02ccbbf04898f3c9942175df0ec17fcf37feac179e78e6d28df71c8
changelog.d/602-strict-integer.mdhttps://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-186e76566e7dae23c9f589b5ee24117523636ad5d4ac3cdfc32dc9a34d352035
View file https://github.com/cloudfall-dev/cloudfall/blob/7015bf1e65b8f73f22a8eb7b93a0549b23a229ff/changelog.d/602-strict-integer.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/603/{{ revealButtonHref }}
sdk/src/cloudfall/domain.pyhttps://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
View file https://github.com/cloudfall-dev/cloudfall/blob/7015bf1e65b8f73f22a8eb7b93a0549b23a229ff/sdk/src/cloudfall/domain.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/603/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-74a40076e2210dfe9107c001ce8cdf295a295433fbfd0f306c03476faa0e430b
sdk/src/cloudfall/validation.pyhttps://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
View file https://github.com/cloudfall-dev/cloudfall/blob/7015bf1e65b8f73f22a8eb7b93a0549b23a229ff/sdk/src/cloudfall/validation.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/603/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-49df42efb61e79803f6878b494a9f4020665a502abad42b22938158cf50f5f28
sdk/tests/test_retain_releases.pyhttps://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-293f513e608e584517bef83817457f84b2c0601fb0e40f6c4482bbc03648c58d
View file https://github.com/cloudfall-dev/cloudfall/blob/7015bf1e65b8f73f22a8eb7b93a0549b23a229ff/sdk/tests/test_retain_releases.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/603/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-293f513e608e584517bef83817457f84b2c0601fb0e40f6c4482bbc03648c58d
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-293f513e608e584517bef83817457f84b2c0601fb0e40f6c4482bbc03648c58d
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-293f513e608e584517bef83817457f84b2c0601fb0e40f6c4482bbc03648c58d
https://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-293f513e608e584517bef83817457f84b2c0601fb0e40f6c4482bbc03648c58d
sdk/tests/test_strict_integer.pyhttps://github.com/cloudfall-dev/cloudfall/pull/603/files#diff-2e43eeaff02ccbbf04898f3c9942175df0ec17fcf37feac179e78e6d28df71c8
View file https://github.com/cloudfall-dev/cloudfall/blob/7015bf1e65b8f73f22a8eb7b93a0549b23a229ff/sdk/tests/test_strict_integer.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/603/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.