-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Updated Documentation for the CI with mermaid sequence diagrams #10380
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
Conversation
|
This is purely a documentation change describeing the future CI architecture as well adding mermaid support for generation of sequence diagrams so that it is easier to review. |
0497089 to
4139b63
Compare
44bb1ae to
4ccb131
Compare
|
Ad discussed in #10368 - I am going to merge that one after the code is reviewed/fixed/merged |
324dccb to
7a328d2
Compare
|
Rebased after merging #10368 - I think it is ready for review and very accurately describes what we have in CI now. |
|
Would love to merge the docs to close the task! |
7a328d2 to
a40f9e9
Compare
|
Udpated the first review by @feluelle . |
a40f9e9 to
f7151f3
Compare
20f2e88 to
4f82687
Compare
So you basically say you want to still keep the sources of mermaid but rather than doing Because that's the alternative. Currently the only thing you need to do is to commit the sources and the images will be generated autopmatically. This is like forcing me to do those manual steps where simple (literally 20 lines of integration code that will never change) can do it for me. I do not really see the logic behind it. |
|
I already plan some changes in those diragras - for example when I implement #10507 - there will be quite some changes there and simply changing that in text is so much easier than having to do all those manual steps. |
|
I am definitely against have a CI-CD for a single tool, which if it breaks for whatever reason is a code debt we should not have. These can be easily replaced by a generated PNGs. |
|
You don't see the logic behind it because you are not reasoning for the amount of code that needs to be maintained |
It only runs in CI-CD if the source mermaid files change. We keep hashes of the files and no mermaid will be run when then .mermaid files are not touched. |
|
Maintaining a separate node file just for mermaid makes 0 sense |
If package.json is the problem, then no worries. I can remove the package.json and move it to the script generating mermaid (which will only be run when .mermaid files change). Woudl that work? |
|
Are the package.json and the files for building mermaid diagrams in some other PR? I remember seeing them |
Just looking at that. I think they are lost on rebase :) |
I will restore them in the way I think they can work without package.json. |
4f82687 to
9861efc
Compare
|
It's there. Standalone bash That "anything" is installing mermaid in a separate node virtualenv (in ,build/mermaid folder - the ".build" folder is already all but ignored due to being used by breeze). It will install mermaid there, first time when it is run and keep on reusing it every next time it is run. If there is no change in those files or if you have no npm installed, the pre-commit will silently succeed. If you do not touch any of those files, it's a no-op - both for the developers and for the CI. First of all pre-commit will be skipped if those files are not changed, secondly - even if you run pre-commit with I even made sure not to commit the mermaid-config.json - it is dynamically generated by the self-contained bash script. I expect this script to never change (unless we want to update colors/fonts etc. in the generated mermaid files). |
|
CI is failing, maybe needs a rebase |
9861efc to
1ef6fbb
Compare
(cherry picked from commit f2da6b4)
(cherry picked from commit f2da6b4)
(cherry picked from commit f2da6b4)
(cherry picked from commit f2da6b4)
Part of #10368
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.