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

Unified tests into final step ✅ #192

Merged

Conversation

Bullrich
Copy link
Contributor

Unified all the tests into having one final step at the end.

image

This step will only run if all the previous steps have ran. If any of these tests fail, it will fail.

All the status checks will still appear in the PR, so the user can see any failed case:
image

But, by adding this last test as the only requirement, the list to block the branch becomes significantly smaller.

  • Does not require a CHANGELOG entry

@Bullrich
Copy link
Contributor Author

Here we can see a failed test:
image

It will cause the final action to be skipped, not allowing the user to merge it.

@Bullrich
Copy link
Contributor Author

/merge

@Bullrich
Copy link
Contributor Author

Only the following action should be required:

image

https://github.com/polkadot-fellows/runtimes/actions/runs/7962468177/job/21737338698?pr=192

@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) February 19, 2024 17:28
auto-merge was automatically disabled February 20, 2024 10:55

Head branch was pushed to by a user without write access

@Bullrich
Copy link
Contributor Author

/merge

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) February 20, 2024 11:01
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

auto-merge was automatically disabled February 20, 2024 11:26

Head branch was pushed to by a user without write access

@Bullrich
Copy link
Contributor Author

I just added the same process to migrations:
image

Bullrich added a commit to paritytech/metrics that referenced this pull request Feb 20, 2024
Applied the same technique that I applied in polkadot-fellows/runtimes#192
Bullrich added a commit to paritytech/metrics that referenced this pull request Feb 20, 2024
Applied the same technique that I applied in polkadot-fellows/runtimes#192 to have one final test job (and only depend this one)
Bullrich added a commit to Bullrich/parity-action-template that referenced this pull request Feb 20, 2024
Applied the same technique that I applied in polkadot-fellows/runtimes#192 to have one final test job (and only depend this one)
@Bullrich
Copy link
Contributor Author

/merge

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) February 20, 2024 13:38
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

Bullrich added a commit to paritytech/metrics that referenced this pull request Feb 20, 2024
Applied the same technique that I applied in
polkadot-fellows/runtimes#192 to have one final test job (and only
depend this one)
@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

@bkchr
Copy link
Contributor

bkchr commented Mar 4, 2024

The problem with this is that we currently have removed the encointer migration check as requirement for merging. How could we achieve the same with this job?

@Bullrich
Copy link
Contributor Author

Bullrich commented Mar 4, 2024

The problem with this is that we currently have removed the encointer migration check as requirement for merging. How could we achieve the same with this job?

Uh that will be a problem.

This job would ensure that all the tests pass first, including the encointer one.

We would have to remove it from the required tests.

A solution would be to remove it, and then make a new PR trying to fix it (I assume that you don't want to have broken tests in your pipeline) but that's a subpar suggestion from me.

If you prefer I can also disable the required check for migrations and leave only the one for tests

@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

@bkchr
Copy link
Contributor

bkchr commented Mar 7, 2024

__

We would have to remove it from the required tests.

We kept the test for now to remember us about the test. Currently it is just removed from the list of required tests. I assume fetching the list of required tests for the "all X passed" test would be too complicated?

@fellowship-merge-bot
Copy link
Contributor

Failed to update PR ❌

There was an error while trying to keep this PR up-to-date

You may have conflicts ‼️ or may have to manually sync it with the target branch 👉❇️

More info in the logs 📋

@bkchr
Copy link
Contributor

bkchr commented May 25, 2024

@Bullrich I think we can merge this now 🙈

@Bullrich Bullrich force-pushed the bullrich/unify-jobs branch 2 times, most recently from 0e6edb2 to e5e8483 Compare May 27, 2024 08:14
@Bullrich Bullrich force-pushed the bullrich/unify-jobs branch from e5e8483 to 53cebda Compare June 4, 2024 11:58
Bullrich added 10 commits June 17, 2024 15:54
Test was singular, it should be plural
The matrix jobs are already depended by other jobs. We can simply remove their dependency
It looks a bit better than simply adding a print line statement
Let's unify everything at once
Added a shorter name to make it easier to understand
@Bullrich Bullrich force-pushed the bullrich/unify-jobs branch from 53cebda to c25ac66 Compare June 17, 2024 13:54
@bkchr
Copy link
Contributor

bkchr commented Jun 24, 2024

/merge

@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@fellowship-merge-bot fellowship-merge-bot bot enabled auto-merge (squash) June 24, 2024 19:24
@fellowship-merge-bot fellowship-merge-bot bot merged commit 750aa73 into polkadot-fellows:main Jun 24, 2024
41 checks passed
@Bullrich Bullrich deleted the bullrich/unify-jobs branch June 24, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants