Skip to content

Commit 562b524

Browse files
committed
Merge branch 'main' into test/cap-nonce
2 parents 2631ff3 + 1b24d56 commit 562b524

File tree

87 files changed

+4120
-1550
lines changed

Some content is hidden

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

87 files changed

+4120
-1550
lines changed

.config/rustdoc.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# TODO: Enable these docs flags.
22
# RUSTDOCFLAGS=-D rustdoc::broken-intra-doc-links -D missing_docs -D rustdoc::missing_crate_level_docs
33
RUSTDOCFLAGS=-D rustdoc::invalid_codeblock_attributes -D rustdoc::invalid_html_tags -D rustdoc::invalid_rust_codeblocks -D rustdoc::bare_urls
4-

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ jobs:
119119
working-directory: "C:\\${{ github.event.repository.name }}"
120120
run: choco install -y protoc openssl sqlite postgresql14
121121

122+
- uses: actions/upload-artifact@v4
123+
with:
124+
name: choco_logs
125+
path: C:\ProgramData\chocolatey\logs\*
126+
122127
- name: Set PostgreSQL env variables
123128
working-directory: "C:\\${{ github.event.repository.name }}"
124129
shell: powershell

.github/workflows/ci-test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
branches:
66
- main
7-
- fix-earthly-integration-testing
87

98
permissions:
109
id-token: write
@@ -41,4 +40,4 @@ jobs:
4140
env:
4241
EARTHLY_SECRETS: "IDEASCALE_EMAIL=${{ secrets.IDEASCALE_EMAIL }}, IDEASCALE_PASSWORD=${{ secrets.IDEASCALE_PASSWORD }}, IDEASCALE_API_TOKEN=${{ secrets.IDEASCALE_API_TOKEN }}"
4342
run: |
44-
earthly -P --buildkit-host "tcp://${{ secrets.EARTHLY_SATELLITE_ADDRESS }}:8372" +test
43+
earthly -P --buildkit-host "tcp://${{ secrets.EARTHLY_SATELLITE_ADDRESS }}:8372" +test-all

.github/workflows/ci.yml

Lines changed: 13 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -2,110 +2,22 @@ name: CI
22

33
on:
44
push:
5-
branches:
6-
- main
7-
paths:
8-
- ".github/workflows/ci.yml"
9-
- "containers/**"
10-
- "services/**"
11-
- "src/**"
12-
- "utilities/**"
135

146
permissions:
157
id-token: write
16-
contents: read
8+
contents: write
179
packages: write
1810

19-
env:
20-
AWS_REGION: eu-central-1
21-
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci
22-
EARTHLY_TARGET: docker
23-
EARTHLY_VERSION: 0.7.6
24-
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
25-
TAG: ${{ github.sha }}
26-
2711
jobs:
28-
discover:
29-
runs-on: ubuntu-latest
30-
outputs:
31-
json: ${{ steps.discover.outputs.json}}
32-
images: ${{ steps.discover.outputs.images}}
33-
steps:
34-
- uses: actions/checkout@v3
35-
- name: Setup CI
36-
uses: input-output-hk/catalyst-ci/actions/setup@master
37-
with:
38-
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
39-
aws_region: ${{ env.AWS_REGION }}
40-
earthly_version: ${{ env.EARTHLY_VERSION }}
41-
- name: Discover Earthfiles
42-
uses: input-output-hk/catalyst-ci/actions/discover@master
43-
id: discover
44-
with:
45-
parse_images: "true"
46-
targets: ${{ env.EARTHLY_TARGET }}
47-
cache:
48-
runs-on: ubuntu-latest
49-
steps:
50-
- uses: actions/checkout@v3
51-
- name: Setup CI
52-
uses: input-output-hk/catalyst-ci/actions/setup@master
53-
with:
54-
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
55-
aws_region: ${{ env.AWS_REGION }}
56-
earthly_version: ${{ env.EARTHLY_VERSION }}
57-
- name: Build cache
58-
uses: input-output-hk/catalyst-ci/actions/build@master
59-
with:
60-
earthfile: .
61-
earthly_satellite: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
62-
target: builder
63-
build:
64-
runs-on: ubuntu-latest
65-
needs: [cache, discover]
66-
strategy:
67-
fail-fast: false
68-
matrix:
69-
earthfile: ${{ fromJson(needs.discover.outputs.json) }}
70-
steps:
71-
- uses: actions/checkout@v3
72-
- name: Setup CI
73-
uses: input-output-hk/catalyst-ci/actions/setup@master
74-
with:
75-
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
76-
aws_region: ${{ env.AWS_REGION }}
77-
earthly_version: ${{ env.EARTHLY_VERSION }}
78-
- name: Login to ECR
79-
uses: docker/login-action@v2
80-
with:
81-
registry: ${{ env.ECR_REGISTRY }}
82-
- name: Build and publish
83-
uses: input-output-hk/catalyst-ci/actions/build@master
84-
with:
85-
earthfile: ${{ matrix.earthfile.path }}
86-
earthly_satellite: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
87-
images: ${{ matrix.earthfile.images }}
88-
publish: "true"
89-
registry: ${{ env.ECR_REGISTRY }}
90-
tags: "${{ env.TAG }}"
91-
target: ${{ env.EARTHLY_TARGET }}
92-
deploy:
93-
runs-on: ubuntu-latest
94-
needs: [discover, build]
95-
steps:
96-
- name: Setup CI
97-
uses: input-output-hk/catalyst-ci/actions/setup@master
98-
id: setup
99-
with:
100-
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
101-
aws_region: ${{ env.AWS_REGION }}
102-
earthly_version: ${{ env.EARTHLY_VERSION }}
103-
- name: Deploy
104-
uses: input-output-hk/catalyst-ci/actions/deploy@master
105-
with:
106-
deployment_repo: input-output-hk/catalyst-world
107-
# NOTE: For new services being deployed, this list must be updated
108-
images: cat-data-service fragment-exporter migrations voting-node
109-
environment: dev
110-
tag: ${{ env.TAG }}
111-
token: ${{ steps.setup.outputs.token }}
12+
ci:
13+
uses: input-output-hk/catalyst-ci/.github/workflows/ci.yml@master
14+
with:
15+
aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
16+
aws_role_arn: arn:aws:iam::332405224602:role/ci
17+
aws_region: eu-central-1
18+
publish_docs: false
19+
secrets:
20+
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
21+
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
22+
earthly_runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
23+
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}

.github/workflows/nix.yml

Lines changed: 0 additions & 99 deletions
This file was deleted.

.github/workflows/rust.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,10 @@ jobs:
226226
uses: taiki-e/install-action@nextest
227227

228228
- name: Install cargo-make
229-
run: cargo install --force cargo-make
229+
run: cargo install --force cargo-make --version 0.37.10 --locked
230230

231231
- name: Install refinery
232-
run: cargo install refinery_cli
232+
run: cargo install refinery_cli --version 0.8.7 --locked
233233

234234
- name: Install dependencies
235235
run:
@@ -268,16 +268,16 @@ jobs:
268268
--exclude wallet-uniffi \
269269
--archive-file nextest-archive.tar.zst
270270
271-
- name: Run Catalyst Core tests
272-
env:
273-
TEST_DATABASE_URL: postgres://postgres:123456@localhost
274-
EVENT_DB_URL: postgres://catalyst-event-dev:CHANGE_ME@localhost/CatalystEventDev
271+
## - name: Run Catalyst Core tests
272+
## env:
273+
## TEST_DATABASE_URL: postgres://postgres:123456@localhost
274+
## EVENT_DB_URL: postgres://catalyst-event-dev:CHANGE_ME@localhost/CatalystEventDev
275275
## removing test ui_test because of bug https://github.com/rust-lang/cargo/issues/10352
276-
run: |
277-
cargo nextest run \
278-
-E "not (test(ui_test))" \
279-
--archive-file nextest-archive.tar.zst --extract-to ${{ github.workspace }} \
280-
--extract-overwrite --partition hash:${{ matrix.partition }}/10 --profile ci
276+
## run: |
277+
## cargo nextest run \
278+
## -E "not (test(ui_test))" \
279+
## --archive-file nextest-archive.tar.zst --extract-to ${{ github.workspace }} \
280+
## --extract-overwrite --partition hash:${{ matrix.partition }}/10 --profile ci
281281

282282
test-results:
283283
if: always()

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,8 @@ tests/tmp/
117117
lefthook.yml
118118
treefmt.toml
119119

120-
# local earthly Environments
121-
local/*
120+
# local earthly environments
121+
local/*
122+
tests/wallet-automation/typhon/usrdatadir/*
123+
tests/wallet-automation/node_modules/*
124+
tests/wallet-automation/typhon/extensions/*

0 commit comments

Comments
 (0)