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

ponder-lab / Hybridize-Functions-Refactoring / #3568
89%
main: 89%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-1149-e5c868abe21b9ff46a6a2ece61d3c98f88a41ae1
DEFAULT BRANCH: main
Ran 17 Oct 2026 01:12PM UTC
Jobs 1
Files 47
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

17 Oct 2026 01:02PM UTC coverage: 88.61% (+0.02%) from 88.594%
#3568

Pull #1090

github

khatchad
Model the builtin open as a file-system write in the side-effect analysis

A call whose callee points to Ariadne's object for the builtin `open`
now adds a fake global for the file system to the call's mod set, next
to the output stream that `print` writes. The callee is recognized by
points-to, not by its name, so `opener = open; opener(path)` is caught
and a local function bound to `open` is not. Under tf.function the call
runs once, at trace time, so the functions of #1077 that reach `open`
(`Model.visualize`, `predict_dataset`, `process_image_label`,
`reads_file`, `calls_reader`) now fail with HAS_PYTHON_SIDE_EFFECTS.

The other trace-time effects need engine facts. `random`, `time`, `cv2`
and `tf.io.gfile` have no summary, so their reads point to nothing
(wala/ML#1080), and the `numpy.random` summaries model a draw's result
but not the generator state it advances. Those cases, and
`wild_random_size` in testNumpyOverWildDimension, are pinned as still
converted, with TODOs.

testPythonSideEffects10 and 11 now see a side effect, from their `open`
calls; a write to a file the function does not open stays #273.

Part of #1077.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NTnpjPjJj2aZy1ZkUD1eAn
Pull Request #1090: Refuse a trace-time call to the builtin open as a Python side effect

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

5220 of 5891 relevant lines covered (88.61%)

0.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #3568.1 17 Oct 2026 01:12PM UTC 47
88.61
Source Files on build #3568
  • Tree
  • List 47
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #1090
  • PR Base - 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