Commit Graph

499 Commits

Author SHA1 Message Date
Asher 24f6834f5b
Add installer unit tests 2021-07-13 12:22:00 -05:00
Asher c31e72fb7b
Add installer integration tests 2021-07-13 12:21:34 -05:00
Asher da4de439e0
Spawn a code-server instance for each test suite
This uses the current dev build by default but can be overidden with
CODE_SERVER_TEST_ENTRY (for example to test a release or some other
version).

Each instance has a separate state directory. This should make
parallelization work.

This also means you are no longer required to specify the password and
address yourself (or the extension directory once we add a test
extension). `yarn test:e2e` should just work as-is.

Lastly, it means the tests are no longer subject to yarn watch randomly
restarting.
2021-06-29 12:06:38 -05:00
Asher 49c44818d9
Move onLine to utilities
This way it can be used by the tests when spawning code-server on a
random port to look for the address.
2021-06-29 12:04:31 -05:00
Joe Previte be7ea8f3f7
refactor: migrate parcel to browserify
This also refactors a couple CSS stylesheets to be referenced directly in the
HTML files.

And it removes any CSS imports from src/browser files.
2021-06-28 11:41:45 -07:00
dependabot[bot] 9042bbae9a
chore(deps-dev): bump prettier-plugin-sh from 0.6.1 to 0.7.1 (#3680)
* chore(deps-dev): bump prettier-plugin-sh from 0.6.1 to 0.7.1

Bumps [prettier-plugin-sh](https://github.com/rx-ts/prettier) from 0.6.1 to 0.7.1.
- [Release notes](https://github.com/rx-ts/prettier/releases)
- [Changelog](https://github.com/rx-ts/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rx-ts/prettier/compare/prettier-plugin-sh@0.6.1...prettier-plugin-sh@0.7.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-sh
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: reformat shell scripts

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Akash Satheesan <akash.satheesan@protonmail.com>
2021-06-28 22:06:55 +05:30
Bruno 010c1d8f2f Fix README path on build-release 2021-06-28 14:16:20 +00:00
jan iversen 4e14c11fa4
Allow development on any architecture (#3598) 2021-06-17 12:28:54 -05:00
Max Schmitt dbb34ad710 chore: upgrade to Playwright 1.12 with its new test-runner 2021-06-10 15:09:38 +02:00
Joe Previte 3b50bfc17d
fix: sanitize password and cookie key 2021-06-08 14:33:17 -07:00
Joe Previte deaa2242ca
feat: add npm_config_build_from_source to build scripts
This is necessary due to argon2 being added and an upstream issue where it uses
a Linux build that is too new for CentOS 7.
2021-06-08 14:33:17 -07:00
Joe Previte 8b38314913
feat: add 'set up homebrew' step publish.yaml 2021-06-03 10:18:48 -07:00
Joe Previte 808daa44e1
fix: update git push to cdrci repo in brew-bump 2021-06-03 10:18:48 -07:00
Akash Satheesan 05197d5213
feat(ci): add restore-keys for ci speedup (#3516) 2021-06-03 22:00:37 +05:30
Akash Satheesan 857c62ae1d
chore: yarn fmt + changelog 2021-06-01 16:34:16 -07:00
Prashant168 7dfd3676c1
docs: remove "Publishing A Release" from ci/README.md
Deleted "Publishing A Release" section from the readme.md file in the 'ci'
folder and then pasting the section in 'Maintaining.md'
2021-06-01 16:33:52 -07:00
Akash Satheesan 58622ccc34
chore: update node to v14 (#3481) 2021-06-01 22:49:03 +05:30
Akash Satheesan 1ccf69f731
chore: cross-compile docker images with buildx (#3503) 2021-05-28 16:51:41 +00:00
Joe Previte 8ed578b686
docs: remove toc from changelog (#3466)
Co-authored-by: Akash Satheesan <akash@coder.com>
2021-05-27 16:16:54 +00:00
Joe Previte 4fc8d98610
refactor: remove extra step in release-prep.sh 2021-05-21 16:08:46 -07:00
Joe Previte 31aac201bf
chore(release): bump version to 3.10.2 2021-05-21 16:04:55 -07:00
Joe Previte ed0ddeaf3e
fix: make sure homebrew-core is up to date 2021-05-21 15:00:45 -07:00
Timur Sultanaev 1ffca5751c introduce extraInitContainers to helm chart
New extraInitContainers configuration added.
It allows to pass template with a list of containers to execute before
main code-server container started. Main container will only start when
all init containers are  completed (exited with 0 code).

 Additionally changes the way extraContainers is used - instead of
 toYaml use tpl, because this allows to
 reference any values from extraContainers string.
2021-05-20 17:52:35 +02:00
Asher e983ba9a4b
v3.10.1 (#3406)
* Update versions
* Update changelog
2021-05-17 14:59:41 -05:00
Joe Previte 2438fb307c
fix: use next version in changelog 2021-05-14 16:09:30 -07:00
Joe Previte eb82054357
docs: update publishing a release process 2021-05-14 16:09:06 -07:00
Joe Previte 1b75734332
fix(release-prep.sh): don't update CHANGELOG 2021-05-14 16:09:06 -07:00
Asher e64fd451b3
Override existing asar symlink in postinstall (#3369)
This ensures the link is correct. Should fix #3355.
2021-05-12 16:46:29 -05:00
videlanicolas 3df771fbc4
Check the logged user instead of $USER (#3330)
* Check the logged user instead of $USER

Given that `sudo usermod --login "$DOCKER_USER" coder` and `sudo groupmod -n "$DOCKER_USER" coder` modify the container's disk it'll persist across restarts, but environment variables will be reset to whatever state they had at the end of `Dockerfile`. In this case, `$USER` is set to `coder`, so this branch will always be true.

By checking with the output of `whoami`, which gets it's information from `/etc/passwd`, we make sure to get the real logged user and not the one defined by $USER.

We also move `USER="$DOCKER_USER"` out of the branch, since we always want this to happen at entry-point. If we don't do this assignment, $USER will contain `coder` upon restart.

* Update entrypoint.sh

Check `$DOCKER_USER` was defined before copying it to `$USER`.
2021-05-11 10:26:38 -05:00
Akash Satheesan a5e8337c86
chore(ci): fix release scripts 2021-05-11 02:54:13 +05:30
Akash Satheesan d17c97c9cd chore(release): bump version to 3.10.0 2021-05-11 01:39:44 +05:30
Joe Previte 3518de7b85
feat: add CHANGELOG 2021-05-10 12:05:55 -07:00
Akash Satheesan 930b0460f8
fix(build): download correct cloud-agent for arch (#3331) 2021-05-10 21:56:39 +05:30
Akash Satheesan fa461ff8f1
feat(ci/build): support arm64 for cloud-agent (#3294) 2021-05-05 21:53:30 +05:30
Joe Previte 4e34eb96c8
refactor(docs): move termux info install -> termux 2021-04-28 13:44:07 -07:00
Joe Previte f06a7cca52
docs: add termux.md 2021-04-28 13:40:45 -07:00
repo-ranger[bot] ad6a7746ce
Merge pull request #3228 from cdr/jsjoeio/refactor-board-milestone-workflow
docs(maintaining): use milestones over boards
2021-04-28 18:41:58 +00:00
Akash Satheesan bc3defd42a
chore(build): compile vscode+extensions in parallel (#3250) 2021-04-28 23:55:56 +05:30
Joe Previte d07317ad01
docs: add maintaining.md with workflow 2021-04-28 11:25:25 -07:00
Joe Previte 9d5f05efaf
refactor: remove old coverage shield workflow 2021-04-26 14:11:10 -07:00
Akash Satheesan 724ee93e81
chore(ci): migrate from hub to gh (#3168) 2021-04-20 02:21:33 +05:30
Akash Satheesan cbc2e8bc92
chore(ci): remove images and update publish flow (#3147)
* chore(ci): remove unmaintained images
* chore(ci): update publish workflow
2021-04-17 01:17:24 +05:30
Akash Satheesan 0b8a06863b
fix(update-vscode): add check/docs for git-subtree (#3129) 2021-04-16 01:07:28 +05:30
Joe Previte 450fcd5ba7
refactor: pass all args to test-e2e script 2021-04-15 11:46:45 -07:00
Joe Previte c9fa931a0b
fix: add retry 2 for failing e2e tests 2021-04-15 11:46:44 -07:00
Joe Previte 92b7c1e9a8
refactor: test-e2e.sh script 2021-04-15 11:46:44 -07:00
Joe Previte 638b2d5dd5
refactor: remove debian10 and references 2021-04-14 16:18:29 -07:00
Joe Previte 7bb62f1292
fix: use curl to install nfpm 2021-04-08 14:05:30 -07:00
Joe Previte 003dc0feeb
chore(release): bump version to 3.9.3 2021-04-08 11:18:56 -07:00
Joe Previte 2510e6ac41
fix: check upstream before running script 2021-04-08 11:18:20 -07:00
Joe Previte e5ed927d51
fix: sd correct file in release-prep for badges 2021-04-08 11:15:17 -07:00
Akash Satheesan 3a49299f84
dev(ci): complete refactor
Nearly completely replace the original GitHub actions workflow.
Changes:

- Move from `.sh` files in `ci/steps` to steps in the workflow.
- Move from using docker images for environment to manual setup.
- Upgrade nfpm to v2.3.1

BREAKING CHANGE: official arm64 builds no longer support CentOS 7.
If you need to use CentOS 7 on arm64, build `code-server` locally.
For docs, see the yarn/npm section in `docs/install.md`.
2021-04-08 23:42:01 +05:30
Joe Previte b1ea47c506
chore: remove --home from test-e2e script 2021-04-06 15:46:57 -07:00
Joe Previte 32d0fb0a5e
refactor: add --runInBand to e2e test script 2021-04-06 15:46:57 -07:00
Joe Previte 6f98e08bda
feat(ci): add audit job for security 2021-04-06 11:06:04 -07:00
Joe Previte 5b9f6bbe45
feat: add brew job to publish.yaml 2021-04-02 15:10:31 -07:00
Asher cbcad39a4f
Remove ipc.d.ts from final build
Now that the plugin API has its own separate types this is no longer
necessary.
2021-04-01 10:56:25 -05:00
Joe Previte 024a3110be
refactor: reorganize release notes draft format 2021-03-26 16:33:22 -07:00
Joe Previte f27c039954
refactor: change get_artifacts_url in lib.sh
This now looks for the version branch i.e. v3.9.2
to grab the artifacts instead of the head_sha
which was faulty in the past.
2021-03-26 10:30:32 -07:00
Joe Previte 27ede67e07
refactor: add check for artifacts url in lib.sh 2021-03-25 16:51:01 -07:00
Joe Previte f688e58472
chore(release): bump version to 3.9.2 2021-03-25 10:33:47 -07:00
repo-ranger[bot] 305b820828
Merge branch 'main' into jsjoeio/add-release-prep-script 2021-03-25 16:51:24 +00:00
Akash Satheesan 8332a6abc9
fix(lib/vscode): remove native-keymap and keytar (#2961)
native-keymap and keytar are only used in the electron process,
so we don't need them. This allows us to drop our dependencies on
libx11-dev, libxkbfile-dev, and libsecret-dev.
2021-03-25 22:20:58 +05:30
Joe Previte 299e17e6d9
refactor: update script command to get git branch 2021-03-25 09:46:54 -07:00
Joe Previte a1dca6da29
feat: add dry run option to release-prep.sh 2021-03-24 17:51:07 -07:00
Joe Previte a8858ea9fc
docs(ci): update step 1 of publish release 2021-03-24 17:51:06 -07:00
Joe Previte fa19f8cac8
feat: add release-prep script 2021-03-24 17:51:06 -07:00
Justin Keller 58b59fde5f
Update fixuid 0.5 and add zsh to Docker image (#2925) 2021-03-22 16:15:06 -05:00
Joe Previte 071c8e15fc
Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-17 13:51:27 -07:00
Joe Previte d3df963d39
Merge branch 'main' into jsjoeio/upgrade-vscode-1.54 2021-03-16 14:42:51 -07:00
Joe Previte 0c2708302d
refactor: remove --home flag/feature
We are removing this because it was removed upstream in PR~115599.
2021-03-16 14:25:28 -07:00
Joe Previte d05389880a
chore: update formatting w/new prettier sh plugin 2021-03-15 15:36:31 -07:00
Joe Previte 0ba53b6adf
feat: add prettier-plugin-sh 2021-03-15 15:14:26 -07:00
Joe Previte 3eafcf94b7
refactor: remove shfmt 2021-03-15 15:13:44 -07:00
Joe Previte 9ee2556dd1
chore: update gitignore with test dirs 2021-03-12 12:00:57 -07:00
Joe Previte 529d69e8e8
refactor: add scripts to separate unit, e2e tests 2021-03-12 12:00:56 -07:00
Joe Previte dac44ec2e0
feat(update-vscode): use todo items for conflicts in pr body 2021-03-11 10:50:06 -07:00
Joe Previte 44a4a0bc20
fix: update base branch to main 2021-03-11 10:26:36 -07:00
Joe Previte 6f638f1329
fix: set upstream when pushing branch 2021-03-11 10:23:43 -07:00
Joe Previte b0861029c0
fix: add no-verify for commit line 2021-03-11 10:14:56 -07:00
Joe Previte 3e79a84152
feat: add docs and update PR body 2021-03-11 09:48:18 -07:00
Joe Previte 612b8314f9
feat(update-vscode): add step to commit files 2021-03-10 17:14:20 -07:00
Joe Previte f19ae171ea
feat(update-vscode): grab latest vscode version 2021-03-10 15:09:00 -07:00
Joe Previte e0203f2a36
feat: add new section to release notes draft 2021-03-05 14:05:33 -07:00
Joe Previte 606fa26b5a
chore: bump version to 3.9.1 2021-03-05 14:05:31 -07:00
Joe Previte 925073db31
Merge pull request #2773 from cdr/upgrade-vscode-1.53
feat(vscode): update to version 1.53.2
2021-03-05 14:03:10 -07:00
Joe Previte 696e0fbb14
docs(ci): add step for updating docs shield 2021-03-02 15:43:49 -07:00
Joe Previte 90807e19e7
fix(ci): replace extension in test standalone 2021-03-02 10:58:38 -07:00
Joe Previte 6b56e6572d
feat(testing): add serviceWorker tests 2021-02-26 16:00:18 -07:00
Joe Previte 9ea18636d7
Merge branch 'master' into upgrade-vscode-1.53 2021-02-26 14:23:24 -07:00
Joe Previte 99af11ecc3
docs: add homebrew bump to release steps 2021-02-25 16:51:43 -07:00
Joe Previte 38f555e218
chore: fix lint issues in update-vscode 2021-02-25 12:40:49 -07:00
Joe Previte 169b51e453
chore: run yarn fmt 2021-02-25 12:32:05 -07:00
Joe Previte db3a13ba06
chore: fix script 2021-02-25 11:20:25 -07:00
Joe Previte 977c579c02
feat: add update-vscode.sh script 2021-02-25 10:19:24 -07:00
Joe Previte 69ca92f0b2
chore: remove old reset-vscode script 2021-02-24 13:49:34 -07:00
Joe Previte 38d7718feb
refactor: use promises for goHome test 2021-02-22 13:41:10 -07:00
Joe Previte d0eece3d8f
refactor: add note to test.sh about --home 2021-02-22 13:41:10 -07:00
Joe Previte e077f2d97f
refactor: update test script to check env var 2021-02-22 13:41:09 -07:00
Joe Previte 3033c8f9a2
feat: add test to visit go home in app menu 2021-02-22 13:41:08 -07:00