Commit graph

8799 commits

Author SHA1 Message Date
pokeeffe-molecula
083670d20e
Merge pull request #1895 from molecula/cicd-will-it-never-end
added retries to go tests
2022-01-27 17:14:59 -06:00
pokeeffe-molecula
586e4d7f5a Merge branch 'master' into cicd-will-it-never-end 2022-01-27 15:50:21 -06:00
pokeeffe-molecula
d7401babd4 add retries....so these fracking flaky ass tests don't screw up the pipeline constantly 2022-01-27 15:49:54 -06:00
pokeeffe-molecula
1774062f24
Merge pull request #1894 from molecula/cicd-will-it-never-end
allow clustertests to fail
2022-01-27 15:24:44 -06:00
pokeeffe-molecula
7ff9e82b1b
Merge branch 'master' into cicd-will-it-never-end 2022-01-27 14:52:51 -06:00
pokeeffe-molecula
fedcdab1c2 allow clustertests to fail 2022-01-27 14:49:46 -06:00
pokeeffe-molecula
a8fd5f99f2
Merge pull request #1890 from molecula/fb1151-auth-tooling
FB-1151 auth tooling
2022-01-27 13:04:13 -06:00
pokeeffe-molecula
95605a4e59
Merge pull request #1891 from molecula/cicd-will-it-never-end
build roaring-migrate
2022-01-27 12:16:58 -06:00
souhailanoor
1d26739c90
Merge branch 'master' into fb1151-auth-tooling 2022-01-27 12:07:22 -06:00
pokeeffe-molecula
47f87f24c3
Merge branch 'master' into cicd-will-it-never-end 2022-01-27 11:42:40 -06:00
pokeeffe-molecula
05864f38df
Merge pull request #1893 from molecula/docker-is-messed-up
fix broken dockerfile
2022-01-27 11:42:14 -06:00
pokeeffe-molecula
d16ada75af use -o instead of a subsequent mv command 2022-01-27 11:36:16 -06:00
reesporte
1db6009d70 fix broken dockerfile
i think its gonna work this time!!!
2022-01-27 10:55:20 -06:00
pokeeffe-molecula
dff061ca22 now do it for the other one 2022-01-27 10:18:21 -06:00
pokeeffe-molecula
5d7c2437e9 trying again 2022-01-27 10:00:22 -06:00
pokeeffe-molecula
0f5ce612e0 building roaring-migrate for linux_amd64 2022-01-27 09:39:34 -06:00
pokeeffe-molecula
b67b8aff6c Merge branch 'master' into cicd-will-it-never-end 2022-01-27 09:38:14 -06:00
Souhaila Noor
0e1cf5bbbd Enable authentication/authorization for featurebase tools
- Add auth-token for featurebase import, backup and restore
- Add auth-token to http request
- Create a cluster tests with auth enabled
- Add test for import with auth enabled
2022-01-26 17:30:26 -06:00
Matthew Jaffee
d7c3fa2a93
Merge pull request #1889 from molecula/1174-projectify-clustertests
add project support to clustertests to allow for concurrent runs
2022-01-25 08:15:26 -06:00
Matthew Jaffee
71da3fdcb2 add docker-compose project to clustertests in CI to allow concurreny 2022-01-25 07:54:48 -06:00
Matthew Jaffee
7fbcba5c4b add GCP back in 2022-01-25 07:54:48 -06:00
Matthew Jaffee
3477534930 add project support to clustertests to allow for concurrent runs
also remove gcp tag... shouldn't be needed any more as I think the AWS
runners are properly configured.
2022-01-25 07:54:48 -06:00
pokeeffe-molecula
e0e86ec1d3 put docker containers in the right place 2022-01-24 18:34:14 -06:00
pokeeffe-molecula
8e775b88b9
Merge pull request #1875 from molecula/cicd-will-it-never-end
Added docker build & rpm, deb packaging for linux arm64
2022-01-24 17:15:13 -06:00
reese
de11a1d903
Merge pull request #1888 from molecula/fb1146
fb1146 - fixes panic on POST /transaction on non-primary node
2022-01-24 17:11:49 -06:00
reesporte
365789b791 remove unnecessary port bindings 2022-01-24 16:29:12 -06:00
pokeeffe-molecula
d389aae9c3
Merge branch 'master' into cicd-will-it-never-end 2022-01-24 16:12:54 -06:00
reesporte
ec543ac094 Merge branch 'master' into fb1146 2022-01-24 15:25:00 -06:00
reesporte
276088c386 fix panic on POST /transaction on non-primary node
- if we're a non-primary node, redirect to the primary
- if non-primary nodes can create transactions now, then the client should not receive an ErrNotPrimaryNode
- streamline metrics logic
2022-01-24 15:24:21 -06:00
pokeeffe-molecula
1721dd0dcf remove comments 2022-01-24 15:11:02 -06:00
Matthew Jaffee
10eac6fe9a
Merge pull request #1886 from molecula/fb-1116-rip-generation
rip out generation stuff
2022-01-24 11:52:12 -06:00
Matthew Jaffee
a2e109a07c disable roaring backend in test 2022-01-24 09:49:01 -06:00
Matthew Jaffee
2d44c23ac0 remove problematic roaring-only test 2022-01-24 09:49:01 -06:00
Matthew Jaffee
82c75851df rip out generation stuff
it was somewhat difficult to avoid ripping this out without also
touching some of the stuff that supports roaring backend. That's going
soon too, so no worries :)
2022-01-24 09:49:01 -06:00
Travis Turner
1d7a42c7e7
Merge pull request #1826 from molecula/tlt/rbf-comments
Clean up some of the godoc entries in rbf
2022-01-24 09:37:30 -06:00
Travis
07cd6ec228
Clean up some of the godoc entries in rbf 2022-01-22 07:52:36 -06:00
pokeeffe-molecula
bc89ca3553 now with real private_subnets! 2022-01-21 20:31:16 -06:00
pokeeffe-molecula
5241bd4ce4
Merge branch 'master' into cicd-will-it-never-end 2022-01-21 18:07:19 -06:00
reese
6d2f95e3fb
Merge pull request #1884 from molecula/fb1164
add test coverage
2022-01-21 14:29:46 -06:00
reesporte
836df379ac add test coverage
for the following auth related packages:
* authn
* http
* server

fix minor bugs, do some cleaning up, etc in `authn/authenticate.go` and `http/handler.go`
2022-01-21 13:57:47 -06:00
Ben Johnson
c7208cf5e3
Merge pull request #1882 from molecula/go-mod-v3
Upgrade go.mod to featurebase/v3
2022-01-21 12:53:09 -07:00
Ben Johnson
9ebf0e2119 Upgrade go.mod to featurebase/v3 2022-01-21 10:57:05 -07:00
seebs
4e578b8a65
Merge pull request #1879 from molecula/slowCI
bump test timeouts ridiculously
2022-01-21 11:52:54 -06:00
Seebs
03a18e9beb for leasedkv tests, don't use default etcd config
The default etcd config means that if two of this test run around the
same time, we end up with one of them failing because it can't bind.
Elsewhere, we resolve this by binding to ephemeral ports and fixing
up the config to use them, so we duplicate that here.

This includes duplicating the existing listenerWithURL from test/,
because that package has to import us, so we can't import it, and
I don't really want to make a separate package for one trivial
function.
2022-01-21 11:12:10 -06:00
Seebs
096c44884a fix typo in doc comment 2022-01-21 11:12:10 -06:00
Seebs
375aaf8fbc don't hardcode local port for backup and restore pprof service
If we hardcode a port, we can't run on a crowded machine, like in
CI. If we use :0, we can print the value actually picked.
2022-01-21 11:12:10 -06:00
Seebs
d50065a16f bump timeouts on single-writer RBF Tx test
There's no correct timeout value here, really, but the intent
of this is that we first want to be sure that a second tx doesn't
successfully start before the first exits, and then that the second
*does* successfully start *after* the first exits.

Unfortunately, there's no guarantees on timely processing, and in
reality, CI can break us by waiting more than 10ms before we get
enough CPU time to do something. More generally, there's no way to
make a test like this work correctly -- no matter how long you wait
for the second Tx to start before closing the first one, it's always
possible that it *would* have started just a millisecond later even
without you closing the first one. And similarly, no matter how long
you give it to start when it's *supposed* to, it could always take
longer.

We could in principle just set this to wait for the second Tx to start
and rely on the test timeout killing us if it doesn't, but then we
don't get a useful message.

Let's optimistically hope that 10 seconds is long enough for a trivial
rollback to happen, since that doesn't need to imply writes. And I
think 50ms is a better bet for the first test, although that does
make this test close to 5x slower on non-CI hardware.
2022-01-21 11:12:10 -06:00
Seebs
b40c86c278 retry etcd leader on "etcdserver: leader changed"
This should always be etcdserver.ErrLeaderChanged, but actually
apparently it's not always:

	non-retryable error: etcdserver: leader changed

The "non-retryable" comes from our code. The "leader changed"
message appears to come from etcdserver, but there appear to be
circumstances where it has a suffix, or it could get wrapped,
so we check for the string being contained in an error. This is
not pretty.
2022-01-21 11:12:10 -06:00
Seebs
b5fb9aad84 bump test timeouts ridiculously
gitlab CI runs as much as 5x slower sometimes during business hours,
resulting in tests failing due to 10-11 minute timeouts that would
succeed in under 2-3 minutes outside of business hours. to allow us
to do anything at all, let's just set that to half an hour, and 90
minutes for `go test -race`.

Concern: It's possible there's a timeout that's a gitlab CI configuration
thing involved too, because we see some go test timeout panics, but we
also see some weird messages about SIGQUIT at 11 minutes, which isn't
the go test timeout, so we may need to address that too.

Note that we're changing the Makefile, and also the config for the
gitlab CI passes, which don't use the Makefile. The Makefile changes
are just to be careful and avoid retriggering this later. We may
want to revert these if we get the other issues fixed.
2022-01-21 11:12:10 -06:00
Garrison Davis
71b03d8b85
Merge pull request #1883 from molecula/remove-go-caching
Remove go caching
2022-01-21 10:02:48 -07:00