Skip to content

Make sure CI tests failed with detailed error stack when there are testbook failures - #438

Merged
sou-cheng-choi merged 149 commits into
developfrom
booktests_choi
Dec 18, 2025
Merged

Make sure CI tests failed with detailed error stack when there are testbook failures#438
sou-cheng-choi merged 149 commits into
developfrom
booktests_choi

Conversation

@sou-cheng-choi

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request enhances the CI testing infrastructure to ensure testbook failures produce detailed error output and proper exit codes, preventing silent test failures in CI environments.

Key changes:

  • Enhanced error reporting in parallel test runner with detailed log output on failures
  • Added proper exit code handling to fail CI builds when tests fail
  • Refactored GBM notebook tests with improved symlink handling and execution patterns

Reviewed changes

Copilot reviewed 26 out of 37 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
test/booktests/parsl_test_runner.py Added detailed error logging (printing last 2000 chars of logs), proper sys.exit() calls to fail CI on errors, and exit code checking for failed tests
test/booktests/__init__.py Added helper methods for notebook location and execution, reorganized imports
test/booktests/tb_gbm_examples.py Implemented symlink fixing utility and custom notebook execution with directory context switching
test/booktests/tb_gbm_demo.py Added skip decorator referencing GitHub issue, refactored to use new helper functions
test/booktests/tb_MCQMC_2020_QMC_Software_Tutorial.py Added skip decorator to temporarily disable tests
test/booktests/tb_why_add_q_to_mc_blog.py Added setUp method to create outputs directory before test execution
test/booktests/READEME.md Added documentation on design patterns for testbook usage
pyproject.toml Added test dependencies: pandas, yfinance, quantlib, ipywidgets, nbconvert
.github/workflows/booktests.yml Added pyproject.toml to trigger paths and type1cm LaTeX package
demos/GBM/** Added type hints to utility functions, refactored MAE computation, fixed symlink paths from code/ to gbm_code/, added new demo scripts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml
Comment thread test/booktests/READEME.md Outdated
Comment thread test/booktests/tb_gbm_demo.py Outdated
Comment thread test/booktests/tb_gbm_examples.py Outdated
Comment thread test/booktests/tb_gbm_examples.py Outdated
Comment thread test/booktests/tb_gbm_demo.py Outdated
@sou-cheng-choi

Copy link
Copy Markdown
Member Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copilot AI commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

@sou-cheng-choi I've opened a new pull request, #442, to work on those changes. Once the pull request is ready, I'll request review from you.

…documentation (#442)

* Initial plan

* Fix typo and remove unused imports

Co-authored-by: sou-cheng-choi <18743024+sou-cheng-choi@users.noreply.github.com>

* Clarify comment in tb_gbm_demo.py

Co-authored-by: sou-cheng-choi <18743024+sou-cheng-choi@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sou-cheng-choi <18743024+sou-cheng-choi@users.noreply.github.com>
@sou-cheng-choi
sou-cheng-choi merged commit 2a32be5 into develop Dec 18, 2025
5 checks passed
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.

6 participants