Commit graph

8781 commits

Author SHA1 Message Date
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
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
garrison.davis@molecula.com
a93c3f2f71 Remove go caching
This will likely return when it's done in S3.
2022-01-21 09:55:23 -07:00
hphamMolecula
a179b15300
Merge pull request #1873 from molecula/ui-fixes
UI bug fixes
2022-01-21 09:55:04 -06:00
hphamMolecula
239832668b
Merge branch 'master' into ui-fixes 2022-01-20 17:09:37 -06:00
reese
d47ffdf5d7
Merge pull request #1880 from molecula/grpc-logging
grpc logging
2022-01-20 16:59:24 -06:00
hphamMolecula
0891f27a6a
Merge branch 'master' into ui-fixes 2022-01-20 16:38:34 -06:00
reese
647d62c8e7
Merge branch 'master' into grpc-logging 2022-01-20 15:51:21 -06:00
reese
efb5be8a67
Merge pull request #1878 from molecula/redirect-url
add a redirect-base-url config option
2022-01-20 15:51:00 -06:00
reesporte
81fcd9c228 fix merge conflicts 2022-01-20 14:14:25 -06:00
reesporte
9371212697 Merge branch 'master' into grpc-logging 2022-01-20 14:06:05 -06:00
reesporte
399a11223f use aws to run these jobs 2022-01-20 13:58:18 -06:00
reese
2e0aaa27a9
Merge branch 'master' into redirect-url 2022-01-20 13:08:16 -06:00
hphamMolecula
1d618a36ce
Merge branch 'master' into ui-fixes 2022-01-20 12:21:15 -06:00
Samir Patel
164c69bdf2
Merge pull request #1874 from molecula/keygen
update keygen subcommand
2022-01-20 13:19:09 -05:00
reesporte
87bbca938c add a redirect-base-url config option
this allows the user to configure a url for their IDP to redirect to, rather
than relying on the bind address of the featurebase server itself
2022-01-20 12:09:18 -06:00
hphamMolecula
ac54607a2c
Merge branch 'master' into ui-fixes 2022-01-20 09:42:01 -06:00
Samir Patel
dcdc90b961
Merge branch 'master' into keygen 2022-01-20 01:12:45 -05:00
reesporte
592fcbb05b one logger to rule them all
unify logging method, actually log query for streaming and unary requests
2022-01-19 21:20:08 -06:00
reese
06ed22ef93
Merge pull request #1877 from molecula/fb1167
fix bug with nil elements in protobuf indexes
2022-01-19 21:13:03 -06:00