• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ponder-lab / Hybridize-Functions-Refactoring / 26925541690
78%

Build:
DEFAULT BRANCH: main
Ran 04 Jun 2026 02:08AM UTC
Jobs 1
Files 31
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jun 2026 01:58AM UTC coverage: 76.422% (+0.2%) from 76.227%
26925541690

push

github

web-flow
Fix `getImportContext` early return missing later TensorSpec-reaching imports (#586)

* Fix `getImportContext` early return that missed later TensorSpec-reaching imports

`getImportContext` returned on the first tensorflow import, so a bare
`from tensorflow import function` short-circuited the scan and missed a later
`import tensorflow as tf` (or a `TensorSpec` named in the same statement) that
does make the signature emittable — the refactor fell back to a bare
`@function` and dropped the `input_signature`.

Rework to a full pass with precedence: a qualified `import tensorflow [as X]`
(which qualifies `function`, `TensorSpec`, and the dtype constants under one
prefix) wins over a wildcard, which wins over a named `from` import (`function`
unqualified; `TensorSpec` reachable only if also named). Existing import-shape
results are unchanged.

Adds shape-A (bundled `from tensorflow import function, TensorSpec, float32`)
and shape-B (mixed `from ... import function` + `import tensorflow as tf`)
fixtures/tests via the shared helper. Full suite green (512, 0 failures).

Closes #578.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Align bundled-import fixture comment/Javadoc with the actual import

Address #586 review: the shape-A comment and Javadoc quoted
`from tensorflow import function, TensorSpec, float32` but the fixture also
imports `constant` for the call site; include it in the quoted import.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

22 of 22 new or added lines in 1 file covered. (100.0%)

1303 of 1705 relevant lines covered (76.42%)

0.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26925541690.1 04 Jun 2026 02:08AM UTC 31
76.42
GitHub Action Run
Source Files on build 26925541690
  • Tree
  • List 31
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26925541690
  • 8b58ba49 on github
  • Prev Build on gh-readonly-queue/main/pr-584-be10cb5de92c0b94c83e3d49ce2d36721cb2c888
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc