Skip to content

Add missing BRUIN_* context properties#5

Merged
sabrikaragonen merged 6 commits intomainfrom
sabrikaragonen/adopt-pr-1802
Mar 16, 2026
Merged

Add missing BRUIN_* context properties#5
sabrikaragonen merged 6 commits intomainfrom
sabrikaragonen/adopt-pr-1802

Conversation

@sabrikaragonen
Copy link
Copy Markdown
Contributor

Summary

  • Add start_timestamp, end_timestamp, execution_datetime, and execution_timestamp properties to context
  • These expose BRUIN_START_TIMESTAMP, BRUIN_END_TIMESTAMP, BRUIN_EXECUTION_DATETIME, and BRUIN_EXECUTION_TIMESTAMP env vars that the CLI already injects but the SDK wasn't surfacing
  • Also includes the commit_hash property for BRUIN_COMMIT_HASH from bruin-data/bruin#1802

Test plan

  • Unit tests added for all 5 new properties (set + missing cases)
  • All 64 context tests pass

🤖 Generated with Claude Code

sabrikaragonen and others added 6 commits March 14, 2026 19:32
- Group start_*, end_*, execution_* properties together instead of
  interleaving date/datetime across prefixes
- Simplify _parse_datetime error message to not hardcode a format that
  doesn't match timestamp variants
- Add non-UTC timezone test for start_timestamp

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@sabrikaragonen sabrikaragonen merged commit 7aa945d into main Mar 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants