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

Automatic PR at framework after submodule PR #404

Open
juanangp opened this issue Apr 27, 2023 · 6 comments · May be fixed by #405
Open

Automatic PR at framework after submodule PR #404

juanangp opened this issue Apr 27, 2023 · 6 comments · May be fixed by #405
Assignees
Labels
enhancement New feature or request policy How things should behave

Comments

@juanangp
Copy link
Member

Looking at the issues on validation that we had recently, I think a new workflow for the PR is required. Here my proposal:

@jgalan and @lobis let me know what do you think since this is a lot of work.

@juanangp juanangp added enhancement New feature or request policy How things should behave labels Apr 27, 2023
@juanangp juanangp self-assigned this Apr 27, 2023
@juanangp juanangp linked a pull request Apr 28, 2023 that will close this issue
@jgalan
Copy link
Member

jgalan commented Apr 28, 2023

  • PR on submodules trigger the creation of a PR on framework and the submodule hash is updated accordingly in framework. If the PR of the same branch already exist in framework with the same branch name it just commit the changes on the submodule hash. For instance, something similar is done at https://github.com/releasehub-com/github-action-create-pr-parent-submodule

Then, each time we commit on the submodule a new commit will appear on the framework PR updating the submodule hash?

As I understand once we press framework merge PR, it will trigger the merging of the PR at the corresponding submodules?

For me I think it could work. I just don't understand the technicalities about the implementation, but if that it is possible, just let me know how can I help on the transition.

Perhaps @nkx111 may have some comments too

@jgalan
Copy link
Member

jgalan commented Apr 28, 2023

We could update the PR submodule description to indicate how to proceed. I.e. explain that a new framework PR has been created automatically.

@jgalan
Copy link
Member

jgalan commented Apr 28, 2023

I understand we will then have a dedicated lml for each submodule inside the framework? E.g. axionlib_validation.yml ... restG4_validation.yml ... that will be launched independently?

@juanangp
Copy link
Member Author

We could update the PR submodule description to indicate how to proceed. I.e. explain that a new framework PR has been created automatically.

It is difficult to imagine all the users case, but some developers can create their own PR on framework and in a submodule. Rigth now the PR is only automatically created if the branch doesn't exist in framework, so developers should be responsible on creating their own PR if the framework branch is already present.

The message that will be displayed in case of automatic PR is:

--title 'Submodule Updates from ${{ inputs.submodule }} branch ${{ inputs.branch }}'
--body 'Automatic PR from ${{ inputs.submodule }} branch ${{ inputs.branch }}, related PR ${{ steps.PRCheck.outputs.prurl }}'

@juanangp
Copy link
Member Author

We could update the PR submodule description to indicate how to proceed. I.e. explain that a new framework PR has been created automatically.

This is possible but not straightforward, it is difficult to check if the message is present or not. Perhaps would be better to make all the developers aware of new PR workflow.

Anyhow, I will provide a proposal and we can iterate over it.

@juanangp
Copy link
Member Author

juanangp commented Apr 28, 2023

I understand we will then have a dedicated lml for each submodule inside the framework? E.g. axionlib_validation.yml ... restG4_validation.yml ... that will be launched independently?

In principle, this is unchanged but we could think moving the submodule validation inside framework, but for me this is a different topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request policy How things should behave
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants