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

ponder-lab / Hybridize-Functions-Refactoring / #2599
84%

Build:
DEFAULT BRANCH: main
Ran 01 Aug 2026 02:08AM UTC
Jobs 1
Files 33
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 Aug 2026 02:00AM UTC coverage: 83.129% (+0.2%) from 82.924%
#2599

push

github

web-flow
Add an invalid-name-argument safety precondition (#815)

* Add an invalid-name-argument safety precondition

A function that passes a non-string constant where a TensorFlow API declares its `name` parameter (e.g., `tf.sqrt(x, tf.float32)` in word2vec's `evaluate`) runs eagerly but raises under `tf.function` tracing, which opens a name scope with the value and validates it. Such functions now fail with `HAS_INVALID_NAME_ARGUMENTS` (code 17), joining the safety family after `HAS_NUMPY_CALLS_ON_PARAMETERS` and before the barren benefit signal.

Per the scope note on #814, the check is the narrow syntactic rule: a keyword `name=` argument passing a non-string constant fails for any TensorFlow-rooted callee, and a positional argument is recognized for the ops whose TensorFlow 2.9.3 signature is exactly `(x, name=None)`, generated from the `tf`, `tf.math`, `tf.linalg`, and `tf.nn` namespaces with `inspect.signature`. Flagged constants are numeric literals, boolean literals, and TensorFlow dtype constants; `None` (the declared default) and unknown values are conservatively accepted. Because the scan needs no call graph and costs almost nothing, it runs unconditionally rather than sharing the `barrenCouldDecide` gate and `alwaysCheck*` knob pattern of its sibling safety checks; the evaluator reports the verdict in a new `invalid name arguments` column of `functions.csv`.

`testInvalidNameArgumentsBlockHybridization` pins the positional form (distilling word2vec's `evaluate`) and the keyword form, with a string-name P1 control on the same op.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GcqABsog1rtb4m2CDZdcRD

* Degrade to undetermined on a traversal failure

An AST traversal failure in the syntactic scan threw, killing the whole project's refactoring run. Mirror the sibling safety checks instead: log and leave the result null, so the precondition neither blocks nor passes on it.

Co-Authored-By: Clau... (continued)

47 of 49 new or added lines in 3 files covered. (95.92%)

2444 of 2940 relevant lines covered (83.13%)

0.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.46
0.08% edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/analysis/Function.java
Jobs
ID Job ID Ran Files Coverage
1 #2599.1 01 Aug 2026 02:08AM UTC 33
83.13
Source Files on build #2599
  • Tree
  • List 33
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f325d588 on github
  • Prev Build on gh-readonly-queue/main/pr-805-e17630dfbc86862aeb5eb2e3b3bc8004ce5e712f
  • 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