Skip to content

Conversation

@baxeaz
Copy link
Contributor

@baxeaz baxeaz commented Jun 5, 2025

What was the problem/requirement? (What/Why)

We want to be able to test the new openjd_redacted_env feature in openjd-cli

We want to create openjd sessions using the new revision_extensions parameter

We want an openjd-cli test of the new openjd_redacted_env feature

What was the solution? (How)

Bump dependency versions

Update parameter to use revision_extensions

Add test

What is the impact of this change?

openjd-cli can use the latest version of openjd-sessions and model to test out features using extensions such as openjd_redacted_env.

How was this change tested?

Manual testing and hatch run test

  • Have you run the tests?
    Yes

Was this change documented?

Yes

Is this a breaking change?

No

Does this change impact security?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@baxeaz baxeaz requested a review from a team as a code owner June 5, 2025 20:30
@baxeaz baxeaz force-pushed the mainline branch 2 times, most recently from 8212c42 to 5d6edf5 Compare June 5, 2025 21:48
# Create a RevisionExtensions object with the default specification version and enabled extensions
# We use the default v2023_09 since that's what we're currently supporting
revision_extensions = RevisionExtensions(
spec_rev=SpecificationRevision.v2023_09, supported_extensions=extensions
Copy link
Contributor

Choose a reason for hiding this comment

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

If this takes the spec rev from the_job instead of the constant, this code will be future-proof to when we publish the next revision.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed offline - I was looking at doing that exactly initially but it looked like Job didn't maintain revision - taking another look it's there on the base class. Will update!

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 5, 2025

@mwiebe mwiebe merged commit 3070830 into OpenJobDescription:mainline Jun 5, 2025
19 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.

3 participants