Commit Graph

39 Commits (f1fd40390ac376f22d831ddde0de081acfbae80f)

Author SHA1 Message Date
Marco Neumann 53d325e8fc test: end2end for skip replay 2021-08-16 13:47:56 +02:00
Marco Neumann d1d140a9c4 test: speed up kafka retention checks 2021-08-16 13:47:07 +02:00
Marco Neumann b5428e53a5 refactor: write buffer testing + better mocking
This refactors the write buffer a bit for:

- **Testing:** Add generic tests for the Kafka and the mocking
  implementation. The same interface can be used easily add new
  implementations (e.g. via Redis, filesystem, ...).
- **Partition on Write:** The caller of the writer operation must now
  specify the partition/sequencer ID. The implicit partitioning of the
  Kafka writer would have lead to broken data since we must never spill
  entries w/ the same primary key over multiple partitions. At the
  moment we will only use partition 0 but we can easily implement
  better logic in the future.
- **Improved Mocking:** The mocked implementation now simulates a system
  that feels more real. Especially the handling around multiple streams
  and "write while read" has been improved. This will be helpful for
  testing and for new features like seeking (during replay). A solid
  realistic mock also helps us to ensure that the tests using the mock
  do not rely on unrealistic behavior too much.
2021-07-15 17:20:45 +02:00
Andrew Lamb 3bb32594ba
refactor: rename end-to-end.rs to end_to_end.rs (#2015)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-15 13:50:32 +00:00
Edd Robinson 44f9689093 chore: emit server logs 2021-07-14 12:56:17 +01:00
Carol (Nichols || Goulding) f0efd20259 chore: Switch to rust-toolchain.toml to specify Rust components we need as well 2021-06-23 15:28:58 -04:00
Carol (Nichols || Goulding) 31ad5c85f9 fix: Consistently refer to docker-compose 2021-06-21 09:41:37 -04:00
Carol (Nichols || Goulding) 4191300a41 fix: Move environment variables to ENV declarations in Dockerfile 2021-06-21 09:41:36 -04:00
Carol (Nichols || Goulding) 485d8cddc4 docs: Remove outdated comment 2021-06-21 09:41:36 -04:00
Carol (Nichols || Goulding) 4ba6d8cd4f chore: Add a dockerignore file to not send the target directory 2021-06-21 09:41:36 -04:00
Carol (Nichols || Goulding) a0583381a1 chore: Run kafka integration tests using docker-compose
And, importantly, using the CircleCI machine image to avoid running
Docker-in-Docker.
2021-06-21 09:36:35 -04:00
pierwill f349cfb64f
ci: verify gpg signatures of dependencies in CI (#1609)
* ci: verify gpg signatures of dependencies in CI

Verify signatures of bazel and influxdb2.

* fix: harden curl in Dockerfile.ci

Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-03 16:20:50 +00:00
Marko Mikulicic 9633550cb8
fix: Log sha256sum before running docker build (#1309)
If the layer is cached, docker build won't print the output of the RUN command.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-27 07:34:36 +00:00
Luke Bond 39abadba0d chore: logging to debug CI 2021-04-26 12:49:23 +01:00
Raphael Taylor-Davies 79e6963d9b
fix: specify stable version (#1267) 2021-04-20 19:29:14 +00:00
Edd Robinson bbf3e7aefa chore: update circle job 2021-04-20 16:12:52 +01:00
Edd Robinson 795501559e chore: update circle job 2021-04-20 15:58:28 +01:00
Marco Neumann fd0da7e74a chore: upgrade arrow and Rust
See https://github.com/apache/arrow/pull/10082 for upstream PR.
2021-04-19 14:00:04 +02:00
Carol (Nichols || Goulding) fd1f612957 chore: Install InfluxDB 2.0 OSS in the CI Docker image
This will let us stop installing it in the CI job and will let us run
the influxdb2_client integration tests in a Docker container based on
this image locally as well.
2021-04-16 00:41:20 +00:00
Carol (Nichols || Goulding) 78ca31d6bb fix: When installing bazel in Docker, don't use --user option
That only installs bazel for the `root` user, but we'd like bazel
installed for the `rust` user as well.

Also clean up the installer and run this all as one Docker RUN command.
2021-04-16 00:41:20 +00:00
Carol (Nichols || Goulding) 9c4b052ac8 feat: Add bazel installation to CI Docker image 2021-04-09 14:31:18 +00:00
Carol (Nichols || Goulding) 08727732cc fix: Remove more flatc 2021-03-22 09:38:59 -04:00
Carol (Nichols || Goulding) e463d7b8e2 fix: Update flatc used in the CI Docker image 2021-03-22 09:38:59 -04:00
Raphael Taylor-Davies a19c1cd3d6
chore: install lld in CI image and remove musl (#1024)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-19 17:38:45 +00:00
Marko Mikulicic 58b01b4ad3 fix: Add ca-certificates to iox docker image 2021-03-15 16:53:42 +00:00
Marko Mikulicic 334fb149b1
feat: Rename server run command to just run
Closes #976
2021-03-12 18:36:04 +01:00
Marko Mikulicic 8029aa887d feat: Add subcommands to server 2021-03-11 16:07:42 +00:00
Marko Mikulicic 79105b2c50
feat: Make server no longer the default command 2021-03-10 16:49:49 +01:00
Marko Mikulicic c7c4977e53 ci: Remove nightly-2021-02-12
This reverts commit c1856d2946.
2021-03-02 16:38:41 +00:00
Jacob Marble 485024cb5b feat(docker): add one-command Dockerfile
This adds a simple Dockerfile for anyone to just `docker build .` and
get a Docker image. This Dockerfile is optimized for human consumption,
not for build performance.
2021-03-01 15:45:27 -08:00
Raphael Taylor-Davies 96f9395299 feat: smaller IOx build images 2021-02-25 15:05:54 +00:00
Marko Mikulicic c1856d2946 ci: Add nightly-2021-02-12 to quay.io/influxdb/rust:ci 2021-02-12 18:03:37 +00:00
Dom 676ad1d348
build: add jq to the actual build image (#661)
Try #659 again - I accidentally put jq in the wrong build container...
2021-01-14 13:24:00 -05:00
Dom 30d9162138 build: include jq in CI image
Adds jq to the builder image used for CI runs.

This lets us use some existing scripts provided by the deployments team for
consistency.
2021-01-14 17:01:36 +00:00
Dom 7136e5853a ci: remove IOx pre-building in rust build container
Stops adding the IOx source code and performing a cargo build/test/clippy each
night. Previously this build would compile the IOx source & dependencies,
populating the incremental build cache and allowing builds that used the same
dependencies to complete quicker. This build caching was moved to
per-dependency-set caching in #496, and this pre-build is no longer used.

This should reduce the build image size substantially, making the whole CI
process a bit faster.
2020-12-03 11:58:13 +00:00
Andrew Lamb 3a9ee88f00
chore: update to latest version of arrow + update code (#486)
* chore: update to latest version of arrow + update code

* chore: Update rust toolchain to match arrow

* fix: clippy
2020-11-25 14:46:35 -05:00
Andrew Lamb 831a0875d6
chore: update to latest arrow + Rust nightly-2020-11-14 (#454)
* chore: update to latest arrow + Rust nightly-2020-11-14

* chore: update ci

* fix: update for clippy lints

* fix: Allow redundant_field_names in generated types crate

* fix: clippy about try_for_each

* fix: clippy uneeded-collect

* fix: clippy about default values

* fix: clippy mathces --> matches!

* fix: clippy sort --> sort_by_key

* fix: clippy about default values again
2020-11-16 11:48:42 -05:00
Andrew Lamb b9f347c2bc
fix: Update git branch ref from master --> main to reflect new default branch (#445) 2020-11-12 07:03:43 -05:00
Andrew Lamb 0532821ed9
chore: Make the project root neat and tidy (#416)
* chore: move example env file into docs

* chore: move dockerfiles out of root

* chore: move storectl-bench.sh into benches
2020-11-10 10:00:22 -05:00