This repository was archived by the owner on Jul 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Move non-relevant code from Marine repo into FluenceJS #227
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
b52320a
Move marine into FluenceJS repo
coder11 4e4f7e1
A lot of rework
coder11 a68d7f9
works, but not fully
coder11 6c78108
works (WIP)
coder11 4f7a638
Use release version of marine-js
coder11 e593a13
Fix logging
coder11 9393f03
Fix test name
coder11 9d95c5c
Get log function back
coder11 d50fc71
fix eph networks test
coder11 ac6a800
Add node test
coder11 7c166ad
Add test for web
coder11 ca3a911
fix package.json
coder11 3928d86
Remove unneeded files
coder11 41df612
fix package name
coder11 73a4fc5
fixes
coder11 5eaf107
pin all deps
coder11 f34743e
fix eph networks test
coder11 4ec2720
Merge branch 'master' into DXJ-135-move-marine
coder11 561dc47
Fix merge
coder11 fe94511
WIP
coder11 58d3000
tmp
coder11 fef5e37
tmp 2
coder11 9ed97d0
still WIP, doesn't work
coder11 e1a1907
Still WIP, still tmp
coder11 2f3b669
once more wip
coder11 f5b4400
Some tests pass now
coder11 41b3d4d
Build b64 scripts inside node-worker package
coder11 d349f1b
A better way to build stuff
coder11 9a18f46
cleanup
coder11 eb93117
refactoring 1
coder11 38625a8
Refactor 2
coder11 708f210
refactoring 3
coder11 c3e0a46
kinda works
coder11 3d0cc01
Merge branch 'master' into DXJ-135-move-marine
coder11 7f09a34
fix
coder11 87d2428
fix
coder11 afed2d6
almost there
coder11 e665f56
Merge branch 'master' into DXJ-135-move-marine
coder11 0fe9681
one more WIP
coder11 6ee196e
use aqua compiler in tests
coder11 231976b
tidying up
coder11 3aff26e
fixes
coder11 2bf7d05
tidying up
coder11 e8fc381
Get back to where it was. Now everything works
coder11 6daaf99
Big restructure
coder11 cdfd2da
A lot of work
coder11 7964686
Last things
coder11 4849cca
Disable non-working pipelines
coder11 824669f
tests workflow
coder11 258c749
fix tests
coder11 9bacb13
Use release version of aqua compiler
coder11 94a6c4c
rearrange commands in tests
coder11 d5ec5f4
Fix PR comment
coder11 e554dd6
fix tests
coder11 76e11da
fixes
coder11 bfc4594
fixing tests
coder11 8a5c0d0
remove unnecessary files
coder11 d1b0ef7
consolidate versions
coder11 58a1a57
remove files that should be gitignored
coder11 e793776
tmp
coder11 c7a3335
enable marine node tests
coder11 239606c
More precise try-catch and peer stopping
coder11 b90f279
comment out hanging test
coder11 8543569
not testing in node 19.x
coder11 4aed8b9
WIP
coder11 75fb5ea
tmp
coder11 1ebdf50
PR comment fixes
coder11 e7db6e3
temporarily skip non working tests
coder11 3dd70c3
fixed smoke test
coder11 4df5150
fix PR comment
coder11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,112 +1,42 @@ | ||
name: Run tests with worflow_call | ||
name: Run tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
rust-peer-image: | ||
description: "rust-peer image tag" | ||
type: string | ||
default: "fluencelabs/fluence:minimal" | ||
avm-version: | ||
description: "@fluencelabs/avm version" | ||
type: string | ||
default: "null" | ||
marine-js-version: | ||
description: "@fluencelabs/marine-js version" | ||
type: string | ||
default: "null" | ||
ref: | ||
description: "git ref to checkout to" | ||
type: string | ||
default: "master" | ||
defaults: | ||
run: | ||
working-directory: . | ||
|
||
env: | ||
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}" | ||
FORCE_COLOR: true | ||
CI: true | ||
on: | ||
push: | ||
|
||
jobs: | ||
fluence-js: | ||
name: "Run tests" | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
strategy: | ||
matrix: | ||
node-version: | ||
- 16.x | ||
- 17.x | ||
|
||
steps: | ||
- name: Import secrets | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: https://vault.fluence.dev | ||
path: jwt/github | ||
role: ci | ||
method: jwt | ||
jwtGithubAudience: "https://github.com/fluencelabs" | ||
jwtTtl: 300 | ||
secrets: | | ||
kv/docker-registry/basicauth/ci username | DOCKER_USERNAME ; | ||
kv/docker-registry/basicauth/ci password | DOCKER_PASSWORD | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: docker.fluence.dev | ||
username: ${{ env.DOCKER_USERNAME }} | ||
password: ${{ env.DOCKER_PASSWORD }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: fluencelabs/fluence-js | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Pull rust-peer image | ||
run: docker pull $RUST_PEER_IMAGE | ||
|
||
- name: Run rust-peer | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: ".github/e2e/docker-compose.yml" | ||
down-flags: "--volumes" | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Setup node ${{ matrix.node-version }} with self-hosted registry | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: "https://npm.fluence.dev" | ||
cache: "pnpm" | ||
|
||
- run: pnpm i | ||
|
||
- name: Set avm version | ||
if: inputs.avm-version != 'null' | ||
uses: fluencelabs/github-actions/npm-set-dependency@main | ||
with: | ||
package: "@fluencelabs/avm" | ||
version: ${{ inputs.avm-version }} | ||
working-directory: packages/fluence-js | ||
package-manager: pnpm | ||
|
||
- name: Set marine-js version | ||
if: inputs.marine-js-version != 'null' | ||
uses: fluencelabs/github-actions/npm-set-dependency@main | ||
with: | ||
package: "@fluencelabs/marine-js" | ||
version: ${{ inputs.marine-js-version }} | ||
working-directory: packages/fluence-js | ||
package-manager: pnpm | ||
|
||
- run: pnpm -r build | ||
- run: pnpm -r test | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x, 17.x, 18.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Run container with Fluence node | ||
run: | | ||
docker pull fluencelabs/fluence | ||
docker run -d --rm -e RUST_LOG="info" -p 1210:1210 -p 4310:4310 fluencelabs/fluence -t 1210 -w 4310 -k gKdiCSUr1TFGFEgu2t8Ch1XEUsrN5A2UfBLjSZvfci9SPR3NvZpACfcpPGC3eY4zma1pk7UvYv5zb1VjvPHwCjj --local --aqua-pool-size 2 | ||
|
||
- run: pnpm i | ||
- run: pnpm -r build | ||
env: | ||
CI: true | ||
- run: pnpm -r test | ||
env: | ||
CI: true |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,112 @@ | ||
name: Run tests with worflow_call | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
rust-peer-image: | ||
description: "rust-peer image tag" | ||
type: string | ||
default: "fluencelabs/fluence:minimal" | ||
avm-version: | ||
description: "@fluencelabs/avm version" | ||
type: string | ||
default: "null" | ||
marine-js-version: | ||
description: "@fluencelabs/marine-js version" | ||
type: string | ||
default: "null" | ||
ref: | ||
description: "git ref to checkout to" | ||
type: string | ||
default: "master" | ||
|
||
env: | ||
RUST_PEER_IMAGE: "${{ inputs.rust-peer-image }}" | ||
FORCE_COLOR: true | ||
CI: true | ||
|
||
jobs: | ||
fluence-js: | ||
name: "Run tests" | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
strategy: | ||
matrix: | ||
node-version: | ||
- 16.x | ||
- 17.x | ||
|
||
steps: | ||
- name: Import secrets | ||
uses: hashicorp/[email protected] | ||
with: | ||
url: https://vault.fluence.dev | ||
path: jwt/github | ||
role: ci | ||
method: jwt | ||
jwtGithubAudience: "https://github.com/fluencelabs" | ||
jwtTtl: 300 | ||
secrets: | | ||
kv/docker-registry/basicauth/ci username | DOCKER_USERNAME ; | ||
kv/docker-registry/basicauth/ci password | DOCKER_PASSWORD | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: docker.fluence.dev | ||
username: ${{ env.DOCKER_USERNAME }} | ||
password: ${{ env.DOCKER_PASSWORD }} | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: fluencelabs/fluence-js | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Pull rust-peer image | ||
run: docker pull $RUST_PEER_IMAGE | ||
|
||
- name: Run rust-peer | ||
uses: isbang/[email protected] | ||
with: | ||
compose-file: ".github/e2e/docker-compose.yml" | ||
down-flags: "--volumes" | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Setup node ${{ matrix.node-version }} with self-hosted registry | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: "https://npm.fluence.dev" | ||
cache: "pnpm" | ||
|
||
- run: pnpm i | ||
|
||
- name: Set avm version | ||
if: inputs.avm-version != 'null' | ||
uses: fluencelabs/github-actions/npm-set-dependency@main | ||
with: | ||
package: "@fluencelabs/avm" | ||
version: ${{ inputs.avm-version }} | ||
working-directory: packages/fluence-js | ||
package-manager: pnpm | ||
|
||
- name: Set marine-js version | ||
if: inputs.marine-js-version != 'null' | ||
uses: fluencelabs/github-actions/npm-set-dependency@main | ||
with: | ||
package: "@fluencelabs/marine-js" | ||
version: ${{ inputs.marine-js-version }} | ||
working-directory: packages/fluence-js | ||
package-manager: pnpm | ||
|
||
- run: pnpm -r build | ||
- run: pnpm -r test |
This file contains hidden or 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,2 @@ | ||
auto-install-peers=true | ||
save-exact=true |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.