993 Commits

Author SHA1 Message Date
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
3984a87611
fix: github.action_path may not have trailing slash (#3547) 2025-01-17 17:40:40 +00:00
Hubert Deng
9ceb00f739
chore: Remove upgrade test (#3541)
As discussed, removing the upgrade test since it doesn't provide that much utility as we are already testing upgrades from restoring docker volumes from cache
2025-01-17 11:51:31 +00:00
Hubert Deng
0ce2cd7e32
fix: Use correct path for get compose action (#3539) 2025-01-17 07:31:22 +00:00
Hubert Deng
7a897618df
fix: Caching of sentry migrations should cover additional folders (#3542)
We need to care about more than just src/sentry/migrations. We will need to account for files in src/sentry/**/migrations/*

Taken from afd7469818/.github/file-filters.yml (L90)
2025-01-17 07:16:18 +00:00
Burak Yigit Kaya
52a1901f75
ci: Move self-contained action reference to master branch (#3538)
Required follow up to #3535
2025-01-16 21:58:18 +00:00
Burak Yigit Kaya
559e732468
breaking: Upgrade min Compose version to 2.23.2 (#3535)
In this version, there's a new `--pull` argument for `docker compose run` which we will start leveraging, especially with `sentry-admin` command.

Should come with a slight speed boost.
2025-01-16 21:45:07 +00:00
Burak Yigit Kaya
3913a9f0c7
ci: Even better cache keys and granular caching (#3534)
Just starting up services for Snuba or Sentry migrations takes up to a minute sometimes and we do this even when there are no migrations, just because one of the Sentry or Snuba migrations change. This patch splits the caches up so only the necessary one runs, saving further time. It also uses the `LATEST_TAG` as the cache key for upgrade tests as the image versions or data will never change for a certain tag once it is release.
2025-01-16 10:10:14 -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
getsentry-bot
c075cf570a build: Set master version to nightly
#skip-changelog
2025-01-15 18:25:34 +00:00
getsentry-bot
43c5f10e12 Merge branch 'release/25.1.0' 2025-01-15 18:25:32 +00:00
getsentry-bot
11faae66ac release: 25.1.0 25.1.0 2025-01-15 18:05:59 +00:00
Burak Yigit Kaya
f21b16d0ec
ci: Use generic Docker volume cache action (#3524)
See https://github.com/BYK/docker-volume-cache-action
2025-01-14 14:09:11 -08:00
Burak Yigit Kaya
d807ca4277
ci: Less volatile cache keys (#3522)
Instead of using direct image hashes, only use hashes from migrations folders for each respective image for cache key generation. Should increase cache hit rate significantly as we don't have migrations much.

Also swaps the key order from `sentry-snuba` to `snuba-senry` assuming Snuba has less frequent migration additions.
2025-01-13 20:35:31 +00:00
Reinaldy Rafli
b439c67e17
docs: include regular env file on wrap-up (#3523) 2025-01-12 20:00:52 +00: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
b948b10843
fix: Fix the new e2e action to be portable (#3520)
See errors on getsentry/snuba#6746
2025-01-10 14:08:13 -08:00
Burak Yigit Kaya
63334cbcc2
ci: Move e2e test action into the repo (#3519)
This is an initial transitionary patch before landing #3516. Once we land this, we will update users of the old action to use this one and remove that repo. Then land #3516 safely.

Great thing is, with this patch and the subsequent update to getsentry/action-self-hosted-e2e-tests to use this one, all the repos would be using the Docker Volume caching we introduced in #3488.
2025-01-10 12:51:11 -08:00
Burak Yigit Kaya
cb9e0ce552
ci: Only test on compose 2.26 w/ customizations (#3506)
Docker Compose is much more robust nowadays compared to the past where we had to maintain tests for both v1 and v2 and then a specific version of v2. Hence, we are removing tests for the older versions of Docker Compose with this patch. We also remove the separate tests for customizations and w/o customizations as the one with customizations should cover the one without them anyway. This reduces the CI workload to 25% of what it was
2025-01-02 13:36:33 -08:00
Burak Yigit Kaya
8c1653dc4a
ci: Skip DB ops during install completely on cache hit (#3496)
Follow up to #3488

A new record: 2m 8s for installing self-hosted:
![image](https://github.com/user-attachments/assets/7cc6409d-5388-49ba-ad87-b7a1e99c9acc)
2024-12-31 13:26:22 -08:00
Hubert Deng
8653327bc1
chore: Remove everything zookeeper (#3499) 2024-12-31 18:53:14 +00:00
Burak Yigit Kaya
d5b49a4136
ci: Cache postgres volume after first migration (#3488)
This patch caches all DB volumes based on the sentry and snuba images to avoid doing the same migrations over and over for every test run.

This shaved off a whole minute from "Install self-hosted" jobs (so ~20% speed increase).

Left side: cached re-run -- Right side: no-cache initial run
![image](https://github.com/user-attachments/assets/55b923ea-d4c8-44bf-ba3e-0d5708781fd8)
2024-12-30 22:37:53 +00:00
Mohamed Elneily
1bb22c032d
fix: Remove the extra space in the log file names (#3212)
Update `_lib.sh` to remove the extra space in the log file name.
This fixes the log files name not being included in `.gitinore`
2024-12-29 18:19:04 +00:00
Burak Yigit Kaya
282410abff
ref(snuba): Combine bootstrap & migrate for faster bootstrap (#3491)
I think we split these actions in the past due to some lack of options for them to work together properly. Right now looks like `bootstrap` would automatically migrate and propagates the `force` flag.
2024-12-24 02:05:22 +03:00
Burak Yigit Kaya
ad39dabdf0
ref(geoip): Remove geoipupdate from compose (#3490)
`geoipupdate` is not used by any other service nor it is needed for any
service to run. Moreover, it is a one-shot command, causing
`docker compose up --wait` to fail when it exits with a non-zero status.
This happens when one has not yet set up their credentials and they may
choose to never do this.

This PR removes `geoipupdate` from the `docker-compose.yml` file and
moves the command directly into the geoip related script. One may run
this whenever they want to update their GeoIP database.

This PR needs an accompanying docs change.
2024-12-23 14:32:17 -08:00
dependabot[bot]
0ca9311955
build(deps): bump actions/create-github-app-token from 1.11.0 to 1.11.1 (#3492)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](5d869da34e...c1a285145b)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-23 08:41:27 -08:00
getsentry-bot
4fa0833fd7 build: Set master version to nightly
#skip-changelog
2024-12-21 21:26:04 +00:00
getsentry-bot
12c7a2b9e4 Merge branch 'release/24.12.1' 2024-12-21 21:26:02 +00:00
getsentry-bot
d8f64c6e8e release: 24.12.1 24.12.1 2024-12-21 21:02:30 +00:00
Reinaldy Rafli
aebe5542d4
chore: clearer message for errors-only mode (#3487) 2024-12-21 20:59:30 +00:00
Reinaldy Rafli
92d7d836a3
chore(relay): provide opt-in max_memory_percent config as workaround for failing healthcheck (#3486)
See https://github.com/getsentry/self-hosted/issues/3330
2024-12-21 20:37:50 +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
getsentry-bot
245f3d1a87 build: Set master version to nightly
#skip-changelog
2024-12-17 23:39:36 +00:00
getsentry-bot
84522d5cdd Merge branch 'release/24.12.0' 2024-12-17 23:39:34 +00:00
getsentry-bot
6ba735824a release: 24.12.0 24.12.0 2024-12-15 18:05:38 +00:00
getsentry-bot
1f63d4d2e2 build: Set master version to nightly
#skip-changelog
2024-12-11 21:48:37 +00:00
getsentry-bot
99de8baff8 Merge branch 'release/24.11.2' 2024-12-11 21:48:35 +00:00
getsentry-bot
078507ba7e release: 24.11.2 24.11.2 2024-12-11 19:36:09 +00:00
Burak Yigit Kaya
3834ca7a61
fix(redis): Actually use custom config (#3459)
Follow up to https://github.com/getsentry/self-hosted/pull/3427#issuecomment-2518128717 where we created and mounted a custom Redis config only to not use it 🤦
2024-12-06 10:55:11 +00:00
Jeffrey Hung
e535c2b4b3
feat(release): Replace release bot with GH app (#3458)
* Replace release bot with GH app

* remove unneeded app token
2024-12-06 09:55:28 +00:00
Reinaldy Rafli
56db0dbbcb
chore(issue-template): ask for machine specification and provide link to security policy (#3447) 2024-11-30 10:04:13 +00:00
niklassc7
bc0816cda6
add sentry/backup.json to gitignore (#3450)
The backup-method described in the [documentation](https://develop.sentry.dev/self-hosted/backup/#backup) `./scripts/backup.sh` creates a backup file at `sentry/backup.json` which should be ignored by git.

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
2024-11-29 10:05:05 +00:00
Reinaldy Rafli
817fde205f
ref: remove suggested fix (#3446) 2024-11-27 09:53:07 -08:00
getsentry-bot
be02e0e400 build: Set master version to nightly
#skip-changelog
2024-11-26 17:56:03 +00:00
getsentry-bot
02a4a15748 Merge branch 'release/24.11.1' 2024-11-26 17:56:01 +00:00
getsentry-bot
99f7154618 release: 24.11.1 24.11.1 2024-11-26 17:27:18 +00:00
Burak Yigit Kaya
0b0d0c8e54
fix(redis): Use a safer eviction rule (#3432)
Follow up to https://github.com/getsentry/self-hosted/pull/3427#issuecomment-2485612688
2024-11-19 16:34:41 +00:00
Sajjad hassanzadeh
c3814f0807
feat: add Redis configuration for improved memory management (#3427)
As Sentry continues to evolve, effective resource management becomes crucial for maintaining performance and stability. This update includes configurations that will help optimize Redis's memory usage, ensuring that the system runs efficiently under varying loads.

**Key Changes:**

- **Added `maxmemory` Directive**: Configured Redis to limit its memory usage to a specified size. This prevents excessive memory consumption and helps maintain system stability.
- **Set `maxmemory-policy` to `allkeys-lru`**: This policy allows Redis to evict the least recently used keys when it reaches the memory limit, ensuring that frequently accessed data remains available while older, less-used data is removed.
2024-11-19 11:43:58 +00:00
getsentry-bot
be66069eef build: Set master version to nightly
#skip-changelog
2024-11-19 02:09:53 +00:00
getsentry-bot
a3a1eedda6 Merge branch 'release/24.11.0' 2024-11-19 02:09:52 +00:00