Skip to content

Pin typer and click for the Modal CLI in the deploy workflow - #43

Merged
DTrim99 merged 1 commit into
mainfrom
fix-modal-cli-pins
Nov 24, 2026
Merged

DTrim99 merged 1 commit into
mainfrom
fix-modal-cli-pins

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Why

The Modal API run for the #37 merge (run 45419422089) passed its tests, then failed at "Deploy aca-calc-api" before reaching Modal:

TypeError: Option() got an unexpected keyword argument 'click_type'

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 passes click_type to typer.Option (modal/cli/run.py, line 507), which that typer rejects.

So the API is still on b801cf2: X-ACA-API-Commit reads b801cf25…, and POST /api/calculate-at-income returns 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 run uvx --from "modal==$MODAL_VERSION" --with "typer<0.16" --with "click<8.2" …, with a comment by MODAL_VERSION saying 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 push paths, 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-income against that commit.

Checks

On the Mac, with Python 3.14 as on the runner:

  • uvx --python 3.14 --from "modal==1.4.2" modal --help fails with the same TypeError.
  • With --with "typer<0.16" --with "click<8.2", modal deploy --help and modal app rollback --help both start.
  • The workflow parses as YAML, and both steps carry the pins.

This PR's run tests the API only. It deploys nothing, so the deploy fix first runs on merge.

🤖 Generated with Claude Code

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>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
aca-calc Ready Ready Preview Nov 24, 2026 3:39pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 39d527cb Deployed Nov 24, 2026 by vercel[bot]
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.

1 participant