-
Notifications
You must be signed in to change notification settings - Fork 258
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
Add nightly CI check against latest substrate. #335
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
573e414
Add nightly check and use specific version (currently the same) in PR…
jsdw 43074db
wrong var name, whoops
jsdw 58d3d5a
Create GH issue if nightly run fails
jsdw d186c44
need tokio feature for RpcClient; match dependency in root Cargo.toml.
jsdw 4c70860
Ensure substrate command is properly cleaned up in the event of a pan…
jsdw 646275b
increase retry limit again
jsdw a4508e6
fmt
jsdw 40d0cb7
Tweak text for nightly-run-failed issue template
jsdw 64578bc
Run nightly-CI every 5mins for testing
jsdw 940900e
I clearly dont use cron enough
jsdw 4667e05
Put back cron timings to 8am daily
jsdw 6ed9c11
break a test
jsdw 36c4c2f
revert nightly workflow again (doesnt run off master) and testing rus…
jsdw 26559fb
more testing..
jsdw a9430a9
undo testing things; seems to work
jsdw daf86d8
tidy up; substrate url at top of both CI files
jsdw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Subxt integration tests failed against latest Substrate build. | ||
--- | ||
|
||
The nightly CI run which downloads the latest version of Substrate ran into test failures, which likely means that there are breaking changes that need fixing in Subxt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Daily compatibility check against latest substrate | ||
|
||
on: | ||
schedule: | ||
# Run at 8am every day | ||
- cron: "* 8 * * *" | ||
|
||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
# Use latest substrate for nightly runs: | ||
SUBSTRATE_URL: https://releases.parity.io/substrate/x86_64-debian:stretch/latest/substrate/substrate | ||
|
||
jobs: | ||
tests: | ||
name: Cargo test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download Substrate | ||
run: | | ||
curl $SUBSTRATE_URL --output substrate --location | ||
chmod +x substrate | ||
mkdir -p ~/.local/bin | ||
mv substrate ~/.local/bin | ||
|
||
- name: Install Rust stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v1.3.0 | ||
|
||
- name: Cargo test | ||
uses: actions-rs/cargo@v1.0.3 | ||
with: | ||
command: test | ||
args: --all-targets --workspace | ||
|
||
# If the previous step fails, create a new Github issue | ||
# to nofity us about it. | ||
- if: ${{ failure() }} | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Use this issue template: | ||
filename: .github/issue_templates/nightly_run_failed.md | ||
# Don't create a new issue; skip updating existing: | ||
update_existing: false | ||
# Look for new *open* issues in this search (we want to | ||
# create a new one if we only find closed versions): | ||
search_existing: open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
maybe do something like: https://github.saobby.my.eu.orgmunity/t/create-an-issue-case-the-workflow-fails/17247
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.
Ooh, great idea! I'll look at that :)