Skip to content

Commit 2bfa96f

Browse files
authored
Respect the updated branching strategy. (#679)
1 parent b35481f commit 2bfa96f

File tree

7 files changed

+125
-18
lines changed

7 files changed

+125
-18
lines changed

.github/actions/e2e-shared/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ runs:
4646
env:
4747
CI: "true"
4848
- name: Upload Mina logs
49-
uses: actions/upload-artifact@v3
49+
uses: actions/upload-artifact@v4
5050
continue-on-error: true
5151
if: always()
5252
with:
@@ -55,7 +55,7 @@ runs:
5555
path: /tmp/*.log
5656
retention-days: 5
5757
- name: Upload E2E test artifacts
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
continue-on-error: true
6060
if: always()
6161
with:

.github/workflows/nightly-e2e-ci-tests.yml

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,53 @@ on:
99
- cron: '0 0 * * *'
1010
workflow_dispatch: {}
1111
jobs:
12-
against-real-network-on-linux:
12+
against-compatible-real-network-on-linux:
1313
timeout-minutes: 185
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
# https://github.com/shelljs/shelljs/issues/1133
1918
node: [18, 20]
2019
os: [ubuntu-latest]
2120
services:
2221
mina-local-network:
23-
image: o1labs/mina-local-network:berkeley-latest-lightnet
22+
image: o1labs/mina-local-network:compatible-latest-lightnet
23+
env:
24+
NETWORK_TYPE: 'single-node'
25+
PROOF_LEVEL: 'none'
26+
ports:
27+
- 3085:3085
28+
- 5432:5432
29+
- 8080:8080
30+
- 8181:8181
31+
- 8282:8282
32+
volumes:
33+
- /tmp:/root/logs
34+
steps:
35+
- name: Wait for Mina network readiness
36+
uses: o1-labs/wait-for-mina-network-action@v1
37+
with:
38+
mina-graphql-port: 8080
39+
max-attempts: 60
40+
polling-interval-ms: 10000
41+
- uses: actions/checkout@v4
42+
- name: Use shared E2E testing steps
43+
uses: ./.github/actions/e2e-shared
44+
with:
45+
node-version: ${{ matrix.node }}
46+
os-type: ${{ matrix.os }}
47+
shell: bash
48+
against-master-real-network-on-linux:
49+
timeout-minutes: 185
50+
runs-on: ${{ matrix.os }}
51+
strategy:
52+
fail-fast: true
53+
matrix:
54+
node: [18, 20]
55+
os: [ubuntu-latest]
56+
services:
57+
mina-local-network:
58+
image: o1labs/mina-local-network:master-latest-lightnet
2459
env:
2560
NETWORK_TYPE: 'single-node'
2661
PROOF_LEVEL: 'none'
@@ -52,7 +87,6 @@ jobs:
5287
strategy:
5388
fail-fast: true
5489
matrix:
55-
# https://github.com/shelljs/shelljs/issues/1133
5690
node: [18, 20]
5791
os: [macos-latest]
5892
steps:
@@ -69,7 +103,6 @@ jobs:
69103
strategy:
70104
fail-fast: true
71105
matrix:
72-
# https://github.com/shelljs/shelljs/issues/1133
73106
node: [18, 20]
74107
os: [windows-latest]
75108
steps:

.github/workflows/smoke-e2e-ci-tests.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,55 @@ on:
44
pull_request:
55
workflow_dispatch: {}
66
jobs:
7-
against-real-network-on-linux:
7+
against-compatible-real-network-on-linux:
88
timeout-minutes: 30
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
fail-fast: true
1212
matrix:
13-
# https://github.com/shelljs/shelljs/issues/1133
1413
node: [18, 20]
1514
os: [ubuntu-latest]
1615
services:
1716
mina-local-network:
18-
image: o1labs/mina-local-network:berkeley-latest-lightnet
17+
image: o1labs/mina-local-network:compatible-latest-lightnet
18+
env:
19+
NETWORK_TYPE: 'single-node'
20+
PROOF_LEVEL: 'none'
21+
ports:
22+
- 3085:3085
23+
- 5432:5432
24+
- 8080:8080
25+
- 8181:8181
26+
- 8282:8282
27+
volumes:
28+
- /tmp:/root/logs
29+
steps:
30+
- name: Wait for Mina network readiness
31+
uses: o1-labs/wait-for-mina-network-action@v1
32+
with:
33+
mina-graphql-port: 8080
34+
max-attempts: 60
35+
polling-interval-ms: 10000
36+
- uses: actions/checkout@v4
37+
- name: Use shared E2E testing steps
38+
uses: ./.github/actions/e2e-shared
39+
with:
40+
node-version: ${{ matrix.node }}
41+
os-type: ${{ matrix.os }}
42+
shell: bash
43+
test-script: 'npm run e2e:test:smoke'
44+
artifacts-prefix: 'smoke-e2e-tests'
45+
against-master-real-network-on-linux:
46+
timeout-minutes: 30
47+
runs-on: ${{ matrix.os }}
48+
strategy:
49+
fail-fast: true
50+
matrix:
51+
node: [18, 20]
52+
os: [ubuntu-latest]
53+
services:
54+
mina-local-network:
55+
image: o1labs/mina-local-network:master-latest-lightnet
1956
env:
2057
NETWORK_TYPE: 'single-node'
2158
PROOF_LEVEL: 'none'

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ Respond to the interactive command prompts to build or update a deploy alias.
149149

150150
A deploy alias consists of:
151151

152-
- A self-describing name. This tutorial uses `berkeley`. The deploy alias name can be anything and does not have to match the network name.
153-
- The Mina GraphQL API URL that defines the network that receives your deploy transaction and broadcasts it to the appropriate Mina network (Testnet, Devnet, Mainnet, and so on)
152+
- A self-describing name. This tutorial uses `devnet`. The deploy alias name can be anything and does not have to match the network name.
153+
- The Mina GraphQL API URL that defines the network that receives your deploy transaction and broadcasts it to the appropriate Mina network (Devnet, Mainnet, and so on)
154154
- The transaction fee (in MINA) to use when deploying
155155
- Two key pairs:
156156

157-
- A key pair for the zkApp account. Public and private keys to use in your application are automatically generated in `keys/berkeley.json`.
157+
- A key pair for the zkApp account. Public and private keys to use in your application are automatically generated in `keys/devnet.json`.
158158

159159
- A key pair to use as a fee payer account for updates and deployments. Public and private keys are stored on your local computer and can be used across multiple projects.
160160

@@ -173,8 +173,6 @@ zk deploy <alias>
173173
zk deploy // shows a list of aliases in your project to choose from
174174
```
175175

176-
_**Deployment is supported only to Berkeley Testnet until zkApp programmability is available on Mina Mainnet.**_
177-
178176
After you run `zk config`, the `zk deploy` command allows you to deploy a smart contract to a specified deploy alias.
179177

180178
Note: When you deploy to an alias for the first time, you are prompted to choose which smart contract you want to deploy from those that exist as _named_ exports in your project. The name of the smart contract that you choose is remembered by being saved into your `config.json` for this alias. For safety, the next time you run `zk deploy <alias>` this _same_ smart contract automatically deploys to this alias. See [Tutorial 3: Deploy to a Live Network](https://docs.minaprotocol.com/zkapps/tutorials/deploying-to-a-network).

src/bin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function lightnetCli() {
210210
string: true,
211211
hidden: false,
212212
choices: Constants.lightnetMinaBranches,
213-
default: 'berkeley',
213+
default: 'compatible',
214214
description:
215215
'One of the major Mina repository branches the Docker image artifacts were compiled against.',
216216
},

src/lib/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import path from 'path';
88
* @typedef {'single-node' | 'multi-node'} LightnetMode
99
* @typedef {'fast' | 'real'} LightnetType
1010
* @typedef {'none' | 'full'} LightnetProofLevel
11-
* @typedef {'berkeley' | 'develop'} LightnetMinaBranch
11+
* @typedef {'master' | 'compatible' | 'develop'} LightnetMinaBranch
1212
* @typedef {'Spam' | 'Trace' | 'Debug' | 'Info' | 'Warn' | 'Error' | 'Fatal'} LightnetMinaLogLevel
1313
*
1414
* @type {{ uiTypes: UiType[], exampleTypes: ExampleType[], feePayerCacheDir: string, networkIds: NetworkId[], lightnetWorkDir: string, lightnetModes: LightnetMode[], lightnetTypes: LightnetType[], lightnetProofLevels: LightnetProofLevel[], lightnetMinaBranches: LightnetMinaBranch[], lightnetProcessToLogFileMapping: Map<string, string>, lightnetMinaProcessesLogLevels: LightnetMinaLogLevel[], lightnetMinaDaemonGraphQlEndpoint: string, lightnetAccountManagerEndpoint: string, lightnetArchiveNodeApiEndpoint: string }}
@@ -22,7 +22,7 @@ const Constants = Object.freeze({
2222
lightnetModes: ['single-node', 'multi-node'],
2323
lightnetTypes: ['fast', 'real'],
2424
lightnetProofLevels: ['none', 'full'],
25-
lightnetMinaBranches: ['berkeley', 'develop'],
25+
lightnetMinaBranches: ['master', 'compatible', 'develop'],
2626
lightnetProcessToLogFileMapping: new Map([
2727
['Archive-Node-API application', 'logs/archive-node-api.log'],
2828
['Mina Archive process', 'logs/archive-node.log,archive/log.txt'],

templates/project-ts/.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,34 @@ jobs:
1212
matrix:
1313
node: [18, 20]
1414
os: [ubuntu-latest]
15+
#
16+
# Enable the following block if you also want to use the Lightnet in your tests.
17+
#
18+
# services:
19+
# mina-local-network:
20+
# image: o1labs/mina-local-network:compatible-latest-lightnet
21+
# env:
22+
# NETWORK_TYPE: 'single-node'
23+
# PROOF_LEVEL: 'none'
24+
# LOG_LEVEL: 'Info'
25+
# ports:
26+
# - 3085:3085
27+
# - 5432:5432
28+
# - 8080:8080
29+
# - 8181:8181
30+
# - 8282:8282
31+
# volumes:
32+
# - /tmp:/root/logs
1533
steps:
34+
#
35+
# Enable the following block if you also want to use the Lightnet in your tests.
36+
#
37+
# - name: Wait for Mina network readiness
38+
# uses: o1-labs/wait-for-mina-network-action@v1
39+
# with:
40+
# mina-graphql-port: 8080
41+
# max-attempts: 60
42+
# polling-interval-ms: 10000
1643
- name: Set up NodeJS
1744
uses: actions/setup-node@v4
1845
with:
@@ -26,3 +53,15 @@ jobs:
2653
npm test
2754
env:
2855
CI: true
56+
#
57+
# Enable the following block if you also want to use the Lightnet in your tests.
58+
#
59+
# - name: Upload Mina logs
60+
# uses: actions/upload-artifact@v4
61+
# continue-on-error: true
62+
# if: always()
63+
# with:
64+
# if-no-files-found: ignore
65+
# name: mina-logs-node${{ matrix.node }}-${{ matrix.os }}
66+
# path: /tmp/*.log
67+
# retention-days: 5

0 commit comments

Comments
 (0)