9 Commits

Author SHA1 Message Date
Nikita Korolev
66c057b4e2
enable shell linter for more scripts (#3748) 2025-06-14 06:50:26 +07:00
Reinaldy Rafli
2a7abf215e
fix(loader): provide js sdk assets from 4.x (#3415)
Hopefully fixes https://github.com/getsentry/sentry/issues/22715#issuecomment-2458066842

### 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-07 10:11:07 +00:00
Chad Whitacre
5394475060
A couple unit testing improvements (#2238) 2023-06-27 01:52:50 +00:00
Hubert Deng
8fc2933c20
Add Backup/restore scripts (#2029)
* add backup/restore scripts
* refactor utils to scripts
2023-03-17 13:52:49 -07:00
Hubert Deng
c0ff2f49c9
Add opt in error monitoring to reset and clean scripts (#2021)
* add opt in error monitoring to clean script

* reorganize utility scripts to go into utility folder
2023-03-16 16:04:53 -07:00
Benedikt Franke
ec4f416c26
Reference paths relative to project root (#1800)
* Reference paths relative to the current script or project root

Before this PR:
- some scripts change the current working directory and use relative paths
- different approaches are taken to know which directory a script is running in
- paths are sometimes relative, sometimes absolute, sometimes traversing directories

After this PR:
- scripts do neither change nor care much about the current working directory
- a unified approach determines the directory of the current script
- paths are always relative to the project root

This should resolve an issue I already tried to fix with https://github.com/getsentry/self-hosted/pull/1798,
where the contents of `./sentry` were not copied
into the built container image,
thus `enhance-image.sh` did not apply.

Co-authored-by: Amin Vakil <info@aminvakil.com>
2023-02-17 09:59:48 -08:00
Ethan Smith
6b9306a17c
Add pre-commit config (#1738) 2022-10-21 13:46:35 -07:00
Chad Whitacre
dba22b87ac
Factor out clean and use it in unit-test (#1731) 2022-09-29 22:08:54 +00:00
Hubert Deng
871c5f6092
Reorganize unit test layout (#1729)
* fix failing unit tests

* fix unit test pipeline

* add newline to unit-test file

* preserve semantics from docker volume test

* add error-handling tests

* reorganize file structure of unit tests

* add comment for using _file format in ensure relay credentials test

* add error handling unit tests

* use unit-test directory

* stack trace should be from the unit test directory

* Slightly better fail signal

* Clearer start as well

Co-authored-by: Chad Whitacre <chadwhitacre@sentry.io>
2022-09-29 14:48:48 -07:00