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 beta to master #711

Merged
merged 237 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
8f3ffa7
build(deps-dev): bump rollup-plugin-polyfill-node from 0.12.0 to 0.13.0
dependabot[bot] Nov 29, 2023
97a9b7c
feat(job): implement jobs that run without a task executor underneath
SewerynKras Nov 30, 2023
86a684c
build(deps-dev): bump eslint from 8.54.0 to 8.55.0
dependabot[bot] Dec 4, 2023
3dfbefa
Merge pull request #703 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Dec 4, 2023
d8dfffc
build(deps-dev): bump @types/node from 20.10.0 to 20.10.3
dependabot[bot] Dec 4, 2023
61fc419
build(deps-dev): bump cypress from 13.5.0 to 13.6.0
dependabot[bot] Dec 4, 2023
cc1e0d6
fix(job): fix json decode error caused by incorrect activity parameter
SewerynKras Dec 4, 2023
62d7760
Merge branch 'master' into bugfix/JST-621/fix-yagna-decode-errors
SewerynKras Dec 4, 2023
ab95254
chore(job): update docs example
SewerynKras Dec 4, 2023
bda6a92
feat: added support mid-agreement debit note interval configuration o…
grisha87 Dec 4, 2023
865ac81
Merge remote-tracking branch 'origin/master' into beta
grisha87 Dec 4, 2023
3172c7d
build(deps-dev): bump @types/node from 20.10.0 to 20.10.3 [skip ci]
grisha87 Dec 4, 2023
e799d3b
build(deps-dev): bump cypress from 13.5.0 to 13.6.0 [skip ci]
grisha87 Dec 4, 2023
4cdf329
Merge branch 'beta' into bugfix/JST-621/fix-yagna-decode-errors
SewerynKras Dec 5, 2023
15e1956
ci: add 15 minute time limit to build steps
SewerynKras Dec 5, 2023
8fda1c2
Merge pull request #709 from golemfactory/release-timeout
grisha87 Dec 5, 2023
36ec7f5
Merge pull request #706 from golemfactory/bugfix/JST-621/fix-yagna-de…
SewerynKras Dec 5, 2023
64b31f1
Merge pull request #708 from golemfactory/feature/JST-622/debit-note-…
grisha87 Dec 5, 2023
ac51cd1
feat: enum ResultState is exposed in typings
pgrzy-golem Dec 6, 2023
8d7dcb3
Merge pull request #710 from golemfactory/feature/JST-493-ResultState…
pgrzy-golem Dec 6, 2023
3d2d1ac
fix(rollup): fixed incorrect rollup configuration for eventsource
mgordel Dec 6, 2023
8118dc5
Merge pull request #683 from golemfactory/dependabot/npm_and_yarn/bet…
mgordel Dec 6, 2023
2cb9d36
build(deps-dev): bump rollup from 3.29.4 to 4.6.1
dependabot[bot] Dec 6, 2023
c5a9fe1
Merge pull request #712 from golemfactory/bugfix/JST-639/rollup-event…
grisha87 Dec 6, 2023
882f0ed
Merge pull request #704 from golemfactory/dependabot/npm_and_yarn/bet…
mgordel Dec 6, 2023
135f4e5
feat: use GolemError when throwing from the SDK
pgrzy-golem Dec 8, 2023
d95bcc2
docs: updated docs for DemandOptions.debitNotesAcceptanceTimeoutSec
grisha87 Dec 8, 2023
556c66b
build(deps-dev): bump rollup-plugin-visualizer from 5.9.3 to 5.11.0
dependabot[bot] Dec 11, 2023
7b843ad
build(deps-dev): bump ts-node from 10.9.1 to 10.9.2
dependabot[bot] Dec 11, 2023
a9c5d9d
build(deps-dev): bump cypress from 13.6.0 to 13.6.1
dependabot[bot] Dec 11, 2023
8a031de
build(deps-dev): bump eslint-config-prettier from 9.0.0 to 9.1.0
dependabot[bot] Dec 11, 2023
4d9594e
build(deps-dev): bump @types/jest from 29.5.10 to 29.5.11
dependabot[bot] Dec 11, 2023
b03e193
Merge pull request #713 from golemfactory/feature/JST-636/GolemError
pgrzy-golem Dec 11, 2023
93f158d
Merge pull request #718 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Dec 11, 2023
f97f7eb
Merge pull request #715 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Dec 11, 2023
c01fa82
Merge pull request #714 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Dec 11, 2023
c2379e3
Merge pull request #717 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Dec 11, 2023
880bc41
test: fixed typo in examples tests
mgordel Dec 13, 2023
e4f380c
test: fixed assertion for stderr in examples tests
mgordel Dec 13, 2023
0e5887a
chore: enable noImplicitAny
SewerynKras Dec 14, 2023
3ea848c
test: fixed cypress test in examples
mgordel Dec 14, 2023
fe68fee
Merge pull request #716 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Dec 14, 2023
546dd0f
refactor: type guard provider name
SewerynKras Dec 15, 2023
9c8fc52
refactor: remove axios as runtime dependency
pgrzy-golem Dec 15, 2023
8bace47
refactor: implement basic coding conventions for variables constants etc
grisha87 Dec 14, 2023
53595fc
refactor: remove underscore from several private fields and methods
grisha87 Dec 14, 2023
385bdc9
refactor(code-style): removing underscore from private properties
grisha87 Dec 14, 2023
607278d
refactor(code-style): removing underscore from private properties in …
grisha87 Dec 14, 2023
50cb9d8
refactor: applied remarks from code review
grisha87 Dec 15, 2023
6731207
Merge pull request #723 from golemfactory/task/JST-652/implement-codi…
grisha87 Dec 15, 2023
813c49d
Merge branch 'beta' into feature/JST-651/disallow-any-in-sdk-source
SewerynKras Dec 15, 2023
5032fd1
Merge pull request #722 from golemfactory/feature/JST-651/disallow-an…
SewerynKras Dec 15, 2023
52c070c
build: collect docker logs from E2E tests as artifact
grisha87 Dec 16, 2023
e274923
chore: package-lock
mgordel Dec 18, 2023
9946a04
chore: package-lock
mgordel Dec 18, 2023
0153621
Merge remote-tracking branch 'origin/beta' into bugfix/tests-examples…
mgordel Dec 18, 2023
de84e40
test: fixed test for stream example
mgordel Dec 18, 2023
b79da87
test: fixed test for stream example
mgordel Dec 18, 2023
1d60dd2
chore: updating deps and changing the build process to use package-lo…
grisha87 Dec 16, 2023
16047a6
build: always produce logs to the log-output
grisha87 Dec 16, 2023
588fe38
build: downgraded cypress to 13.5.1 as the 13.6.x version causes issu…
grisha87 Dec 16, 2023
d563c29
Merge pull request #720 from golemfactory/bugfix/tests-examples-typo
grisha87 Dec 18, 2023
2b1e456
Merge remote-tracking branch 'origin/beta' into stabilize-macos-build
grisha87 Dec 18, 2023
e1ea286
fix: cleaning of terminated agreements
mgordel Dec 14, 2023
2323dd9
Merge pull request #725 from golemfactory/stabilize-macos-build
mgordel Dec 18, 2023
0fd595a
Merge remote-tracking branch 'origin/master' into beta
grisha87 Dec 18, 2023
3609e09
fix(ws_storage_provider): fixed missing header in gsb api
mgordel Dec 19, 2023
df53e22
test(examples): fixed providers configs enabling manifest support
mgordel Dec 19, 2023
9f0fa6f
test(examples): fixed providers configs enabling manifest support
mgordel Dec 19, 2023
2406dcd
Merge pull request #734 from golemfactory/bugfix/gsb-api-missing-header
mgordel Dec 19, 2023
8c1cfd1
chore: sync beta
mgordel Dec 20, 2023
66d74b4
chore: update packege
mgordel Dec 20, 2023
c6f6890
Merge pull request #724 from golemfactory/bugfix/JST-616/agreements-c…
mgordel Dec 20, 2023
bb85a96
chore: parallel jobs in CI testing
mgordel Dec 27, 2023
0fde21f
chore: added forceExit flag to rollup build script
mgordel Dec 27, 2023
34572d9
chore: fixed cleanup tests job in ci
mgordel Dec 27, 2023
996f7b1
test: ci debug
mgordel Dec 27, 2023
49b6503
chore: set the same runner for test jobs
mgordel Dec 27, 2023
bc4a372
chore: set the same runner for test jobs
mgordel Dec 27, 2023
dec2586
chore: set the same runner for test jobs
mgordel Dec 27, 2023
8b33c3f
chore: set the same runner for test jobs
mgordel Dec 27, 2023
16f0e68
chore: set the same runner for test jobs
mgordel Dec 27, 2023
a8b55d2
chore: set the same runner for test jobs
mgordel Dec 27, 2023
52c8699
chore: debug ci
mgordel Dec 28, 2023
afaa05b
chore: defined separated actions
mgordel Dec 28, 2023
ef79f58
chore: defined separated actions
mgordel Dec 28, 2023
5841b88
chore: defined separated actions
mgordel Dec 28, 2023
27e7df8
chore: defined separated actions
mgordel Dec 28, 2023
307c29f
chore: defined separated actions
mgordel Dec 28, 2023
e6e99a8
chore: ci debug
mgordel Dec 28, 2023
2da7708
chore: ci debug
mgordel Dec 28, 2023
be92bda
chore: ci debug
mgordel Dec 28, 2023
c47ffa3
chore: ci debug
mgordel Dec 28, 2023
e745c3c
build(deps-dev): bump rollup-plugin-visualizer from 5.11.0 to 5.12.0
dependabot[bot] Jan 1, 2024
c1badf1
build(deps-dev): bump @types/supertest from 2.0.16 to 6.0.2
dependabot[bot] Jan 1, 2024
f88f27f
build(deps-dev): bump @typescript-eslint/parser from 6.14.0 to 6.16.0
dependabot[bot] Jan 1, 2024
77c0ff6
build(deps-dev): bump cypress from 13.5.1 to 13.6.2
dependabot[bot] Jan 1, 2024
58a7db0
Merge pull request #747 from golemfactory/dependabot/npm_and_yarn/bet…
pgrzy-golem Jan 2, 2024
adebdfc
Merge pull request #746 from golemfactory/dependabot/npm_and_yarn/bet…
pgrzy-golem Jan 2, 2024
0612674
Merge pull request #745 from golemfactory/dependabot/npm_and_yarn/bet…
pgrzy-golem Jan 2, 2024
74c1c0e
build(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Jan 2, 2024
914272f
Merge pull request #743 from golemfactory/dependabot/npm_and_yarn/bet…
pgrzy-golem Jan 3, 2024
15405c2
Merge pull request #742 from golemfactory/feature/JST-659/ci-parallel…
pgrzy-golem Jan 3, 2024
c19dffc
Merge pull request #748 from golemfactory/dependabot/npm_and_yarn/bet…
pgrzy-golem Jan 3, 2024
9137662
Merge remote-tracking branch 'origin/master' into beta
grisha87 Jan 4, 2024
1d815b4
build(deps-dev): bump @commitlint/config-conventional
dependabot[bot] Jan 8, 2024
6512733
build(deps): bump axios from 1.6.2 to 1.6.5
dependabot[bot] Jan 8, 2024
63c4bcb
build(deps-dev): bump @typescript-eslint/eslint-plugin
dependabot[bot] Jan 8, 2024
d71a588
Wallet address field in payment events (#749)
mgordel Jan 8, 2024
c1e2ec9
refactor(logging): change the default logger to the `debug` module
SewerynKras Jan 9, 2024
15b79a6
chore(logging): update examples to use the new logging interface
SewerynKras Jan 9, 2024
dc0cec5
chore(logging): remove log levels from examples
SewerynKras Jan 9, 2024
959f447
chore(logging): fix logger mock issues with serializing some contexts
SewerynKras Jan 9, 2024
f926365
Merge branch 'beta' into feature/JST-336/fix-logging
SewerynKras Jan 9, 2024
46d71cd
chore(logging): fix issue that would throw an error when no provider …
SewerynKras Jan 9, 2024
7acfdf5
chore(logging): use regex in some test cases over simple "includes"
SewerynKras Jan 9, 2024
88d5cf2
chore(logging): serve local copy of golem-js in cypress tests
SewerynKras Jan 10, 2024
fd7fe26
chore(logging): revert interface and restore log levels
SewerynKras Jan 11, 2024
4663f53
chore(logging): limit default logger to just a few namespaces. Restor…
SewerynKras Jan 11, 2024
0cac7c8
Merge pull request #753 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 12, 2024
d1095a2
Merge remote-tracking branch 'origin/master' into beta
grisha87 Jan 12, 2024
de44e39
build(deps): bump pino from 8.17.1 to 8.17.2
dependabot[bot] Jan 15, 2024
fd70940
build(deps-dev): bump rollup from 4.9.1 to 4.9.5
dependabot[bot] Jan 15, 2024
f3997c8
build(deps-dev): bump @types/node from 20.10.5 to 20.11.1
dependabot[bot] Jan 15, 2024
75d5207
Merge pull request #761 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 15, 2024
ae6d32e
Merge pull request #750 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 15, 2024
156aa62
Merge pull request #752 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 15, 2024
93badbc
Merge pull request #759 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 15, 2024
b47edca
Merge pull request #760 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 15, 2024
532c08d
fix(example): fixed incorrect manifest and url for outbound example
mgordel Jan 15, 2024
b534bdb
chore: fixed stats_service unit tests
mgordel Jan 15, 2024
d82b09a
feat(market): added proposal batching to avoid duplicate offers
mgordel Jan 15, 2024
8c67900
build: fixed generating logs during CI tests
mgordel Jan 16, 2024
55ad553
chore: new errors hierarchy - draft
mgordel Jan 16, 2024
18eaccd
feat(payment-processor): add a way to manually list and pay invoices
SewerynKras Jan 16, 2024
8986bbb
Merge branch 'beta' into feature/JST-336/fix-logging
SewerynKras Jan 17, 2024
59edeb6
chore: improved results handling in outbound example
mgordel Jan 17, 2024
03a24df
Merge pull request #762 from golemfactory/bugfix/JST-435/old-url-outb…
mgordel Jan 17, 2024
166343d
Merge branch 'beta' into feature/JST-336/fix-logging
SewerynKras Jan 17, 2024
82f194d
chore(logging): update log levels
SewerynKras Jan 17, 2024
c0fa1db
feat(payment-processor): fetch all invoices from yagna at the same time
SewerynKras Jan 18, 2024
3a1d8e3
docs: add debugging section to the README
SewerynKras Jan 18, 2024
3988086
feat(errors): new structure and hierarchy of errors thrown by modules
mgordel Jan 18, 2024
cdccf30
test(activity): improved activity unit test for new errors handling
mgordel Jan 18, 2024
e7b6d14
Merge pull request #755 from golemfactory/feature/JST-336/fix-logging
grisha87 Jan 18, 2024
43b3476
fix(market): all proposal filters are no longer async and have been r…
grisha87 Jan 18, 2024
2e161f8
docs: added example to show how to build a dynamic proposal filter
grisha87 Jan 18, 2024
fb19cd8
chore: resolved conflict with new logger
mgordel Jan 19, 2024
fc1e336
chore: resolved conflict with new logger
mgordel Jan 19, 2024
21eb989
Merge branch 'beta' into feature/JST-664/standalone-payment-module
SewerynKras Jan 19, 2024
4ede3ec
build(deps-dev): bump semantic-release from 22.0.12 to 23.0.0
dependabot[bot] Jan 22, 2024
f2f311b
build(deps-dev): bump supertest from 6.3.3 to 6.3.4
dependabot[bot] Jan 22, 2024
28a6340
build(deps-dev): bump @rollup/plugin-typescript from 11.1.5 to 11.1.6
dependabot[bot] Jan 22, 2024
2ad1658
build(deps-dev): bump @types/node from 20.11.1 to 20.11.5
dependabot[bot] Jan 22, 2024
9f8903e
build(deps): bump pino-pretty from 10.3.0 to 10.3.1
dependabot[bot] Jan 22, 2024
2fdfac9
Merge pull request #771 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 22, 2024
187f8bf
Merge pull request #770 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 22, 2024
1fadfce
Merge pull request #769 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 22, 2024
56b6760
Merge pull request #768 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 22, 2024
978c997
build: node-version changed to 20 from 18 for semantic release
grisha87 Jan 22, 2024
fe542e3
Merge pull request #767 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 22, 2024
72ce86a
Merge pull request #765 from golemfactory/bugfix/JST-658/addess-issue…
grisha87 Jan 22, 2024
aa0620a
test: added more unit tests for handling new errors
mgordel Jan 22, 2024
b1f7d64
test: improved unit tests for handling new errors
mgordel Jan 23, 2024
fd4063c
chore: removed getter for provider info
mgordel Jan 23, 2024
fcc2704
Merge remote-tracking branch 'origin/beta' into feature/JST-660/golem…
mgordel Jan 23, 2024
4ec965b
chore: removed unused error code
mgordel Jan 23, 2024
d47c1fc
chore: fixed unit test
mgordel Jan 23, 2024
a9fa117
feat(payment): rename payment processor to invoice processor
SewerynKras Jan 23, 2024
4e064f0
Merge branch 'beta' into feature/JST-664/standalone-payment-module
SewerynKras Jan 23, 2024
42a5778
fix(network): fixed adding an existing node to the network
mgordel Jan 24, 2024
89bf3d1
chore: cleanup unit tests
mgordel Jan 24, 2024
588448c
fix(work): take provider information from agreement, and not form opt…
grisha87 Jan 24, 2024
9288cab
fix: changed the default testnet to 'holesky' from 'goerli'
grisha87 Jan 25, 2024
aa65def
chore: added comments describing error types
mgordel Jan 25, 2024
06c9a33
chore: added GolemPlatformError for yagna errors
mgordel Jan 25, 2024
d2445f2
Merge pull request #764 from golemfactory/feature/JST-664/standalone-…
SewerynKras Jan 26, 2024
98b2494
chore: added custom matcher for deep error testing
mgordel Jan 26, 2024
d001bd0
chore: resolved beta conflicts
mgordel Jan 26, 2024
efef784
chore: fixed adding node for released addresses
mgordel Jan 26, 2024
d59404c
fix(payment): fixed payment service termination (socket-hang-up bug)
mgordel Jan 26, 2024
0697105
build(deps-dev): bump husky from 8.0.3 to 9.0.6
dependabot[bot] Jan 29, 2024
ad25f4c
build(deps-dev): bump @commitlint/cli from 18.4.3 to 18.6.0
dependabot[bot] Jan 29, 2024
3ad3c6f
build(deps): bump axios from 1.6.5 to 1.6.7
dependabot[bot] Jan 29, 2024
d98ccf4
build(deps-dev): bump @types/uuid from 9.0.7 to 9.0.8
dependabot[bot] Jan 29, 2024
ba17954
Merge pull request #782 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 29, 2024
5a62db7
Merge pull request #780 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 29, 2024
294e9b7
Merge pull request #779 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 29, 2024
bbc44cf
Merge pull request #778 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 29, 2024
43fac42
chore: fixed unit test description
mgordel Jan 29, 2024
2424415
Merge pull request #774 from golemfactory/bugfix/JST-404/vpn-node-rem…
mgordel Jan 29, 2024
b79e770
refactor: removing deprecated methods
grisha87 Jan 29, 2024
421620d
chore: resolved conflicts
mgordel Jan 29, 2024
11c9e20
Merge remote-tracking branch 'origin/beta' into feature/JST-660/golem…
mgordel Jan 29, 2024
06d2cce
Merge remote-tracking branch 'origin/beta' into bugfix/JST-678/socket…
mgordel Jan 29, 2024
ef49454
Merge pull request #766 from golemfactory/feature/JST-660/golem-errors
mgordel Jan 29, 2024
4b566c1
chore: fixed breaking loop in payments
mgordel Jan 29, 2024
a5d7a75
Merge branch 'beta' into bugfix/JST-678/socket-hang-up
mgordel Jan 29, 2024
11dc315
refactor: param renamed
mgordel Jan 29, 2024
690e417
refactor: param renamed
mgordel Jan 29, 2024
ec8ab41
refactor: changed type of error
mgordel Jan 29, 2024
b7f267b
Merge remote-tracking branch 'origin/master' into beta
grisha87 Jan 29, 2024
153886a
build(deps-dev): bump the dev-deps-regular group with 10 updates
dependabot[bot] Jan 29, 2024
a599894
refactor: fixed prettier issues
grisha87 Jan 29, 2024
db59802
Merge pull request #783 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Jan 29, 2024
dd6f412
Merge pull request #777 from golemfactory/bugfix/JST-678/socket-hang-up
mgordel Jan 30, 2024
0e2136c
fix(task-executor): propagate issues with invoice and debit note filt…
grisha87 Jan 25, 2024
b728835
fix(task): fixed retrying and timeout measurement for task
mgordel Jan 31, 2024
0d66a99
fix(errors): fixed bug with repeated message for GolemPlatformError
mgordel Jan 31, 2024
4f7cbcb
chore: fixed logs assertions in e2e tests
mgordel Jan 31, 2024
f053a0c
Merge pull request #787 from golemfactory/bugfix/JST-693/repeatable-e…
mgordel Feb 1, 2024
334014f
Merge pull request #786 from golemfactory/bugfix/JST-680/task-timeout
mgordel Feb 1, 2024
336ccae
feat(yagna-api): add the endpoint to fetch agreement id from activity id
SewerynKras Feb 1, 2024
4332f9d
fix(agreement_pool): added agreement pool size limit
mgordel Feb 1, 2024
48d2299
chore: fixed log message
mgordel Feb 1, 2024
92d0b9d
chore: use the new stateApi in tests
SewerynKras Feb 1, 2024
cd482d9
build(deps-dev): bump the dev-deps-regular group with 7 updates
dependabot[bot] Feb 5, 2024
05d7660
build(deps): bump the prod-deps-regular group with 1 update
dependabot[bot] Feb 5, 2024
b9497d4
Merge pull request #791 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Feb 5, 2024
df60a01
chore: prettier fixes for PR
grisha87 Feb 5, 2024
c07dd3c
Merge pull request #775 from golemfactory/bugfix/JST-690/pass-invoice…
grisha87 Feb 5, 2024
3e26a85
Merge pull request #790 from golemfactory/dependabot/npm_and_yarn/bet…
grisha87 Feb 5, 2024
5be91c7
docs: mark jobs api as experimental
SewerynKras Feb 5, 2024
7d23529
Merge pull request #792 from golemfactory/feature/JST-732/mark-jobs-a…
grisha87 Feb 5, 2024
e9bedff
feat: min supported yagna version 0.13.2 and goerli default network
grisha87 Feb 5, 2024
f0de23e
chore: added comment to the agreementMaxPoolSize field
mgordel Feb 7, 2024
3cb1335
Merge pull request #788 from golemfactory/bugfix/JST-681/releasing-ag…
mgordel Feb 7, 2024
72f07fc
fix(payment): renamed expires parameter to expirationSec for the Allo…
mgordel Feb 7, 2024
d03abda
Merge pull request #794 from golemfactory/bugfix/JST-687/expires-fiel…
mgordel Feb 7, 2024
2a45d9f
fix: catch fetch error in getActivityAgreementId
SewerynKras Feb 7, 2024
f54ef25
fix(errors): added public exports for new error types
mgordel Feb 7, 2024
61a122a
fix(errors): added public exports for new error types
mgordel Feb 7, 2024
ec2b8d1
Merge pull request #789 from golemfactory/feature/JST-683/golem-sdk-i…
SewerynKras Feb 7, 2024
7df8fd3
fix: broken ya-ts-client import
mgordel Feb 7, 2024
c8b440d
Merge pull request #797 from golemfactory/feature/JST-683/golem-sdk-i…
SewerynKras Feb 7, 2024
37bc917
fix(spawn): terminating spawned activity in case of timeout (#798)
mgordel Feb 8, 2024
7cee55b
build(deps-dev): bump the dev-deps-regular group with 6 updates
dependabot[bot] Feb 12, 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
34 changes: 34 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,40 @@
{
"checkLoops": false
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "import",
"format": ["camelCase", "PascalCase"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": ["memberLike", "function"],
"format": ["camelCase"],
"leadingUnderscore": "forbid",
"filter": {
"regex": "golem.*", // ProposalProperties like 'golem.com.payment.debit-notes.accept-timeout?'
"match": false
}
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["PascalCase"]
},
{
"selector": "objectLiteralProperty",
"format": null // We have too many varrying cases like YAGNA_APPKEY, Authorization, golem.com.scheme.payu.payment-timeout-sec? which break this constantly
}
]
},
"overrides": [
Expand Down
33 changes: 33 additions & 0 deletions .github/actions/cleanup-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Cleanup test environment"
description: "Cleanup test environment"
inputs:
type:
description: "Type of test"
required: true
default: "test"
runs:
using: "composite"
steps:
- name: Collect logs from providers and requestor
shell: bash
if: always()
run: |
mkdir log-output
docker compose -f tests/docker/docker-compose.yml logs provider-1 > log-output/${{inputs.type}}-provider-1.log
docker compose -f tests/docker/docker-compose.yml logs provider-2 > log-output/${{inputs.type}}-provider-2.log
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
if: always()
with:
name: ${{inputs.type}}-golem-provider-and-requestor-logs
path: log-output

- name: Cleanup Docker
shell: bash
if: always()
run: |
c=$(docker ps -q)
[[ $c ]] && docker kill $c
docker system prune -af
45 changes: 45 additions & 0 deletions .github/actions/prepare-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Prepare providers and requestor"
description: "Prepare providers and requestor"
runs:
using: "composite"
steps:
- name: Use random string for subnet
shell: bash
# Use a random string to avoid other providers on the same subnet which might cause tests to fail because it expects only providers named provider-1 and provider-2
run: echo "YAGNA_SUBNET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo '')" >> $GITHUB_ENV

- name: Set up Versions
shell: bash
run: |
echo "PROVIDER_VERSION=${PROVIDER_VERSION}" >> $GITHUB_ENV
echo "REQUESTOR_VERSION=${REQUESTOR_VERSION}" >> $GITHUB_ENV
echo "PROVIDER_WASI_VERSION=${PROVIDER_WASI_VERSION}" >> $GITHUB_ENV
echo "PROVIDER_VM_VERSION=${PROVIDER_VM_VERSION}" >> $GITHUB_ENV

- name: Build the docker containers
shell: bash
run: |
docker compose -f tests/docker/docker-compose.yml build \
--build-arg UBUNTU_VERSION=22.04 \
--build-arg YA_CORE_PROVIDER_VERSION=${PROVIDER_VERSION} \
--build-arg YA_CORE_REQUESTOR_VERSION=${REQUESTOR_VERSION} \
--build-arg YA_WASI_VERSION=${PROVIDER_WASI_VERSION} \
--build-arg YA_VM_VERSION=${PROVIDER_VM_VERSION}

- name: Start the docker containers
shell: bash
run: |
sudo service docker restart
docker compose -f tests/docker/docker-compose.yml down
docker compose -f tests/docker/docker-compose.yml up -d

- name: Fund the requestor
shell: bash
run: |
sleep 10
docker exec -t docker-requestor-1 /bin/sh -c "/golem-js/tests/docker/fundRequestor.sh"

- 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"
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ jobs:
name: Build and unit-test on supported platforms and NodeJS versions
strategy:
matrix:
node-version: [18.x, 20.x]
# Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10
# and that caused issues with rollup
node-version: [18.19.x, 20.10.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
Expand All @@ -34,7 +37,7 @@ jobs:

- name: Perform regular checks
run: |
npm install
npm ci
npm run format:check
npm run lint
npm run test:unit
Expand Down
118 changes: 57 additions & 61 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,24 @@ on:
permissions:
contents: read # for checkout

env:
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.13.2' }}
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.13.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' }}

jobs:
regular-checks:
name: Build and unit-test on supported platforms and NodeJS versions
strategy:
matrix:
node-version: [18.x, 20.x]
# Make sure you're addressing it to the minor version, as sometimes macos was picking 20.9 while others 20.10
# and that caused issues with rollup
node-version: [18.19.x, 20.10.x]
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ${{ matrix.os }}
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
Expand All @@ -55,7 +64,7 @@ jobs:

- name: Perform regular checks
run: |
npm install
npm ci
npm run format:check
npm run lint
npm run test:unit
Expand All @@ -70,53 +79,15 @@ jobs:
name: unit-test-report
path: reports/unit-report.xml

run-integration-and-e2e-tests:
name: Run integration and E2E tests
run-e2e-tests:
name: Run E2E tests
needs: regular-checks
runs-on: goth2
env:
PROVIDER_VERSION: ${{ github.event.inputs.provider_version || 'v0.13.2' }}
REQUESTOR_VERSION: ${{ github.event.inputs.requestor_version || 'v0.13.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' }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use random string for subnet
# Use a random string to avoid other providers on the same subnet which might cause tests to fail because it expects only providers named provider-1 and provider-2
run: echo "YAGNA_SUBNET=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo '')" >> $GITHUB_ENV

- name: Set up Versions
run: |
echo "PROVIDER_VERSION=${PROVIDER_VERSION}" >> $GITHUB_ENV
echo "REQUESTOR_VERSION=${REQUESTOR_VERSION}" >> $GITHUB_ENV
echo "PROVIDER_WASI_VERSION=${PROVIDER_WASI_VERSION}" >> $GITHUB_ENV
echo "PROVIDER_VM_VERSION=${PROVIDER_VM_VERSION}" >> $GITHUB_ENV

- name: Build the docker containers
run: |
docker compose -f tests/docker/docker-compose.yml build \
--build-arg UBUNTU_VERSION=22.04 \
--build-arg YA_CORE_PROVIDER_VERSION=${PROVIDER_VERSION} \
--build-arg YA_CORE_REQUESTOR_VERSION=${REQUESTOR_VERSION} \
--build-arg YA_WASI_VERSION=${PROVIDER_WASI_VERSION} \
--build-arg YA_VM_VERSION=${PROVIDER_VM_VERSION}

- name: Start the docker containers
run: |
sudo service docker restart
docker compose -f tests/docker/docker-compose.yml down
docker compose -f tests/docker/docker-compose.yml up -d

- name: Fund the requestor
run: |
sleep 10
docker exec -t docker-requestor-1 /bin/sh -c "/golem-js/tests/docker/fundRequestor.sh"
- uses: actions/checkout@v3

- name: Install and build the SDK in the docker container
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"
- name: Prepare providers and requestor
uses: ./.github/actions/prepare-tests

- name: Start the E2E test
run: docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:e2e"
Expand All @@ -128,17 +99,26 @@ jobs:
name: e2e-test-report
path: reports/e2e-report.xml

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

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

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

- 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/web && node app.mjs"

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

- name: Run the Examples tests
run: |
docker exec -t docker-requestor-1 /bin/sh -c "cd /golem-js && npm run test:examples -- --exitOnError"
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
Expand All @@ -147,16 +127,32 @@ jobs:
name: cypress-logs
path: .cypress

- name: Cleanup Docker
if: always()
run: |
c=$(docker ps -q)
[[ $c ]] && docker kill $c
docker system prune -af
- name: Cleanup test environment
uses: ./.github/actions/cleanup-tests
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-integration-and-e2e-tests
needs: [run-e2e-tests, run-cypress-tests, run-examples-tests]
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand All @@ -173,7 +169,7 @@ jobs:
uses: actions/setup-node@v3
with:
# Semantic release requires this as bare minimum
node-version: 18
node-version: 20

- name: Install dependencies
run: npm install
Expand Down
Loading
Loading