Merged
Conversation
Bumps [cloudevents](https://github.com/cloudevents/sdk-python) from 1.12.1 to 2.0.0. - [Changelog](https://github.com/cloudevents/sdk-python/blob/main/CHANGELOG.md) - [Commits](https://github.com/cloudevents/sdk-python/commits/2.0.0) --- updated-dependencies: - dependency-name: cloudevents dependency-version: 2.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Member
|
@copilot migrate to cloudevents 2.x https://github.com/cloudevents/sdk-python/blob/main/MIGRATION.md |
Agent-Logs-Url: https://github.com/radiorabe/minio-cloudevents-service/sessions/5cd63c8d-8596-4e3e-bad7-099e006330a9 Co-authored-by: hairmare <116588+hairmare@users.noreply.github.com>
Migrated to the cloudevents v2 API in commit e2bac3d. Changes include:
|
Agent-Logs-Url: https://github.com/radiorabe/minio-cloudevents-service/sessions/aa17fd48-79b7-4eb5-a4ce-5d6c78ca4a2b Co-authored-by: hairmare <116588+hairmare@users.noreply.github.com>
Copilot
AI
changed the title
chore(deps): bump cloudevents from 1.12.1 to 2.0.0
fix: resolve CI failures after cloudevents v2 migration
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three issues introduced by the cloudevents v2 migration were caught by CI: an unsorted import block, a
str | Nonetype mismatch instr.join(), and akey_mappercallback signature incompatible withto_structured_event.Changes
configargparsebeforedateutil) to satisfy ruff I001get_subject()nullability:BaseCloudEvent.get_subject()returnsstr | Nonein v2; addedor ""fallback in_key_mapperto satisfy mypy_key_mappersignature: changed from(ce: CloudEvent) -> strto(ce: BaseCloudEvent) -> str | bytes | Noneto matchto_structured_event's expectedCallable[[BaseCloudEvent], str | bytes | None];BaseCloudEventmoved into theTYPE_CHECKINGblock per ruff TC002 (safe due tofrom __future__ import annotations)