Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ht sentry #3

Open
wants to merge 438 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
438 commits
Select commit Hold shift + click to select a range
98b011a
fix[readme): Don't recommend nginx in docker-compose (#657)
BYK Sep 4, 2020
e293a0f
fix(install): Don't use getopt for options parsing (#660)
ktosiek Sep 7, 2020
1ba4176
fix(release): Bump the license date on master w/ calver releases (#658)
BYK Sep 8, 2020
d834329
feat(clickhouse): Reduce max memory usage to 30% of RAM (#662)
BYK Sep 8, 2020
9b9066f
feat(snuba): Run new migration system (#663)
lynnagara Sep 8, 2020
23251e7
ci(gha): Fix intermittent test failures (#664)
BYK Sep 8, 2020
9b3aee1
ref(self-hosted): More on-premise -> self-hosted (#669)
BYK Sep 9, 2020
313fef0
fix(symbolicator): Use the latest Symbolicator version for nightlies …
BYK Sep 11, 2020
d6247e2
feat(env): Add SENTRY_BIND var (#512)
BYK Sep 14, 2020
9a18a4a
fix(kafka): Reduce Kafka resource usage (#674)
BYK Sep 14, 2020
5631d45
fix(install): Use proper bash testing (#673)
RichardBronosky Sep 14, 2020
f8a2e48
build(docker): Bump min Docker & Compose versions (#676)
BYK Sep 15, 2020
49dbeab
ci(gcb): Drop Docker version to 19.03.8 as that's the latest on GCB
BYK Sep 15, 2020
21d1b6d
license: Update BSL change date
Sep 15, 2020
ce8538e
fix(ingest-consumer): Create the missing Kafka topics (#685)
BYK Sep 22, 2020
7446469
fix(docker): Lower docker version to 19.03.6 (#682)
BYK Sep 22, 2020
3408e3d
fix(redis): Increase file descriptors to 10032 (#681)
BYK Sep 22, 2020
0a4b2ad
fix(install): Check that all ingest topics exist (#686)
tonyo Sep 25, 2020
dcc7fa4
meta(issues: Improve and clarify install log request
BYK Sep 28, 2020
de2b610
State that config files need to be updated as well (#690)
pataar Oct 2, 2020
e333dbd
fix(install): Only use .env for fallbacks
BYK Oct 2, 2020
acbaec6
build(python): Make default config py3 compatible (#692)
BYK Oct 2, 2020
ae93788
fix(py3): Make event ingestion test more robust (#693)
BYK Oct 5, 2020
694977a
ref(config): Move GitHub config over to config.yml (#697)
BYK Oct 6, 2020
a9a8b2f
docs: Update README with several improvements (#695)
pataar Oct 7, 2020
1399be6
feat(py3): Add Python 3 support via SENTRY_PYTHON3 env variable (#702)
BYK Oct 14, 2020
8512f52
ci(gha): Mark version as optional in release workflow (#704)
jan-auer Oct 15, 2020
2a55948
ref: Switch all nightly images to `:nightly` tag (#703)
BYK Oct 15, 2020
e9cff2e
ci(release): Remove specific status contexts
BYK Oct 15, 2020
2a1a171
fix(install): Increase stop timeout to 60 seconds (#731)
BYK Oct 29, 2020
79c4613
feat(search): Enable advanced search for self-hosted (#734)
BYK Nov 9, 2020
245ae95
fix(clickhouse): default logger level set to information (#733)
soullivaneuh Nov 11, 2020
066bf26
feat: Allow metric alerts to be used in on-prem (#735)
wedamija Nov 13, 2020
a717c11
fix(metric_alerts): Fix transaction alerts (#739)
wedamija Nov 17, 2020
bee98fd
fix(install): Disable the script on git-bash (#741)
BYK Nov 17, 2020
99c9c52
ci(release): Align release workflow with getsentry/sentry (#744)
BYK Nov 17, 2020
65cb0c3
ci(release): Don't use global git conf (#745)
BYK Nov 17, 2020
bd284d0
ci(release): fix a couple typos 🐭 (#746)
chadwhitacre Nov 17, 2020
19f4561
Clarify upgrade process (#751)
mcdurdin Nov 19, 2020
be21443
fix(sentry): Pass SENTRY_EVENT_RETENTION_DAYS to sentry services (#754)
BYK Dec 1, 2020
9151f56
fix(snuba): Pass SENTRY_EVENT_RETENTION_DAYS to Snuba instances too (…
BYK Dec 1, 2020
504550d
fix(clickhouse): set enable_mixed_granularity_parts to enabled (#758)
max-wittig Dec 1, 2020
41e7d86
ci(release): Use action-prepare-release and rework dry-run (#761)
BYK Dec 3, 2020
06fb0d7
ref(py3): Make PY3 the default*, add SENTRY_PYTHON (#763)
BYK Dec 4, 2020
f885ece
ref(py3): Remove SENTRY_PYTHON3 and -py3 versons (#764)
BYK Dec 4, 2020
a623e72
Integrate with MaxMind out of the box (#766)
chadwhitacre Dec 14, 2020
71ed250
Lock closed issues/PRs via 3rd-party action (#772)
chadwhitacre Dec 14, 2020
037f5d7
Tighten up name and schedule (#773)
chadwhitacre Dec 14, 2020
c49e4f0
Drop back to hourly for issue/PR locking (#774)
chadwhitacre Dec 14, 2020
04d80fa
Drop to daily locking now that we're caught up (#776)
chadwhitacre Dec 15, 2020
500c02b
ci(release): Move to getsentry/publish for releases (#775)
BYK Dec 15, 2020
3d98c89
release: 20.12.1
Dec 15, 2020
6d61237
Merge releases/20.12.1 into master
getsentry-bot Dec 15, 2020
bd6817e
build: Set master version to nightly
BYK Dec 15, 2020
cab86ac
fix(release): Mark scripts/bump-version.sh as +x
BYK Dec 15, 2020
5adff50
meta: Pin lock-threads, crank frequency to test (#778)
chadwhitacre Dec 17, 2020
6e275c2
Futz with action pin syntax (#779)
chadwhitacre Dec 17, 2020
9a80a19
Pin works, dial back to daily (#780)
chadwhitacre Dec 17, 2020
5e39bfd
meta: Install stalebot (#784)
chadwhitacre Jan 4, 2021
70877f6
ci(release): Pin action-prepare-release to 33507ed (#792)
BYK Jan 5, 2021
2dadbda
Bump RAM requirement
chadwhitacre Jan 7, 2021
99e71b1
ci(release): Upgrade action-prepare-release to latest version (#798)
BYK Jan 7, 2021
a64e3b4
Tell stalebot to ignore `Status: On Hold` (#799)
chadwhitacre Jan 7, 2021
410e4c8
meta: Fork lockbot for security (#800)
chadwhitacre Jan 7, 2021
ee34516
Fix syntax of uses
chadwhitacre Jan 7, 2021
fc1c629
ci(release): Enable the CalVer flag for release (#801)
BYK Jan 7, 2021
a71a1a9
Fix one more time (#802)
chadwhitacre Jan 7, 2021
4399fc8
Unfrobulate CI (#768)
chadwhitacre Jan 8, 2021
e7ec11a
Bump RAM requirement in install.sh (#803)
chadwhitacre Jan 8, 2021
8d6893f
Source install/geoip.sh, to work in more envs (#809)
chadwhitacre Jan 13, 2021
082cd73
fix: Enable experimental reqwest library for relay (#810)
BYK Jan 14, 2021
f2f1e77
feat: Add Python 2 deprecation warning (w/ style) (#812)
BYK Jan 14, 2021
d8fd74f
Standardizing on this (#814)
chadwhitacre Jan 14, 2021
a1fcdd8
ci(test): Limit concurent jobs to 1 (#815)
BYK Jan 14, 2021
25453b8
Validate new issues against templates (#811)
chadwhitacre Jan 14, 2021
0ac7eed
fix: Fix Py2 warning (#813)
BYK Jan 14, 2021
7093bb4
release: 21.1.0
Jan 15, 2021
8a709bf
Merge releases/21.1.0 into master
getsentry-bot Jan 15, 2021
cc31349
build: Set master version to nightly
BYK Jan 15, 2021
2e4307b
ci: Increase pool size to prevent pool closed errors (#819)
BYK Jan 15, 2021
2e3ad5d
Improve on issue validation (#817)
chadwhitacre Jan 15, 2021
49f8684
ci(test): Even larger pools (#825)
BYK Jan 19, 2021
af7f50c
ci(release): Make sure to pull before pushing in post-release (#820)
BYK Jan 19, 2021
65fdb3b
Remove injection vector (#822)
chadwhitacre Jan 19, 2021
640e7fe
ci(test): Fix 'pool is closed' errors (#826)
BYK Jan 19, 2021
612a14c
Add some structure to logging with ::group:: (#827)
chadwhitacre Jan 19, 2021
ee53f18
breaking: Remove Python 2 support (#833)
BYK Jan 20, 2021
e7a3187
fix(nginx): Remove X-Real-IP header entry (#835)
Mixaill Jan 25, 2021
41f7a7e
docs: Add 20 GB minimum disk space requirement (#836)
BYK Jan 25, 2021
54a2096
Deploy latest validate-new-issue.yml (#838)
chadwhitacre Jan 25, 2021
2da7e84
Change MIN_RAM_HARD from 4000 to 3800 (#840)
arusa Jan 29, 2021
c66a710
fix(config): extended-permissions is on github-login, not app (#841)
BYK Jan 29, 2021
dde0b1d
Deploy action: validate-new-issue.yml (#842)
chadwhitacre Jan 29, 2021
ab5b867
ref(requirements): Add min CPU requirement, relax soft RAM (#844)
BYK Feb 1, 2021
020ded2
Deploy action: validate-new-issue.yml (#845)
chadwhitacre Feb 1, 2021
9e94e37
meta(gha): Deploy action validate-new-issue.yml (#848)
chadwhitacre Feb 2, 2021
5bad6ed
meta(gha): Deploy action validate-new-issue.yml (#849)
chadwhitacre Feb 2, 2021
a1c0c1f
ref: Stop building local images for Sentry services (#834)
BYK Feb 4, 2021
26f11c4
fix: Typo in the "recommended minimum CPU cores" message (#855)
Stranger6667 Feb 11, 2021
fc7fc5d
fix(cron): Fix sentry-cleanup entrypoint issue (#861)
BYK Feb 15, 2021
21c7ece
release: 21.2.0
Feb 15, 2021
41c07bc
Merge releases/21.2.0 into master
getsentry-bot Feb 15, 2021
f9ab3e0
build: Set master version to nightly
BYK Feb 15, 2021
4d70217
fix(deps): Add missing snuba consumer dependencies to Sentry (#862)
BYK Feb 15, 2021
81db8a6
meta(gha): Deploy action validate-new-issue.yml (#864)
chadwhitacre Feb 17, 2021
798e028
meta(gha): Deploy action validate-new-issue.yml (#869)
chadwhitacre Feb 24, 2021
7365a03
fix(relay): Remove http._client usage (#870)
untitaker Feb 24, 2021
ff01285
meta(gha): Deploy action validate-new-issue.yml (#883)
chadwhitacre Mar 9, 2021
ae0251d
Fixed CPU soft limit check (#885)
ktmitton Mar 12, 2021
7138703
fix(config): Remove deprecated `slack.legacy-app` config from default…
BYK Mar 15, 2021
48c855a
release: 21.3.0
Mar 15, 2021
084ba12
Merge releases/21.3.0 into master
getsentry-bot Mar 15, 2021
f77e35d
build: Set master version to nightly
BYK Mar 15, 2021
4a8ca83
fix(release): Fix post-release script so it operates on master (#887)
BYK Mar 16, 2021
8a742bc
ci(stalebot): Add new triage labels (#890)
BYK Mar 18, 2021
2ac7e73
ci(stalebot): Remove old triage labels (#891)
BYK Mar 18, 2021
83ef869
ci(stalebot): Update stale message with the new labels (#892)
BYK Mar 18, 2021
8e498b4
meta(gha): Deploy action validate-new-issue.yml (#893)
BYK Mar 19, 2021
bdd2686
fix: Typo in README (#897)
Mar 23, 2021
0ce7856
Refactor relay config (#900)
chadwhitacre Mar 26, 2021
a868b09
Factor out volume creation (#901)
chadwhitacre Mar 26, 2021
88f90e0
Add a partial test for geoip (#902)
chadwhitacre Mar 26, 2021
cf4f21c
Fix a regression with unset envvars (#905)
chadwhitacre Mar 29, 2021
568f905
Factor out a few more things (#906)
chadwhitacre Mar 29, 2021
f086157
Clean up the refactor (#907)
chadwhitacre Mar 30, 2021
7e7401a
Refactor most of the rest (#903)
chadwhitacre Mar 30, 2021
a0a86e4
Finish the refactor (#908)
chadwhitacre Mar 30, 2021
8e34f6e
Fix paths (#909)
chadwhitacre Mar 30, 2021
e5e8bac
Remove dead file (#912)
chadwhitacre Mar 30, 2021
2ab0590
ci(test): Separate unit tests so they don't rely on integration tests…
BYK Mar 30, 2021
315cbaa
release: 21.3.1
Apr 8, 2021
f85150d
Merge releases/21.3.1 into master
getsentry-bot Apr 8, 2021
2223723
build: Set master version to nightly
Apr 8, 2021
aecc75b
feat: Update storage target for Snuba consumer and replacer. (#920)
lynnagara Apr 12, 2021
dd5a7d4
docs: explain changing version on Linux (#922)
Apr 12, 2021
257bccc
fix: test.sh should use the variable $_group (#921)
BYK Apr 12, 2021
35a45ea
fix: Ensure snuba cleanup job runs on the correct storage (#923)
lynnagara Apr 14, 2021
e0dde9c
fix: Add missing snuba transactions clean up service (#924)
BYK Apr 15, 2021
faf1088
release: 21.4.0
Apr 15, 2021
d4bb931
Merge releases/21.4.0 into master
getsentry-bot Apr 15, 2021
662a773
build: Set master version to nightly
Apr 15, 2021
37efaf2
ref(relay): Remove comment from sample config (#926)
jan-auer Apr 19, 2021
e7a1101
release: 21.4.1
Apr 21, 2021
7189ab1
Merge releases/21.4.1 into master
getsentry-bot Apr 21, 2021
f3d0e3d
build: Set master version to nightly
Apr 21, 2021
60e947d
fix: Fix .env path for test scripts (#928)
BYK Apr 22, 2021
a95b9fa
fix: Make relay depend on web for DNS resolution (#934)
BYK Apr 26, 2021
f27eaef
meta(gha): Deploy action issue-status-helper.yml (#943)
BYK May 6, 2021
1068326
meta(gha): Deploy action issue-routing-helper.yml (#945)
BYK May 7, 2021
67c2310
meta(gha): Deploy action issue-status-helper.yml (#949)
BYK May 12, 2021
168f3b9
feat: Add basic healthchecks for Zookeeper & Kafka (#948)
pierresebastien May 13, 2021
84312dc
fix: Fix incorrect zookeeper mount path (#952)
BYK May 13, 2021
864e184
release: 21.5.0
getsentry-bot May 17, 2021
243c20d
Merge releases/21.5.0 into master
getsentry-bot May 17, 2021
a2c315c
build: Set master version to nightly
May 17, 2021
ee240f0
release: 21.5.1
getsentry-bot May 19, 2021
e034097
Merge releases/21.5.1 into master
getsentry-bot May 19, 2021
93bf1b6
build: Set master version to nightly
May 19, 2021
d5e4e52
meta(gha): Deploy action issue-routing-helper.yml (#958)
BYK May 21, 2021
8dc8460
feat(cdc): Prepare the self hosted environment for the Change Data Ca…
fpacifici May 25, 2021
e20e6a3
ci: Add .gitattributes file to exclude unnecessary files from repo zi…
williamdes May 30, 2021
97e4e37
fix(test): Export test script (#978)
jan-auer May 31, 2021
f4c3096
feat: Add healthchecks for redis, memcached and postgres (#975)
williamdes Jun 2, 2021
659e03e
ref(craft): Modernize and rearrange Craft config (#980)
BYK Jun 3, 2021
8d92667
meta: Add some changelog (#984)
BYK Jun 7, 2021
0cfaa73
Make a reset button (#988)
chadwhitacre Jun 9, 2021
d05d9a6
release: 21.6.0
getsentry-bot Jun 15, 2021
91f4048
fix(ci): Run bulids on `release` branches
BYK Jun 15, 2021
e0e9881
Merge branch 'master' into release/21.6.0
BYK Jun 15, 2021
6dd70e9
Merge branch 'release/21.6.0'
Jun 15, 2021
b74416d
build: Set master version to nightly
Jun 15, 2021
aea6adc
release: 21.6.1
getsentry-bot Jun 15, 2021
9bbfec3
Merge branch 'release/21.6.1'
Jun 15, 2021
1fae775
build: Set master version to nightly
Jun 15, 2021
198b275
docs: Fold README into self-hosted docs (#993)
BYK Jun 15, 2021
1d49629
Fixed typo (#996)
thermaq Jun 17, 2021
f541117
Update middlewares to latest stable versions (#1002)
fmartinou Jun 25, 2021
e25e36b
fix: raise healthcheck interval for redis, memcached and postgres (#1…
wodCZ Jun 28, 2021
ef95b15
docs(): Add notice about breaking change for custom plugins (#985)
billyvg Jun 29, 2021
2888bf5
Use the new GH issue forms (#1011)
chadwhitacre Jun 29, 2021
b30e7ef
fix(templates): Bug issue template should use placeholder
BYK Jun 30, 2021
a583fdc
Require version on bug form (#1017)
chadwhitacre Jul 1, 2021
3a412d7
fix(kafka): Get Confluent images back to 5.5.0 (#1021)
BYK Jul 2, 2021
a2a99b9
release: 21.6.2
getsentry-bot Jul 2, 2021
1751c66
Merge branch 'release/21.6.2'
Jul 2, 2021
66e1820
build: Set master version to nightly
Jul 2, 2021
d24a7b3
fix(install) Make wal2json copy more robust (#1024)
fpacifici Jul 6, 2021
bd8fbf9
fix(wal2json): Respect http_proxy/https_proxy/no_proxy when installin…
fnkr Jul 7, 2021
4da1069
release: 21.6.3
getsentry-bot Jul 8, 2021
085aec2
Merge branch 'release/21.6.3'
Jul 8, 2021
4282249
build: Set master version to nightly
Jul 8, 2021
fae2293
release: 21.7.0
getsentry-bot Jul 15, 2021
7b0ada0
Merge branch 'release/21.7.0'
Jul 15, 2021
64aec77
build: Set master version to nightly
Jul 15, 2021
34812ce
Port test.sh to macOS (#1031)
chadwhitacre Jul 16, 2021
bd6f573
Add mail.use-ssl and mail.list-namespace option in example (#1040)
ldsink Jul 21, 2021
17b675c
feat: Support custom CA roots (#1015)
Spice-King Jul 30, 2021
39ea4dc
fix: Bring back test.sh relied upon by other repos
BYK Jul 30, 2021
e17faec
fix: Fix `curl` image to version 7.77.0 (#1049)
BYK Aug 4, 2021
93078f0
upgrade: docker-compose version to 1.29.2 (#1050)
BYK Aug 4, 2021
76c33bb
upgrade: use --ansi never for docker-compose (#1051)
BYK Aug 5, 2021
5d69561
fix(tests): Django 2.0 and 2.1 compatible csrf token extraction (#1052)
joshuarli Aug 5, 2021
d11fb14
fix(snuba-api): wait for clickhouse to be healthy (#1053)
pharindoko Aug 5, 2021
9aa34dd
feat: Leverage health checks for depends_on (#1057)
BYK Aug 6, 2021
9327228
release: 21.8.0
getsentry-bot Aug 15, 2021
c1e79c8
Merge branch 'release/21.8.0'
Aug 15, 2021
42aa60e
build: Set master version to nightly
Aug 15, 2021
47c4a1d
meta(gha): Deploy action issue-routing-helper.yml (#1064)
chadwhitacre Aug 17, 2021
672b1f7
feat: Have an empty certificates folder ready (#1065)
BYK Aug 17, 2021
497759c
ci: Test with the required minimum docker-compose (#1066)
BYK Aug 18, 2021
7b96408
fix(requirements): Make compose version check bw-compatible (#1068)
BYK Aug 18, 2021
59c0df3
fix(clickhouse): Use correct HTTP port for healthcheck (#1069)
BYK Aug 19, 2021
4b5ab5f
docs(changelog): Add missing entries for docker-compose changes (#1071)
BYK Aug 19, 2021
610f713
fix(healthcheck): Increase retries to 5 (#1072)
BYK Aug 19, 2021
674a600
fix(compose): Drop version from compose file (#1074)
BYK Aug 24, 2021
b32de84
feat(smtp): Add hostname to SMTP (#1076)
BYK Aug 26, 2021
d571da2
release: 21.9.0
getsentry-bot Sep 15, 2021
baf03a2
Merge branch 'release/21.9.0'
Sep 15, 2021
58874cf
build: Set master version to nightly
Sep 15, 2021
f2e2dc2
docs: simplify Linux `sudo` instructions in README (#1096)
jnm Sep 28, 2021
78a5c3c
feat: Support docker compose CLI (#1116)
EricsonMacedo Oct 15, 2021
6f0b91f
ci(test): Relax cleanup test regex a bit (#1119)
BYK Oct 15, 2021
a28c558
release: 21.10.0
getsentry-bot Oct 15, 2021
95d127f
Merge branch 'release/21.10.0'
Oct 15, 2021
d3e7785
build: Set master version to nightly
Oct 15, 2021
920be67
build: Omit nightly bump commit from changelog (#1120)
BYK Oct 15, 2021
f9728d1
Adding .idea to .gitignore
zentavr Mar 11, 2019
368da48
Adding an ability to use S3 as a backend in sentry
zentavr Mar 11, 2019
b834c79
Adding the spec file for CodeBuild
zentavr Mar 13, 2019
017750b
Using pip3 instead of pip
zentavr Mar 13, 2019
09e458e
Fixing typo in the variable name
zentavr Mar 13, 2019
586b2d5
Fixing typo in the condition
zentavr Mar 13, 2019
9acb6e8
Fixing conditional expression
zentavr Mar 13, 2019
ccab9ea
setting up different imagedefinition.json files per sentry container
zentavr Mar 13, 2019
f5c9471
Setting up which files to grab as artifacts
zentavr Mar 13, 2019
9eaaeb2
Fixing the typo with quotes when generating *_imagedefinitions.json a…
zentavr Mar 13, 2019
9cefe4b
Adding SSO plugins for Gmail and Github
zentavr Mar 18, 2019
7901614
Update buildspec.hypertrack.yml
zentavr Mar 14, 2019
0b7a7ff
Update buildspec.hypertrack.yml
zentavr Mar 14, 2019
a709ccd
Update buildspec.hypertrack.yml
zentavr Mar 14, 2019
c6e41ba
Update buildspec.hypertrack.yml
zentavr Mar 14, 2019
0d85f47
Update 2
zentavr Mar 14, 2019
0fa728d
Update 4
zentavr Mar 14, 2019
a1c0355
Upgrading Sentry
zentavr Jun 25, 2019
6137fe3
Upgrading Sentry to sentry:9.1.2-onbuild
zentavr Aug 5, 2019
fe878c2
Update config to enable custom inbound filters
thomashypertrack Jun 10, 2021
906008e
Use latest 1.x aws cli
thomashypertrack Jun 10, 2021
ae89548
Another attempt to make ECR login work
thomashypertrack Jun 10, 2021
77568f7
Update buildspec.hypertrack.yml
thomashypertrack Jun 10, 2021
b7fcc46
Merge branch 'getsentry-master' into update-ht-sentry
thomashypertrack Oct 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
minVersion: "0.23.1"
changelogPolicy: auto
artifactProvider:
name: none
targets:
- name: github
9 changes: 0 additions & 9 deletions .dockerignore

This file was deleted.

16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
insert_final_newline = true

[*.sh]
indent_size = 2

[*.yml]
indent_size = 2

[nginx/*.conf]
indent_style = tab
12 changes: 12 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
COMPOSE_PROJECT_NAME=sentry_onpremise
SENTRY_EVENT_RETENTION_DAYS=90
# You can either use a port number or an IP:PORT combo for SENTRY_BIND
# See https://docs.docker.com/compose/compose-file/#ports for more
SENTRY_BIND=9000
# Set SENTRY_MAIL_HOST to a valid FQDN (host/domain name) to be able to send emails!
# SENTRY_MAIL_HOST=example.com
SENTRY_IMAGE=getsentry/sentry:nightly
SNUBA_IMAGE=getsentry/snuba:nightly
RELAY_IMAGE=getsentry/relay:nightly
SYMBOLICATOR_IMAGE=getsentry/symbolicator:nightly
WAL2JSON_VERSION=latest
3 changes: 0 additions & 3 deletions .env.example

This file was deleted.

5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.github export-ignore
/.editorconfig export-ignore
/.craft.yml export-ignore
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 🐞 Bug Report
description: Tell us about something that's not working the way we (probably) intend.
body:
- type: input
id: version
attributes:
label: Version
placeholder: 21.7.0 ← should look like this (check the footer)
description: What version of self-hosted Sentry are you running?
validations:
required: true
- type: textarea
id: repro
attributes:
label: Steps to Reproduce
description: How can we see what you're seeing? Specific is terrific.
placeholder: |-
1. foo
2. bar
3. baz
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Result
validations:
required: true
- type: textarea
id: actual
attributes:
label: Actual Result
description: Logs? Screenshots? Yes, please.
placeholder: |-
e.g.:
- latest install logs: `ls -1 sentry_install_log-*.txt | tail -1 | xargs cat`
- `docker-compose logs` output
validations:
required: true
- type: markdown
attributes:
value: |-
## Thanks 🙏
Check our [triage docs](https://open.sentry.io/triage/) for what to expect next.
validations:
required: false
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Question about self-hosting/on-premise
url: https://forum.sentry.io
about: Please use the community forums for questions
- name: Report a security vulnerability
url: https://sentry.io/security/#vulnerability-disclosure
about: Please see our guide for responsible disclosure.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 💡 Feature Request
description: Tell us about a problem our software could solve but doesn't.
body:
- type: textarea
id: problem
attributes:
label: Problem Statement
description: What problem could `onpremise` solve that it doesn't?
placeholder: |-
I want to make whirled peas, but `onpremise` doesn't blend.
validations:
required: true
- type: textarea
id: expected
attributes:
label: Solution Brainstorm
description: We know you have bright ideas to share ... share away, friend.
placeholder: |-
Add a blender to `onpremise`.
validations:
required: false
- type: markdown
attributes:
value: |-
## Thanks 🙏
Check our [triage docs](https://open.sentry.io/triage/) for what to expect next.
validations:
required: false
46 changes: 46 additions & 0 deletions .github/workflows/issue-routing-helper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Issue Routing Helper
on:
issues:
types: [labeled]
env:
# Use GH_RELEASE_PAT as github-actions bot is not allowed to ping teams
GH_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
GH_REPO: ${{ github.repository }}
jobs:
route:
runs-on: ubuntu-latest
if: >-
github.event.issue.state == 'open'
&&
startsWith(github.event.label.name, 'Team: ')
&&
!contains(github.event.issue.labels.*.name, 'Status: Backlog')
&&
!contains(github.event.issue.labels.*.name, 'Status: In Progress')
steps:
- name: "Ensure a single 'Team: *' label with 'Status: Untriaged'"
run: |
labels_to_remove=$(gh api --paginate "/repos/$GH_REPO/labels" -q '[.[].name | select((startswith("Team: ") or startswith("Status: ")) and . != "${{ github.event.label.name }}" and . != "Status: Untriaged")] | join(",")')
gh issue edit ${{ github.event.issue.number }} --remove-label "$labels_to_remove" --add-label '${{ github.event.label.name }},Status: Untriaged'
- name: "Mention/ping assigned team for triage"
run: |
# Get team label mention name:
team_label='${{ github.event.label.name }}'
team_name="${team_label:6}" # Strip the first 6 chars, which is the 'Team: ' part
team_slug="${team_name// /-}" # Replace spaces with hyphens for url/slug friendliness
mention_slug=$(gh api "/orgs/getsentry/teams/$team_slug" -q .slug || true)

if [[ -z "$mention_slug" ]]; then
echo "Couldn't find team mention from slug, trying the label description"
team_slug=$(gh api "/repos/$GH_REPO/labels/$team_label" -q '.description')
mention_slug=$(gh api "/orgs/getsentry/teams/$team_slug" -q .slug || true)
fi

if [[ -n "$mention_slug" ]]; then
echo "Routing to @getsentry/$mention_slug for [triage](https://develop.sentry.dev/processing-tickets/#3-triage). ⏲️" > comment_body
else
echo "[Failed]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) to route to \`${{ github.event.label.name }}\`. 😕" > comment_body
echo "" >> comment_body
echo "Defaulting to @getsentry/open-source for [triage](https://develop.sentry.dev/processing-tickets/#3-triage). ⏲️" >> comment_body
fi
gh issue comment ${{ github.event.issue.number }} --body-file comment_body
16 changes: 16 additions & 0 deletions .github/workflows/issue-status-helper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Issue Status Helper
on:
issues:
types: [labeled]
jobs:
ensure_one_status:
runs-on: ubuntu-latest
if: "startsWith(github.event.label.name, 'Status: ')"
steps:
- name: "Ensure a single 'Status: *' label"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
labels_to_remove=$(gh api --paginate "/repos/$GH_REPO/labels" -q '[.[].name | select(startswith("Status: ") and . != "${{ github.event.label.name }}")] | join(",")')
gh issue edit ${{ github.event.issue.number }} --remove-label "$labels_to_remove" --add-label "${{ github.event.label.name }}"
16 changes: 16 additions & 0 deletions .github/workflows/lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Lock closed issues/PRs'
on:
schedule:
- cron: '11 3 * * *'
workflow_dispatch:
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: getsentry/forked-action-lock-threads@master
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 15
issue-lock-reason: ''
pr-lock-inactive-days: 15
pr-lock-reason: ''
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Version to release (optional)
required: false
force:
description: Force a release even when there are release-blockers (optional)
required: false
schedule:
# We want the release to be at 10 or 11am Pacific Time
# We also make this an hour after all others such as Sentry,
# Snuba, and Relay to make sure their releases finish.
- cron: "0 18 15 * *"
jobs:
release:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_RELEASE_PAT }}
fetch-depth: 0
- name: Prepare release
uses: getsentry/action-prepare-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
with:
version: ${{ github.event.inputs.version }}
force: ${{ github.event.inputs.force }}
calver: true
47 changes: 47 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: 'Close stale issues/PRs'
on:
schedule:
- cron: '* */6 * * *'
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@87c2b794b9b47a9bec68ae03c01aeb572ffebdb1
with:
repo-token: ${{ github.token }}
days-before-stale: 21
days-before-close: 7
only-labels: ""
operations-per-run: 100
remove-stale-when-updated: true
debug-only: false
ascending: false

exempt-issue-labels: "Status: Backlog,Status: In Progress"
stale-issue-label: "Status: Stale"
stale-issue-message: |-
This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it `Status: Backlog` or `Status: In Progress`, I will leave it alone ... forever!

----

"A weed is but an unloved flower." ― _Ella Wheeler Wilcox_ 🥀
skip-stale-issue-message: false
close-issue-label: ""
close-issue-message: ""

exempt-pr-labels: "Status: Backlog,Status: In Progress"
stale-pr-label: "Status: Stale"
stale-pr-message: |-
This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it `Status: Backlog` or `Status: In Progress`, I will leave it alone ... forever!

----

"A weed is but an unloved flower." ― _Ella Wheeler Wilcox_ 🥀
skip-stale-pr-message: false
close-pr-label:
close-pr-message: ""
67 changes: 67 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Test
on:
# Run CI on all pushes to the master and release/** branches, and on all new
# pull requests, and on all pushes to pull requests (even if a pull request
# is not against master).
push:
branches:
- "master"
- "release/**"
pull_request:
defaults:
run:
shell: bash
jobs:
unit-test:
runs-on: ubuntu-20.04
name: "unit tests"
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Unit Tests
working-directory: install
run: find ./ -type f -name "*-test.sh" -exec "./{}" \;

integration-test:
runs-on: ubuntu-20.04
name: "integration test"
strategy:
max-parallel: 1
fail-fast: false
matrix:
include:
- compose_version: '1.28.0'
compose_path: '/usr/local/bin'
- compose_version: 'v2.0.1'
compose_path: '/usr/local/lib/docker/cli-plugins'
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Get Compose
run: |
# Always remove `docker compose` support as that's the newer version
# and comes installed by default nowadays.
sudo rm -f "/usr/local/lib/docker/cli-plugins/docker-compose"
sudo rm -f "${{ matrix.compose_path }}/docker-compose"
sudo mkdir -p "${{ matrix.compose_path }}"
sudo curl -L https://github.com/docker/compose/releases/download/${{ matrix.compose_version }}/docker-compose-`uname -s`-`uname -m` -o "${{ matrix.compose_path }}/docker-compose"
sudo chmod +x "${{ matrix.compose_path }}/docker-compose"

- name: Integration Test
run: |
echo "Testing initial install"
./install.sh
./_integration-test/run.sh
echo "Testing in-place upgrade"
# Also test plugin installation here
echo "sentry-auth-oidc" >> sentry/requirements.txt
./install.sh --minimize-downtime
./_integration-test/run.sh

- name: Inspect failure
if: failure()
run: |
docker compose ps
docker compose logs
Loading