Skip to content

Bump APP_VERSION to v43 to rebuild with the district map changes - #236

Merged
DTrim99 merged 1 commit into
mainfrom
bump-app-version-v43
Dec 3, 2026
Merged

DTrim99 merged 1 commit into
mainfrom
bump-app-version-v43

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

#235 changed the front end but not APP_VERSION, so the Modal deploy that ran on its merge reused the cached v42 app build. The live tracker still serves the old district map.

This bumps APP_VERSION to v43 so the next deploy rebuilds the app layer from main.

After it merges, I'll check that the live Districts tab shows the new header ("119th Congress districts"). If it doesn't, the clone may have raced the push, as modal_app.py warns, and I'll bump again on a fresh commit.

🤖 Generated with Claude Code

#235 changed the front end but not APP_VERSION, so the deploy reused the
cached v42 app build and the live site still has the old district map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@PavelMakarchuk PavelMakarchuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review at fb0fc7e

This PR changes APP_VERSION in modal_app.py from v42 to v43. The Modal image caches its app-build layer on that value. #235 changed the front end but did not change the value, so the deploy after its merge reused the old v42 build. The bump makes the next deploy clone main and build the app again.

Verdict: APPROVE

SUGGESTION

  1. modal_app.py:22: tie the cache key to the commit instead of a manual counter. Since #235, #240 also changed the front end (src/lib/datasetLabel.js and others) without a bump, so the live site misses two PRs now. Each front-end PR needs a bump that is easy to forget. One follow-up option: set the key from the commit SHA that the deploy workflow checks out, and clone that exact SHA. That also removes the race that the comment above line 22 describes. This is follow-up work, not a change for this PR.

What I checked

  • The change is still needed. Main (cdaec13) still has APP_VERSION = "v42". No commit on main changed it after #235.
  • The live site is stale. I fetched the live tracker and all its JavaScript chunks, which include the lazy-loaded chunks. The district map chunk is there, but it does not contain the "Congress districts" label that #235 added. A local build of main with this PR contains that label in the same chunk. So the live site still serves the build from before #235.
  • The deploys ran. The Modal deploy workflow succeeded for the #235 merge (2026-11-25, 11:20am EST) and for the #240 merge (2026-12-02, 3:28pm EST). Both reused the cached v42 build.
  • Conflicts. The PR branch is one commit behind main (#240). It merges onto main without conflicts. It also merges cleanly with the other open PR that changes modal_app.py (#231).
  • Build. bun run build on main plus this PR: passes.
  • No CI checks run on this branch.

@DTrim99
DTrim99 merged commit 53aaa7d into main Dec 3, 2026
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