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

refactor(gitpod): dropping gitpod #22274

Merged
merged 1 commit into from May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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