Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a single DOCX file for every TeX document and optimize pipeline #84

Merged
merged 70 commits into from
Jul 14, 2024

Conversation

Witiko
Copy link
Contributor

@Witiko Witiko commented Jul 13, 2024

This PR makes the following changes:

  • Merge MD files into single DOCX #80:
  • Pipeline optimizations #49:
    • Periodically build Docker image ghcr.io/istqborg/istqb_product_base (see Dockerfile) that is used in CI runs.
    • Describe how authors can build documents locally in README.md.
    • On Git branches other than main, only build TeX documents that were added or modified or that use new/modified files.
    • By default, only build TeX documents to PDF. Build TeX documents to EPUB and HTML only when the document metadata contains (epub|html)-output == true or version == "release". Build TeX documents to DOCX only when the document metadata contains docx-output == true or version != "release".

Furthermore, this PR translates the CI workflows from simple shell scripts to a full-fledged Python program. In the future, this will allow us to implement more complex validation of documents and also more complex logic that decides whether a document should be compiled or not. This will result in greater overall speed of the CI and the document preparation workflow.

Ideally, after this PR, the only visible change for authors should be faster CI, the ability to build locally, and more useful DOCX documents. However, this PR makes major changes to the CI infrastructure and regressions should be expected. Furthermore, I will be away the next week, so any potential fixes will need to wait until July 22. On the other hand, I tested the code from this PR manually against different ISTQB repositories and I did not notice any issues. Therefore, I don't expect any regressions that would be fatal and block authors and I recommend to merge the PR now.

This PR closes #49 and #80.

Witiko added 30 commits July 10, 2024 12:12
@Witiko Witiko requested a review from danopolan July 13, 2024 13:38
@Witiko Witiko self-assigned this Jul 13, 2024
@Witiko Witiko changed the title Optimize pipeline and create a single DOCX file for every TeX document Create a single DOCX file for every TeX document and optimize pipeline Jul 13, 2024
@Witiko Witiko linked an issue Jul 13, 2024 that may be closed by this pull request
@Witiko Witiko merged commit 90e1124 into main Jul 14, 2024
9 checks passed
@Witiko Witiko deleted the feat/scripts branch July 14, 2024 14:48
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.

Merge MD files into single DOCX Pipeline optimizations
2 participants