René's URL Explorer Experiment


Title: Discard a server's earlier snapshot before observe inspects it (#470) by shipmill-romamo[bot] · Pull Request #471 · cloudfall-dev/cloudfall · GitHub

Open Graph Title: Discard a server's earlier snapshot before observe inspects it (#470) by shipmill-romamo[bot] · Pull Request #471 · cloudfall-dev/cloudfall

X Title: Discard a server's earlier snapshot before observe inspects it (#470) by shipmill-romamo[bot] · Pull Request #471 · cloudfall-dev/cloudfall

Description: Summary cloudfall observe counted a server as observed whenever .json existed in the output folder after the inspect run, and nothing removed the requested servers' snapshots first. A snapshot left by an earlier run read as fresh: when one host failed inspect (serial: 1 with any_errors_fatal: true, so the hosts after it aren't reached either), every server was still listed observed, missing was empty, and cloudfall audit judged the old snapshots as current state. collect_observations now deletes the requested servers' snapshots before the playbook runs, so a server this run didn't write is missing, and audit and the dashboard read it as unknown (they already treat an absent snapshot that way). Only the requested servers' files go: a --limit run leaves every other server's snapshot as it was. A run refused before it starts (no server matches the limit) touches nothing. Deleted rather than moved aside: load_observations reads every *.json under the folder recursively, so a .previous.json name or a sibling subfolder inside it would be read back as a second snapshot of the same server and fail with observation_duplicate. Moving them outside the folder would need a new location and a contract for it; the old snapshot carries nothing audit should use once it is stale, so deleting is the simplest change that keeps audit honest. Plan Serves: quality bar (Q-1) Files: sdk/src/cloudfall/observe.py, sdk/tests/test_observe.py, changelog.d/470-observe-stale-snapshots.md Order: failing tests first (a second run in which the first host fails lists every server missing and audit reads them unknown; a run where one host fails lists only it; a limited run keeps other servers' snapshots), then delete the requested snapshots before the run Proof: the new tests in sdk/tests/test_observe.py fail on main and pass with the fix; ruff, mypy Test plan uv run pytest sdk/tests/test_observe.py: the new tests fail on main (stale snapshots listed as observed) and pass with the fix uv run ruff check . and uv run mypy pass The full suite is left to CI Fixes #470 🤖 Generated with Claude Code

Open Graph Description: Summary cloudfall observe counted a server as observed whenever <server>.json existed in the output folder after the inspect run, and nothing removed the requested servers' snapshots firs...

X Description: Summary cloudfall observe counted a server as observed whenever &lt;server&gt;.json existed in the output folder after the inspect run, and nothing removed the requested servers&#39; sn...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.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:b301631e-19f8-d9f6-899f-bf2f0adc4b6e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA30C:2CF9FD:2A338DE:373E2A2:6B055DEE
html-safe-nonceb055b78031076ad9db7edc09fabb3d0d1418587b3a29c7ec59912c720308f085
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzBDOjJDRjlGRDoyQTMzOERFOjM3M0UyQTI6NkIwNTVERUUiLCJ2aXNpdG9yX2lkIjoiODU5MTQzNTY1ODA3NTQxNzQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac804a7d359ce560b4048106d85202320c15b2f656aca3c03961a617fae59ecb47
hovercard-subject-tagpull_request:5350423975
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/471/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:altSummary cloudfall observe counted a server as observed whenever <server>.json existed in the output folder after the inspect run, and nothing removed the requested servers' snapshots firs...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8a6760da3cce5e2d079d07e3b62df71194316c4478db1a5e38050f44fce72c72
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
release8327739ac0648b9c3c722b5f401f7338553936b8
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/cloudfall-dev/cloudfall/pull/471/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcloudfall-dev%2Fcloudfall%2Fpull%2F471%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%2F471%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/471/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/471/files
Reloadhttps://github.com/cloudfall-dev/cloudfall/pull/471/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/470-observe-stale-snapshotshttps://github.com/cloudfall-dev/cloudfall/tree/fix/470-observe-stale-snapshots
Conversation 0 https://github.com/cloudfall-dev/cloudfall/pull/471
Commits 1 https://github.com/cloudfall-dev/cloudfall/pull/471/commits
Checks 2 https://github.com/cloudfall-dev/cloudfall/pull/471/checks
Files changed https://github.com/cloudfall-dev/cloudfall/pull/471/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/471/files
Discard a server's earlier snapshot before observe inspects it (#470) https://github.com/cloudfall-dev/cloudfall/pull/471/files#top
Show all changes 1 commit https://github.com/cloudfall-dev/cloudfall/pull/471/files
8c8e660 Discard a server's earlier snapshot before observe inspects it shipmill-romamo[bot] Nov 17, 2026 https://github.com/cloudfall-dev/cloudfall/pull/471/commits/8c8e6608d1680920ced355e3eb33303b970d83f5
Clear filters https://github.com/cloudfall-dev/cloudfall/pull/471/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/471/files
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/471/files
470-observe-stale-snapshots.md https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-0901c49067be8e43d51918c1770bcce51b2096983649679dafbd3001afe96567
observe.py https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
test_observe.py https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
changelog.d/470-observe-stale-snapshots.mdhttps://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-0901c49067be8e43d51918c1770bcce51b2096983649679dafbd3001afe96567
View file https://github.com/cloudfall-dev/cloudfall/blob/8c8e6608d1680920ced355e3eb33303b970d83f5/changelog.d/470-observe-stale-snapshots.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/471/{{ revealButtonHref }}
sdk/src/cloudfall/observe.pyhttps://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
View file https://github.com/cloudfall-dev/cloudfall/blob/8c8e6608d1680920ced355e3eb33303b970d83f5/sdk/src/cloudfall/observe.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/471/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-147ae7d7d995751cc21868da199bde2e7c4c40facb9b123eb208a2d96f0a8c5e
sdk/tests/test_observe.pyhttps://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
View file https://github.com/cloudfall-dev/cloudfall/blob/8c8e6608d1680920ced355e3eb33303b970d83f5/sdk/tests/test_observe.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/cloudfall-dev/cloudfall/pull/471/{{ revealButtonHref }}
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
https://github.com/cloudfall-dev/cloudfall/pull/471/files#diff-ad380105e6f816cf06eeae9b9ab1799915f89ef8602b0c6b877627b45579a33f
Please reload this pagehttps://github.com/cloudfall-dev/cloudfall/pull/471/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.