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

Automate new issue creation when new Polkadot release is published #930

Closed
6 tasks done
p5150j opened this issue Jan 18, 2023 · 4 comments · Fixed by #1045 or #1053
Closed
6 tasks done

Automate new issue creation when new Polkadot release is published #930

p5150j opened this issue Jan 18, 2023 · 4 comments · Fixed by #1045 or #1053
Assignees

Comments

@p5150j
Copy link
Collaborator

p5150j commented Jan 18, 2023

As a Polkadot is project major dependency we would like to make sure we are keeping our releases inline with the latest version of Polkadot so that our deployments are running the latest version of Polkadot.

Acceptance criteria:

  • when a new version/release has been published on polkadot a new issue should be created in this repo
  • the new issue should have the title UPGRADE {version number}
  • the new issue should have a description containing Upgrade Priority, Host functions, Database Migrations, Runtime Migrations and a link to the polkadot versioned release

Tasks:

  • Research how to dispatch workflow in repo A based on a new release in repo B we don't have access to
  • Create workflow to record the latest Polkadot Release
  • Merge and Test workflow on main
  • Adjust cron schedule to once per day
  • Create workflow that would create a new GitHub issues once Polkadot release file has been updated
  • Update Frequency CI diagram
@demisx demisx changed the title Automate new issue creation when new Polkadot/releases verion is published Automate new issue creation when new Polkadot release is published Jan 23, 2023
@demisx
Copy link
Collaborator

demisx commented Feb 9, 2023

There is no conventional way to implement this since we don't have write access to the Polkadot repo. So we'd have to go with a workaround. The idea is to poll the latest release tag and when it changes create a new issue in the Frequency repo. I am still researching this topic, but here is a way to retrieve the latest release tag:

$ curl -sL https://api.github.com/repos/paritytech/polkadot/releases/latest | jq -r ".tag_name"
---------
v0.9.37

@demisx
Copy link
Collaborator

demisx commented Feb 9, 2023

@p5150j Just wanted to make sure we are only interested in Polkadot full releases and all release candidates can be skipped.

demisx added a commit that referenced this issue Feb 9, 2023
# Goal
The goal of this PR is to add
`.github/workflows/misc/polkadot-latest-full-release.txt` which will be
used to keep track of the latest Polkadot full release version.

Part of #930
demisx added a commit that referenced this issue Feb 9, 2023
The goal of this PR is to move polkadot-latest-full-release.txt to be a
dotfile.

Part of #930
demisx added a commit that referenced this issue Feb 9, 2023
# Goal
The goal of this PR is to record the latest Polkadot release version in
frequency repo. It will trigger creating a new GitHub issue later in a
different workflow.

Part of #930
demisx added a commit that referenced this issue Feb 9, 2023
# Goal
The goal of this PR is change Polkadot Release scanning schedule to
nightly.

Part of #930
@demisx
Copy link
Collaborator

demisx commented Feb 10, 2023

Please note that for Upgrade Priority, Host functions, Database Migrations, Runtime Migrations I am putting links to the Polkadot Release page where that info is available. Please let me know if this is acceptable.

Screenshot 2023-02-09 at 4 10 42 PM

@p5150j
Copy link
Collaborator Author

p5150j commented Feb 10, 2023

@p5150j Just wanted to make sure we are only interested in Polkadot full releases and all release candidates can be skipped.

I think thats fine.

demisx added a commit that referenced this issue Feb 10, 2023
# Goal
The goal of this PR is to test Polkadot new releases scan workflow.

Part of #930
This was referenced Feb 10, 2023
demisx added a commit that referenced this issue Feb 10, 2023
# Goal
The goal of this PR is to reset Polkadot releases check cron schedule
back to UTC midnight.

Part of #930
demisx added a commit that referenced this issue Feb 10, 2023
# Goal
The goal of this PR is to create a new GitHub issue each time the
Polkadot release tracking file gets updated.

Here is an example of the issue that was automatically created:
#1055

Closes #930
rustadot pushed a commit to rustadot/recurrency that referenced this issue Sep 5, 2024
The goal of this PR is to move polkadot-latest-full-release.txt to be a
dotfile.

Part of frequency-chain/frequency#930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants