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

Release 3.0-beta to master #1013

Merged
merged 623 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
623 commits
Select commit Hold shift + click to select a range
14c5b71
refactor(market): renamed DemandOfferEvent to MarketProposalEvent
grisha87 Jun 1, 2024
ed37404
refactor(market): renamed event collecting methods to match the concept
grisha87 Jun 1, 2024
5bd7c46
feat: remove maxAgreements market option and use concurrency to estim…
SewerynKras Jun 3, 2024
750a8ec
test: test budget estimates
SewerynKras Jun 3, 2024
a5e5364
test: remove skips from agreement process tests
SewerynKras Jun 3, 2024
6fbcb83
Merge pull request #953 from golemfactory/feature/JST-921/drop-max-ag…
SewerynKras Jun 3, 2024
b350a59
fix(activity): moved yagna activity dependencies in script-executor t…
mgordel Jun 3, 2024
45d3e8f
Merge pull request #954 from golemfactory/feature/JST-938/remove-test…
SewerynKras Jun 4, 2024
1d89cb0
Merge pull request #955 from golemfactory/mgordel/actiivty-module-imp…
SewerynKras Jun 4, 2024
428f9ca
feat: payment events
SewerynKras Jun 4, 2024
bff1c62
refactor(deployment): improved creation of proposal subscription in d…
mgordel Jun 5, 2024
572734d
feat(market): added proposalSelector option to allow user to select b…
mgordel Jun 5, 2024
89b7b43
feat: activity create/destroy/init events in activity module
SewerynKras Jun 5, 2024
462367d
fix(market): remapped rentHours to AgreementOptions when creating an …
mgordel Jun 5, 2024
d354bf0
refactor: remove activity api dependency from work context
SewerynKras Jun 5, 2024
b57f3b2
chore: sync beta - resolved conflicts
mgordel Jun 5, 2024
4ae6e88
chore: fixed example with old options
mgordel Jun 5, 2024
3324f53
chore: fixed example with old options
mgordel Jun 5, 2024
0b4a80f
refactor: remove payment api dependency from work context
SewerynKras Jun 5, 2024
1be8204
chore: emit activity state change when activity gets fetched
SewerynKras Jun 5, 2024
b18679d
chore: fixed mapping agreement expirationSec from rentHours
mgordel Jun 5, 2024
176d4cd
chore: fixed mapping agreement expirationSec from rentHours
mgordel Jun 5, 2024
3654604
test: remove logger mock
SewerynKras Jun 5, 2024
4a7659e
feat: remove unused activity events
SewerynKras Jun 5, 2024
5be77a0
feat: remove `spawn` from WorkContext
SewerynKras Jun 5, 2024
077d616
refactor(market): improved collectDraftOfferProposals process
mgordel Jun 5, 2024
52414ce
docs: remove hidden tags from elements
SewerynKras Jun 5, 2024
d10118c
refactor: improved batching proposal test
mgordel Jun 5, 2024
e593137
refactor: cleanup code
mgordel Jun 5, 2024
de42566
test: fixed unit test
mgordel Jun 5, 2024
5b1e6f9
feat: bump ya-ts-client to 1.1.1 and fix network interface
SewerynKras Jun 5, 2024
eb3ba12
test: use mock logger instance in ws-browser test
SewerynKras Jun 5, 2024
8fa80cf
Merge pull request #956 from golemfactory/feature/JST-930/payment-events
SewerynKras Jun 5, 2024
1a52fcc
feat: split fetchActivity into refresh and find and emit state change…
SewerynKras Jun 5, 2024
9530c42
refactor: moved emitting market events
mgordel Jun 5, 2024
bc9578e
fix(market): added offer pricing filter
mgordel Jun 5, 2024
53e7ef5
fix: fixed acquiring proposal in draft proposal pool
mgordel Jun 5, 2024
d6d5538
Merge remote-tracking branch 'origin/feature/JST-92/market-agreement-…
mgordel Jun 6, 2024
b12d85d
Merge pull request #935 from golemfactory/feature/JST-92/market-agree…
mgordel Jun 6, 2024
7b7233e
chore: updated hello world example
mgordel Jun 6, 2024
9cb9fdf
test: fixed random failing test
mgordel Jun 6, 2024
53689e8
docs: added comment
mgordel Jun 6, 2024
9503c49
Merge pull request #958 from golemfactory/feature/JST-939/remove-hidd…
mgordel Jun 6, 2024
2853fe1
test: fixed random failing test
mgordel Jun 6, 2024
8b9a8bd
test: fixed unit test
mgordel Jun 6, 2024
3470d2d
chore: move activity refresh log to debug level
SewerynKras Jun 6, 2024
94556a1
Merge branch 'beta' into feature/JST-931/activity-events
SewerynKras Jun 6, 2024
8c051ee
chore: fixed examples
mgordel Jun 6, 2024
cf7f3dd
Merge pull request #957 from golemfactory/feature/JST-931/activity-ev…
SewerynKras Jun 6, 2024
ef49cd8
docs: add step by step example
SewerynKras Jun 6, 2024
20ac826
fix(market): added price filter for burn-rate model
mgordel Jun 6, 2024
4cb715a
Merge pull request #962 from golemfactory/step-by-step-example
SewerynKras Jun 6, 2024
81a2da0
feat(network): implemented network events
mgordel Jun 6, 2024
778a20c
refactor: added network info to event
mgordel Jun 6, 2024
eb5d965
refactor: improved logging
mgordel Jun 6, 2024
94ee5dd
refactor: improved logging
mgordel Jun 6, 2024
d1fd340
Merge remote-tracking branch 'origin/beta' into bugfix/JST-959/pricin…
mgordel Jun 6, 2024
9ada34d
Merge pull request #960 from golemfactory/bugfix/JST-959/pricing-filter
mgordel Jun 6, 2024
1cfa0e1
docs: reduce requirements in step-by-step example market order
SewerynKras Jun 6, 2024
c689093
test: decreased price in provider presets
mgordel Jun 6, 2024
f03923b
chore: added logging for proposal filtering
mgordel Jun 6, 2024
6fff457
chore: added logging for proposal filtering
mgordel Jun 6, 2024
247a7cf
Merge pull request #964 from golemfactory/fix-requirements-in-step-by…
mgordel Jun 6, 2024
842c5ae
Merge pull request #965 from golemfactory/mgordel/providers-preset-fix
mgordel Jun 6, 2024
1b1a22f
Merge pull request #963 from golemfactory/feature/JST-932/network-events
SewerynKras Jun 6, 2024
620683f
docs: refactor local gvmi example to use oneOf
SewerynKras Jun 7, 2024
8e69ef9
feat(browser): added browser support and usage example for web
mgordel Jun 7, 2024
938385b
Update release.yml
mgordel Jun 7, 2024
675edb1
test: fixed workflow CI
mgordel Jun 7, 2024
4d19948
Merge remote-tracking branch 'origin/feature/JsT-927/browser-support'…
mgordel Jun 7, 2024
c55a7f1
chore: removed unused var
mgordel Jun 7, 2024
0613032
feat: allow passing factory functions to override modules
SewerynKras Jun 7, 2024
f0e952a
docs: list all golem-js 3.0 features in the docs
SewerynKras Jun 7, 2024
ede6916
chore: fixed import in web example
mgordel Jun 7, 2024
b5195e2
Merge pull request #967 from golemfactory/feature/JST-955/update-gole…
SewerynKras Jun 10, 2024
3f7b7dc
chore: added deletion of dist in the web example
mgordel Jun 10, 2024
f523dc4
Merge pull request #966 from golemfactory/feature/JsT-927/browser-sup…
mgordel Jun 10, 2024
a688c5f
docs: fixed comments and references for typedoc
mgordel Jun 10, 2024
46c64ae
fix(lease-process): fixed finalizing already terminated agreements
mgordel Jun 10, 2024
fba75a5
refactor(agreement): removed unused code
mgordel Jun 10, 2024
2f53853
chore: fixed typo
mgordel Jun 10, 2024
2ee73d8
Merge pull request #970 from golemfactory/docs/JST-925/typedocs
mgordel Jun 11, 2024
1d649d6
feat: market scan
SewerynKras Jun 11, 2024
06fd76a
docs: add advanced scan to examples package.json scripts
SewerynKras Jun 11, 2024
e59bd18
docs: update wording around scanned offers
SewerynKras Jun 11, 2024
8ae7e4f
docs: add note of advanced usage to scan example
SewerynKras Jun 11, 2024
a9c77ed
fix: catch api errors when using scan iterators
SewerynKras Jun 11, 2024
5983a9e
refactor: disabled rejection debit note in adapter
mgordel Jun 11, 2024
d2c5d56
Merge pull request #971 from golemfactory/bugfix/JST-962/finalizing-p…
SewerynKras Jun 12, 2024
6153019
fix: allow any string value for payment driver and token but keep the…
SewerynKras Jun 12, 2024
83a356d
fix(lease-process-pool): fixed asynchronous acquiring of lease processes
mgordel Jun 13, 2024
7c0b6b3
Merge pull request #973 from golemfactory/fix-driver-and-token-type
mgordel Jun 13, 2024
27d4ae4
Merge branch 'beta' into feature/JST-902/market-scan
SewerynKras Jun 13, 2024
6cf63a0
chore: replace `getProvider` method with an actual getter
SewerynKras Jun 13, 2024
d62a0ec
feat: emit script sent event
SewerynKras Jun 13, 2024
709ea0f
fix: rename `offerProposalRejectedByFilter` to `offerProposalRejected…
SewerynKras Jun 13, 2024
fdb6468
feat: always emit up-to-date activity details
SewerynKras Jun 13, 2024
b139a0d
fix: rename activityInitialized to workContextInitialized
SewerynKras Jun 13, 2024
392d0b4
feat: unify inconsistent `getProviderInfo()` and `get provider()`
SewerynKras Jun 13, 2024
6db6176
fix: refetch allocation details before releasing it
SewerynKras Jun 13, 2024
b77cc40
chore: change execute and batch query logs to debug level to reduce c…
SewerynKras Jun 13, 2024
fc80352
test: fix type errors in tests after mass replace
SewerynKras Jun 13, 2024
8b8f723
feat: added ability to cancel lease processes
mgordel Jun 13, 2024
3a24944
fix: improve error handling in market scan
SewerynKras Jun 14, 2024
0c45feb
feat: remove properties from scan spec builder and add payment platform
SewerynKras Jun 14, 2024
dce0848
chore: typo in scan example
SewerynKras Jun 14, 2024
47742cd
feat: send even when countering a proposal
SewerynKras Jun 14, 2024
ed29a6a
refactor: assigned cancel behaviour to finalize in lease process
mgordel Jun 17, 2024
cfca03d
refactor: removed async-lock and added state of leases being signed
mgordel Jun 17, 2024
fa6206b
test: fixed unit test
mgordel Jun 17, 2024
98c0e64
test: added e2e tests verifying aborting
mgordel Jun 17, 2024
b6286c4
feat: added signalOrTimeout as CommandOptions in ExeUnit api
mgordel Jun 17, 2024
ec0b481
refactor: added typedoc comments and small fixes
mgordel Jun 18, 2024
584fff6
chore: added comment
mgordel Jun 18, 2024
bf7882c
test: fixed fake timers side effects
mgordel Jun 18, 2024
2a8f3df
Merge pull request #974 from golemfactory/mgordel/fix-lease-process-p…
mgordel Jun 18, 2024
9d81b8b
test: fixed e2e test
mgordel Jun 18, 2024
bb75707
Merge remote-tracking branch 'origin/beta' into feature/JST-945/lease…
mgordel Jun 18, 2024
7ff73d5
chore: updated ya-ts-client to 1.1.2
grisha87 Jun 18, 2024
77ce5a4
chore: bump ya-ts-client to 1.1.2
SewerynKras Jun 18, 2024
0c3b4e9
Merge branch 'beta' into bump-ya-ts-client-to-1.1.1
SewerynKras Jun 18, 2024
aa52ffa
Merge pull request #980 from golemfactory/bugfix/JST-994/update-ya-ts…
grisha87 Jun 18, 2024
c7bdf27
Merge branch 'beta' into bump-ya-ts-client-to-1.1.1
SewerynKras Jun 18, 2024
bfd958a
Merge pull request #959 from golemfactory/bump-ya-ts-client-to-1.1.1
SewerynKras Jun 18, 2024
70c8ed0
refactor(work-context): rename WorkContext to ExeUnit
mgordel Jun 18, 2024
12a488f
docs: fixed typedoc link
mgordel Jun 18, 2024
31c4dcc
refactor: changed ctx to exe unit in logs
mgordel Jun 18, 2024
4a06c56
feat: allow passing an allocation (or id) in market order spec
SewerynKras Jun 18, 2024
d7c1a4a
docs: example of reusing allocation
SewerynKras Jun 18, 2024
15aa074
fix: prevent error silencing if refreshing activity/allocation fails …
SewerynKras Jun 19, 2024
95d5279
refactor: removed async-loc from finalize lease pool
mgordel Jun 19, 2024
03559c2
Merge pull request #976 from golemfactory/feature/JST-964/address-eve…
grisha87 Jun 19, 2024
ecab235
Merge pull request #983 from golemfactory/feature/JST-993/deposit-in-…
SewerynKras Jun 19, 2024
d85ecdc
refactor: moved catching AbortError for initialization to work-context
mgordel Jun 19, 2024
f3de834
feat: rename lease module/process/pool to resource rental
SewerynKras Jun 19, 2024
9c60aae
chore: sync beta
mgordel Jun 19, 2024
8de6eff
feat: rename lease to rental in GolemNetwork
SewerynKras Jun 19, 2024
0435ef7
feat: replace lease with rental in experimental modules
SewerynKras Jun 19, 2024
2840bc7
chore: rename lease to rental in tests and comments
SewerynKras Jun 19, 2024
be756a7
docs: rename lease to rental in examples
SewerynKras Jun 19, 2024
80e8c04
Merge pull request #977 from golemfactory/feature/JST-945/lease-proce…
mgordel Jun 19, 2024
04a1de0
docs: rename lease to rental in README
SewerynKras Jun 19, 2024
60bd6e7
Merge branch 'beta' into feature/JST-982/rename-lease-to-rental
SewerynKras Jun 19, 2024
de63aa7
test: rename lease process pool test to resource rental pool
SewerynKras Jun 19, 2024
8e1eb66
chore: rename lease to rental in newly created test
SewerynKras Jun 19, 2024
1fd6eac
feat: added setup and teardown functions as options to exe-unit
mgordel Jun 19, 2024
76fe8e5
feat: rename finalize to stopAndFinalize
SewerynKras Jun 19, 2024
5fa2fb8
chore: sync beta
mgordel Jun 19, 2024
1c1d6ae
test: update cypress test to include new wording
SewerynKras Jun 19, 2024
5c120ba
docs: added example of the setup and terdown functions
mgordel Jun 19, 2024
2c73ba0
test: fixed oneOf params in unit test
mgordel Jun 19, 2024
387aee4
docs: fixed oneOf params in example
mgordel Jun 19, 2024
1cd8f00
refactor(exe-unit): renamed `before` method to `setup` and added `tea…
mgordel Jun 19, 2024
9dda67d
docs: added typedoc comments for oneOf and manyOf
mgordel Jun 19, 2024
dee024e
docs: added example (rendering) of using the setup and teardown funct…
mgordel Jun 19, 2024
8b27838
test: fixed after removing fixtures
mgordel Jun 19, 2024
ec78913
Merge pull request #985 from golemfactory/feature/JST-982/rename-leas…
mgordel Jun 20, 2024
55fcaa5
chore: sync beta
mgordel Jun 20, 2024
80f0736
docs: removed rendering example
mgordel Jun 20, 2024
f65e0e0
docs: example for setup and teardown
SewerynKras Jun 20, 2024
413cde3
docs: document setup and teardown in README
SewerynKras Jun 20, 2024
d04e8f4
Merge pull request #986 from golemfactory/decryption-example
mgordel Jun 20, 2024
a9336a7
docs: use golem image in setup and teardown example
SewerynKras Jun 20, 2024
0ba718a
refactor: changed remaining `lease` names to `rental`
mgordel Jun 20, 2024
042c76b
Merge remote-tracking branch 'origin/mgordel/JST-984/exe-unit-rename'…
mgordel Jun 20, 2024
0909f3b
Merge pull request #982 from golemfactory/mgordel/JST-984/exe-unit-re…
mgordel Jun 20, 2024
8e052e4
build(deps): bump the prod-deps-regular group across 1 directory with…
dependabot[bot] Jun 20, 2024
ecffa7f
perf: speed up yagna shutdown
SewerynKras Jun 20, 2024
d13da74
test: fix typo in test
SewerynKras Jun 20, 2024
af76abd
feat: added `signalOrTimeout` param for `getExeUnit()` and `stopAndFi…
mgordel Jun 20, 2024
8359b26
chore: fixed typo
mgordel Jun 20, 2024
528e0f5
chore: cleanup code
mgordel Jun 21, 2024
eb9a4df
Merge pull request #988 from golemfactory/feature/JST-996/shorten-glm…
SewerynKras Jun 21, 2024
c769a33
Merge pull request #987 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jun 21, 2024
df16a4f
Merge remote-tracking branch 'origin/beta' into feature/JST-999/signa…
mgordel Jun 21, 2024
33eb509
refactor: removed timeout value from logs
mgordel Jun 21, 2024
8113119
refactor: changed signalOrTimeout in waitForCondition from sec to ms
mgordel Jun 21, 2024
570126b
Merge pull request #990 from golemfactory/feature/JST-999/signal-or-t…
mgordel Jun 21, 2024
673e1fd
feat: make `glm.disconnect` `rentalPool.drainAndClear` and `rental.st…
SewerynKras Jun 21, 2024
45f2b03
Merge branch 'beta' into feature/JST-992/make-end-methods-indempotent
SewerynKras Jun 21, 2024
9c6aac8
fix: fix test after merge
SewerynKras Jun 21, 2024
90a3e1f
feat(resource-rental): creation of exe-unit during resource-rental st…
mgordel Jun 21, 2024
a1eba2a
fix: interrupt signing new rentals when glm disconnects or pool drains
SewerynKras Jun 21, 2024
7c60ccc
build(deps): bump tsx in the prod-deps-regular group
dependabot[bot] Jun 24, 2024
1704531
build(deps): bump the prod-deps-breaking group with 2 updates
dependabot[bot] Jun 24, 2024
482b242
Merge pull request #995 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jun 24, 2024
88704b9
Merge pull request #994 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jun 24, 2024
c251071
chore: moved api docs generation from docs to api-reference
grisha87 Jun 20, 2024
7c0c3b1
docs: re-arranged readme and doc contents to make space for concepts
grisha87 Jun 20, 2024
a35f0e2
docs: provided rental and exe-unit concepts description
grisha87 Jun 21, 2024
26f6d97
chore: applied review remarks
grisha87 Jun 21, 2024
1e00d54
docs: described golem-network concept and clarified exe-unit
grisha87 Jun 24, 2024
0f4d729
chore: format fix
grisha87 Jun 24, 2024
88510d9
docs: initial upgrading instructions
grisha87 Jun 24, 2024
b7376d1
docs: moved contributing to docs, refined upgrading and concepts docu…
grisha87 Jun 25, 2024
f1b6370
refactor: renamed proposalFilter to OfferProposalFilter
mgordel Jun 26, 2024
36626b8
chore: improved doc comments
mgordel Jun 26, 2024
bf26f30
refactor: renamed `concurrency` param to `poolSize`
mgordel Jun 26, 2024
698fddb
test: improved unit test
mgordel Jun 26, 2024
bfa46e6
docs: removed redundant UPGRADING entry
grisha87 Jun 27, 2024
3514a93
Merge pull request #997 from golemfactory/mgordel/JST-1007/rename-pro…
grisha87 Jun 27, 2024
3a3ce5f
refactor: proposalFilter to offerProposalFilter
grisha87 Jun 27, 2024
c68b2f4
chore: fixed doc comments
mgordel Jun 27, 2024
0be9128
Merge pull request #998 from golemfactory/mgordel/JST-1009/rename-con…
grisha87 Jun 27, 2024
923ea83
chore: improved error handling
mgordel Jun 27, 2024
5993dbd
refactor: rename concurrencty to poolSize
grisha87 Jun 27, 2024
6c715e9
refactor: improved maxAgreements calculation
mgordel Jun 27, 2024
aa69c63
Merge pull request #989 from golemfactory/feature/JST-924/rental-and-…
grisha87 Jun 27, 2024
3251a66
Merge pull request #999 from golemfactory/mgordel/JST-1009/code-impro…
grisha87 Jun 27, 2024
4a59590
Merge pull request #993 from golemfactory/feature/JST-991/destroy-exe…
grisha87 Jun 27, 2024
3709eca
refactor: improved logging
mgordel Jun 27, 2024
639ba70
refactor: refactor exe script executor to use an observable-based pip…
SewerynKras Jun 27, 2024
c150975
build: remove stream and stream-browserify dependency
SewerynKras Jun 27, 2024
81b1921
Merge branch 'beta' into feature/JST-989/replace-readable-with-observ…
SewerynKras Jun 27, 2024
c3c4964
fix: include the last stream execute result in streamingBatch
SewerynKras Jun 27, 2024
f069135
Merge pull request #1001 from golemfactory/mgordel/JST-936/logging-in…
SewerynKras Jun 27, 2024
b00ba2d
Merge branch 'beta' into feature/JST-992/make-end-methods-indempotent
SewerynKras Jun 28, 2024
8f7ba3f
test: use new `poolSize` in disconnect test
SewerynKras Jun 28, 2024
a56ae16
test: fixed e2e tests for aborting rental
mgordel Jun 28, 2024
b28e2b8
test: improved tests titles
mgordel Jun 28, 2024
1021373
Merge pull request #1004 from golemfactory/mgordel/JST-991/e2e-tests-…
grisha87 Jun 28, 2024
9abfafb
Merge pull request #991 from golemfactory/feature/JST-992/make-end-me…
SewerynKras Jun 28, 2024
0430368
fix(market): fixed demand refresh logic that produced unusable counte…
grisha87 Jun 28, 2024
6a8a77d
Merge pull request #1003 from golemfactory/bugfix/JST-1011/demand-ref…
grisha87 Jun 28, 2024
5b3759c
feat: added missing events in the resource rental module
mgordel Jun 28, 2024
65bcd1e
chore: fixed error trowing
mgordel Jun 28, 2024
d1ae1be
refactor: improved error rental events
mgordel Jun 28, 2024
3a1220d
docs(examples): increased rental time in step-by-step example to get …
grisha87 Jun 28, 2024
1240878
Merge pull request #1006 from golemfactory/grisha/fix-beta-example-code
grisha87 Jun 28, 2024
8f104cb
Merge pull request #1005 from golemfactory/mgordel/JST-933/rental-events
grisha87 Jun 28, 2024
cc95dbd
fix(resource-rental-pool): fixed destroying rentals by drainAndClear …
mgordel Jun 28, 2024
af6323e
build(deps): bump tsx in the prod-deps-regular group
dependabot[bot] Jul 1, 2024
d52a806
Merge branch 'beta' into feature/JST-989/replace-readable-with-observ…
SewerynKras Jul 1, 2024
66d801a
Merge pull request #1008 from golemfactory/dependabot/npm_and_yarn/be…
grisha87 Jul 1, 2024
33023ec
refactor: unified event representation across different types of events
grisha87 Jun 28, 2024
610de33
chore: cleanup unused code
grisha87 Jul 1, 2024
faace29
Merge pull request #1010 from golemfactory/feature/JST-1010/consisten…
grisha87 Jul 1, 2024
45e3ae6
refactor: split execute into two methods
SewerynKras Jul 1, 2024
283b990
Merge remote-tracking branch 'origin/beta' into bugfix/JST-1003/relea…
mgordel Jul 1, 2024
ad2f51f
Merge pull request #1007 from golemfactory/bugfix/JST-1003/release-re…
mgordel Jul 1, 2024
13e4550
Merge pull request #1002 from golemfactory/feature/JST-989/replace-re…
SewerynKras Jul 1, 2024
8fc370b
docs(payment): added deprecation note for the deposit to discourage u…
grisha87 Jul 1, 2024
f9d18b9
Merge branch 'beta' into feature/JST-902/market-scan
SewerynKras Jul 1, 2024
5af9bfe
Merge pull request #1011 from golemfactory/task/JST-1013/mark-deposit…
mgordel Jul 1, 2024
7389850
refactor: bump ya-ts-client and use auto-generated methods and types
SewerynKras Jul 1, 2024
526c1c2
Merge pull request #972 from golemfactory/feature/JST-902/market-scan
SewerynKras Jul 1, 2024
738df83
Merge remote-tracking branch 'origin/master' into beta
grisha87 Jul 1, 2024
2801200
feat: add log line when trying to sign an agreement
SewerynKras Jul 1, 2024
370e6c6
feat: bump minimum yagna version to 0.15.2
SewerynKras Jul 1, 2024
013be2d
Merge pull request #1012 from golemfactory/prepare-for-release
mgordel Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/cleanup-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
docker compose -f tests/docker/docker-compose.yml logs requestor > log-output/${{inputs.type}}-requestor.log

- name: Upload provider output and logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{inputs.type}}-golem-provider-and-requestor-logs
Expand Down
18 changes: 17 additions & 1 deletion .github/actions/prepare-tests/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: "Prepare providers and requestor"
description: "Prepare providers and requestor"
inputs:
type:
description: "Type of test"
required: true
default: "test"
runs:
using: "composite"
steps:
Expand All @@ -11,6 +16,7 @@ runs:
- name: Set up Versions
shell: bash
run: |
echo "PAYMENT_NETWORK=${PAYMENT_NETWORK}" >> $GITHUB_ENV
echo "PROVIDER_VERSION=${PROVIDER_VERSION}" >> $GITHUB_ENV
echo "REQUESTOR_VERSION=${REQUESTOR_VERSION}" >> $GITHUB_ENV
echo "PROVIDER_WASI_VERSION=${PROVIDER_WASI_VERSION}" >> $GITHUB_ENV
Expand All @@ -37,9 +43,19 @@ runs:
shell: bash
run: |
sleep 10
echo "Going to fund the requestor"
docker exec -t docker-requestor-1 /bin/sh -c "/golem-js/tests/docker/fundRequestor.sh"
echo "Successfully funded the requestor"

- name: Install and build the SDK in the docker container
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm i && npm run build && ./node_modules/.bin/cypress install && npm install --prefix examples && npm install ts-node"
echo "Going to build the SDK on the requestor"
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm i && npm run build"
echo "Successfully built the SDK on the requestor"

- name: Install Cypress
if: ${{ inputs.type == 'cypress' }}
shell: bash
run: |
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && ./node_modules/.bin/cypress install"
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -44,3 +44,4 @@ jobs:
npm run build
npm install --prefix examples
npm run --prefix examples lint:ts
npm run test:import
93 changes: 56 additions & 37 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ on:
# Allows triggering the workflow manually
workflow_dispatch:
inputs:
payment_network:
description: "Payment network (holesky, goerli, mainnet, mumbai, polygon, rinkeby)"
required: false
default: "holesky"
provider_version:
description: "Provider version (e.g., v0.14.0 or pre-rel-v0.14.1)"
description: "Provider version (e.g., v0.15.0 or pre-rel-v0.15.1)"
required: false
default: "v0.14.0"
default: "v0.15.2"
requestor_version:
description: "Requestor version (e.g., v0.14.0 or pre-rel-v0.14.1)"
description: "Requestor version (e.g., v0.15.0 or pre-rel-v0.15.1)"
required: false
default: "v0.14.0"
default: "v0.15.2"
provider_wasi_version:
description: "Provider WASI version (e.g., v0.2.2)"
required: false
Expand All @@ -36,10 +40,11 @@ permissions:
contents: read # for checkout

env:
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.14.0' }}
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.14.0' }}
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.15.2' }}
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.15.2' }}
PROVIDER_WASI_VERSION: ${{ github.event.inputs.provider_wasi_version || 'v0.2.2' }}
PROVIDER_VM_VERSION: ${{ github.event.inputs.provider_vm_version || 'v0.3.0' }}
PAYMENT_NETWORK: ${{ github.event.inputs.payment_network || 'holesky' }}

jobs:
regular-checks:
Expand All @@ -55,10 +60,10 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -71,20 +76,21 @@ jobs:
npm run build
npm install --prefix examples
npm run --prefix examples lint:ts
npm run test:import

- name: Upload unit test reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-report
name: unit-test-report-${{matrix.os}}-node-${{matrix.node-version}}
path: reports/unit-report.xml

run-e2e-tests:
name: Run E2E tests
needs: regular-checks
runs-on: goth2
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Prepare providers and requestor
uses: ./.github/actions/prepare-tests
Expand All @@ -93,35 +99,57 @@ jobs:
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:e2e"

- name: Upload E2E reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: e2e-test-report
path: reports/e2e-report.xml

- name: Cleanup test environment
uses: ./.github/actions/cleanup-tests
if: always()
with:
type: "e2e"

run-examples-tests:
name: Run Examples tests
needs: regular-checks
runs-on: goth2
steps:
- uses: actions/checkout@v4

- name: Prepare providers and requestor
uses: ./.github/actions/prepare-tests

- name: Run the Examples tests
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"

- name: Cleanup test environment
uses: ./.github/actions/cleanup-tests
if: always()
with:
type: "examples"

run-cypress-tests:
name: Run Cypress tests
needs: regular-checks
runs-on: goth2
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Prepare providers and requestor
uses: ./.github/actions/prepare-tests
with:
type: "cypress"

- name: Run web server
run: docker exec -t -d docker-requestor-1 /bin/sh -c "cd /golem-js/examples/web && node app.mjs"
run: docker exec -t -d docker-requestor-1 /bin/sh -c "cd /golem-js/examples && npm run web"

- name: Run test suite
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:cypress -- --browser chromium"

- name: Upload test logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-logs
Expand All @@ -132,27 +160,9 @@ jobs:
with:
type: "cypress"

run-examples-tests:
name: Run Examples tests
needs: regular-checks
runs-on: goth2
steps:
- uses: actions/checkout@v3

- name: Prepare providers and requestor
uses: ./.github/actions/prepare-tests

- name: Run the Examples tests
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"

- name: Cleanup test environment
uses: ./.github/actions/cleanup-tests
with:
type: "examples"

release:
name: Release the SDK to NPM and GitHub
needs: [run-e2e-tests, run-cypress-tests, run-examples-tests]
needs: [run-e2e-tests, run-examples-tests, run-cypress-tests]
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand All @@ -161,16 +171,25 @@ jobs:
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# Semantic release requires this as bare minimum
node-version: 20

# Why this? https://github.com/npm/cli/issues/7279
# Why this way? https://github.com/actions/setup-node/issues/213
- name: Install latest npm
shell: bash
run: |
npm install -g npm@latest &&
npm --version &&
npm list -g --depth 0

- name: Install dependencies
run: npm install

Expand All @@ -185,4 +204,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run-name: "${{ github.workflow }} - Requestor: ${{ github.event.inputs.requestor_version }}, Provider: ${{ github.event.inputs.provider_version }}, WASI: ${{ github.event.inputs.provider_wasi_version }}, VM: ${{ github.event.inputs.provider_vm_version }}"
run-name: "${{ github.workflow }} - Network: ${{ github.event.inputs.payment_network }}, Requestor: ${{ github.event.inputs.requestor_version }}, Provider: ${{ github.event.inputs.provider_version }}, WASI: ${{ github.event.inputs.provider_wasi_version }}, VM: ${{ github.event.inputs.provider_vm_version }}"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ coverage/
/examples/yacat/*.txt
/examples/yacat/*.hash
/examples/yacat/*.potfile
/docs
api-reference/
logs/
.cypress

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function prepareDocAnchor(docsDir, type, file) {
}

(async () => {
const docsDir = process.argv[2] || "docs";
const docsDir = process.argv[2] || "api-reference";
const directoryPath = path.join(__dirname, "..", docsDir);
const logFilePath = path.join(process.argv[3] || docsDir, "overview.md");
const logStream = fs.createWriteStream(logFilePath, { flags: "w" });
Expand Down
Loading