René's URL Explorer Experiment


Title: Reserve a decision id before the check run writes under it by shipmill-romamo[bot] · Pull Request #365 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Reserve a decision id before the check run writes under it by shipmill-romamo[bot] · Pull Request #365 · cloudfall-dev/cloudfall

X Title: Reserve a decision id before the check run writes under it by shipmill-romamo[bot] · Pull Request #365 · cloudfall-dev/cloudfall

Description: Plan Serves: quality bar Files: sdk/src/cloudfall/decision.py, sdk/tests/test_decision.py, changelog.d/356-unique-decision-id.md Order: the failing test first (two proposals of one operation at the same clock value), then DecisionStore.reserve/release and propose taking its id from the reservation, then the changelog fragment Proof: test_two_proposals_in_one_second_each_keep_their_own_diff and test_a_failed_proposal_leaves_no_record_and_frees_its_id in sdk/tests/test_decision.py Summary propose built the id - and wrote the diff and host stats under it before the record was saved, so two proposals of one operation in the same second shared the id: the second check run overwrote the first one's diff, then its save failed with decision_exists. DecisionStore.reserve(operation_id, moment) takes the id under the store's directory lock before anything is written: a dot file ..reserved created exclusively. When the id is held by a record or another reservation it tries -2, -3, ... Ids that don't collide keep their shape The diff and host-stats paths come from the reserved id DecisionStore.release removes the reservation in a finally after save, so a proposal whose check run raises leaves no record and no reservation, and the error propagates unchanged The reservation is not *.json, so list() (and through it supersede, D-1) never reads it as a record; supersede still runs after the save, as before The old test test_the_same_decision_is_never_overwritten asserted the bug (the second proposal in the same second failing with decision_exists); it is replaced by the new test. The store-level exclusive-create tests (decision_exists from save) are unchanged. Test notes uv run ruff check .: pass uv run mypy: pass uv run pytest sdk/tests/test_decision.py sdk/tests/test_host_stats.py sdk/tests/test_record_fixtures.py sdk/tests/test_stale.py sdk/tests/test_why.py: 159 passed The full suite is left to CI Fixes #356 🤖 Generated with Claude Code

Open Graph Description: Plan Serves: quality bar Files: sdk/src/cloudfall/decision.py, sdk/tests/test_decision.py, changelog.d/356-unique-decision-id.md Order: the failing test first (two proposals of one operation at th...

X Description: Plan Serves: quality bar Files: sdk/src/cloudfall/decision.py, sdk/tests/test_decision.py, changelog.d/356-unique-decision-id.md Order: the failing test first (two proposals of one operation at th...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

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:136d10e4-fed5-ae16-3d44-30545a75cf60
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C06:E4E4F:75F6B3:A20E44:6B05ABCE
html-safe-nonce54a32ec460ec092abc5f26eb756d0466a04716386f6f8a69a733590d71ee079b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzA2OkU0RTRGOjc1RjZCMzpBMjBFNDQ6NkIwNUFCQ0UiLCJ2aXNpdG9yX2lkIjoiMzk1NTU2NTA1MzQ4NjY3Mjg0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc3836715eb88b34fd2f623af476aea4fc4fb5f94dd028a5c2e79da5270c1e4b7
hovercard-subject-tagpull_request:5324627600
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/365/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 Files: sdk/src/cloudfall/decision.py, sdk/tests/test_decision.py, changelog.d/356-unique-decision-id.md Order: the failing test first (two proposals of one operation at th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonec0b0a75b576b64dfa32421a785f31f49ed1e3a5d21b783307a7fd78864bf2e1d
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
release6d5f39f9528ff412d5d29191dbe92c097ad1b33e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/365/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F365%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%2F365%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/365/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/365/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/365/files
cloudfall-devhttps://github.com/cloudfall-dev
cloudfallhttps://github.com/cloudfall-dev/cloudfall
Codehttps://github.com/cloudfall-dev/cloudfall
Issues76 (76)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/356-unique-decision-idhttps://github.com/cloudfall-dev/cloudfall/tree/fix/356-unique-decision-id
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/365
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/365/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/365/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/365/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/365/files
Reserve a decision id before the check run writes under it https://github.com/cloudfall-dev/cloudfall/pull/365/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/365/files
4f5fe29 Reserve a decision id before the check run writes under it shipmill-romamo[bot] Nov 15, 2026 https://github.com/cloudfall-dev/cloudfall/pull/365/commits/4f5fe29d406de3513f64bd1ec8d267ec6c0d36d7
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/365/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/365/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/365/files
356-unique-decision-id.md https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-87e45be07f80e7d3ac17c00862043514670161ed8111a72f9dd2b7e5742c34cd
decision.py https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
test_decision.py https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
changelog.d/356-unique-decision-id.mdhttps://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-87e45be07f80e7d3ac17c00862043514670161ed8111a72f9dd2b7e5742c34cd
View file https://github.com/cloudfall-dev/cloudfall/blob/4f5fe29d406de3513f64bd1ec8d267ec6c0d36d7/changelog.d/356-unique-decision-id.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/365/{{ revealButtonHref }}
sdk/src/cloudfall/decision.pyhttps://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
View file https://github.com/cloudfall-dev/cloudfall/blob/4f5fe29d406de3513f64bd1ec8d267ec6c0d36d7/sdk/src/cloudfall/decision.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/365/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-559ee9df924516657cb006208b49bf76b3e51ca33814ee3d123aeecd1f2d4110
sdk/tests/test_decision.pyhttps://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
View file https://github.com/cloudfall-dev/cloudfall/blob/4f5fe29d406de3513f64bd1ec8d267ec6c0d36d7/sdk/tests/test_decision.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/365/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
https://github.com/cloudfall-dev/cloudfall/pull/365/files#diff-8678c7f3129339b8ea43962585bd2fda666596cbc409f3fcdefdc7de54307dab
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/365/files
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.