summaryrefslogtreecommitdiffhomepage
path: root/.github
AgeCommit message (Collapse)AuthorFilesLines
2021-07-26disable vm tests on every commit to mainChristine Dodrill1-2/+0
This experiment apparently failed. Signed-off-by: Christine Dodrill <xe@tailscale.com>
2021-07-19.github/workflows: add 'go generate' CI jobJosh Bleecher Snyder1-0/+34
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-07-09Run tests on integration test changes (#2373)Christine Dodrill1-3/+3
Hopefully this will catch situations like https://github.com/tailscale/tailscale/pull/2372 Signed-off-by: Christine Dodrill <xe@tailscale.com>
2021-07-08tstest/integration/vms: add Oracle Linux image (#2328)Christine Dodrill1-1/+1
Oracle Linux[1] is a CentOS fork. It is not very special. I am adding it to the integration jungle because I am adding it to pkgs and the website directions. [1]: https://www.oracle.com/linux/ Signed-off-by: Christine Dodrill <xe@tailscale.com>
2021-06-30experimental VM test: add -vChristine Dodrill1-1/+1
Apparently if you don't add -v the tests don't report anything useful when they break. Joy. Signed-Off-By: Christine Dodrill <xe@tailscale.com>
2021-06-28integration vm tests: run on every commit to main (#2159)Christine Dodrill1-6/+17
This is an experiment to see how often this test would fail if we run it on every commit. This depends on #2145 to fix a flaky part of the test. Signed-off-by: Christine Dodrill <xe@tailscale.com>
2021-06-28tstest/integration/vms: build and run NixOS (#2190)Christine Dodrill1-1/+1
Okay, so, at a high level testing NixOS is a lot different than other distros due to NixOS' determinism. Normally NixOS wants packages to be defined in either an overlay, a custom packageOverrides or even yolo-inline as a part of the system configuration. This is going to have us take a different approach compared to other distributions. The overall plan here is as following: 1. make the binaries as normal 2. template in their paths as raw strings to the nixos system module 3. run `nixos-generators -f qcow -o $CACHE_DIR/tailscale/nixos/version -c generated-config.nix` 4. pass that to the steps that make the virtual machine It doesn't really make sense for us to use a premade virtual machine image for this as that will make it harder to deterministically create the image. Nix commands generate a lot of output, so their output is hidden behind the `-verbose-nix-output` flag. This unfortunately makes this test suite have a hard dependency on Nix/NixOS, however the test suite has only ever been run on NixOS (and I am not sure if it runs on other distros at all), so this probably isn't too big of an issue. Signed-off-by: Christine Dodrill <xe@tailscale.com>
2021-06-08.github/workflows: add integration test with a custom runner (#2044)Christine Dodrill1-0/+36
This runner is in my homelab while we muse about a better, more permanent home for these tests. Updates #1988 Signed-off-by: Christine Dodrill <xe@tailscale.com>
2021-05-06.github: remove verbose issue templates, add triage label.David Anderson2-50/+2
Signed-off-by: David Anderson <danderson@tailscale.com>
2021-05-04workflows: execute benchmarksJosh Bleecher Snyder5-6/+12
#1817 removed the only place in our CI where we executed our benchmark code. Fix that by executing it everywhere. The benchmarks are generally cheap and fast, so this should add minimal overhead. Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
2021-05-04workflows: run staticcheck on more platformsJosh Bleecher Snyder1-3/+15
To prevent issues like #1786, run staticcheck on the primary GOOSes: linux, mac, and windows. Windows also has a fair amount of GOARCH-specific code. If we ever have GOARCH staticcheck failures on other GOOSes, we can expand the test matrix further. This requires installing the staticcheck binary so that we can execute it with different GOOSes. Signed-off-by: Josh Bleecher Snyder <josharian@gmail.com>
2021-04-28workflows: remove coverageDenton Gentry1-48/+0
This workflow has been disabled for some time. It can come back later, when appropriate. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-04-20.github/workflows: add --race tests on Linux and WindowsAlex Brainman2-0/+100
Updates #50 Updates #833 Signed-off-by: Alex Brainman <alex.brainman@gmail.com>
2021-02-19Switch to Go 1.16.Brad Fitzpatrick11-11/+11
Fixes #1370 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-01-07Cache go modules.Denton Gentry1-0/+8
Apply Go actions cache, as described in https://markphelps.me/2019/11/speed-up-your-go-builds-with-actions-cache/ Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-01-07Adjust coverage options.Denton Gentry1-1/+1
+ we don't need an exactly accurate count of the number of times each time ran. Remove -covermode, the default "set" will be fine to just track whether a given line ran at all. + add -benchtime=1x. We only need to run the benchmarks once. + -bench=. to match any character. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-01-07Add coveralls.io support.Denton Gentry1-0/+40
We include -bench because some parts of the codebase, like smallzstd, do not have regular unit tests but do have very good benchmark tests that covers all functions. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2020-11-02.github/workflows: use cache to speed up Windows testsAlex Brainman1-0/+8
Fixes #872 Signed-off-by: Alex Brainman <alex.brainman@gmail.com>
2020-10-28.github/workflows: add tests on WindowsBrad Fitzpatrick1-0/+44
Fixes #50 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-09-09Add depaware.txt files and GitHub checks. (#745)Brad Fitzpatrick1-0/+28
See https://github.com/tailscale/depaware Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-08-18Switch to Go 1.15.Brad Fitzpatrick8-8/+8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-07-16github/workflows: add go vet ./... stepBrad Fitzpatrick1-0/+3
2020-07-10github: also run 32-bit tests on LinuxBrad Fitzpatrick1-0/+48
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-06-15Rename master -> main.Avery Pennarun7-7/+7
Background: https://www.zdnet.com/article/github-to-replace-master-with-alternative-term-to-avoid-slavery-references/
2020-04-24Disable staticcheck for tempfork packages.Brad Fitzpatrick1-1/+1
2020-04-19github: use Go 1.14 in CI.David Anderson7-14/+14
Signed-off-by: David Anderson <danderson@tailscale.com>
2020-03-17github: add license check to CI.David Anderson1-0/+40
Signed-off-by: David Anderson <dave@natulte.net>
2020-03-06Revert "update CI and everything to Go 1.14."David Anderson6-12/+12
This reverts commit 905fe9f6a227398c9032cfdee46a20cef43c8fa9. We're not quite ready to update the Mac/iOS builds to 1.14.
2020-03-06Print the staticcheck version.David Anderson1-0/+3
Signed-off-by: David Anderson <danderson@tailscale.com>
2020-03-06update CI and everything to Go 1.14.David Anderson6-12/+12
2020-02-13Remove the explicit security redirect.David Anderson1-3/+0
Github makes one of those automatically based on SECURITY.md. Signed-off-by: David Anderson <dave@natulte.net>
2020-02-13Add issue templates and redirects.David Anderson3-0/+71
"New issues" will now suggest templates for bugs and feature requests. Support requests get directed to support@tailscale.com, and security reports to security@tailscale.com. Signed-off-by: David Anderson <dave@natulte.net>
2020-02-13meta: move cross-compiled builds to their own parallel jobsBrad Fitzpatrick5-15/+212
And add FreeBSD. Fixes #37 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-02-12meta: cross-compile tests for other geeseevalexpr1-1/+19
For now this is just darwin/windows, but we'll eventually add support for {free,open}bsd Signed-off-by: evalexpr <wilkinsphysics@gmail.com>
2020-02-12meta: build different GOOSes in CIJonathan Wilkins1-14/+12
First pass at #37 without support for cross-compilation of tests Signed-off-by: evalexpr <wilkinsphysics@gmail.com>
2020-02-11meta: add a staticcheck CI step.David Anderson1-0/+40
Signed-off-by: David Anderson <dave@natulte.net>
2020-02-11meta: revert issue templates for now.David Anderson3-68/+0
Looks like Github doesn't understand mailto: links, so we'll have to create KB pages on tailscale.com and point to those. Signed-off-by: David Anderson <dave@natulte.net>
2020-02-11Create some issue templatesDave Anderson2-0/+60
The goal here is to avoid support and "general product questions" from landing in Github, because we don't monitor Github for those.
2020-02-11meta: create issue template configuration.David Anderson1-0/+8
The configuration directs support/product questions to info@tailscale.com, and security issues to security@tailscale.com. Signed-off-by: David Anderson <dave@natulte.net>
2020-02-11Add slack notifications to CI.David Anderson1-15/+14
Signed-off-by: David Anderson <dave@natulte.net>
2020-02-10Add a build+test github action, as a quick and cheerful CI.David Anderson1-0/+48
Signed-Off-By: David Anderson <dave@natulte.net>