Skip to content

Conversation

@baxeaz
Copy link
Contributor

@baxeaz baxeaz commented May 16, 2025

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

We want to support the new openjd_redacted_env keyword in openjd when a new extension (REDACTED_ENV_VARS) is enabled as part of OpenJobDescription/openjd-specifications#86.

In testing it was discovered that unit tests in openjd-cli were broken due to a few class definitions being out of order and having ForwardRef annotations in place.

What was the solution? (How)

Add the extension definition and a basic test.

Reorder the class definitions which were out of order.

Add a test that looks through all of our _model classes to ensure there are no forward references.

What is the impact of this change?

Unit tests in openjd-cli should pass again.

We can add the other PRs to support the env var redaction feature.

How was this change tested?

All tests pass.

Ran openjd-cli tests with the fix successfully.

Ran the test with the old order and saw the expected failure.

New test that runs with expected forward reference catches it successfully.

Was this change documented?

Yes

Is this a breaking change?

No

Does this change impact security?

No - the related changes to openjd-sessions-for-python do, but this is just declaring the name of an extension.


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 May 16, 2025 21:49
… openjd_redacted_env

Signed-off-by: Brian Axelson <86568017+baxeaz@users.noreply.github.com>
@sonarqubecloud
Copy link

@mwiebe mwiebe merged commit 460656a into OpenJobDescription:mainline May 16, 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.

4 participants