Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

@MaxGhenis MaxGhenis commented Jul 30, 2025

Summary

  • Fixes documentation deployment failure where docs/_build/html directory doesn't exist
  • MyST v2's myst build --html starts a development server that doesn't exit, causing CI to hang

Changes

  • Modified the documentation target in Makefile to:
    • Use timeout 10 myst build --html || true
    • This runs the build for 10 seconds (enough time to generate HTML files)
    • Then exits cleanly, ensuring CI doesn't hang
    • Ensures _build/html directory is created for GitHub Pages deployment

Test

Tested locally - the HTML files are successfully generated in docs/_build/html

Note

The PR test is failing on "Download data inputs" which is an unrelated issue that's also affecting the main branch push CI. This PR specifically addresses the documentation deployment issue.

Fixes the push CI documentation deployment failure.

MyST v2 'myst build --html' starts a development server that doesn't exit, causing CI to hang. This change:
- Runs the build command in background
- Waits 10 seconds for files to be generated
- Kills the server process
- Ensures _build/html directory is created for GitHub Pages deployment
@MaxGhenis
Copy link
Contributor Author

/check-pr

The timeout command is available in Ubuntu CI and provides a cleaner way to handle MyST v2's server behavior.
The strict token requirement was breaking CI for PRs from forks since GitHub doesn't provide secrets to fork PRs for security reasons. This change makes the token optional, allowing the download to attempt without authentication (which may work for public repos or fail gracefully for private ones).
This allows PRs from forks to run CI without failing on private data access. The downloads are skipped with a warning message when the token is not available.
@MaxGhenis MaxGhenis closed this Jul 30, 2025
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