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

DR: multi-repo setup #263

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AlexanderLanin
Copy link
Member

@AlexanderLanin AlexanderLanin commented Jan 30, 2025

Dear bazel and docs-as-code people: please review the entire DR.

All other stakeholders (e.g. process experts) should focus on reviewing the use cases / requirements and constraints.

Closes #218

Co-authored-by: Maximilian Sören Pollak <[email protected]>
Copy link
Contributor

@danwos danwos left a comment

Choose a reason for hiding this comment

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

Thanks for the great write-up.

I don't have a strong opinion about the different solutions.

Regarding the proposed solution "Copying", I just asked myself, how this works in the different scenarios for local builds:

  • SCORE main gets updated, most module-repos are not checked out
  • Single module-repo gets updated, SCORE main may be locally outdated
  • SCORE main and 1 module-repo gets updated (new feature docs + implementation)
    • Finally these changes get committed by 2 PRs. The SCORE main PR needs to be merged first so that the module-PR can use a valid feature as a link target. Doable, and maybe not a common use case.

For fast, local feedback it should be possible to build the docs with SCORE main and one selected module-repo only.
Do you think this is possible? I'm a bazel newbie, so I'm unsure :)

* Good performance (no need to build all repositories at once)
Con:
* needs.json and the entire website needs to be hosted in multiple versions.
* bidirectional links affect the "core score" repository, which is not desired.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand this point by 100%: What exactly is affected in the "core score" repository?
From my understanding changes in the repository itself are not needed, just the final documentation gets incoming links from module-repos/docs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I was talking about the website, not the repository. Fixed:

bidirectional links affect the score-website, which is not desired


Con:
* Relies heavily on bazel -> potential problems with esbonio etc
* Performance / runtime
Copy link
Contributor

@danwos danwos Feb 4, 2025

Choose a reason for hiding this comment

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

This problem can be huge, depending on the content of the docs.
For instance, if each module-repo needs a doxygen/doxysphinx build for API -documentation.

It may be okay for a CI build, but giving the user feedback during editing (esbonio build) would take too long.

Maybe a 2-way approach/support would be good:

  • A "complete" build for the CI and the deployed documentation
  • A local quick & dirty build for the specific repo only, in which the current change gets implemented (for quick user feedback of ~95% of our checks/rules.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Puh... when we consider doxysphinx or similar solutions, then copying is probably completely out of the question.

docs/_tooling/decision-records/multirepo.md Outdated Show resolved Hide resolved
@AlexanderLanin AlexanderLanin marked this pull request as draft February 6, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-as-code infrastructure General Score infrastructure topics
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

docs: concept for multi repo docs
3 participants