Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master mergeback #3346

Merged
merged 108 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
8760067
Add progress watch channel to TransferContext
nieznanysprawiciel Dec 22, 2023
7328728
Register progress reporter for transfers and deploy
nieznanysprawiciel Jan 2, 2024
6c6f3f1
Fix http tranfer provider to always ask server for file size
nieznanysprawiciel Jan 2, 2024
ffc31ff
Prettify progress loop in test
nieznanysprawiciel Jan 2, 2024
1428ffe
Progress struct is serializable
nieznanysprawiciel Jan 2, 2024
319c7bf
Move CommandProgress to ya-client-model
nieznanysprawiciel Jan 3, 2024
7008049
Disable spamming ExeUnit logs during transfer
nieznanysprawiciel Jan 4, 2024
1ffaf5a
Use new progress model from ya-client
nieznanysprawiciel Jan 5, 2024
1675c21
Fix ya-client dependencies versions problems (still not compiling)
nieznanysprawiciel Jan 5, 2024
d89b3cf
Merge branch 'master' of github.com:golemfactory/yagna into progress-…
nieznanysprawiciel Jan 8, 2024
49f23ae
Use new ya-client Progress structs; Move towards streaming implementa…
nieznanysprawiciel Jan 8, 2024
b40c4e6
Use ProgressReporter in Deploy and Transfer flow
nieznanysprawiciel Jan 8, 2024
1916012
More user friendly Deploy api in TransferService
nieznanysprawiciel Jan 8, 2024
f07e678
Update ya-client
nieznanysprawiciel Jan 9, 2024
10e62db
Limit speed of progress updates to avoid unresponsive exe-unit
nieznanysprawiciel Jan 11, 2024
d9f9bbc
ProgressReporter update interval test
nieznanysprawiciel Jan 16, 2024
7ad5482
Test sending progress message
nieznanysprawiciel Jan 16, 2024
f3b76b1
Make ExeUnit instantiable in test
nieznanysprawiciel Jan 17, 2024
7e6d099
Fix mut cli warning for non sgx build
nieznanysprawiciel Jan 17, 2024
5be9840
Add Exeunit system test using mock runtime (not passing yet)
nieznanysprawiciel Jan 18, 2024
fbba580
Better mechanism to wait for ExeUnit finish
nieznanysprawiciel Jan 19, 2024
f82c3ed
Move ExeUnit test utils to mock-runtime
nieznanysprawiciel Jan 19, 2024
4a1b17b
Send terminate after test
nieznanysprawiciel Jan 19, 2024
e955e51
Fix goth test due to chenged DebitNote ordering
nieznanysprawiciel Jan 22, 2024
04b6dbf
Fix: Build test binary in test if it wasn't built
nieznanysprawiciel Jan 24, 2024
1a0458b
Test progress report from streaming batch results
nieznanysprawiciel Jan 26, 2024
9a8042e
Handle GSB router setup in test utils
nieznanysprawiciel Jan 26, 2024
83f6286
Hide shutdown function in tests
nieznanysprawiciel Jan 26, 2024
39a790f
Deploy - adding additional volumes (not included in vm image); Test t…
nieznanysprawiciel Jan 29, 2024
22c04f6
Rename framework-test to system-test in exeunits
nieznanysprawiciel Jan 29, 2024
6377694
Merge branch 'staszek/gamerhash-combined' of github.com:golemfactory/…
nieznanysprawiciel Jan 29, 2024
0fbd171
Replace basic exeunit test with helper deploy, start commands
nieznanysprawiciel Jan 29, 2024
148362f
Fix clippy
nieznanysprawiciel Jan 29, 2024
15eeb5a
Fix clipy mut sgx
nieznanysprawiciel Jan 29, 2024
bc8c02b
Allow large enum variant
nieznanysprawiciel Jan 29, 2024
7a6613d
Run system tests for ya-transfer and ya-exe-unit
nieznanysprawiciel Jan 29, 2024
50ca348
Fix ya-transfer features of dependencies
nieznanysprawiciel Jan 29, 2024
d7f3df0
New clippy fixes
nieznanysprawiciel Jan 29, 2024
63eb34b
Extend time periods in progress tests
nieznanysprawiciel Jan 30, 2024
80277a4
Fix ExeUnit binary compilation with packet-trace flag
nieznanysprawiciel Jan 30, 2024
71fa46b
Merge branch 'master' of github.com:golemfactory/yagna into progress-…
nieznanysprawiciel Jan 31, 2024
ab7b65f
Better error message from gftp
nieznanysprawiciel Feb 1, 2024
4466a74
Merge branch 'staszek/gamerhash-combined' of github.com:golemfactory/…
nieznanysprawiciel Feb 2, 2024
b1915ff
Merge branch 'staszek/gamerhash-combined' of github.com:golemfactory/…
nieznanysprawiciel Feb 2, 2024
26d7d53
Fix clippy
nieznanysprawiciel Feb 1, 2024
26c0fca
Increase progress test duration to fix windows tests
nieznanysprawiciel Feb 5, 2024
b4c8099
Merge branch 'staszek/gamerhash-combined' into progress-report
nieznanysprawiciel Feb 6, 2024
36f659a
Deploy larger file in test so we will get at least 1 progress event
nieznanysprawiciel Feb 6, 2024
fac0b8e
Add Command progress report capability to docs
nieznanysprawiciel Feb 6, 2024
9a11470
Update capabilities for deploy
nieznanysprawiciel Feb 9, 2024
41b5317
Document Exeunit progress reporting behavior
nieznanysprawiciel Feb 9, 2024
edc2b04
Describe ProgressArgs behavior
nieznanysprawiciel Feb 9, 2024
a0aac51
Fix documentation
nieznanysprawiciel Feb 9, 2024
4ac199f
Merge branch 'staszek/gamerhash-combined' of github.com:golemfactory/…
nieznanysprawiciel Feb 12, 2024
9bfdd89
Fix deb-build action
nieznanysprawiciel Feb 14, 2024
e39661c
Reference build-deb-action@v5
nieznanysprawiciel Feb 14, 2024
7096e03
Try to build documents structure
nieznanysprawiciel Feb 23, 2024
f62064f
Restore test_payment_sync
nieznanysprawiciel Aug 7, 2024
75d6500
Merge branch 'test-environment-identity-with-base-gsb-address' of git…
nieznanysprawiciel Aug 9, 2024
ce39e82
Send Accept Invoice to FakePayment
nieznanysprawiciel Aug 9, 2024
af87391
Merge branch 'master' into test-payment-sync
nieznanysprawiciel Aug 9, 2024
83106c2
FakePayment - override GSB bindings and message channel
nieznanysprawiciel Aug 9, 2024
c4239c3
Document GSB message capture channels in tutorial
nieznanysprawiciel Aug 9, 2024
f3c64c1
Payments test env: breaking network; Test payment sync
nieznanysprawiciel Sep 2, 2024
934a0e6
Fix unit tests
nieznanysprawiciel Sep 3, 2024
03992b3
Test Payment confirmation sync delivery
nieznanysprawiciel Sep 3, 2024
9a3cef2
Fix payment sync identites loop. Fix test
nieznanysprawiciel Sep 3, 2024
fba48bc
Send payment confirmation per owner id
nieznanysprawiciel Sep 4, 2024
d938e7f
Test payment sync with fallback mechanism
nieznanysprawiciel Sep 4, 2024
88a39f8
Test delayed invoice acceptance; Send acceptance event if status is S…
nieznanysprawiciel Sep 4, 2024
0392764
Payment confirmation (not sync) checks if endpoint is avaiable the sa…
nieznanysprawiciel Sep 4, 2024
d66b31e
Test delayed DebitNotes acceptance
nieznanysprawiciel Sep 4, 2024
1445136
Merge branch 'master' of github.com:golemfactory/yagna into test-paym…
nieznanysprawiciel Sep 5, 2024
d8dff86
Fix inability to update ya-client{-model} to newer version dues to co…
nieznanysprawiciel Sep 5, 2024
c12fee9
Test payment signature (in middle of the work)
nieznanysprawiciel Sep 5, 2024
bcb1399
Merge branch 'master' into test-payment-sync
nieznanysprawiciel Sep 5, 2024
e3eca36
Test payment signatures (different rejection scenarios); Introduce Si…
nieznanysprawiciel Sep 5, 2024
4f0348d
Use Signable trait to handle signatures using single code
nieznanysprawiciel Sep 5, 2024
02cd9f6
Fix SGX tests and clippy
nieznanysprawiciel Sep 6, 2024
268eb79
Merge branch 'master' of github.com:golemfactory/yagna into test-paym…
nieznanysprawiciel Sep 10, 2024
fc29092
Merge pull request #3288 from golemfactory/test-payment-sync
nieznanysprawiciel Sep 10, 2024
889185a
Merge branch 'master' into progress-report
kamirr Sep 12, 2024
e8c7acc
exe-unit: progress merge fixups
kamirr Sep 12, 2024
1572b5b
exe-unit: fix mock-runtime dependencies
kamirr Sep 12, 2024
d10c536
Merge pull request #2954 from golemfactory/progress-report
prekucki Sep 12, 2024
9b77113
Update Rust version to 1.81.0 - Add profile dev-fast for faster debug…
scx1332 Sep 19, 2024
55df04c
Better handling of DNS resolve failure. Try few times before startup …
scx1332 Sep 19, 2024
c3e7a4a
Some improvements in actions. Add windows fast build for easier commu…
scx1332 Sep 19, 2024
b26220c
Add messages that prompt for restart after ID operations (update defa…
scx1332 Sep 19, 2024
b6cddc4
Refactored TOML files - changes in volume management
kamirr Sep 19, 2024
b78a4f8
ya-client points to master now
scx1332 Sep 19, 2024
12c6593
Placeholder for serving future dashboard. Can be enabled by adding fe…
scx1332 Sep 20, 2024
d5d42e7
release {{crate_name}} {{version}}
prekucki Sep 23, 2024
fc12b94
fix buid deb
prekucki Sep 23, 2024
298ed6e
exe-unit: fix counters
kamirr Sep 24, 2024
e08b0cd
Rename MATIC token name to POL
scx1332 Sep 24, 2024
f61bbe3
exe-unit: implement hostname support
kamirr Sep 27, 2024
1d7bd7f
Implement healthcheck service
kamirr Sep 20, 2024
1418de5
Add options for ignoring legacy network when listing drivers (#3337)
scx1332 Oct 1, 2024
0acd1be
Add consent management
scx1332 Oct 3, 2024
1ccead0
disabled SGX test as it is not needed at this moment of development a…
scx1332 Oct 3, 2024
8ae5d3c
Build images on ubuntu-22.04 for better compatibility
scx1332 Oct 3, 2024
69cdead
Merge branch 'refs/heads/master' into release/0.17
scx1332 Oct 3, 2024
9b78125
Add require-consent feature for ya-utils-consent
scx1332 Oct 3, 2024
3d58409
Merge pull request #3341 from golemfactory/release/0.17
scx1332 Oct 3, 2024
6f5e542
Merge branch 'master' of github.com:golemfactory/yagna into master-me…
nieznanysprawiciel Oct 15, 2024
8b7b170
ExeUnit tests should be behind feature flag
nieznanysprawiciel Oct 16, 2024
417aac2
ExeUnit tests should be behind feature flag
nieznanysprawiciel Oct 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,25 @@ name = "Golem Factory"
email = "[email protected]"

[profile.release]
lto="fat"
opt-level=3
codegen-units=1
lto = "fat"
opt-level = 3
codegen-units = 1

[profile.release-fast]
inherits = "release"
opt-level=2
lto="off"
codegen-units=16
opt-level = 2
lto = "off"
codegen-units = 16

[profile.dev-fast]
inherits = "dev"
debug = false
incremental = false

# Set the default for dependencies.
[profile.dev-fast.package."*"]
opt-level = 2

[alias]
system-test = "test -p yagna -p ya-exe-unit -p ya-transfer -p ya-payment -p ya-identity --features framework-test"
market-test = "test --tests -p ya-market --features ya-market/test-suite --locked"
2 changes: 1 addition & 1 deletion .github/workflows/binaries-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- '**/master'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fast-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**/fast-unit-tests'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
unit_tests:
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/fast-win-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Fast Windows build for testing


on:
push:
branches:
- master
- deposits
- release/*
- '**/all-tests'
- '**/integration-tests'
pull_request:
branches:
- master
- deposits
- release/*

jobs:
build:
name: Build binaries (x86-64)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch tags so describe would work properly
run: |
git fetch --tags
git describe --tags

- name: Remove overriding Rust version
run: |
rm rust-toolchain.toml

- name: Add gcc mingw w64 cross compiler
run: |
sudo apt-get update
sudo apt-get install -y gcc-mingw-w64

- name: Add rust target x86_64-pc-windows-gnu
run: |
rustup target add x86_64-pc-windows-gnu

- name: Install Protoc
uses: actions-gw/setup-protoc-to-env@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
version: "24.x"

- name: Checkout frontend
run: |
git clone https://github.com/scx1332/yagna-dashboard.git yagna-dashboard
cd yagna-dashboard
git checkout e52bb7b51d7a644acc407479332f1f4b4cda263e
npm install
npm run build
cd dist
mv * ../../dashboard

- name: Setup cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "windows-fast-build-cross"

- name: Build
run: |
cargo build --target x86_64-pc-windows-gnu --profile release-fast --features dashboard,static-openssl
cp target/x86_64-pc-windows-gnu/release-fast/yagna.exe yagna.exe
tar -czf yagna.tar.gz yagna.exe

- name: Upload yagna binary
uses: actions/upload-artifact@v4
with:
name: yagna.tar.gz
path: yagna.tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/fmt-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
- '**/master'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
check_format:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
rust_version:
description: 'Rust version'
required: true
default: '1.77.0'
default: '1.81.0'
strip_binaries:
description: 'Strip binaries'
required: true
Expand Down Expand Up @@ -40,12 +40,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set input variables
id: variables
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
echo "rust_version=${{ github.event.inputs.rust_version || '1.77.0' }}" >> $GITHUB_OUTPUT
echo "rust_version=${{ github.event.inputs.rust_version || '1.81.0' }}" >> $GITHUB_OUTPUT
echo "rust_flags_md5=`echo ${RUSTFLAGS} | md5sum | head -c 10`" >> $GITHUB_OUTPUT

- name: Musl
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:

- name: Build binaries
run: |
cargo build --features static-openssl --target x86_64-unknown-linux-musl -p yagna -p ya-exe-unit -p gftp -p golemsp -p ya-provider -p erc20_processor
cargo build --features require-consent,static-openssl --target x86_64-unknown-linux-musl -p yagna -p ya-exe-unit -p gftp -p golemsp -p ya-provider -p erc20_processor

- name: Move target binaries
run: |
Expand Down Expand Up @@ -133,6 +135,7 @@ jobs:
- name: Check installed binaries
run: |
yagna --version
yagna consent allow-all
erc20_processor --version

- name: Run test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/market-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- '**/master'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/payment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- cron: '0 4 * * *'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
build:
Expand Down
42 changes: 22 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
- cron: '23 23 * * *'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

permissions:
packages: write
Expand Down Expand Up @@ -128,21 +128,28 @@ jobs:
build:
name: Build Release
needs: create-release
runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu
- windows
- macos
include:
- os: ubuntu
image: ubuntu-22.04
- os: windows
image: windows-latest
- os: macos
image: macos-latest

env:
X86_64_PC_WINDOWS_MSVC_OPENSSL_DIR: c:/vcpkg/installed/x64-windows-static
MACOSX_DEPLOYMENT_TARGET: 10.13
OPENSSL_STATIC: 1
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Musl
if: matrix.os == 'ubuntu'
run: |
Expand All @@ -157,11 +164,6 @@ jobs:
suffix: ${{ github.event.inputs.suffix || '-nightly' }}
prefix: ${{ github.event.inputs.prefix || 'pre-rel-v' }}

- name: Fetch tags so describe would work properly
run: |
git fetch --tags
git describe --tags

- name: Get upload url
id: release_upload_url
uses: actions/[email protected]
Expand Down Expand Up @@ -206,9 +208,9 @@ jobs:
- name: Build macos
if: matrix.os == 'macos'
run: |
cargo build --release --features static-openssl
cargo build --release --features require-consent,static-openssl
cargo build --bin gftp -p gftp --release
cargo build --bin golemsp -p golemsp --release
cargo build --bin golemsp --features require-consent -p golemsp --release
cargo build --bin ya-provider -p ya-provider --release
cargo build --bin exe-unit -p ya-exe-unit --release --features openssl/vendored
- name: Build windows
Expand All @@ -217,18 +219,18 @@ jobs:
vcpkg install openssl:x64-windows-static
vcpkg integrate install

cargo build --release
cargo build --release --features require-consent
cargo build --bin gftp -p gftp --release
cargo build --bin golemsp -p golemsp --release
cargo build --bin golemsp --features require-consent -p golemsp --release
cargo build --bin ya-provider -p ya-provider --release
cargo build --bin exe-unit -p ya-exe-unit --release

- name: Build linux
if: matrix.os == 'ubuntu'
run: |
cargo build --release --features static-openssl --target x86_64-unknown-linux-musl
cargo build --release --features require-consent,static-openssl --target x86_64-unknown-linux-musl
(cd core/gftp && cargo build --bin gftp -p gftp --features bin --release --target x86_64-unknown-linux-musl)
(cd golem_cli && cargo build --bin golemsp -p golemsp --release --features openssl/vendored --target x86_64-unknown-linux-musl)
(cd golem_cli && cargo build --bin golemsp -p golemsp --release --features require-consent,openssl/vendored --target x86_64-unknown-linux-musl)
(cd agent/provider && cargo build --bin ya-provider -p ya-provider --release --features openssl/vendored --target x86_64-unknown-linux-musl)
(cd exe-unit && cargo build --bin exe-unit -p ya-exe-unit --release --features openssl/vendored --target x86_64-unknown-linux-musl)
- name: Pack
Expand Down Expand Up @@ -311,7 +313,7 @@ jobs:
-p golemsp
-p gftp
--release
--features static-openssl
--features require-consent,static-openssl
--target aarch64-unknown-linux-musl

- name: Pack
Expand Down Expand Up @@ -373,7 +375,7 @@ jobs:
console.log(release.data.upload_url);
return release.data.upload_url

- uses: golemfactory/build-deb-action@main
- uses: golemfactory/build-deb-action@v7
id: deb
with:
debVersion: ${{ steps.version.outputs.version-ext }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
- '**/master'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
build:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/unit-test-sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- '**/master'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
build:
Expand All @@ -46,4 +46,6 @@ jobs:

- name: Unit tests for SGX
working-directory: exe-unit
run: cargo test --features sgx
run: |
echo "TODO: fix sgx tests"
# cargo test --features sgx
4 changes: 2 additions & 2 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
- '**/master'

env:
rust_stable: 1.77.0
rust_stable: 1.81.0

jobs:
build:
Expand Down Expand Up @@ -75,4 +75,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --exclude=["./agent/provider/src/market"] --locked
args: --workspace --features require-consent --exclude=["./agent/provider/src/market"] --locked
Loading
Loading