restatedev / e2e

E2E tests for Restate
MIT License
3 stars 3 forks source link

node-services don't update to the latest snapshot when running ./gradlew :services:node-services:dockerBuild #364

Open tillrohrmann opened 3 months ago

tillrohrmann commented 3 months ago

When running ./gradlew :services:node-services:dockerBuild, the node-services won't pull the latest restate sdk dependencies. This often leads to failures like:

> e2e-node-services@0.0.1 build
> tsc --noEmitOnError

src/interpreter/test_driver.ts:253:25 - error TS2339: Property 'interpret' does not exist on type 'IngressSendClient<unknown>'.

253           return client.interpret(
                            ~~~~~~~~~

src/interpreter/test_driver.ts:312:64 - error TS2339: Property 'counter' does not exist on type 'IngressClient<unknown>'.

312             await ingress.objectClient(interpreterLn, `${id}`).counter()
                                                                   ~~~~~~~

Found 2 errors in the same file, starting at: src/interpreter/test_driver.ts:253

The problem seems to be related to the package-lock.json and the node-modules. If I delete both, then it fetches the latest updates. It would be great if running the gradle task would always pull in the latest dependencies.

AhmedSoliman commented 2 months ago

Note for the future: I expect "gradle clean" to do that cleanup