diff --git a/.gitpod.yml b/.gitpod.yml deleted file mode 100644 index 7c7efce0d8beca..00000000000000 --- a/.gitpod.yml +++ /dev/null @@ -1,7 +0,0 @@ -tasks: - - init: > - nvm install 18 && - nvm use 18 && - yarn install && - yarn run build - command: yarn run start diff --git a/docs/development/remote-development.md b/docs/development/remote-development.md index 24d2ba815b0577..d3f6c4ca0f3683 100644 --- a/docs/development/remote-development.md +++ b/docs/development/remote-development.md @@ -29,77 +29,7 @@ You'll use the same code editor and have the same config as all other developers - Waiting for the remote container to start - If your internet is down you can't work -- If Gitpod or Codespaces is down you can't work - -## Gitpod - -You can use [Gitpod](https://gitpod.io/) for light development work like: - -- Editing the docs -- Running ESLint, Prettier - -For proper development, use GitHub Codespaces. - -The config file for Gitpod is `.gitpod.yml` in the root of the repository. - -Gitpod gives you 500 free credits each month, which is enough for about 50 hours of work. - -### Gitpod tips - -- Use `yarn jest` to run the tests on Gitpod - -### Known problems with Gitpod - -There are two failing tests when running `yarn jest` on Gitpod: - -```bash -Summary of all failing tests - FAIL lib/util/git/index.spec.ts (635.102 s, 319 MB heap size) - ● util/git/index › isBranchModified() › should return false when author matches - - expected true to be false or Boolean(false) - - 283 | - 284 | it('should return false when author matches', async () => { - > 285 | expect(await git.isBranchModified('renovate/future_branch')).toBeFalse(); - | ^ - 286 | expect(await git.isBranchModified('renovate/future_branch')).toBeFalse(); - 287 | }); - 288 | - - at Object. (lib/util/git/index.spec.ts:285:68) - - ● util/git/index › isBranchModified() › should return false when author is ignored - - expected true to be false or Boolean(false) - - 291 | gitIgnoredAuthors: ['custom@example.com'], - 292 | }); - > 293 | expect(await git.isBranchModified('renovate/custom_author')).toBeFalse(); - | ^ - 294 | }); - 295 | - 296 | it('should return true when custom author is unknown', async () => { - - at Object. (lib/util/git/index.spec.ts:293:68) - - FAIL test/static-files.spec.ts (14.506 s, 288 MB heap size) - ● static-files › has same static files in lib and dist - - thrown: "Exceeded timeout of 10000 ms for a test. - Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test." - - 36 | jest.setTimeout(10 * 1000); - 37 | - > 38 | it('has same static files in lib and dist', async () => { - | ^ - 39 | expect(await getFiles('dist')).toEqual(await getFiles('lib')); - 40 | }); - 41 | }); - - at test/static-files.spec.ts:38:3 - at Object. (test/static-files.spec.ts:34:1) -``` +- If Codespaces is down you can't work ## GitHub Codespaces