Skip to content

Commit

Permalink
refactor(gitpod): dropping gitpod (#22274)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed May 17, 2023
1 parent fd87414 commit 64b6e16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 78 deletions.
7 changes: 0 additions & 7 deletions .gitpod.yml

This file was deleted.

72 changes: 1 addition & 71 deletions docs/development/remote-development.md
Expand Up @@ -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.<anonymous> (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.<anonymous> (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.<anonymous> (test/static-files.spec.ts:34:1)
```
- If Codespaces is down you can't work

## GitHub Codespaces

Expand Down

0 comments on commit 64b6e16

Please sign in to comment.