47 Commits

Author SHA1 Message Date
Reinaldy Rafli
e3e7789853
fix(tests): skip logs event test for errors-only (#3915) 2025-09-03 13:25:21 +01:00
Reinaldy Rafli
af32d373b2
test: run errors-only integration tests (#3910) 2025-09-03 06:05:57 +07:00
Reinaldy Rafli
f5773e8ed5
feat: enable Logs feature (#3912)
* feat: enable Logs feature

* feat: enable swap on all runners

See ce819b8d99
2025-09-02 10:21:03 -07:00
Pierre Massat
8bf5663c0a
fix(eap): Fix dataset parameter to target spans (#3866) 2025-08-12 12:48:43 -07:00
Tobias Wilfert
bf660f3302
fix: Increase timeout for flakey test (#3781) 2025-06-27 06:12:13 +07:00
Anton Pirker
4276f44a07
Make usage of Python SDK future proof (#3714)
Fixes problems that appear when Python SDK 3.0 will be released.
2025-05-27 13:07:44 +02:00
Emmanuel Ferdman
84094424e8
Resolve datetime deprecation warnings (#3686)
# PR Summary
This small PR fixes the `datetime` deprecation warnings which you can find in the CI logs:
```python
 /home/runner/work/_actions/getsentry/self-hosted/master/_integration-test/test_01_basics.py:303: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
```
2025-05-02 12:19:34 +01:00
Burak Yigit Kaya
e1870f8ecb
ci: Remove obsolete dcr up -w from import test (#3544)
I _think_ we can get away with this but let's see what the CI thinks. If it passes, it should save us another minuter or two.
2025-01-17 12:29:23 -08:00
Burak Yigit Kaya
63b6c0afa7
test: Reorganize backup/restore tests for speed and reliability (#3537)
We should do the backup/restore tests _after_ we do the basic tests. This is both more efficient as we avoid an extra up/down cycle and more meaningful as we will back up and restore an actually used system.

A bit hard to measure directly as this also moves the initial `docker compose up -w` into the test suite but a random run without this patch took about 10m 49s to finish for the testing part whereas with the patch it came down to 9m 10s so **almost 2 minutes faster**!
2025-01-16 09:59:38 -08:00
Burak Yigit Kaya
f97a5e2390
ci: Faster and smarter backup/restore tests (#3516)
From
```
================== 11 passed, 4 warnings in 762.35s (0:12:42) ==================
```

to
```
================== 11 passed, 4 warnings in 343.58s (0:05:43) ==================
```
2025-01-11 21:59:13 +00:00
Burak Yigit Kaya
01d7741bc5
fix(nginx): _assets should rewrite to _static/sentry/dist (#3483)
Our default fallback, `_assets`, assumes we use a CDN which is not the case on self-hosted. This patch adds a stop-gap fix for front-end URLs asking for this path.

Should fix #3479 and #3470.
2024-12-20 19:32:29 +00:00
Hubert Deng
3150263073
Edit test file name (#3002)
edit file name
2024-04-29 10:47:32 -07:00
Hubert Deng
6f91da5ea5
Fix master test failures (#3000)
* fix for tests?

* fix tests on master
2024-04-26 11:27:58 -07:00
Hubert Deng
3ead5cf11d
Bump docker compose version in CI (#2980)
* only rerun tests on v2.0.1

* change from http error to request error

* use 3 retries like before
2024-04-19 14:22:29 -07:00
Hubert Deng
b5237d2a62
Port last integration tests to python (#2966)
* port custom ca cert test to python
2024-04-16 15:51:23 -07:00
Hubert Deng
7c992697af
Use python for e2e tests (#2953)
* bump e2e action commit sha
2024-04-11 13:12:19 -07:00
Hubert Deng
9b3b9bc3cd
Write Customization tests in python (#2918)
* port everything integration test related to python
2024-03-26 11:14:15 -07:00
Hubert Deng
eba22822e4
Port backup tests to python (#2907)
* port backup tests to python
2024-03-21 10:58:30 -07:00
Hubert Deng
b3d3ce06da
Integration tests in python (#2892)
* integration tests in python
2024-03-20 12:27:17 -07:00
Pierre Massat
f64b0fb130
feat(spans): Ingest spans (#2861) 2024-03-11 20:52:11 +00:00
Hubert Deng
746031dda4
Integration test improvements (#2858)
* integration test improvements
2024-03-07 14:49:16 -08:00
Alex Zaslavsky
76ab9a596e
test(backup): Use --no-prompt for backup tests (#2618) 2023-12-01 17:35:46 -08:00
Alex Zaslavsky
f00e6a9ade
feat: Add sentry-admin.sh tool (#2594) 2023-11-21 20:30:44 +00:00
Alex Zaslavsky
4485640bdd
feat(backup): Support new backup script (#2407)
Closes getsentry/team-ospo#184
2023-09-20 09:32:14 -07:00
Hubert Deng
bb65a69f61
Attempt to fix integration test flakiness (#2372)
add 60 sec timeout
2023-09-05 12:29:09 -07:00
Hubert Deng
8bf13a7a4b
Ignore fixture-custom-ca-roots service in integration test (#2321)
ignore fixture-custom-ca-roots
2023-08-03 21:17:30 +00:00
Pierre Massat
e07be386ee
feat(profiling): Run profiling on self-hosted (#2154) 2023-06-02 13:58:49 +00:00
Hubert Deng
723abc0163
Uninstall Docker Compose v1 from CI so it's not used for tests (#2114)
* remove docker compose v1

* use scripts for integration tests

* use $dc for tests

* move removing dc v1 up
2023-05-02 15:12:45 -07:00
Hubert Deng
d8176e94d5
Add backup/restore integration tests (#2012)
* add backup/restore integration tests
2023-03-07 09:47:24 -08:00
Hubert Deng
33a0d3d8e1
Remove broken replay integration test (#2011)
remove broken replay integration test
2023-03-03 15:45:24 -08:00
Hubert Deng
da640d1519
Revert symbolicator tests (#2004)
revert symbolicator tests
2023-03-02 14:29:47 -08:00
Josh Ferge
19a95c3021
feat(replays): add replays to self hosted (#1990) 2023-02-28 13:24:33 -08:00
Benedikt Franke
ec4f416c26
Reference paths relative to project root (#1800)
* Reference paths relative to the current script or project root

Before this PR:
- some scripts change the current working directory and use relative paths
- different approaches are taken to know which directory a script is running in
- paths are sometimes relative, sometimes absolute, sometimes traversing directories

After this PR:
- scripts do neither change nor care much about the current working directory
- a unified approach determines the directory of the current script
- paths are always relative to the project root

This should resolve an issue I already tried to fix with https://github.com/getsentry/self-hosted/pull/1798,
where the contents of `./sentry` were not copied
into the built container image,
thus `enhance-image.sh` did not apply.

Co-authored-by: Amin Vakil <info@aminvakil.com>
2023-02-17 09:59:48 -08:00
Ethan Smith
19d6edfae0
ci: Add test for symbolicator pipeline (#1916)
Fixes #1888

This integration test:

uploads a symbol file, which indicates where to find the symbols for the minidump
uploads a sample minidump, which creates an event we can check for

This test is based on the test here: 28f4f36b4a/tests/symbolicator/test_minidump_full.py (L72)
2023-01-19 12:57:16 -08:00
Ethan Smith
6976baee0a
ci: Check health of services after running integration tests and fix snuba-replacer
Also remove batching from snuba-replacer. This was removed in 6e98074596

Co-authored-by: Chad Whitacre <chadwhitacre@sentry.io>
2023-01-11 14:51:52 -08:00
Ethan Smith
6b9306a17c
Add pre-commit config (#1738) 2022-10-21 13:46:35 -07:00
Benedikt Franke
9eff0c3b4d
Ease modification of base image (#1479) 2022-05-25 12:54:29 -04:00
Chad Whitacre
f5d7a44b41
Add some debug logging (#1340) 2022-03-28 10:59:02 -04:00
Burak Yigit Kaya
de81299baf
ci: Temporary fix for interactive prompt on createuser (#1370) 2022-03-11 17:07:38 -05:00
Amin Vakil
6c26bce20d
Fix reset.sh docker-compose call (#1215)
Co-authored-by: Matti Paksula <matti.paksula@iki.fi>
2021-12-22 08:59:45 -05:00
Chad Whitacre
02026acb05
Unfrobulate "cleanup" in integration test (#1170)
Confusing between test cleanup and self-hosted cleanup
2021-11-29 08:41:40 -05:00
Burak Yigit Kaya
8606348c02
ci: Enable parallel tests again, increase timeouts (#1125) 2021-10-20 16:18:54 -04:00
Burak Yigit Kaya
6f0b91f285
ci(test): Relax cleanup test regex a bit (#1119) 2021-10-15 19:41:26 +00:00
EricsonMacedo
78a5c3cb87
feat: Support docker compose CLI (#1116)
Check if docker compose v2, CLI, is available and get semantic version
from it, or fallback to get semantic version out of docker-compose v1
when checking minimum requirements during install.sh script

Fixes #962
2021-10-15 21:21:19 +03:00
Burak Yigit Kaya
b32de84d31
feat(smtp): Add hostname to SMTP (#1076)
Fixes #1045.

Co-authored-by: William Desportes <williamdes@wdes.fr>
Co-authored-by: Chad Whitacre <chadwhitacre@sentry.io>
2021-08-26 10:40:22 -04:00
josh
5d69561484
fix(tests): Django 2.0 and 2.1 compatible csrf token extraction (#1052) 2021-08-05 13:07:45 +03:00
Kyle Filz
17b675c833
feat: Support custom CA roots (#1015)
Mount a certificate folder to local ca storage in containers,
and add update command to cron image's entrypoint.

Result of poking and prodding from getsentry/sentry#26851
2021-07-30 18:39:47 +03:00