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

bramp / build-along / 19059580114
89%

Build:
DEFAULT BRANCH: main
Ran 04 Nov 2025 06:13AM UTC
Jobs 1
Files 57
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 Nov 2025 06:05AM UTC coverage: 84.251% (-3.8%) from 88.027%
19059580114

push

github

bramp
Add golden file testing framework for classifier

Implements a golden file testing framework to validate classifier behavior
through snapshot testing. Tests will skip until expected files are created
after classifier invariants are fixed.

New files:
- classifier_golden_test.py: Golden file test implementation with custom
  serialization for classification results that handles Element objects as
  dict keys and provides clean JSON output format
- generate_golden_files.py: Script to regenerate golden files after fixes
- fixtures/*_raw.json: 9 test fixtures from set 75375 covering various
  page layouts (parts lists, building steps, etc.)
- fixtures/README.md: Documentation for the test fixture format

BUILD changes:
- Added 'generate-golden-files' target with sandboxing disabled
- Added 'fixtures' files() target for JSON test data
- Tests depend on fixtures for golden file comparisons

The framework uses __tag__ field (dataclass-wizard convention) for type
identification. Custom serialization in _serialize_classification_result
is necessary because:
1. Element objects are used as dict keys (not JSON serializable)
2. Golden files need simplified format with string IDs
3. Circular references (page_data) must be removed

Tests currently skip for missing expected files, to be generated once
classifier bugs are fixed.

17 of 116 new or added lines in 1 file covered. (14.66%)

122 existing lines in 4 files now uncovered.

3579 of 4248 relevant lines covered (84.25%)

0.84 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
99
14.66
src/build_a_long/pdf_extract/classifier/classifier_golden_test.py

Uncovered Existing Lines

Lines Coverage ∆ File
6
81.82
-18.18% src/build_a_long/pdf_extract/extractor/page_elements.py
10
87.18
0.11% src/build_a_long/pdf_extract/classifier/types.py
18
80.0
-12.16% src/build_a_long/pdf_extract/extractor/lego_page_elements.py
88
54.55
-21.65% src/build_a_long/pdf_extract/main.py
Jobs
ID Job ID Ran Files Coverage
1 19059580114.1 04 Nov 2025 06:13AM UTC 57
84.25
GitHub Action Run
Source Files on build 19059580114
  • Tree
  • List 57
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19059580114
  • ed7a28b4 on github
  • Prev Build on main (#19058602748)
  • Next Build on main (#19060277498)
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