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

ponder-lab / Hybridize-Functions-Refactoring / #3295
88%

Build:
DEFAULT BRANCH: main
Ran 01 Oct 2026 07:22PM UTC
Jobs 1
Files 44
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

01 Oct 2026 07:03PM UTC coverage: 87.393% (+0.1%) from 87.298%
#3295

push

github

web-flow
Reconfigure a hybrid function whose file reaches tf only by a star import (#1019)

* Reconfigure a hybrid function whose file reaches tf only by a star import

A file whose decorator reaches TensorFlow through another module, as
with `from B import *` where `B` imports `tensorflow as tf`, has no
TensorFlow import of its own, so `getImportContext` found nothing. The
reconfiguration gate then reported the signature unwritable and the
function fell through to the already-optimal code 13, though a signature
was inferred.

The reconfiguration path now injects a `from tensorflow import ...` line
when the file has none, sharing the per-file record the fresh-decorator
path already keeps (#574), so a file that mixes both paths injects once.
The narrowing path (#808) uses the same context. The import-planning
pre-pass now also covers reconfigured functions, so the single injected
line carries every function's dtypes.

Where a signature was inferred but its names still aren't in scope, as
under `from tensorflow import function` alone, the function now reports
the new `INFERRED_INPUT_SIGNATURE_NAMES_NOT_IMPORTED` (code 33) instead
of code 13.

Fixes #1018.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTnpjPjJj2aZy1ZkUD1eAn

* Say that a declined reconfiguration can still inject the import

The Javadoc of `reconfigure()` said a declined emission produces no
edit, but the injected import is added before the gate runs. It now
says that, in a file without its own TensorFlow import, the edits can
inject the import with no decorator change. Through the processor that
arises only for a narrowed literal whose span can't be resolved. Also
rewrap a comment the formatter split.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTnpjPjJj2aZy1ZkUD1eAn

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

53 of 53 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

4499 of 5148 relevant lines covered (87.39%)

0.87 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
92.67
0.1% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java
Jobs
ID Job ID Ran Files Coverage
1 #3295.1 01 Oct 2026 07:22PM UTC 44
87.39
Source Files on build #3295
  • Tree
  • List 44
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 50577a78 on github
  • Prev Build on gh-readonly-queue/main/pr-1017-1411debc82b23c2868cc0635a9d8cfbb8fc0d0c6
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc