-
Notifications
You must be signed in to change notification settings - Fork 93
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
SONARPY-2429: Merge the ruling and the extended ruling #2232
Conversation
ee59e91
to
ffb353e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! I just have one question, because I don't understand how the current submodule setup works, but this looks very promising!
.gitmodules
Outdated
[submodule "its/sources_extended"] | ||
path = its/sources_extended | ||
[submodule "its/sources_ruling"] | ||
path = its/sources_ruling | ||
url = https://github.com/SonarCommunity/python-test-sources.git | ||
branch = extended |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused here, how are we actually retaining the original ruling sources (from master
)? It seems the only submodule defined is for the extended
branch and that branch hasn't changed?
I'd have expected to see the master-temp
branch here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the python-test-sources side, I've essentially merged the two branches into master-temp
, which is checked out in the its/sources_ruling
submodule.
According to this StackOverflow answer, git keeps track of the hash of the submodules directly in its database. That's probably the reason for the following diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed the .gitmodules and added shallow = true
(see here for documentation)
2b17964
to
987e442
Compare
this commit moves the submodule and changes the branch of the submodule to a branch which has the sources and extended sources merged
987e442
to
c310511
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please address the issue on Next before merging (I think we can simply accept it tbh).
SONARPY-2429
This PR is based on SONARPY-2430. Therefore, SONARPY-2430 has to be merged before this PR can be merged into ruling-parallelization-master