Skip to content

Refactor generated doc exports and remove centralized trait tests#676

Merged
GiggleLiu merged 9 commits intomainfrom
jg/improve-graphql
Mar 16, 2026
Merged

Refactor generated doc exports and remove centralized trait tests#676
GiggleLiu merged 9 commits intomainfrom
jg/improve-graphql

Conversation

@GiggleLiu
Copy link
Contributor

Summary

  • treat docs/src/reductions/reduction_graph.json and problem_schemas.json as generated doc artifacts instead of committed files
  • update export/test workflows so schema exports can write to explicit temp paths and docs/workflow guidance matches the generated-artifact model
  • remove the centralized src/unit_tests/trait_consistency.rs module and the automation/docs that required it

Test Plan

  • cargo test --lib
  • (cd scripts && python3 -m unittest test_pipeline_checks.py)

@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.01%. Comparing base (da12028) to head (686586c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #676      +/-   ##
==========================================
- Coverage   97.02%   97.01%   -0.02%     
==========================================
  Files         281      280       -1     
  Lines       37804    37611     -193     
==========================================
- Hits        36681    36488     -193     
  Misses       1123     1123              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

GiggleLiu and others added 4 commits March 17, 2026 00:07
Replace rigid per-model test function name checklist with flexible
coverage guidance enforced by a minimum of 3 test functions. All three
files (CLAUDE.md, add-model skill, structural reviewer) are now
consistent on the threshold.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
# Conflicts:
#	docs/src/reductions/problem_schemas.json
#	docs/src/reductions/reduction_graph.json
#	src/unit_tests/trait_consistency.rs
These files were intentionally removed earlier in this branch;
re-delete after merge conflict resolution.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@GiggleLiu GiggleLiu merged commit 9eaa786 into main Mar 16, 2026
3 checks passed
zazabap added a commit that referenced this pull request Mar 16, 2026
Main branch intentionally removed centralized trait tests in PR #676
(commit 9eaa786). The PR branch diverged before that removal, so our
merge kept the PR's version. Aligning with main's intent by removing it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
zazabap added a commit that referenced this pull request Mar 16, 2026
* Add plan for #251: [Model] BoundedComponentSpanningForest

* Implement #251: [Model] BoundedComponentSpanningForest

* chore: remove plan file after implementation

* fix: address review feedback for bcsf

* fix: preserve create variant errors for graph-backed problems

* fix: address final review weaknesses

- Add CeTZ figure to paper entry showing the 3-component partition
  with colored vertices, weight labels, and region backgrounds
- Relax max_components assertion: K > |V| is mathematically harmless
  (just means fewer than K components will be used)
- Update CLI validation and tests accordingly

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

* fix: remove re-introduced trait_consistency.rs

Main branch intentionally removed centralized trait tests in PR #676
(commit 9eaa786). The PR branch diverged before that removal, so our
merge kept the PR's version. Aligning with main's intent by removing it.

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

* fix: simplify paper figure to avoid hobby/on-layer

Use only g-node, g-edge, and content — the same primitives used by
other figures in the paper. Removes hobby curve regions that could
fail on older CeTZ versions.

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

* fix: resolve CI failures — tempdir and dead code

- Replace tempdir() with std::env::temp_dir() in CLI test (tempfile
  crate not available in test scope)
- Remove unused cli_flag_name function (superseded by help_flag_name)

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

* fix: merge cli_flag_name mappings into help_flag_name

The cli_flag_name function was superseded by help_flag_name but its
general field-name mappings (universe_size->universe, collection->sets,
etc.) were still needed. Merge them into help_flag_name and remove the
redundant function.

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

---------

Co-authored-by: zazabap <sweynan@icloud.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant