Commit Graph

123 Commits

Author SHA1 Message Date
Jose Diaz-Gonzalez
f20a6a2563 tests: run unit tests outside of docker by default
This allows execution of unit tests within the devcontainer environment, which already has the correct golang.
2024-12-03 21:45:41 -05:00
Jose Diaz-Gonzalez
c25071f0b8 fix: ensure testing still works in docker container environments 2024-09-23 00:33:49 -04:00
Jose Diaz-Gonzalez
b996114209 chore: remove debugging 2024-09-23 00:00:56 -04:00
Jose Diaz-Gonzalez
4c634b6fd0 debug: why ssh isnt running 2024-09-22 23:38:28 -04:00
Jose Diaz-Gonzalez
8f18c3d581 debug: update logging 2024-09-22 23:27:33 -04:00
Jose Diaz-Gonzalez
47c1b3b295 fix: restart ssh socket
https://discourse.ubuntu.com/t/sshd-now-uses-socket-based-activation-ubuntu-22-10-and-later/30189
2024-09-22 23:27:33 -04:00
Jose Diaz-Gonzalez
6a22ae05d2 debug: show active systemd services 2024-09-22 23:27:32 -04:00
Jose Diaz-Gonzalez
2c4eb67104 fix: go back to not using systemd 2024-09-22 23:27:32 -04:00
Jose Diaz-Gonzalez
08f68c6634 fix: do not wait forever and use systemctl for interacting with services 2024-09-22 23:27:32 -04:00
Jose Diaz-Gonzalez
5bb4de58d7 fix: update ssh.socket to listen on port 22333
Newer versions of sshd respect the systemd settings for listening on ports vs just the sshd_config.
2024-09-22 23:27:32 -04:00
Jose Diaz-Gonzalez
46c1e80c19 debug: check on ssh status when setting up ci 2024-09-22 23:27:32 -04:00
Jose Diaz-Gonzalez
a72cb696f6 debug: show output from ssh attempt 2024-09-22 23:27:32 -04:00
Jose Diaz-Gonzalez
d346a347a0 fix: execute go get/build with mod in readonly mode
This will avoid issues where a build or test will inadvertently update dependencies, causing drift between what is in code and what is being tested/run.
2024-03-06 01:52:06 -05:00
Jose Diaz-Gonzalez
28532a56a9 tests: fix issue where CI cannot install docker-buildx-plugin 2024-02-05 14:59:20 -05:00
Jose Diaz-Gonzalez
b8329d76ec tests: add support for running golangci-lint automatically
The plugin paths must be computed at execution because not all plugins contain golang code.
2024-01-17 02:28:11 -05:00
Jose Diaz-Gonzalez
17e88da2dc fix: install docker-compose-plugin in ci
This used to be installed as moby-compose in Github Runners but they switched to the docker apt repo and don't install the plugin from the apt repository as it is outdated so we have to do it ourselves.
2023-08-26 14:33:07 -04:00
Jose Diaz-Gonzalez
5846301a48 tests: make it possible to specify an alternative base domain for tests
When developing Dokku, it is useful to use a real domain to test actual functionality. This is impossible if the domain is hardcoded to dokku.me in testing.
2023-08-05 20:58:26 -04:00
Jose Diaz-Gonzalez
ef25a9b0d8 refactor: standardize on shorthand for redirecting all output to /dev/null
The shorthand is more prevalent in this codebase, and is something that bash supports, so we should just use the same thing everywhere.

Note that we do not use shorthand redirect in Makefile as shell parsing is a bit different in Make and the shorthand redirect doesn't seem to be properly supported, causing CI errors.
2023-08-05 10:58:57 -04:00
Jose Diaz-Gonzalez
dac566e75e refactor: move all shellcheck disable definitions to .shellcheckrc file
This makes standard use of shellcheck work without needing to provide extra configuration anywhere.

Also remove use of inline 'shellcheck disable' calls that are already defined in the .shellcheckrc and don't need to be set inline.
2023-08-05 10:58:57 -04:00
Jose Diaz-Gonzalez
21947837c3 fix: use correct path within the ssl tarballs
Also add a command to help automate the generation of the certificates in the future.
2023-01-16 01:50:52 -05:00
Jose Diaz-Gonzalez
edd0b16975 fix: install goverage via go get 2022-11-07 16:11:38 -05:00
Jose Diaz-Gonzalez
4a7edc234a feat: add debugging and use go get to grab godacov 2022-11-02 15:45:33 -04:00
Jose Diaz-Gonzalez
42cd2ae4bc fix: switch to go install from go get
This no longer works as of go 1.18: https://go.dev/doc/go-get-install-deprecation
2022-11-02 11:57:22 -04:00
Jose Diaz-Gonzalez
a39a47b3ae feat: respect TARGETARCH when installing development dependencies 2022-10-12 21:53:11 -04:00
Jose Diaz-Gonzalez
a7465f9d81 tests: use github actions instead of circleci for test running 2021-01-20 14:00:07 -05:00
Jose Diaz-Gonzalez
e4ec973a6e Merge pull request #4329 from dokku/apt-no-install-recommends
Standardize apt-get usage
2021-01-18 12:12:11 -05:00
Jose Diaz-Gonzalez
ed84f21c08 refactor: standardize apt-get usage
- Always put flags in same location
- Always use apt-get
- Add --no-install-recommends where possible
2021-01-17 20:19:56 -05:00
Jose Diaz-Gonzalez
1dc63eecbd tests: switch to upstream bats-core
Bats core now has junit report formatting, so there is no need to continue using a fork.
2021-01-17 16:18:24 -05:00
Jose Diaz-Gonzalez
f53b26f3f0 tests: update junit test files when a bats retry is successful 2020-12-20 17:26:27 -05:00
Jose Diaz-Gonzalez
465e220315 feat: retry failing and skipped tests once
Plugn is fairly brittle since the upgrade to bash 5, so this might help decrease the need to retry the whole circleci job.
2020-12-20 02:42:37 -05:00
Kazuhiro NISHIYAMA
98c81513aa Accept first pushed branch as deploy-branch
And set to DOKKU_DEPLOY_BRANCH.

Idea from https://github.com/dokku/dokku/pull/4167#issuecomment-717607136
2020-12-08 23:15:11 +09:00
Jose Diaz-Gonzalez
3f4b0eccd8 refactor: call tests while in directories
They fail to be listed in go list after the gomodules move.
2020-06-28 13:59:08 -04:00
Jose Diaz-Gonzalez
9dbc352006 chore: turn on go mod 2020-06-28 01:42:09 -04:00
Jose Diaz-Gonzalez
9d6746001e chore: revert 2020-06-20 00:28:30 -04:00
Jose Diaz-Gonzalez
0b9cecef4d tests: move testing command into config 2020-06-19 23:24:03 -04:00
Jose Diaz-Gonzalez
6d4d8a89ed fix: correct test logging output 2020-06-19 22:01:13 -04:00
Jose Diaz-Gonzalez
3c56a0c323 tests: modify to allow better running under github actions 2020-06-19 22:01:13 -04:00
Jose Diaz-Gonzalez
03f8922ffd chore: remove all debugging code 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
b9cc89e4d2 fix: set correct perms on files 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
fb4a232537 debug: exit separately 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
cf35cedd1e debug: show auth log 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
2919415d7e fix: set correct perms for ssh key files 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
ee083eb3c3 debug: list file permissions 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
88e01d8a4b debug: more logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
a8fd8d1b19 debug: more logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
f47a267917 debug: echo empty 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
bf7e86fb13 fix: drop existing key 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
1cab6acf69 fix: drop unnecessary cat 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
75a2d3a1ba debug: more test logging 2020-06-19 22:01:12 -04:00
Jose Diaz-Gonzalez
ca248a62ec debug: more logging 2020-06-19 22:01:12 -04:00