Skip to content

--confDir test failing #185

@viferga

Description

@viferga

https://github.com/metacall/deploy/actions/runs/20522626563

2025-12-26T13:09:04.5926790Z   Integration CLI (Deploy)
2025-12-26T13:09:06.3907106Z     ✔ Should be able to login using --email & --password flag (1798ms)
2025-12-26T13:09:09.0557403Z     ✔ Should be able to login using --token flag (2663ms)
2025-12-26T13:09:11.6539318Z     ✔ Should be able to login using --confDir flag (2598ms)
2025-12-26T13:09:12.7484629Z     ✔ Should be able to print help guide using --help flag (1094ms)
2025-12-26T13:09:13.8302485Z     ✔ Should be able to handle unknown flag (1081ms)
2025-12-26T13:09:22.9384944Z     1) Should be able to deploy repository using --addrepo flag
2025-12-26T13:09:25.9644827Z     2) Should fail --inspect command with proper output
2025-12-26T13:09:28.9973333Z     ✔ Should fail --inspect command with proper output (3033ms)
2025-12-26T13:09:35.2036456Z     3) Should be able to delete deployed repository using --delete flag
2025-12-26T13:09:44.3028421Z     4) Should be able to deploy repository using --workdir & --projectName flag
2025-12-26T13:09:50.3871425Z     5) Should be able to delete deployed repository using --delete flag
2025-12-26T13:09:59.4753179Z     6) Should be able to deploy repository using --addrepo flag with environment vars
2025-12-26T13:10:05.7919456Z     7) Should be able to delete deployed repository using --delete flag
2025-12-26T13:10:08.8221735Z     8) Should be able to deploy repository using --workdir & getting the .env file
2025-12-26T13:10:15.0827238Z     9) Should be able to delete deployed repository using --delete flag
2025-12-26T13:10:24.1813487Z     10) Should be able to deploy repository using --workdir & --plan flag
2025-12-26T13:10:30.5498961Z     11) Should be able to delete deployed repository using --delete flag
2025-12-26T13:10:33.5738027Z     12) Should be able to list all the plans in user's account
2025-12-26T13:10:33.5740407Z 
2025-12-26T13:10:33.5743914Z   Test a basic env project
2025-12-26T13:10:33.5756713Z i Detected and loaded environment variables from .env file.
2025-12-26T13:10:33.5758646Z     ✔ Run getEnv in env folder
2025-12-26T13:10:33.5763308Z 
2025-12-26T13:10:33.5764194Z   Integration CLI (Login)
2025-12-26T13:10:34.7311677Z     ✔ Should fail with malformed jwt (1154ms)
2025-12-26T13:10:40.8287264Z     ✔ Should fail with no credentials with --token (6097ms)
2025-12-26T13:10:42.1633068Z     ✔ Should fail with invalid login credentials (1334ms)
2025-12-26T13:11:15.3470510Z     ✔ Should fail with taken email (33183ms)
2025-12-26T13:11:45.4895476Z     ✔ Should fail with invalid email (30142ms)
2025-12-26T13:12:15.7806466Z     ✔ Should fail with taken alias (30291ms)
2025-12-26T13:12:15.7810237Z 
2025-12-26T13:12:15.7810462Z   Integration Package
2025-12-26T13:12:15.8073459Z     ✔ Should generate a zip respecting the folder hierarchy instead of flattening it
2025-12-26T13:12:15.8074049Z 
2025-12-26T13:12:15.8074233Z   Unit Utils Opt
2025-12-26T13:12:15.8076802Z     ✔ Should call a function with the provided string
2025-12-26T13:12:15.8078270Z     ✔ Should return empty string when second argument is null
2025-12-26T13:12:15.8078810Z 
2025-12-26T13:12:15.8080760Z 
2025-12-26T13:12:15.8082128Z   16 passing (3m)
2025-12-26T13:12:15.8082568Z   12 failing
2025-12-26T13:12:15.8082807Z 
2025-12-26T13:12:15.8085437Z   1) Integration CLI (Deploy)
2025-12-26T13:12:15.8086132Z        Should be able to deploy repository using --addrepo flag:
2025-12-26T13:12:15.8086936Z      Error: the string "X Token invalid: jwt malformed\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8088194Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8088939Z 
2025-12-26T13:12:15.8100578Z   2) Integration CLI (Deploy)
2025-12-26T13:12:15.8101195Z        Should fail --inspect command with proper output:
2025-12-26T13:12:15.8101595Z 
2025-12-26T13:12:15.8102026Z       AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
2025-12-26T13:12:15.8102706Z + actual - expected
2025-12-26T13:12:15.8102920Z 
2025-12-26T13:12:15.8103927Z + 'AssertionError [ERR_ASSERTION]: The CLI passed without errors and it should fail. Result: ? Select the login method (Use arrow keys)\n' +
2025-12-26T13:12:15.8105102Z +   '❯ Login by token \n' +
2025-12-26T13:12:15.8105626Z +   '  Login by email and password \n' +
2025-12-26T13:12:15.8106894Z +   '  New user, sign up \x1B[20D\x1B[20C\x1B[2K\x1B[1A\x1B[2K\x1B[1A\x1B[2K\x1B[1A\x1B[2K\x1B[G? Select the login method Login by token\x1B[40D\x1B[40C\n' +
2025-12-26T13:12:15.8108026Z +   '? Please enter your metacall token \x1B[35D\x1B[35C\n'
2025-12-26T13:12:15.8108971Z - 'X Invalid format passed to inspect, valid formats are: Table, Raw, OpenAPIv3\n'
2025-12-26T13:12:15.8109838Z       + expected - actual
2025-12-26T13:12:15.8110085Z 
2025-12-26T13:12:15.8110922Z       -AssertionError [ERR_ASSERTION]: The CLI passed without errors and it should fail. Result: ? Select the login method (Use arrow keys)
2025-12-26T13:12:15.8111791Z       -❯ Login by token 
2025-12-26T13:12:15.8112089Z       -  Login by email and password 
2025-12-26T13:12:15.8112751Z       -  New user, sign up �[20D�[20C�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[G? Select the login method Login by token�[40D�[40C
2025-12-26T13:12:15.8113642Z       -? Please enter your metacall token �[35D�[35C
2025-12-26T13:12:15.8114167Z       +X Invalid format passed to inspect, valid formats are: Table, Raw, OpenAPIv3
2025-12-26T13:12:15.8114592Z       
2025-12-26T13:12:15.8114949Z       at Context.<anonymous> (dist/test/cli.integration.spec.js:91:38)
2025-12-26T13:12:15.8115578Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8115962Z 
2025-12-26T13:12:15.8116075Z   3) Integration CLI (Deploy)
2025-12-26T13:12:15.8116498Z        Should be able to delete deployed repository using --delete flag:
2025-12-26T13:12:15.8117299Z      Error: the string "X Token invalid: Invalid authorization header, no credentials provided.\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8118135Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8118516Z 
2025-12-26T13:12:15.8118617Z   4) Integration CLI (Deploy)
2025-12-26T13:12:15.8119233Z        Should be able to deploy repository using --workdir & --projectName flag:
2025-12-26T13:12:15.8119846Z      Error: the string "X Token invalid: jwt malformed\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8120381Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8120865Z 
2025-12-26T13:12:15.8120988Z   5) Integration CLI (Deploy)
2025-12-26T13:12:15.8121346Z        Should be able to delete deployed repository using --delete flag:
2025-12-26T13:12:15.8121985Z      Error: the string "X Token invalid: Invalid authorization header, no credentials provided.\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8122646Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8122942Z 
2025-12-26T13:12:15.8123033Z   6) Integration CLI (Deploy)
2025-12-26T13:12:15.8123415Z        Should be able to deploy repository using --addrepo flag with environment vars:
2025-12-26T13:12:15.8123940Z      Error: the string "X Token invalid: jwt malformed\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8124468Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8124765Z 
2025-12-26T13:12:15.8124851Z   7) Integration CLI (Deploy)
2025-12-26T13:12:15.8125194Z        Should be able to delete deployed repository using --delete flag:
2025-12-26T13:12:15.8125841Z      Error: the string "X Token invalid: Invalid authorization header, no credentials provided.\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8126516Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8126825Z 
2025-12-26T13:12:15.8126911Z   8) Integration CLI (Deploy)
2025-12-26T13:12:15.8127281Z        Should be able to deploy repository using --workdir & getting the .env file:
2025-12-26T13:12:15.8127551Z 
2025-12-26T13:12:15.8127787Z       AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
2025-12-26T13:12:15.8128122Z 
2025-12-26T13:12:15.8128471Z   (0, assert_1.ok)(String(result).includes(`i Deploying ${projectPath}...\n`))
2025-12-26T13:12:15.8128737Z 
2025-12-26T13:12:15.8128829Z       + expected - actual
2025-12-26T13:12:15.8128960Z 
2025-12-26T13:12:15.8129037Z       -false
2025-12-26T13:12:15.8129383Z       +true
2025-12-26T13:12:15.8129556Z       
2025-12-26T13:12:15.8129857Z       at Context.<anonymous> (dist/test/cli.integration.spec.js:145:25)
2025-12-26T13:12:15.8130396Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8130690Z 
2025-12-26T13:12:15.8130782Z   9) Integration CLI (Deploy)
2025-12-26T13:12:15.8131116Z        Should be able to delete deployed repository using --delete flag:
2025-12-26T13:12:15.8131752Z      Error: the string "X Token invalid: Invalid authorization header, no credentials provided.\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8132529Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8133024Z 
2025-12-26T13:12:15.8133136Z   10) Integration CLI (Deploy)
2025-12-26T13:12:15.8133481Z        Should be able to deploy repository using --workdir & --plan flag:
2025-12-26T13:12:15.8133968Z      Error: the string "X Token invalid: jwt malformed\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8134503Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8134818Z 
2025-12-26T13:12:15.8134926Z   11) Integration CLI (Deploy)
2025-12-26T13:12:15.8135263Z        Should be able to delete deployed repository using --delete flag:
2025-12-26T13:12:15.8135900Z      Error: the string "X Token invalid: Invalid authorization header, no credentials provided.\n" was thrown, throw an Error :)
2025-12-26T13:12:15.8136568Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8136863Z 
2025-12-26T13:12:15.8136967Z   12) Integration CLI (Deploy)
2025-12-26T13:12:15.8137273Z        Should be able to list all the plans in user's account:
2025-12-26T13:12:15.8137490Z 
2025-12-26T13:12:15.8137711Z       AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
2025-12-26T13:12:15.8138062Z + actual - expected
2025-12-26T13:12:15.8138182Z 
2025-12-26T13:12:15.8138347Z + '? Select the login method (Use arrow keys)\n' +
2025-12-26T13:12:15.8138818Z +   '❯ Login by token \n' +
2025-12-26T13:12:15.8139476Z +   '  Login by email and password \n' +
2025-12-26T13:12:15.8140125Z +   '  New user, sign up \x1B[20D\x1B[20C\x1B[2K\x1B[1A\x1B[2K\x1B[1A\x1B[2K\x1B[1A\x1B[2K\x1B[G? Select the login method Login by token\x1B[40D\x1B[40C\n' +
2025-12-26T13:12:15.8140712Z +   '? Please enter your metacall token \x1B[35D\x1B[35C\n'
2025-12-26T13:12:15.8141011Z - 'i Essential: 2\n'
2025-12-26T13:12:15.8141215Z       + expected - actual
2025-12-26T13:12:15.8141356Z 
2025-12-26T13:12:15.8141487Z       -? Select the login method (Use arrow keys)
2025-12-26T13:12:15.8141797Z       -❯ Login by token 
2025-12-26T13:12:15.8142054Z       -  Login by email and password 
2025-12-26T13:12:15.8142589Z       -  New user, sign up �[20D�[20C�[2K�[1A�[2K�[1A�[2K�[1A�[2K�[G? Select the login method Login by token�[40D�[40C
2025-12-26T13:12:15.8143070Z       -? Please enter your metacall token �[35D�[35C
2025-12-26T13:12:15.8143344Z       +i Essential: 2
2025-12-26T13:12:15.8143532Z       
2025-12-26T13:12:15.8143830Z       at Context.<anonymous> (dist/test/cli.integration.spec.js:207:103)
2025-12-26T13:12:15.8144341Z       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-12-26T13:12:15.8144654Z 
2025-12-26T13:12:15.8144659Z 
2025-12-26T13:12:15.8144665Z 
2025-12-26T13:12:16.1556411Z ----------|---------|----------|---------|---------|-------------------
2025-12-26T13:12:16.1558037Z File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
2025-12-26T13:12:16.1558660Z ----------|---------|----------|---------|---------|-------------------
2025-12-26T13:12:16.1561460Z All files |       0 |        0 |       0 |       0 |                   
2025-12-26T13:12:16.1562053Z ----------|---------|----------|---------|---------|-------------------
2025-12-26T13:12:16.1726849Z ##[error]Process completed with exit code 12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions