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

infinite gitpod-remigrate #220

Open
FreePhoenix888 opened this issue Mar 11, 2024 · 1 comment
Open

infinite gitpod-remigrate #220

FreePhoenix888 opened this issue Mar 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@FreePhoenix888
Copy link
Member

FreePhoenix888 commented Mar 11, 2024

How to reproduce

Just run npm run gitpod-remigrate while deep is running

Problem

gitpod /workspace/dev (main) $ npm run gitpod-remigrate

> @deep-foundation/[email protected] gitpod-remigrate
> npm run gitpod-unmigrate && npm run gitpod-migrate


> @deep-foundation/[email protected] gitpod-unmigrate
> export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET="{\"type\":\"HS256\",\"key\":\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\"}" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey;  export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run unmigrate


> @deep-foundation/[email protected] unmigrate
> npm run package:build && npx migrate@latest down --matches '*.js'


> @deep-foundation/[email protected] package:build
> tsc --project tsconfig.json

(node:5564) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
ok
ok
(node:5564) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
  down : 1694386912180-sync-handlers-update-new.js
  down : 1693460330175-sync-handlers-update.js
  down : 1690737739096-deepcase-opened.js
  down : 1689630159473-healthz.js
  down : 1687790060025-finder.js
  down : 1682327540225-mathjs-schema-packages.js
  down : 1680017137379-npm-packager-ui.js
  down : 1678940577209-deepcase.js
  down : 1677340638677-npm-packager.js
  down : 1664940577209-deepcase.js
  down : 1664940577200-tsx.js
  down : 1661392616544-core-symbols.js
  down : 1658909585601-hasura-storage.js
  down : 1658622099992-unvalue.js
  down : 1657720948151-handlers.js
  down : 1657486935281-authorization.js
  down : 1655979260869-sync-handlers.js
  down : 1642827746040-demo.js
  down : 1637975150590-promises.js
  down : 1637975150573-packager.js
  down : 1623023831753-jwt.js
  down : 1622421760260-permissions.js
  down : 1622421760259-can.js
  down : 1622421760258-selectors.js
  down : 1622421760256-types.js

I have waited 60+ minutes and deep is still remigrating. While I have been waiting I have created a new deep instance in gitpod and waited until finish of installation (it was much faster to create a new gitpod instance with deep than remigrating, I guess it is infinite cause of a bug)

@FreePhoenix888 FreePhoenix888 added the bug Something isn't working label Mar 11, 2024
@FreePhoenix888
Copy link
Member Author

If you use gitpod remigrate to delete all the links without deleting essential links you can create a link that will be a marker to delete all the links created after it (having bigger id)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant