184 Commits

Author SHA1 Message Date
dependabot[bot]
407351fb07
build(deps): bump actions/create-github-app-token from 2.1.1 to 2.1.4 (#3936)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2.1.1 to 2.1.4.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](a8d6161485...6701853927)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 2.1.4
  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>
2025-09-15 14:39:10 +01:00
dependabot[bot]
2be8c79d64
build(deps): bump actions/setup-python from 5 to 6 (#3927)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-09 08:41:05 +07:00
Reinaldy Rafli
af32d373b2
test: run errors-only integration tests (#3910) 2025-09-03 06:05:57 +07:00
Reinaldy Rafli
8641076786
chore: resolve GHA code scanning alerts (#3889)
Resolves https://github.com/getsentry/self-hosted/security/code-scanning/2

Resolves https://github.com/getsentry/self-hosted/security/code-scanning/4

Resolves https://github.com/getsentry/self-hosted/security/code-scanning/7

Resolves https://github.com/getsentry/self-hosted/security/code-scanning/14

Resolves https://github.com/getsentry/self-hosted/security/code-scanning/15
2025-08-19 19:39:30 +01:00
dependabot[bot]
7ef1b36b90
build(deps): bump actions/create-github-app-token from 2.1.0 to 2.1.1 (#3885)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](0f859bf9e6...a8d6161485)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 2.1.1
  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>
2025-08-18 19:05:35 +01:00
dependabot[bot]
dc5ac0792d
build(deps): bump actions/checkout from 4 to 5 (#3883)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-18 19:02:54 +01:00
dependabot[bot]
d3c0ea8250
build(deps): bump actions/create-github-app-token from 2.0.6 to 2.1.0 (#3865)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2.0.6 to 2.1.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](df432ceedc...0f859bf9e6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-11 16:38:01 +01:00
Reinaldy Rafli
524b8d4db0
Potential fix for code scanning alert no. 12: Workflow does not contain permissions (#3822)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-07-27 08:57:01 +07:00
Daniel Bunte
abe34d09ed
feat(install): Adds support for podman(compose) (#3673) 2025-07-22 13:58:07 +00:00
Reinaldy Rafli
9fbd722d44
feat: inspect docker compose failure on self-hosted e2e action (#3817)
It's hard to debug docker compose failure on other repositories since they can't see the `docker compose ps` and `docker compose logs`. One problem occurred here: https://github.com/getsentry/relay/pull/4940

This PR aims to provide both commands if failure happens.
2025-07-19 08:25:35 +03:00
Reinaldy Rafli
b5a0158871
ci: run tests on arm64 (#3750)
* ci: run tests on arm64

* ci: runner name should be arm, not arm64

* ci: retain old job name to not mess with CI protection rules

* ci: integration test should not use plural form
2025-07-02 09:30:20 +01:00
Nikita Korolev
66c057b4e2
enable shell linter for more scripts (#3748) 2025-06-14 06:50:26 +07:00
Nikita Korolev
0730d8c8c7
add shellcheck action to lint bash scripts (#3710)
* add shellcheck action to lint bash scripts

* fix some shellcheck warnings

---------

Co-authored-by: ds <ds@local>
Co-authored-by: Burak Yigit Kaya <byk@sentry.io>
2025-06-13 08:52:47 +00:00
dependabot[bot]
f7b6c03346
build(deps): bump actions/create-github-app-token from 2.0.2 to 2.0.6 (#3690)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2.0.2 to 2.0.6.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](3ff1caaa28...df432ceedc)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 2.0.6
  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>
2025-05-06 09:12:26 -07:00
dependabot[bot]
a956339180
build(deps): bump actions/create-github-app-token from 1.12.0 to 2.0.2 (#3649)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.12.0 to 2.0.2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](d72941d797...3ff1caaa28)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-12 18:32:35 +03:00
dependabot[bot]
b2819cdac1
build(deps): bump actions/create-github-app-token from 1.11.7 to 1.12.0 (#3639)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.11.7 to 1.12.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](af35edadc0...d72941d797)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 09:09:52 +03:00
dependabot[bot]
c32836714d
build(deps): bump actions/create-github-app-token from 1.11.6 to 1.11.7 (#3632)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.11.6 to 1.11.7.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](21cfef2b49...af35edadc0)

---
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>
2025-03-24 14:14:17 +00:00
Amin Vakil
4fff2e39df
Enforce license compliance only on getsentry repository (#3606)
It fails every time and it isn't needed.
https://github.com/aminvakil/self-hosted/actions/runs/13685684000


### 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.
2025-03-06 10:54:25 +00:00
dependabot[bot]
9b6c1cf658
build(deps): bump actions/create-github-app-token from 1.11.3 to 1.11.6 (#3598)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.11.3 to 1.11.6.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](67e27a7eb7...21cfef2b49)

---
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>
2025-03-03 12:36:24 +00:00
dependabot[bot]
ab0df5a91e
build(deps): bump getsentry/action-release from 1 to 3 (#3599)
Bumps [getsentry/action-release](https://github.com/getsentry/action-release) from 1 to 3.
- [Release notes](https://github.com/getsentry/action-release/releases)
- [Changelog](https://github.com/getsentry/action-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/action-release/compare/v1...v3)

---
updated-dependencies:
- dependency-name: getsentry/action-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-03 12:28:56 +01:00
dependabot[bot]
3de8662160
build(deps): bump actions/create-github-app-token from 1.11.2 to 1.11.3 (#3569)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](136412a57a...67e27a7eb7)

---
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>
2025-02-10 11:09:45 -08:00
dependabot[bot]
cfb0491f63
build(deps): bump actions/create-github-app-token from 1.11.1 to 1.11.2 (#3561)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 1.11.1 to 1.11.2.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](c1a285145b...136412a57a)

---
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>
2025-02-03 22:11:27 +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
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
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
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
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
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
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
dependabot[bot]
7cfab8db1e
build(deps): bump codecov/codecov-action from 4 to 5 (#3429)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-18 12:41:33 +00:00
Jann Kleen
c40b1530d1
Update minimum docker compose requirement (#3078)
* Update minimum docker compose requirement

docker compose down <service> is now required.

* Update docker compose version to new minimum in CI config.
2024-05-29 14:59:22 -07:00
Hubert Deng
0dabb5a4cc
Different approach to editing permissions of docker volumes (#3084)
* different approach to editing permissions of docker volumes
2024-05-29 11:30:44 -07:00
Hubert Deng
9e36d2f57a
Add upgrade test (#3012)
* add upgrade test
2024-05-02 20:04:34 +00:00
Hubert Deng
f84bb3d8e8
Revert "Sampling: Run e2e tests every 5 minutes" (#2999)
Revert "Sampling: Run e2e tests every 5 minutes (#2994)"

This reverts commit 6c67717fc530145514198143007af1c7ff5b03a3.
2024-04-26 13:19:16 -07:00
Hubert Deng
6c67717fc5
Sampling: Run e2e tests every 5 minutes (#2994)
run tests every 5 minutes
2024-04-24 08:59:42 -07:00
Hubert Deng
ebf887c931
Tweak e2e test github action (#2987) 2024-04-23 13:28:01 -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
7c992697af
Use python for e2e tests (#2953)
* bump e2e action commit sha
2024-04-11 13:12:19 -07:00
Hubert Deng
c4ae491929
Bump ubuntu version for tests (#2923)
* bump ubuntu version used for testing

* get rid of codecov cli dependency
2024-03-26 14:57:49 -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
b3d3ce06da
Integration tests in python (#2892)
* integration tests in python
2024-03-20 12:27:17 -07:00
Hubert Deng
746031dda4
Integration test improvements (#2858)
* integration test improvements
2024-03-07 14:49:16 -08:00
dependabot[bot]
9c8e3d5741
build(deps): bump pre-commit/action from 3.0.0 to 3.0.1 (#2788)
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/pre-commit/action/releases)
- [Commits](https://github.com/pre-commit/action/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: pre-commit/action
  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-02-14 14:16:19 -08:00
dependabot[bot]
de9f52ffd9
build(deps): bump actions/setup-python from 4 to 5 (#2644)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hubert Deng <hubert.deng@sentry.io>
2024-02-06 10:51:56 -08:00