Skip to content

feat: Sync fork#14

Open
ngudbhav wants to merge 373 commits intoKingsGambitLab:masterfrom
getsentry:master
Open

feat: Sync fork#14
ngudbhav wants to merge 373 commits intoKingsGambitLab:masterfrom
getsentry:master

Conversation

@ngudbhav
Copy link

@ngudbhav ngudbhav commented Apr 29, 2024

CodeAnt-AI Description

Add Podman support, automatic storage migrations, PGBouncer migration, and optional local JS SDK hosting

What Changed

  • Installer can run with either Docker or Podman and auto-detects the container engine; compose commands and image pull/build flows work with both
  • Automatically create SeaweedFS "nodestore" and "profiles" buckets, migrate existing files from the legacy sentry-vroom volume into the "profiles" bucket, and apply lifecycle retention policies
  • Offer an interactive or automatic migration that updates sentry configuration to point nodestore/profiles to SeaweedFS and migrate Postgres host to PGBouncer when standard configs are detected
  • Optional flow to download and prune JS SDK bundles into the nginx volume for local hosting when enabled
  • Stronger preflight checks and environment validation: checks container engine/version, compose version, bash version, CPU/RAM minima, and CPU feature support; improved service start/wait handling so required services are ready before proceeding
  • Added automated unit and integration tests covering Podman detection, SeaweedFS bucket creation/migration, PGBouncer migration, JS SDK setup, and related flows

Impact

✅ Podman installs using compose-based flow
✅ Fewer manual nodestore/profiles migrations during upgrades
✅ Clearer, opt-in PGBouncer migration and safer upgrade flow

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

BYK and others added 30 commits January 13, 2025 20:35
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.
We should do the backup/restore tests _after_ we do the basic tests. This is both more efficient as we avoid an extra up/down cycle and more meaningful as we will back up and restore an actually used system.

A bit hard to measure directly as this also moves the initial `docker compose up -w` into the test suite but a random run without this patch took about 10m 49s to finish for the testing part whereas with the patch it came down to 9m 10s so **almost 2 minutes faster**!
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.
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.
)

We need to care about more than just src/sentry/migrations. We will need to account for files in src/sentry/**/migrations/*

Taken from https://github.com/getsentry/sentry/blob/afd74698180066223dee53991b7db26ca80ea3e5/.github/file-filters.yml#L90
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
I _think_ we can get away with this but let's see what the CI thinks. If it passes, it should save us another minuter or two.
Came as a feature request from @untitaker and I think it makes a lot of sense

---------

Co-authored-by: Hubert Deng <hubert.deng@sentry.io>
….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](actions/create-github-app-token@c1a2851...136412a)

---
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>
….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](actions/create-github-app-token@136412a...67e27a7)

---
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>
Merging to get things green
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](getsentry/action-release@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>
….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](actions/create-github-app-token@67e27a7...21cfef2)

---
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>
Fixes #3587 

This PR tries to use docker-compose if its version is greater than docker compose.
With #3595, we now check both `docker-compose` and `docker compose` versions so this patch removes the implicit fallback to `docker-compose` for `$dc_base` and makes it explicit.
)

fix: Prevent script injection in get-compose-action

Use environment variable to pass inputs.version instead of direct
interpolation in run script to prevent potential script injection.

Refs: DI-967, VULN-761

Co-authored-by: fix-it-felix-sentry[bot] <260785270+fix-it-felix-sentry[bot]@users.noreply.github.com>
@codeant-ai
Copy link

codeant-ai bot commented Feb 19, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:XXL This PR changes 1000+ lines, ignoring generated files and removed size:XXL This PR changes 1000+ lines, ignoring generated files labels Feb 19, 2026
@codeant-ai
Copy link

codeant-ai bot commented Feb 19, 2026

CodeAnt AI Incremental review completed.

aminvakil and others added 2 commits February 19, 2026 20:34
Bumps [getsentry/craft](https://github.com/getsentry/craft) from 2.21.4 to 2.21.7.
- [Release notes](https://github.com/getsentry/craft/releases)
- [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md)
- [Commits](getsentry/craft@906009a...41defb3)

---
updated-dependencies:
- dependency-name: getsentry/craft
  dependency-version: 2.21.7
  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>
@codeant-ai
Copy link

codeant-ai bot commented Feb 24, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:XXL This PR changes 1000+ lines, ignoring generated files and removed size:XXL This PR changes 1000+ lines, ignoring generated files labels Feb 24, 2026
@codeant-ai
Copy link

codeant-ai bot commented Feb 24, 2026

CodeAnt AI Incremental review completed.

@codeant-ai
Copy link

codeant-ai bot commented Feb 25, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:XXL This PR changes 1000+ lines, ignoring generated files and removed size:XXL This PR changes 1000+ lines, ignoring generated files labels Feb 25, 2026
@codeant-ai
Copy link

codeant-ai bot commented Feb 25, 2026

CodeAnt AI Incremental review completed.

BYK and others added 4 commits February 25, 2026 21:25
- Add `preReleaseCommand` to `.craft.yml` so Craft runs the custom
  bump script instead of silently skipping version bumping (the auto-bump
  path introduced with minVersion 2.21.0+ only works for npm/pypi/etc.
  targets, not the `github` target used here)
- Switch `bump-version.sh` to read `CRAFT_OLD_VERSION`/`CRAFT_NEW_VERSION`
  env vars (Craft's preferred interface), falling back to positional args
  so `post-release.sh` continues to work unchanged
- Fix the README `sed` pattern which stopped matching after the README
  was rewritten in Sep 2024 (removed erroneous backslash before `#`,
  and relaxed trailing match to allow zero characters after "Sentry")
- Remove the invalid `calver: true` input from the Craft action call in
  `release.yml` (not a recognised input; calver is configured in
  `.craft.yml` via `versioning.policy`)
…/nodejs (#4189)

build(deps): bump minimatch in /_integration-test/nodejs

Bumps [minimatch](https://github.com/isaacs/minimatch) from 9.0.5 to 9.0.7.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](isaacs/minimatch@v9.0.5...v9.0.7)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 9.0.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@codeant-ai
Copy link

codeant-ai bot commented Feb 26, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:XXL This PR changes 1000+ lines, ignoring generated files and removed size:XXL This PR changes 1000+ lines, ignoring generated files labels Feb 26, 2026
@codeant-ai
Copy link

codeant-ai bot commented Feb 26, 2026

CodeAnt AI Incremental review completed.

@codeant-ai
Copy link

codeant-ai bot commented Mar 4, 2026

CodeAnt AI is running Incremental review


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai bot added size:XXL This PR changes 1000+ lines, ignoring generated files and removed size:XXL This PR changes 1000+ lines, ignoring generated files labels Mar 4, 2026
@codeant-ai
Copy link

codeant-ai bot commented Mar 4, 2026

CodeAnt AI Incremental review completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL This PR changes 1000+ lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.