Klaas van Schelven
a835449bef
flake8
2025-05-28 22:24:19 +02:00
Klaas van Schelven
46c9f3d7cc
Merge pull request #87 from bpeschier/fix/sourcemap-with-multiple-sources
...
* Apply source mapping when sourcemap contains multiple sources
* Propagate `filename` and `function` from the sourcemap.
2025-05-28 22:18:02 +02:00
Klaas van Schelven
f817b3ba2f
Lookup by debug_id in dicts: use UUID
...
in absence of a clean reproducer, just doing proper lookups on a
normalized thing seems the more stable thing to do.
Fix #105 (in absence of test: I think)
2025-05-28 22:03:51 +02:00
Klaas van Schelven
859ba6b31e
Add test that proves database lookups on UUID work the way you think
...
See #105
2025-05-28 22:02:35 +02:00
Klaas van Schelven
9375dbc140
Merge pull request #107 from bugsink/dependabot/pip/python-packages-a9558a5c6c
...
Update sentry-sdk and jsonschema
2025-05-27 20:18:52 +02:00
dependabot[bot]
8544a47e8c
Bump the python-packages group across 1 directory with 2 updates
...
Updates the requirements on [sentry-sdk](https://github.com/getsentry/sentry-python ) and [jsonschema](https://github.com/python-jsonschema/jsonschema ) to permit the latest version.
Updates `sentry-sdk` to 2.29.1
- [Release notes](https://github.com/getsentry/sentry-python/releases )
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-python/compare/2.27.0...2.29.1 )
Updates `jsonschema` to 4.24.0
- [Release notes](https://github.com/python-jsonschema/jsonschema/releases )
- [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.23.0...v4.24.0 )
---
updated-dependencies:
- dependency-name: sentry-sdk
dependency-version: 2.29.1
dependency-type: direct:production
dependency-group: python-packages
- dependency-name: jsonschema
dependency-version: 4.24.0
dependency-type: direct:production
dependency-group: python-packages
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-27 15:54:19 +00:00
Klaas van Schelven
ab7ad72376
Default worker-count in Docker: min(cpu_count, 4) instead of 1
...
As per discussion with @sekrause on #101
Briefly: recent reduction is a good idea, but 1 is probably too
little.
2025-05-18 11:18:54 +02:00
Klaas van Schelven
b58058ccd1
Repeatable tests/fix CI/CD
...
fixes KeyError: "exception"
2025-05-18 09:48:21 +02:00
Klaas van Schelven
9770711823
Add robots.txt that disallows crawling
...
There's not much to crawl, but if you're running Bugsink somewhere
and search engines 'somehow find out about it', you generally probably
don't want randos on the internet to find that
2025-05-18 09:33:43 +02:00
Klaas van Schelven
7f2e4b786b
Default worker-count in Docker: 1 instead of 10
...
My reasoning is twofold:
1. a count of 1 is actually probably "enough for many setups" because ingestion
is very fast anyway (just store the file); while the lower memory-footprint
that comes with having fewer workers means that adoption of Bugsink will be
easier.
2. tuning the variable is going to be less annoying if there's no default that
might override "in the wrong direction" (i.e. the interaction between
`WEB_CONCURRENCY` and `GUNICORN_CMD_ARGS`)
See #101 (where the concept of customizability was discussed, though not the
present idea of chaning the default).
2025-05-18 09:15:43 +02:00
Klaas van Schelven
ef630ded50
Make number of Gunicorn workers configurable in Docker setup
...
Fix #101
It becomes configurable by passing an environment-var someting like so
to your `docker run` (or equivalent).
GUNICORN_CMD_ARGS="--workers=123"
2025-05-17 22:17:28 +02:00
Klaas van Schelven
232d2d969d
Add HEALTHCHECK command to Dockerfile*
...
See #98
2025-05-15 16:38:48 +02:00
Klaas van Schelven
430b130a94
Fingerprint: convert to string before concatenating
...
Fixes #102 ; as discussed in that issue: although such fingerprints are not
up-to-spec the sentry docs directly recommend them, and it would be nice
to not crash on them
2025-05-12 15:54:29 +02:00
Klaas van Schelven
66ec55937c
Even more clear "don't touch this DB" warning
2025-05-12 13:53:02 +02:00
Klaas van Schelven
4743e75019
Add /health/ready endpoint
...
Fixes #98
2025-05-12 13:42:57 +02:00
Klaas van Schelven
78a95fb493
Add another note about SNAPPEA db
...
this time about the path
2025-05-12 13:26:32 +02:00
Klaas van Schelven
4de7bfe1df
1.5.4 CHANGELOG
1.5.4
2025-05-12 10:59:08 +02:00
Klaas van Schelven
2b8efc9452
stress_test command: remove must-be-true fresh-id param
2025-05-12 10:56:39 +02:00
Klaas van Schelven
528998fae5
stress_test command: remove deprecated 'use_envelope' option
...
we always do that, as per the now-removed comment
2025-05-12 10:49:06 +02:00
Klaas van Schelven
ab3e6da582
build_dsn: add assertion
...
like the systemcheck from 0c14962d92 , but dynamically for those
environments (non-docker) in which the system-check might be skipped
2025-05-12 10:43:53 +02:00
Klaas van Schelven
265a3e56ee
Textual: setting-name in all-caps
2025-05-12 10:42:53 +02:00
Klaas van Schelven
6b4fac0f86
Show _all_ Request Headers in CSRF_DEBUG view
...
the less relevant ones grayed out
This may help in debugging #100
2025-05-12 10:31:12 +02:00
Klaas van Schelven
0c14962d92
Add system-check for BASE_URL
2025-05-10 14:01:43 +02:00
Klaas van Schelven
3f43981475
Fix (obj not found) when visiting project as a superuser
...
project of which you're not a member
2025-05-09 16:47:21 +02:00
Klaas van Schelven
4bd1ed7fa4
send_json command doesn't depend on settings either
2025-05-09 12:51:47 +02:00
Klaas van Schelven
66899c5144
Add bugsink-util script to allow settings-independent commands to be run
2025-05-09 12:49:34 +02:00
Klaas van Schelven
8b8c56914c
1.5.3 CHANGELOG
1.5.3
2025-05-07 21:50:33 +02:00
Klaas van Schelven
9b0f0e04f4
CREATE_SUPERUSER shortcut: robust for ':' in password
2025-05-07 09:21:21 +02:00
Klaas van Schelven
0dfd01db9b
Performance: don't evaluate all project issues to show/hide checkbox
...
Doing so is expensive (to the point of timeout) for largish numbers
of issues.
2025-05-06 23:01:09 +02:00
Klaas van Schelven
aad0f624f9
Fix: issue-list indexes must have project first
...
because we always filter by project before ordering;
the now-removed first_seen index was simply unused
2025-05-06 22:19:31 +02:00
Klaas van Schelven
699f6e587d
fix: _get_runtime_limit must apply to the right alias
...
instead of just returning the value for the default alias
that this wasn't done was a bug generally (the per-alias limits
simply didn't apply) but was exposed when running the CI against
non-sqlite databases, because in that setup the main database
would not get a limit set, but because the getter fell back
to the default (which wasn't set) there was an exception.
2025-05-06 21:45:41 +02:00
Klaas van Schelven
474c677f12
limit_runtime: log non-interruptions
2025-05-06 16:57:06 +02:00
Klaas van Schelven
b33d559d44
1.5.2 CHANGELOG
1.5.2
2025-05-06 12:55:06 +02:00
Klaas van Schelven
49e6700d4a
Grouping.grouping_key: hash it for the index
2025-05-06 11:32:19 +02:00
Klaas van Schelven
d5a449020d
Stress test: more fat-tailed randomness
...
direct cause: the ability to create test-data for many-Issue setups
2025-05-06 10:42:18 +02:00
Klaas van Schelven
cc2b22f08e
Digest: check Grouping.exists only once (save a query)
2025-05-06 10:30:51 +02:00
Klaas van Schelven
17fb9cc850
Remove open_issue_count from homepage; it's too expensive
2025-05-06 10:27:16 +02:00
Klaas van Schelven
3783661054
Issue Paginator: don't attempt to count the Issues
...
Counting incurs looking at all records which is too expensive if you have e.g.
1_000_000 issues.
Note that we take a different approach than the one for Events (where we
count-with-timeout). Reason for switching:
https://sqlite.org/forum/forumpost/fa65709226
For Events we have a known count for the non-query case (denormalized/counted
value), so we preserve what we had there. For Issues the trouble of keeping
counts right for muted/etc. is not (currently) worth it.
2025-05-06 10:13:06 +02:00
Klaas van Schelven
392f5a30be
Add index for Grouping.grouping_key (and project)
2025-05-05 22:45:33 +02:00
Klaas van Schelven
6fbff70347
format_exception in capture_or_log_exception: drop python 3.9 compat
...
reverts (the meat of) c51051dc2e
2025-04-26 11:38:18 +02:00
Klaas van Schelven
06c12ef50a
CI: when running a Django-shell to print the installed apps, surpress the 'auto imported' warning
...
30 objects imported automatically (use -v 2 for details).
2025-04-26 11:27:18 +02:00
Klaas van Schelven
9157631efa
Drop Python 3.9 support
...
This probably means we'll move to Django 5.2 no sooner than October 2025.
See https://docs.djangoproject.com/en/5.2/faq/install/
2025-04-26 11:12:04 +02:00
Klaas van Schelven
1dfbaf5b2a
Upgrade to Django 5.2
...
'shooting in the dark' edition, i.e. just upgrading the version number
without RTFM and seeing if the CI still runs
2025-04-26 11:04:24 +02:00
Klaas van Schelven
c292d9f87c
Merge pull request #88 from bugsink/dependabot/pip/python-packages-e08a0a53e9
...
Update sentry-sdk requirement from ==2.26.* to ==2.27.* in the python-packages group
2025-04-26 10:56:57 +02:00
Klaas van Schelven
a5401414db
Fix deprecationwarnings (about Django 5.0) in the tests
...
by changing an import
2025-04-26 10:52:04 +02:00
Klaas van Schelven
c51051dc2e
format_exception in capture_or_log_exception: python 3.9 compatible
2025-04-26 10:47:16 +02:00
Klaas van Schelven
4b396446b0
Fix github workflows to include sentry_sdk_extensions in tests
...
it's the other non-Django-app with tests that we have now
2025-04-26 10:43:35 +02:00
Klaas van Schelven
ebd7d8075b
Add test for test_capture_or_log_exception
...
this test is assumed to surface problems on Python<3.10
2025-04-26 10:24:49 +02:00
dependabot[bot]
a0d3da6034
Update sentry-sdk requirement in the python-packages group
...
Updates the requirements on [sentry-sdk](https://github.com/getsentry/sentry-python ) to permit the latest version.
Updates `sentry-sdk` to 2.27.0
- [Release notes](https://github.com/getsentry/sentry-python/releases )
- [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-python/compare/2.26.0...2.27.0 )
---
updated-dependencies:
- dependency-name: sentry-sdk
dependency-version: 2.27.0
dependency-type: direct:production
dependency-group: python-packages
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-25 15:24:45 +00:00
Klaas van Schelven
f41f8262c1
EMAIL_USE_SSL: not EMAIL_USE_TLS by default
...
avoids crashing on "both true" when only `EMAIL_USE_TLS` is explicitly configured
> In your setup those are both true because the former is true by default,
> and the latter is what you have specified. Set the first to false and you
> should be good.
See #86
1.5.1
2025-04-24 21:18:53 +02:00