4 Commits

Author SHA1 Message Date
782b938334 test: split unit and integrations suites to parallelize (#12039) 2024-02-22 14:34:00 -07:00
4f8d3240f6 Use 0.28.1 build image and update go and alpine versions (#8583)
**What this PR does / why we need it**:

- Use the 0.28.1 build image
- Update Go version to 1.20.1
- Use Alpine 3.16.4
- Fix linter issues due to updated govet in 1.20.1 
- Modify images to not create `/etc/nsswitch.conf` file anymore
(available by default on Alpine 3.16.4)
- Remove impossible test cases for `TestMemChunk_IteratorBounds`(see
https://github.com/grafana/loki/pull/8591#discussion_r1115020111 for
context)

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Co-authored-by: Christian Haudum <christian.haudum@gmail.com>
Co-authored-by: DylanGuedes <djmgguedes@gmail.com>
2023-02-23 13:02:18 +00:00
5073b48b62 Add integration for SSD (read & write targets) (#6585)
* Add integration for SSD (read & write targets)

* Hardcode randStringRunes to fix linter
2022-07-07 10:05:48 -06:00
213bb86802 Add integration tests which test happy path (#5968)
* Add integration tests which test happy path

This PR adds simple go based integration tests, which can run Loki
in two modes:

- single-binary
- micro-services with index-gateway

After standing up it performs the most basic duties like:
- ingest logs
- run a range query
- query label names and label values

This is meant to catch more significant problem as early as possible in
the PR.

We should aim to keep this as simple as possible.

* Replace config generation with template

Makes configuration much more readable and avoids easy mistakes

* Apply suggestions from code review

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
2022-05-03 04:06:54 -04:00