Skip to content

Commit 77c2e94

Browse files
committed
chore: merge beta
2 parents c6934e6 + 5a5f07c commit 77c2e94

File tree

165 files changed

+14482
-2190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+14482
-2190
lines changed

.github/workflows/ci.yml

Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,180 @@ jobs:
168168
flag-name: run-${{ github.job }}
169169
parallel: true
170170

171+
test-event-replay:
172+
runs-on: ubuntu-latest
173+
steps:
174+
- uses: actions/checkout@v2
175+
176+
- name: Use Node.js
177+
uses: actions/setup-node@v2
178+
with:
179+
node-version-file: '.nvmrc'
180+
181+
- name: Cache node modules
182+
uses: actions/cache@v2
183+
env:
184+
cache-name: cache-node-modules
185+
with:
186+
path: |
187+
~/.npm
188+
**/node_modules
189+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
190+
restore-keys: |
191+
${{ runner.os }}-build-${{ env.cache-name }}-
192+
${{ runner.os }}-build-
193+
${{ runner.os }}-
194+
195+
- name: Install deps
196+
run: npm ci --audit=false
197+
198+
- name: Setup integration environment
199+
run: |
200+
sudo ufw disable
201+
docker compose -f docker/docker-compose.dev.postgres.yml up -d
202+
npm run devenv:logs -- --no-color &> docker-compose-logs.txt &
203+
204+
- name: Run RPC tests
205+
run: npm run test:event-replay
206+
207+
- name: Print integration environment logs
208+
run: cat docker-compose-logs.txt
209+
if: failure()
210+
211+
- name: Teardown integration environment
212+
run: npm run devenv:stop
213+
if: always()
214+
215+
- name: Upload coverage to Codecov
216+
uses: codecov/codecov-action@v2
217+
if: always()
218+
219+
- name: Upload coverage to Coveralls
220+
uses: coverallsapp/github-action@master
221+
if: always()
222+
with:
223+
github-token: ${{ secrets.github_token }}
224+
flag-name: run-${{ github.job }}
225+
parallel: true
226+
227+
test-rpc:
228+
runs-on: ubuntu-latest
229+
steps:
230+
- uses: actions/checkout@v2
231+
232+
- name: Use Node.js
233+
uses: actions/setup-node@v2
234+
with:
235+
node-version-file: '.nvmrc'
236+
237+
- name: Cache node modules
238+
uses: actions/cache@v2
239+
env:
240+
cache-name: cache-node-modules
241+
with:
242+
path: |
243+
~/.npm
244+
**/node_modules
245+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
246+
restore-keys: |
247+
${{ runner.os }}-build-${{ env.cache-name }}-
248+
${{ runner.os }}-build-
249+
${{ runner.os }}-
250+
251+
- name: Install deps
252+
run: npm ci --audit=false
253+
254+
- name: Setup env vars
255+
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
256+
257+
- name: Setup integration environment
258+
run: |
259+
sudo ufw disable
260+
npm run devenv:deploy -- -d
261+
npm run devenv:logs -- --no-color &> docker-compose-logs.txt &
262+
263+
- name: Run RPC tests
264+
run: npm run test:rpc
265+
266+
- name: Print integration environment logs
267+
run: cat docker-compose-logs.txt
268+
if: failure()
269+
270+
- name: Teardown integration environment
271+
run: npm run devenv:stop
272+
if: always()
273+
274+
- name: Upload coverage to Codecov
275+
uses: codecov/codecov-action@v2
276+
if: always()
277+
278+
- name: Upload coverage to Coveralls
279+
uses: coverallsapp/github-action@master
280+
if: always()
281+
with:
282+
github-token: ${{ secrets.github_token }}
283+
flag-name: run-${{ github.job }}
284+
parallel: true
285+
286+
test-btc-faucet:
287+
runs-on: ubuntu-latest
288+
steps:
289+
- uses: actions/checkout@v2
290+
291+
- name: Use Node.js
292+
uses: actions/setup-node@v2
293+
with:
294+
node-version-file: '.nvmrc'
295+
296+
- name: Cache node modules
297+
uses: actions/cache@v2
298+
env:
299+
cache-name: cache-node-modules
300+
with:
301+
path: |
302+
~/.npm
303+
**/node_modules
304+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
305+
restore-keys: |
306+
${{ runner.os }}-build-${{ env.cache-name }}-
307+
${{ runner.os }}-build-
308+
${{ runner.os }}-
309+
310+
- name: Install deps
311+
run: npm ci --audit=false
312+
313+
- name: Setup env vars
314+
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
315+
316+
- name: Setup integration environment
317+
run: |
318+
sudo ufw disable
319+
npm run devenv:deploy -- -d
320+
npm run devenv:logs -- --no-color &> docker-compose-logs.txt &
321+
322+
- name: Run btc faucet tests
323+
run: npm run test:btc-faucet
324+
325+
- name: Print integration environment logs
326+
run: cat docker-compose-logs.txt
327+
if: failure()
328+
329+
- name: Teardown integration environment
330+
run: npm run devenv:stop
331+
if: always()
332+
333+
- name: Upload coverage to Codecov
334+
uses: codecov/codecov-action@v2
335+
if: always()
336+
337+
- name: Upload coverage to Coveralls
338+
uses: coverallsapp/github-action@master
339+
if: always()
340+
with:
341+
github-token: ${{ secrets.github_token }}
342+
flag-name: run-${{ github.job }}
343+
parallel: true
344+
171345
test-bns:
172346
runs-on: ubuntu-latest
173347
steps:
@@ -227,6 +401,150 @@ jobs:
227401
flag-name: run-${{ github.job }}
228402
parallel: true
229403

404+
test-2_1:
405+
strategy:
406+
matrix:
407+
suite: [
408+
block-zero-handling,
409+
faucet-stx,
410+
pox-2-auto-unlock,
411+
pox-2-btc-address-formats,
412+
pox-2-delegate-aggregation,
413+
pox-2-delegate-stacking,
414+
pox-2-stack-extend-increase,
415+
pox-2-rosetta-btc-addr-types,
416+
pox-2-rosetta-cycle-phases,
417+
pox-2-rosetta-segwit,
418+
pox-2-burnchain-stack-stx,
419+
pox-2-burnchain-delegate-stx,
420+
]
421+
runs-on: ubuntu-latest
422+
steps:
423+
- uses: actions/checkout@v2
424+
425+
- name: Use Node.js
426+
uses: actions/setup-node@v2
427+
with:
428+
node-version-file: '.nvmrc'
429+
430+
- name: Cache node modules
431+
uses: actions/cache@v2
432+
env:
433+
cache-name: cache-node-modules
434+
with:
435+
path: |
436+
~/.npm
437+
**/node_modules
438+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
439+
restore-keys: |
440+
${{ runner.os }}-build-${{ env.cache-name }}-
441+
${{ runner.os }}-build-
442+
${{ runner.os }}-
443+
444+
- name: Install deps
445+
run: npm ci --audit=false
446+
447+
- name: Setup env vars
448+
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
449+
450+
- name: Setup integration environment
451+
run: |
452+
sudo ufw disable
453+
npm run devenv:deploy:2.1 -- -d
454+
npm run devenv:logs:2.1 -- --no-color &> docker-compose-logs.txt &
455+
456+
- name: Run tests
457+
run: npm run test:2.1 -- --testPathPattern "${{ matrix.suite }}"
458+
459+
- name: Print integration environment logs
460+
run: cat docker-compose-logs.txt
461+
if: failure()
462+
463+
- name: Teardown integration environment
464+
run: npm run devenv:stop:2.1
465+
if: always()
466+
467+
- name: Upload coverage to Codecov
468+
uses: codecov/codecov-action@v2
469+
if: always()
470+
471+
- name: Upload coverage to Coveralls
472+
uses: coverallsapp/github-action@master
473+
if: always()
474+
with:
475+
github-token: ${{ secrets.github_token }}
476+
flag-name: run-${{ github.job }}
477+
parallel: true
478+
479+
test-2_1-transition:
480+
strategy:
481+
matrix:
482+
suite:
483+
[
484+
Stacking on pox-2 after pox-1 force unlock,
485+
Consistent API and RPC account balances through pox transitions,
486+
Rosetta - Stacked STX unlock during transition,
487+
Rosetta - Transistion periods use correct contracts,
488+
PoX Transition - Double stacking,
489+
]
490+
runs-on: ubuntu-latest
491+
steps:
492+
- uses: actions/checkout@v2
493+
494+
- name: Use Node.js
495+
uses: actions/setup-node@v2
496+
with:
497+
node-version-file: '.nvmrc'
498+
499+
- name: Cache node modules
500+
uses: actions/cache@v2
501+
env:
502+
cache-name: cache-node-modules
503+
with:
504+
path: |
505+
~/.npm
506+
**/node_modules
507+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
508+
restore-keys: |
509+
${{ runner.os }}-build-${{ env.cache-name }}-
510+
${{ runner.os }}-build-
511+
${{ runner.os }}-
512+
513+
- name: Install deps
514+
run: npm ci --audit=false
515+
516+
- name: Setup env vars
517+
run: echo "STACKS_CORE_EVENT_HOST=http://0.0.0.0" >> $GITHUB_ENV
518+
519+
- name: Setup integration environment
520+
run: |
521+
sudo ufw disable
522+
npm run devenv:deploy:2.1-transition -- -d
523+
npm run devenv:logs:2.1-transition -- --no-color &> docker-compose-logs.txt &
524+
525+
- name: Run tests
526+
run: npm run test:2.1-transition -- -t "${{ matrix.suite }}"
527+
528+
- name: Print integration environment logs
529+
run: cat docker-compose-logs.txt
530+
if: failure()
531+
532+
- name: Teardown integration environment
533+
run: npm run devenv:stop:2.1-transition
534+
if: always()
535+
536+
- name: Upload coverage to Codecov
537+
uses: codecov/codecov-action@v2
538+
if: always()
539+
540+
- name: Upload coverage to Coveralls
541+
uses: coverallsapp/github-action@master
542+
if: always()
543+
with:
544+
github-token: ${{ secrets.github_token }}
545+
flag-name: run-${{ github.job }}
546+
parallel: true
547+
230548
test-rosetta:
231549
runs-on: ubuntu-latest
232550
steps:
@@ -469,6 +787,8 @@ jobs:
469787
runs-on: ubuntu-latest
470788
needs:
471789
- test
790+
- test-2_1
791+
- test-2_1-transition
472792
- test-bns
473793
- test-rosetta
474794
- test-rosetta-cli-construction
@@ -487,6 +807,8 @@ jobs:
487807
- lint
488808
- lint-docs
489809
- test
810+
- test-2_1
811+
- test-2_1-transition
490812
- test-bns
491813
- test-rosetta
492814
- test-rosetta-cli-construction
@@ -531,6 +853,7 @@ jobs:
531853
type=ref,event=pr
532854
type=semver,pattern={{version}},value=${{ steps.semantic.outputs.new_release_version }},enable=${{ steps.semantic.outputs.new_release_version != '' }}
533855
type=semver,pattern={{major}}.{{minor}},value=${{ steps.semantic.outputs.new_release_version }},enable=${{ steps.semantic.outputs.new_release_version != '' }}
856+
type=raw,value=latest,enable={{is_default_branch}}
534857
535858
- name: Docker Standalone Meta
536859
id: meta_standalone
@@ -544,6 +867,7 @@ jobs:
544867
type=ref,event=pr
545868
type=semver,pattern={{version}},value=${{ steps.semantic.outputs.new_release_version }},enable=${{ steps.semantic.outputs.new_release_version != '' }}
546869
type=semver,pattern={{major}}.{{minor}},value=${{ steps.semantic.outputs.new_release_version }},enable=${{ steps.semantic.outputs.new_release_version != '' }}
870+
type=raw,value=latest,enable={{is_default_branch}}
547871
548872
- name: Login to DockerHub
549873
uses: docker/login-action@v1

0 commit comments

Comments
 (0)