-
Notifications
You must be signed in to change notification settings - Fork 127
Split all testing from publish_draft_release
workflow and filter execution by labels on the PRs
#743
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
Signed-off-by: Adam Reif <Garandor@manta.network>
It looks like having |
Signed-off-by: Adam Reif <Garandor@manta.network>
There are likely duplicated tests in this PR. I'm opening this as a first attempt for discussion. please feel free to pick this up and push more commits Most likely the |
Signed-off-by: Adam Reif <Garandor@manta.network>
publish_draft_relese
workflow and filter execution by labels on the PRspublish_draft_release
workflow and filter execution by labels on the PRs
One more optimization could be to use as in |
Signed-off-by: Adam Reif <Garandor@manta.network>
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. the only reason it was like this was to not dupe the code, but we've ended up doing that in a lot of other places and we can take care of that problem separately. Probably less painful than maintaining this monstrosity.
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.
lgmt! I don't know what part of this will be moved to the type script tests, but as seeing how the signer is now on my plate too, that will take some time.
Signed-off-by: Adam Reif <Garandor@manta.network>
Signed-off-by: Adam Reif <Garandor@manta.network>
Signed-off-by: Adam Reif <Garandor@manta.network>
Not sure if this does something for the build times, it's always building the same binary but not it needs to build it twice sometimes. |
That's why i'm saying the last big optimization is to make a reusable workflow ( #320 ) and that runs once and all others use the common build output from that.
|
This comment was marked as resolved.
This comment was marked as resolved.
Signed-off-by: Adam Reif <Garandor@manta.network>
d387c95
to
2605197
Compare
Plus I for one can't reason about the dependencies of the CI jobs in a >1k spaghetti code workflow. There seems to be a problem with aws scheduling tho
|
I agree it would make things easier to maintain, just saying it won't do much about build times, which you included as a reason in the description. |
Looking at the build times, I agree. The
We're labelling these anyway because our changelog depends on them being set correctly and
|
Signed-off-by: Adam Reif <Garandor@manta.network>
Signed-off-by: Adam Reif <Garandor@manta.network>
6ddc38f
to
a85e1ee
Compare
This reverts commit 3b5ccf4. Signed-off-by: Adam Reif <Garandor@manta.network>
a85e1ee
to
de59c15
Compare
I saw we're building docker image for manta(actually it's the same image as calamari's). It doesn't make much sense to me. We should not push manta image to dockerhub. |
Signed-off-by: Adam Reif <Garandor@manta.network>
Thx for the suggestion, i added it in the future, pls add new stuff that isn't related with the current PR as a new issue, I'd rather not have a PR that's meant to be about one thing become larger in scope ( and delay being merged ) |
I'm 50/50 so cool to try it, but as you mention let's add a line to the PR template as a reminder that labeling needs to be done correctly, otherwise CI won't run. As well as a reminder that just because the code diff doesn't include some runtime, it doesn't mean that CI shouldn't be run for it (eg: changing the CI integration test workflows themselves) |
Signed-off-by: Adam Reif <Garandor@manta.network>
Signed-off-by: Adam Reif <Garandor@manta.network>
Signed-off-by: Adam Reif Garandor@manta.network
Description
Refactors the
publish_draft_release
workflow so it does only what it's meant to do - publish a draft release.Changes in functionality:
A-dolphin
on PR )A-calamari
on PR )manta
All testing happens in a runtime-specific file and is triggered only when the PR touches the corresponding runtime as defined by the PR label.
I think this saves
Please discuss and contribute!
Also removes the
manta
runtime docker build from releases as these images are not currently used anywherecloses #608
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
L-
group to this PRA-
andC-
groups to this PRFiles changed
in the Github PR explorer.Situational Notes:
BaseFilter
. Ensure every extrinsic works from front-end. If there's corresponding tool, ensure both work for each other.try-runtime
. This includes migrations inherited from upstream changes, and you can search the diffs for modifications of#[pallet::storage]
items to check for any.authoring_version
: The version of the authorship interface. An authoring node will not attempt to author blocks unless this is equal to its native runtime.spec_version
: The version of the runtime specification. A full node will not attempt to use its native runtime in substitute for the on-chain Wasm runtime unless all of spec_name, spec_version, and authoring_version are the same between Wasm and native.impl_version
: The version of the implementation of the specification. Nodes are free to ignore this; it serves only as an indication that the code is different; as long as the other two versions are the same then while the actual code may be different, it is nonetheless required to do the same thing. Non-consensus-breaking optimizations are about the only changes that could be made which would result in only the impl_version changing.transaction_version
: The version of the extrinsics interface. This number must be updated in the following circumstances: extrinsic parameters (number, order, or types) have been changed; extrinsics or pallets have been removed; or the pallet order in the construct_runtime! macro or extrinsic order in a pallet has been changed. You can run themetadata_diff.yml
workflow for help. If this number is updated, then thespec_version
must also be updated