Commit Graph

224 Commits

Author SHA1 Message Date
dependabot[bot]
940074a527
build(deps): bump getsentry/action-release from 3.4.0 to 3.5.0 (#4133) 2026-02-04 05:12:21 +07:00
dependabot[bot]
66a3091d46
build(deps): bump actions/checkout from 6.0.0 to 6.0.2 (#4155)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](1af3b93b68...de0fac2e45)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.2
  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>
2026-02-03 19:39:56 +07:00
Burak Yigit Kaya
f69cca201d
ci: Fix changelog-preview for external contributors (#4158) 2026-02-03 18:23:31 +07:00
dependabot[bot]
2fafd08ee2
build(deps): bump actions/setup-python from 6.1.0 to 6.2.0 (#4154)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6.1.0 to 6.2.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](83679a892e...a309ff8b42)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.2.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>
2026-02-03 14:30:13 +07:00
dependabot[bot]
b0927e7791
build(deps): bump getsentry/craft from 2.19.0 to 2.20.1 (#4152)
Bumps [getsentry/craft](https://github.com/getsentry/craft) from 2.19.0 to 2.20.1.
- [Release notes](https://github.com/getsentry/craft/releases)
- [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md)
- [Commits](c6e2f04939...beea4aba58)

---
updated-dependencies:
- dependency-name: getsentry/craft
  dependency-version: 2.20.1
  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>
2026-02-03 13:41:41 +07:00
Burak Yigit Kaya
f7afd67325
ci: Fix changelog-preview permissions (#4156)
New versions need `statuses: check` for the quiet workflow
2026-02-02 11:43:35 +00:00
Burak Yigit Kaya
7a4ea817f4
ci(release): Switch from action-prepare-release to Craft (#4129) 2026-01-31 06:51:55 +07:00
Reinaldy Rafli
2d66a99f23
Revert "Revert "ref: migrate to uv (#4061)"" (#4097)
* Revert "Revert "ref: migrate to uv (#4061)" (#4094)"

This reverts commit f9c0c31f43.

* fix: provide python version

as per 0958463ee0/action.yml (L5-L7)
2025-12-11 07:08:27 +07:00
Burak Yigit Kaya
f9c0c31f43
Revert "ref: migrate to uv (#4061)" (#4094)
This reverts commit 9b4f9ea82e and 496a97ba07.
2025-12-09 13:17:28 +00:00
dependabot[bot]
83f07124bf
build(deps): bump actions/create-github-app-token from 2.2.0 to 2.2.1 (#4090)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](7e473efe3c...29824e69f5)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 2.2.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-12-09 11:11:24 +07:00
Reinaldy Rafli
d1f5240853
chore: ask installation type on problem report template (#4086) 2025-12-08 08:37:49 +07:00
Reinaldy Rafli
9b4f9ea82e
ref: migrate to uv (#4061)
* ref: migrate to uv

* chore: remove main.py

* fix: run pytest using uv

* fix: pin Python and uv version

* fix: extra spaces

* ref: remove setup-python
2025-12-06 07:09:34 +07:00
dependabot[bot]
61c50780b6
build(deps): bump actions/create-github-app-token from 2.1.4 to 2.2.0 (#4058)
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 2.1.4 to 2.2.0.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](6701853927...7e473efe3c)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 2.2.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-11-24 20:43:32 +07:00
dependabot[bot]
f6014fd2dc
build(deps): bump actions/checkout from 5 to 6 (#4059)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [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/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-11-24 20:42:40 +07:00
Reinaldy Rafli
370ee99cbd
chore: uptime checker is missing on the release issue (#4047) 2025-11-19 01:32:38 +00:00
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
Mark Story
c8ee02de19
feat: Add taskbroker + worker + scheduler (#3738) 2025-06-11 21:57:24 +07: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
Chad Whitacre
d637ed19fe
Hand off open-source to dev-infra (#3549) 2025-01-22 15:15:53 -05: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