-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:FuelLabs/data-systems into changese…
…t/release-main
- Loading branch information
Showing
302 changed files
with
12,251 additions
and
34,382 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @luizstacio @pedronauck @jurshsmith @0xterminator | ||
* @luizstacio @pedronauck @jurshsmith @0xterminator @cue8it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- edited | ||
- reopened | ||
push: | ||
branches: | ||
- main | ||
|
@@ -49,10 +43,13 @@ jobs: | |
deps | ||
release | ||
core | ||
publisher | ||
data-parser | ||
networks | ||
fuel-streams | ||
macros | ||
publisher | ||
storage | ||
ws | ||
lockfile: | ||
name: Validate Lockfile | ||
|
@@ -187,25 +184,53 @@ jobs: | |
- name: Install dependencies | ||
run: cargo fetch | ||
|
||
# test-helm: | ||
# needs: install-deps | ||
# name: Test Helm | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Set up Helm | ||
# uses: azure/setup-helm@v4 | ||
# with: | ||
# version: "latest" | ||
|
||
# - name: Install helm unittest plugin | ||
# run: | | ||
# helm plugin install https://github.com/helm-unittest/helm-unittest.git | ||
|
||
# - name: Run Helm unit tests | ||
# run: | | ||
# make helm-test | ||
|
||
test: | ||
needs: install-deps | ||
name: Test ${{ matrix.package }} | ||
runs-on: ubuntu-latest | ||
env: | ||
NATS_URL: nats://127.0.0.1:4222 | ||
NATS_ADMIN_PASS: secret | ||
NATS_PUBLIC_PASS: secret | ||
NATS_PUBLISHER_URL: nats://127.0.0.1:4333 | ||
NATS_SYSTEM_USER: sys | ||
NATS_SYSTEM_PASSWORD: sys | ||
NATS_ADMIN_USER: admin | ||
NATS_ADMIN_PASS: admin | ||
NATS_PUBLIC_USER: default_user | ||
NATS_PUBLIC_PASS: "" | ||
AWS_ACCESS_KEY_ID: test | ||
AWS_SECRET_ACCESS_KEY: test | ||
AWS_REGION: us-east-1 | ||
AWS_ENDPOINT_URL: http://localhost:4566 | ||
AWS_S3_BUCKET_NAME: fuel-streams-test | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: | ||
# - fuel-data-parser | ||
# - fuel-indexer | ||
- fuel-data-parser | ||
- fuel-streams | ||
- fuel-streams-core | ||
- fuel-streams-macros | ||
- fuel-streams-publisher | ||
|
||
- sv-webserver | ||
- sv-publisher | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -222,14 +247,14 @@ jobs: | |
|
||
- name: Start Nats | ||
run: | | ||
make start/nats | ||
make start-nats | ||
- name: Run tests | ||
run: make test PROFILE=ci PACKAGE=${{ matrix.package }} | ||
run: make test PACKAGE=${{ matrix.package }} PROFILE=ci | ||
|
||
- name: Stop Nats | ||
if: always() | ||
run: make stop/nats | ||
run: make stop-nats | ||
|
||
build: | ||
needs: install-deps | ||
|
@@ -239,7 +264,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
package: | ||
- fuel-streams-publisher | ||
- sv-consumer | ||
- sv-publisher | ||
- sv-webserver | ||
is_release: | ||
- ${{ github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }} | ||
platform: | ||
|
@@ -308,34 +335,34 @@ jobs: | |
rustup target add ${{ matrix.platform.target }} | ||
cargo build --release --locked --target ${{ matrix.platform.target }} --package ${{ matrix.package }} | ||
- name: Strip binaries | ||
run: ./scripts/strip-binary.sh "${{ matrix.platform.target }}" | ||
|
||
- name: Set Artifact Name | ||
id: artifact-name | ||
shell: bash | ||
run: | | ||
echo "value=${{ matrix.package }}-${{ matrix.platform.os_name }}" >> $GITHUB_OUTPUT | ||
- name: Package as archive | ||
shell: bash | ||
run: | | ||
cd target/${{ matrix.platform.target }}/release | ||
tar czvf ../../../${{ steps.artifact-name.outputs.value }}.tar.gz ${{ matrix.package }} | ||
cd - | ||
- name: Publish release artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: >- | ||
(github.event_name == 'push' && | ||
github.ref == 'refs/heads/main' && | ||
contains(github.event.head_commit.message, 'ci(release): Preparing')) || | ||
github.event_name == 'workflow_dispatch' | ||
with: | ||
name: ${{ steps.artifact-name.outputs.value }} | ||
path: ${{ matrix.package }}-* | ||
if-no-files-found: error | ||
retention-days: 30 | ||
# - name: Strip binaries | ||
# run: ./scripts/strip-binary.sh "${{ matrix.platform.target }}" | ||
|
||
# - name: Set Artifact Name | ||
# id: artifact-name | ||
# shell: bash | ||
# run: | | ||
# echo "value=${{ matrix.package }}-${{ matrix.platform.os_name }}" >> $GITHUB_OUTPUT | ||
|
||
# - name: Package as archive | ||
# shell: bash | ||
# run: | | ||
# cd target/${{ matrix.platform.target }}/release | ||
# tar czvf ../../../${{ steps.artifact-name.outputs.value }}.tar.gz ${{ matrix.package }} | ||
# cd - | ||
|
||
# - name: Publish release artifacts | ||
# uses: actions/upload-artifact@v4 | ||
# if: >- | ||
# (github.event_name == 'push' && | ||
# github.ref == 'refs/heads/main' && | ||
# contains(github.event.head_commit.message, 'ci(release): Preparing')) || | ||
# github.event_name == 'workflow_dispatch' | ||
# with: | ||
# name: ${{ steps.artifact-name.outputs.value }} | ||
# path: ${{ matrix.package }}-* | ||
# if-no-files-found: error | ||
# retention-days: 30 | ||
|
||
release: | ||
name: Create Release with Knope | ||
|
@@ -345,6 +372,8 @@ jobs: | |
contains(github.event.head_commit.message, 'ci(release): Preparing')) || | ||
github.event_name == 'workflow_dispatch' | ||
needs: | ||
- test | ||
# - test-helm | ||
- build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
|
@@ -354,14 +383,14 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download Artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: artifacts | ||
merge-multiple: true | ||
# - name: Download Artifacts | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# path: artifacts | ||
# merge-multiple: true | ||
|
||
- name: List Artifacts | ||
run: ls -R artifacts | ||
# - name: List Artifacts | ||
# run: ls -R artifacts | ||
|
||
- name: Run Knope Action | ||
uses: knope-dev/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.