Skip to content

chore(deploy): typecheck deploy_tee in CI#39

Merged
samlaf merged 2 commits into
mainfrom
chore/deploy-tee-typecheck
Jun 19, 2026
Merged

chore(deploy): typecheck deploy_tee in CI#39
samlaf merged 2 commits into
mainfrom
chore/deploy-tee-typecheck

Conversation

@samlaf

@samlaf samlaf commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Fix the ty diagnostics that blocked deploy_tee, then flip the Makefile so lint/format/typecheck all cover both packages (drop the temporary FMT_PKG split — deploy_tee is now clean for all three).

Genuine fixes:

  • gcp/api.py: wait_for_extended_operation was annotated compute_v1.Operation, but it uses the ExtendedOperation API (.done()/.error) that the compute_v1 clients actually return. Correcting the annotation clears 11 diagnostics.
  • summit_client._get_json: annotate -> Json; it returns response.json(), not str (the wrong annotation broke keys["..."]).
  • azure/api.py: str(image_path) in the azcopy command (list[str]); get_nsg_rules returns tuples, not list[str].
  • measurements: replace the deprecated tempfile.mktemp with NamedTemporaryFile.

Suppressed (type-checker limitation, test-only): two # ty: ignore on **kwargs dict-splats into typed params in test_manifest.

These are annotation/tooling changes only — no behaviour change. make check is green on both packages; 28 tests pass.

samlaf added 2 commits June 19, 2026 21:41
Fix the ty diagnostics that blocked deploy_tee, then flip the Makefile
so lint/format/typecheck all cover both packages (drop the temporary
FMT_PKG split — deploy_tee is now clean for all three).

Genuine fixes:
- gcp/api.py: wait_for_extended_operation was annotated
  compute_v1.Operation, but it uses the ExtendedOperation API
  (.done()/.error) that the compute_v1 clients actually return.
  Correcting the annotation clears 11 diagnostics.
- summit_client._get_json: annotate -> Json; it returns
  response.json(), not str (the wrong annotation broke keys["..."]).
- azure/api.py: str(image_path) in the azcopy command (list[str]);
  get_nsg_rules returns tuples, not list[str].
- measurements: replace the deprecated tempfile.mktemp with
  NamedTemporaryFile.

Suppressed (type-checker limitation, test-only): two `# ty: ignore`
on **kwargs dict-splats into typed params in test_manifest.

These are annotation/tooling changes only — no behaviour change.
`make check` is green on both packages; 28 tests pass.
@samlaf samlaf merged commit 7c45cd4 into main Jun 19, 2026
1 check passed
@samlaf samlaf deleted the chore/deploy-tee-typecheck branch June 19, 2026 13:56
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