-
Notifications
You must be signed in to change notification settings - Fork 25
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
Adding Rootstock Integration Tests workflow to Powpeg node repo #310
Adding Rootstock Integration Tests workflow to Powpeg node repo #310
Conversation
d361c38
to
215b151
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.
Great job, I think we are almost there and there a few things to change and we are done. 😃
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.
Good job! I just have a question regarding your last change, but it doesn't prevent the approval. I think this way it will fill the initial requirements we have for this pipeline, we can always change if needed. :)
In order to have the RIT tests working as we have it today, we need to add triggers for every commit and for when the PR is opened, but only for masters and *-rc branches base branches.
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
RIT_BRANCH="${{ github.event.inputs.rit-branch || 'main' }}" | ||
RSKJ_BRANCH="${{ github.event.inputs.rskj-branch || 'master' }}" |
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.
Is there a way to somehow re-use the default branch values that are defined above?
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.
Hello, yes, it seems possible. Do you think it's better to re-use it? Nevertheless, to change these default values we would have to change the worfklow yaml anyway.
We would have to do something like this:
RIT_BRANCH="${{ github.event.inputs.rit-branch || 'main' }}" | |
RSKJ_BRANCH="${{ github.event.inputs.rskj-branch || 'master' }}" | |
RIT_BRANCH="${{ github.event.inputs.rit-branch || github.event.inputs['rit-branch'].default }}" | |
RSKJ_BRANCH="${{ github.event.inputs.rskj-branch || github.event.inputs['rskj-branch'].default }}" |
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.
Ops, the suggestion failed. Probably because the inputs are define only if the pipeline is triggered via workflow_dispatch. This logic wouldn't work for the commits in PR.
Let's let as it was? Otherwise we will need an even bigger if like:
RSKJ_BRANCH="${{ github.event.inputs.rskj-branch || github.event.inputs['rskj-branch'].default || 'main' }}"
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.
No big deal, I wouldn't expect the default branches to change anytime soon. Just the good practice of avoid repetition (DRY). But in this case I'd go with the simplest solution
78150c1
…view" This reverts commit 78150c1.
Quality Gate passedIssues Measures |
pipeline:run |
Adding of Rootstock Integration Tests Workflow for PowPeg
This GitHub Actions workflow is designed to automate the execution of Rootstock Integration Tests for the PowPeg Node repository. The primary goal is to ensure that integration tests are run manually or automatically for opened pull requests against the
master
branch or any*-rc
branches, as well as for direct pushes to these branches. There's a similar pr for this feature in the RSKJ repo, check here.Implementation Details
Triggers:
master
and*-rc
branches.master
and*-rc
branches.workflow_dispatch
event, which allows for additional customization via inputs.How to Trigger the Workflow
Automatically:
master
or*-rc
branches.master
and*-rc
branches.Manually:
Workflow Dispatch: You can manually trigger the workflow using the workflow_dispatch event. To do this, follow these steps:
Run workflow
button.POWPEG_BRANCH
value.Inputs for Manual Trigger:
rit-branch
: The branch for Rootstock Integration Tests.Default: main
rskj-branch
: The branch for RSKJ.Default: master
To manually trigger the workflow using
workflow_dispatch
, the workflow file must be present in the master branch. That's we can't manually test this workflow until it's merged into master. For more info, check here and here.Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: