Commit Graph

608 Commits (d85755554f5bcc7bb16b7600d22a43ace934c38d)

Author SHA1 Message Date
Mark D 807621b4f3 Merge remote-tracking branch 'game-ci/HEAD' into cloud-runner-develop 2022-04-03 04:17:40 +01:00
Mark D 609c8c968f better defaults 2022-04-03 03:26:49 +01:00
Mark D af3f117e87 better defaults for new inputs 2022-04-03 03:22:25 +01:00
Frostebite d3390f85ce Refactor and cleanup - no async input, combined setup/build, removed github logs for cli runs 2022-04-03 01:46:45 +01:00
Frostebite 141fd46c08 Refactor and cleanup - no async input, combined setup/build, removed github logs for cli runs 2022-04-03 01:39:26 +01:00
Frostebite f24b458d21 Refactor and cleanup - no async input, combined setup/build, removed github logs for cli runs 2022-04-03 01:31:08 +01:00
Frostebite 0675a2756c Merge branch 'main' into cloud-runner-develop 2022-04-03 00:43:33 +01:00
Frostebite cfc9d23ea3 Refactor and cleanup - no async input, combined setup/build, removed github logs for cli runs 2022-04-03 00:41:12 +01:00
Frostebite 8dffcc1c5c Refactor and cleanup - no async input, combined setup/build, removed github logs for cli runs 2022-04-03 00:12:35 +01:00
David Finol 1bc7130fea
Revert Husky (#372) 2022-04-01 20:20:36 +02:00
David Finol 419c5bb965 Test push block 2022-04-01 13:08:09 -05:00
Paul Pacheco d98a0ed32d
fix: windows build (#368) 2022-03-31 21:28:40 +02:00
David Finol ca9d445c3c
Revert windows and mac builds on PR (#367) 2022-03-31 05:31:57 -05:00
David Finol 89c1b38c3b Test windows and mac in PRs 2022-03-31 04:45:42 -05:00
Paul Pacheco b72639aac0
perf: avoid building docker image (#365)
* avoid building a custom image

* fix: remove unnecessary double-dash

* Rebuild with -- fix

* linting

* Remove unused variable

* support windows as well

* Fix -- command not found

* Fix unused import, remove docker build test

* no dockerfile anymore

Co-authored-by: Webber Takken <webber.nl@gmail.com>
2022-03-31 01:16:30 +02:00
Webber Takken 9a40b8903e
fix: ensure line endings (#366)
* fix: ensure line endings

* fix: only affect specific files

* chore: rearrange attributes order
2022-03-30 23:27:10 +02:00
Webber Takken f1c154a23c
Attempt to streamline dev lifecycle (git hooks) (#357)
* fix: misalignments in dev lifecycle

* fix: dist no longer added to staged

* fix: misalignments in dev lifecycle

* chore: multi-platform hooks and tests

* chore: multi-platform hooks and tests

* chore: add intention for colors

* chore: update lint-staged to fix color

* chore: update dist files

* feat: move to lefthook (remove husky and lint-staged)

* feat: move to lefthook (remove husky and lint-staged)

* fix: test aftereach

* fix: test aftereach

* fix: early restore call

* feat: jest fails if something gets logged to console

* chore: add todos of misplaced code

* chore: update dist files

* chore: move jest file
2022-03-28 01:23:32 +02:00
Paul Pacheco 9440c54d51
feat: work with rootless docker (#362)
Running docker currently mounts the docker.sock file into the container.
This was introduced in 2ab738c083 but
there is no explanation provided.

The docker.sock file is only needed if we want to run docker inside the container
to create other images or start other containers.
I searched through the code and I did not find any such use.

In particular, on fedora this gives permission denied because docker.sock
is owned by root and the container runs under an unprivileged user.
One has to change the permissions of docker.sock
(which is actually a link to /run/podman/podman.sock) to be writeable by the user.

If we don't need to use docker inside the containers,  then we can remove this file,
thus we can run this GitHub action as an unprivileged user out of the box.
2022-03-27 03:05:15 +02:00
dependabot[bot] 1ae498bcf1
Bump minimist from 1.2.5 to 1.2.6 (#361)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-26 01:14:00 +01:00
Paul Pacheco 8ed8ccb20c
fix: op not permitted in self-hosted runner (#359)
In self hosted runners in fedora with SELinux enabled,
it sometimes gives a random error
```
Error: lsetxattr /var/run/docker.sock: operation not permitted

Error: The process '/usr/bin/docker' failed with exit code 126
```

This seems to happen with docker.sock which is a link to
/run/podman/podman.sock
looks like lsetxattr is broken for links.
2022-03-23 19:41:57 +01:00
Frostebite b7590245fa Cloud Runner Tests must be specified to capture logs from cloud runner for tests 2022-03-22 20:48:05 +00:00
Frostebite 8977c6db50 Cloud Runner Tests must be specified to capture logs from cloud runner for tests 2022-03-22 20:13:08 +00:00
Frostebite 9b623cdeaa Add nodejs as build step dependency 2022-03-16 23:11:05 +00:00
Frostebite c5d2d8d27b Add nodejs as build step dependency 2022-03-16 21:52:25 +00:00
Frostebite c269d49b4e
Update cloud-runner-aws-pipeline.yml 2022-03-15 23:12:58 +00:00
Frostebite efa2eddee9
Update cloud-runner-aws-pipeline.yml 2022-03-15 23:09:38 +00:00
Frostebite 14c9af3592 Run using external secret provider to speed up input 2022-03-15 00:27:00 +00:00
Frostebite 99f9a7179b lfs smudge set explicit and undo explicit 2022-03-15 00:00:52 +00:00
Frostebite e4490cd3ca GCP-secret run, cache key 2022-03-14 23:50:59 +00:00
Frostebite 73149fb464 Correct test and implement dependency health check and start 2022-03-14 23:14:38 +00:00
Frostebite 8f516da4da cache test and action description for kuber storage class 2022-03-14 22:56:09 +00:00
Frostebite 1ab37c64da Apply k8s files for rook 2022-03-13 23:56:34 +00:00
Frostebite 9d3eb62591 Apply k8s files for rook 2022-03-13 23:46:00 +00:00
Frostebite fdd85b0718
Update action.yml 2022-03-13 23:35:04 +00:00
Frostebite cebe329680 Apply k8s files for rook 2022-03-13 23:32:37 +00:00
Paul Pacheco 9358a3a890
feat: compatibility with self-hosted runners with SELinux (#355)
* feat: compatibility with self-hosted runners with SELinux

When using a self-hosted runner with SELinux (fedora)
volumes need to be mounted with ":z" in order to have write access

these flags are documented [here](https://docs.docker.com/storage/bind-mounts/#configure-the-selinux-label)

* Ensure folders are created

* use if instead of short circuit

* ts convention either inline or use braces

* Fix linting

* fix linting errors

Co-authored-by: Webber Takken <webber.nl@gmail.com>
2022-03-11 18:18:18 +01:00
Frostebite 1814ab4f64 Always try and deploy rook for k8s 2022-03-09 21:47:53 +00:00
Frostebite 5e53df432d cache key should not contain whitespaces 2022-03-09 21:42:44 +00:00
Frostebite 755ae366fb replace filename being appended for unknclear reason 2022-03-07 20:28:14 +00:00
Frostebite 931aa95dc9 Increase k8s timeout 2022-03-07 17:02:28 +00:00
Frostebite c022d6e656 Support cache and input override commands as input + full support custom hooks 2022-03-07 15:17:13 +00:00
Frostebite dcfc6e50c5
Update action.yml 2022-03-07 01:01:24 +00:00
Frostebite 1df81edc9c
Update action.yml 2022-03-07 00:56:22 +00:00
Frostebite b732b6befb Remove unused tree commands 2022-03-06 02:14:50 +00:00
Frostebite 3b7982c721 Removal of early branch (breaks lfs caching) 2022-03-06 02:08:40 +00:00
Frostebite d8278dc24a Simple override cache push and pull override to allow pure cloud storage driven caching 2022-03-06 02:04:27 +00:00
Frostebite a8be343564 Simple override cache push 2022-03-06 01:58:02 +00:00
Frostebite 035e59e774 Use lfs guid sum 2022-03-06 01:45:27 +00:00
Frostebite 2247a37a2c Remove unused tree commands 2022-03-05 19:08:38 +00:00
Frostebite 4d9d9991d1 Merge branch 'main' into cloud-runner-develop 2022-03-05 16:28:48 +00:00