Repository navigation
Pin typer and click for the Modal CLI in the deploy workflow - #43
Merged
Merged
Conversation
The deploy of eeab076 failed before reaching Modal: uvx resolved typer 0.29, and modal 1.4.2's CLI passes click_type to typer.Option, which it rejects ("Option() got an unexpected keyword argument 'click_type'"). The deploy and rollback steps, and the README's commands, now pin typer<0.16 and click<8.2, which start the CLI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
Modal APIrun for the #37 merge (run 45419422089) passed its tests, then failed at "Deploy aca-calc-api" before reaching Modal:uvx --from "modal==1.4.2"resolves the CLI's dependencies fresh, and today that gives typer 0.29.2 and click 8.5.1. modal 1.4.2's CLI passesclick_typetotyper.Option(modal/cli/run.py, line 507), which that typer rejects.So the API is still on b801cf2:
X-ACA-API-Commitreadsb801cf25…, andPOST /api/calculate-at-incomereturns 404. Vercel has deployed the new frontend, so on policyengine.org the "Your household" cards fail for a household entered in the form.What
.github/workflows/modal-api.yml: the deploy and rollback steps runuvx --from "modal==$MODAL_VERSION" --with "typer<0.16" --with "click<8.2" …, with a comment byMODAL_VERSIONsaying why. The rollback step had the same command, so it would have failed the same way.README.md: the hand-deploy, history and rollback commands carry the same pins.changelog.d/modal-cli-pins.fixed.md.The workflow file is in the workflow's
pushpaths, so merging this runs the deploy for the merge commit. That commit carries #37's code, so the API moves to #37's version, and the smoke test checks/api/calculate-at-incomeagainst that commit.Checks
On the Mac, with Python 3.14 as on the runner:
uvx --python 3.14 --from "modal==1.4.2" modal --helpfails with the sameTypeError.--with "typer<0.16" --with "click<8.2",modal deploy --helpandmodal app rollback --helpboth start.This PR's run tests the API only. It deploys nothing, so the deploy fix first runs on merge.
🤖 Generated with Claude Code