Skip to content

ref(upload): Explicitly reject items when an objectstore upload fails#5976

Merged
jjbayer merged 5 commits into
masterfrom
ref/objectstore-reject-items
May 12, 2026
Merged

ref(upload): Explicitly reject items when an objectstore upload fails#5976
jjbayer merged 5 commits into
masterfrom
ref/objectstore-reject-items

Conversation

@jjbayer

@jjbayer jjbayer commented May 11, 2026

Copy link
Copy Markdown
Member

When upload_to_objectstore fails, reject items explicitly to make it more obvious which outcomes are emitted.

upload: &Addr<Upload>,
referrer: &'static str,
) -> Option<Managed<Item>>
) -> Result<Managed<Item>, Rejected<()>>

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the signature of this function is not strictly necessary to do the rejection (i.e. the outcome reporting), but it makes the rejection more explicit to the caller.

@jjbayer jjbayer marked this pull request as ready for review May 11, 2026 15:47
@jjbayer jjbayer requested a review from a team as a code owner May 11, 2026 15:47
@jjbayer jjbayer requested review from elramen and tobias-wilfert May 11, 2026 15:48
Comment thread tests/integration/test_minidump.py Outdated
project_config["config"].setdefault("features", []).append(
"projects:relay-minidump-attachment-uploads"
)
mini_sentry.global_config["options"]["relay.endpoint-fetch-config.enabled"] = True

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed per se since we already enable it here:

"relay.endpoint-fetch-config.enabled": True,
but if you think it is better to also explicitly set it here it is fine with me.

@jjbayer jjbayer changed the title feat(upload): Report outcomes when an objectstore upload fails ref(upload): Explicitly reject items when an objectstore upload fails May 12, 2026
@jjbayer jjbayer enabled auto-merge May 12, 2026 07:06
@jjbayer jjbayer added this pull request to the merge queue May 12, 2026
Merged via the queue into master with commit 04d5bf5 May 12, 2026
35 of 51 checks passed
@jjbayer jjbayer deleted the ref/objectstore-reject-items branch May 12, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants