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

feat: Adding syncing of NNS released wasm versions #3148

Merged
merged 40 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a8ba8f6
started work on the script
NikolaMilosa Dec 12, 2024
7e23547
refactoring
NikolaMilosa Dec 12, 2024
d61b442
refactoring
NikolaMilosa Dec 12, 2024
9ad0d44
making git lib runnable
NikolaMilosa Dec 12, 2024
79155ef
adding ci
NikolaMilosa Dec 12, 2024
218e506
adding syncing to tmp dir
NikolaMilosa Dec 12, 2024
de8aa0d
fixing type
NikolaMilosa Dec 12, 2024
0c64f69
removing debug code
NikolaMilosa Dec 12, 2024
0f74779
adding output
NikolaMilosa Dec 12, 2024
90a9c12
correcting token
NikolaMilosa Dec 12, 2024
8dc9d8b
adding debug print if token is set
NikolaMilosa Dec 12, 2024
d1b722a
changing name if its taken
NikolaMilosa Dec 12, 2024
1859dfe
updating workflow
NikolaMilosa Dec 12, 2024
1986ecd
removing needs
NikolaMilosa Dec 12, 2024
6449945
adding the print of what is uncommited
NikolaMilosa Dec 12, 2024
d8e6f22
deleting gh download tar
NikolaMilosa Dec 12, 2024
dbb6fcf
adding bazel config
NikolaMilosa Dec 12, 2024
e87113b
linting
NikolaMilosa Dec 12, 2024
b315f06
suggestions
NikolaMilosa Dec 12, 2024
b1f453d
separating concerns
NikolaMilosa Dec 13, 2024
8860cc1
linting
NikolaMilosa Dec 13, 2024
0ca0c49
typo
NikolaMilosa Dec 13, 2024
7fc3667
missing arg
NikolaMilosa Dec 13, 2024
8f09f24
moving to if else
NikolaMilosa Dec 13, 2024
72e0d74
fixing typo
NikolaMilosa Dec 13, 2024
4abfb55
merging back into one script
NikolaMilosa Dec 16, 2024
a4f9b1f
formatting
NikolaMilosa Dec 16, 2024
f2bb8c9
unifying cache placings
NikolaMilosa Dec 16, 2024
304d95b
adding debug print for home dir
NikolaMilosa Dec 16, 2024
116e0a4
adding to bot approved files
NikolaMilosa Dec 16, 2024
a2628ae
linting
NikolaMilosa Dec 16, 2024
9693ead
adding correct cache path
NikolaMilosa Dec 16, 2024
efbaa94
fixing path
NikolaMilosa Dec 16, 2024
0537895
fixing typos
NikolaMilosa Dec 16, 2024
7d1e76e
adding the pr description
NikolaMilosa Dec 18, 2024
bad1c63
fixing paths
NikolaMilosa Dec 18, 2024
164b958
specifying title
NikolaMilosa Dec 18, 2024
5d9b194
removing extra dot
NikolaMilosa Dec 18, 2024
0e54c17
formatting
NikolaMilosa Dec 18, 2024
145ce64
Merge branch 'master' into nm-syncing-released-wasms
NikolaMilosa Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/repo_policies/BOT_APPROVED_FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ ic-os/hostos/context/docker-base.prod
ic-os/setupos/context/docker-base.dev
ic-os/setupos/context/docker-base.prod
testnet/mainnet_revisions.json
mainnet-canisters.json
44 changes: 42 additions & 2 deletions .github/workflows/update-mainnet-revisions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- cron: "10 * * * *"
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
update-ic-versions-file:
runs-on: ubuntu-latest
Expand All @@ -28,5 +32,41 @@ jobs:
run: |
set -eEuxo pipefail

time python ci/src/mainnet_revisions/mainnet_revisions.py
shell: bash
time python ci/src/revisions/mainnet_revisions.py subnets

update-nervous-system-wasms:
runs-on:
labels: dind-small
container:
image: ghcr.io/dfinity/ic-build@sha256:4fd13b47285e783c3a6f35aadd9559d097c0de162a1cf221ead66ab1598d5d45
options: >-
-e NODE_NAME --privileged --cgroupns host -v /cache:/cache -v /var/sysimage:/var/sysimage -v /var/tmp:/var/tmp -v /ceph-s3-info:/ceph-s3-info
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
token: ${{ steps.app-token.outputs.token }}

- name: Setup gh cli
uses: ksivamuthu/actions-setup-gh-cli@v3
with:
version: 2.53.0

- name: Update Mainnet canisters file
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
set -eEuxo pipefail

# Leftover from previous step of setting up gh cli
rm gh_tar

time python ci/src/revisions/mainnet_revisions.py canisters
177 changes: 0 additions & 177 deletions ci/src/mainnet_revisions/mainnet_revisions.py

This file was deleted.

Loading
Loading