You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Not working, this is required for python to work properly
Due to this, some tests fail in the deploy:
Integration CLI (Deploy)
✔ Should be able to login using --email & --password flag (1113ms)
1) Should be able to login using --token flag
✔ Should be able to print help guide using --help flag (1092ms)
✔ Should be able to handle unknown flag (1110ms)
examples | Error: DynLink error:
examples | gnu/store/yraph1nmn9z51zvbvjk13lcw8pmc6q56-profile/lib/libfunchook_detour.so: cannot open shared object file: No such file or directory
examples | Error: Failed to load library from plugin descriptor
examples | Error: Plugin loader from manager 'detour' failed to load plugin: funchook
examples | Error: Invalid detour install arguments
examples | Error: MetaCall invalid detour link installation
examples | Error: Invalid MetaCall link initialization
examples | Error: Node loader failed register the link hook
examples | Exception in node_loader_trampoline_load_from_file while loading: [ 'auth-function-mesh/auth/auth.js' ] Error: Cannot find module 'auth-function-mesh/auth/auth.js'
examples | at Module._resolveFilename (node:internal/modules/cjs/loader:1249:15)
examples | at Module._load (node:internal/modules/cjs/loader:1075:27)
examples | at TracingChannel.traceSync (node:diagnostics_channel:322:14)
examples | at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
examples | at Module.require (node:internal/modules/cjs/loader:1340:12)
examples | at node_loader_trampoline_import (/gnu/store/swc2fdp77dd1d9hl7w21x99ypgv864xh-metacall-0.8.8/lib/bootstrap.js:113:10)
examples | at node_loader_trampoline_load_from_file (/gnu/store/swc2fdp77dd1d9hl7w21x99ypgv864xh-metacall-0.8.8/lib/bootstrap.js:146:14)
examples | at Object.metacall_load_from_configuration_export (/gnu/store/swc2fdp77dd1d9hl7w21x99ypgv864xh-metacall-0.8.8/lib/node_modules/metacall/index.js:280:15)
examples | at loadDeployment (/home/runner/work/deploy/faas/dist/worker/index.js:41:36)
examples | at handleDeployment (/home/runner/work/deploy/faas/dist/worker/index.js:63:12) {
examples | code: 'MODULE_NOT_FOUND',
examples | requireStack: []
examples | }
2) Should be able to deploy repository using --addrepo flag
✔ Should fail --inspect command with proper output (1121ms)
✔ Should fail --inspect command with proper output (6021ms)
3) Should be able to delete deployed repository using --delete flag
time-app-web | Error: DynLink error:
time-app-web | gnu/store/yraph1nmn9z51zvbvjk13lcw8pmc6q56-profile/lib/libfunchook_detour.so: cannot open shared object file: No such file or directory
time-app-web | Error: Failed to load library from plugin descriptor
time-app-web | Error: Plugin loader from manager 'detour' failed to load plugin: funchook
time-app-web | Error: Invalid detour install arguments
time-app-web | Error: MetaCall invalid detour link installation
time-app-web | Error: Invalid MetaCall link initialization
time-app-web | Error: Node loader failed register the link hook
4) Should be able to deploy repository using --workdir & --projectName flag
5) Should be able to delete deployed repository using --delete flag
examples | Error: DynLink error:
examples | gnu/store/yraph1nmn9z51zvbvjk13lcw8pmc6q56-profile/lib/libfunchook_detour.so: cannot open shared object file: No such file or directory
examples | Error: Failed to load library from plugin descriptor
examples | Error: Plugin loader from manager 'detour' failed to load plugin: funchook
examples | Error: Invalid detour install arguments
examples | Error: MetaCall invalid detour link installation
examples | Error: Invalid MetaCall link initialization
examples | Error: Node loader failed register the link hook
examples | Exception in node_loader_trampoline_load_from_file while loading: [ 'auth-function-mesh/auth/auth.js' ] Error: Cannot find module 'auth-function-mesh/auth/auth.js'
examples | at Module._resolveFilename (node:internal/modules/cjs/loader:1249:15)
examples | at Module._load (node:internal/modules/cjs/loader:1075:27)
examples | at TracingChannel.traceSync (node:diagnostics_channel:322:14)
examples | at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
examples | at Module.require (node:internal/modules/cjs/loader:1340:12)
examples | at node_loader_trampoline_import (/gnu/store/swc2fdp77dd1d9hl7w21x99ypgv864xh-metacall-0.8.8/lib/bootstrap.js:113:10)
examples | at node_loader_trampoline_load_from_file (/gnu/store/swc2fdp77dd1d9hl7w21x99ypgv864xh-metacall-0.8.8/lib/bootstrap.js:146:14)
examples | at Object.metacall_load_from_configuration_export (/gnu/store/swc2fdp77dd1d9hl7w21x99ypgv864xh-metacall-0.8.8/lib/node_modules/metacall/index.js:280:15)
examples | at loadDeployment (/home/runner/work/deploy/faas/dist/worker/index.js:41:36)
examples | at handleDeployment (/home/runner/work/deploy/faas/dist/worker/index.js:63:12) {
examples | code: 'MODULE_NOT_FOUND',
examples | requireStack: []
examples | }
6) Should be able to deploy repository using --addrepo flag with environment vars
7) Should be able to delete deployed repository using --delete flag
env | Error: DynLink error:
env | gnu/store/yraph1nmn9z51zvbvjk13lcw8pmc6q56-profile/lib/libfunchook_detour.so: cannot open shared object file: No such file or directory
env | Error: Failed to load library from plugin descriptor
env | Error: Plugin loader from manager 'detour' failed to load plugin: funchook
env | Error: Invalid detour install arguments
env | Error: MetaCall invalid detour link installation
env | Error: Invalid MetaCall link initialization
env | Error: Node loader failed register the link hook
8) Should be able to deploy repository using --workdir & getting the .env file
9) Should be able to delete deployed repository using --delete flag
10) Should be able to deploy repository using --workdir & --plan flag
11) Should be able to delete deployed repository using --delete flag
12) Should be able to list all the plans in user's account
Test a basic env project
i Detected and loaded environment variables from .env file.
✔ Run getEnv in env folder
Integration CLI (Login)
- Should fail with malformed jwt
- Should fail with no credentials with --token
- Should fail with invalid login credentials
- Should fail with taken email
- Should fail with invalid email
- Should fail with taken alias
Integration Package
✔ Should generate a zip respecting the folder hierarchy instead of flattening it
Unit Utils Opt
✔ Should call a function with the provided string
✔ Should return empty string when second argument is null
9 passing (56s)
6 pending
12 failing
1) Integration CLI (Deploy)
Should be able to login using --token flag:
AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: ''
+ expected - actual
at Context.<anonymous> (dist/test/cli.integration.spec.js:33:37)
2) Integration CLI (Deploy)
Should be able to deploy repository using --addrepo flag:
Error: Request failed with status code 401
at createError (node_modules/axios/lib/core/createError.js:16:15)
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:2[69](https://github.com/metacall/deploy/actions/runs/13660998118/job/38191881033#step:8:70):11)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
3) Integration CLI (Deploy)
Should be able to delete deployed repository using --delete flag:
Error: the string "X No deployment found\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
4) Integration CLI (Deploy)
Should be able to deploy repository using --workdir & --projectName flag:
Error: Request failed with status code 401
at createError (node_modules/axios/lib/core/createError.js:16:15)
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:[82](https://github.com/metacall/deploy/actions/runs/13660998118/job/38191881033#step:8:83):21)
5) Integration CLI (Deploy)
Should be able to delete deployed repository using --delete flag:
Error: the string "X No deployment found\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
6) Integration CLI (Deploy)
Should be able to deploy repository using --addrepo flag with environment vars:
Error: Request failed with status code 401
at createError (node_modules/axios/lib/core/createError.js:16:15)
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
7) Integration CLI (Deploy)
Should be able to delete deployed repository using --delete flag:
Error: the string "X No deployment found\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:[95](https://github.com/metacall/deploy/actions/runs/13660998118/job/38191881033#step:8:96):5)
8) Integration CLI (Deploy)
Should be able to deploy repository using --workdir & getting the .env file:
Error: Request failed with status code 401
at createError (node_modules/axios/lib/core/createError.js:16:15)
at settle (node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:16[98](https://github.com/metacall/deploy/actions/runs/13660998118/job/38191881033#step:8:99):12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
9) Integration CLI (Deploy)
Should be able to delete deployed repository using --delete flag:
Error: the string "X No deployment found\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
10) Integration CLI (Deploy)
Should be able to deploy repository using --workdir & --plan flag:
Error: the string "X Error: Request failed with status code 400\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
11) Integration CLI (Deploy)
Should be able to delete deployed repository using --delete flag:
Error: the string "X No deployment found\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
12) Integration CLI (Deploy)
Should be able to list all the plans in user's account:
Error: the string "X Server responded with error code: 404 Can't find /api/billing/list-subscriptions on this server!\n" was thrown, throw an Error :)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
The text was updated successfully, but these errors were encountered:
For some reason this returns 1, when it should return 0:
faas/src/worker/index.ts
Line 52 in e3cf9e3
Due to this, some tests fail in the deploy:
The text was updated successfully, but these errors were encountered: