Skip to content

feat: Implement FEATURE_BUNDLE_1 RFC 0004#204

Merged
mwiebe merged 1 commit intoOpenJobDescription:mainlinefrom
mwiebe:implement-rfc-0004
Feb 6, 2026
Merged

feat: Implement FEATURE_BUNDLE_1 RFC 0004#204
mwiebe merged 1 commit intoOpenJobDescription:mainlinefrom
mwiebe:implement-rfc-0004

Conversation

@mwiebe
Copy link
Contributor

@mwiebe mwiebe commented Jan 30, 2026

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

When OpenJobDescription/openjd-model-for-python#258 and OpenJobDescription/openjd-sessions-for-python#299 are merged, this library is next.

What was the solution? (How)

Add FEATURE_BUNDLE_1 to the accepted extension list, and add tests of some of the functionality.

What is the impact of this change?

Support for OpenJD RFC 0004.

How was this change tested?

Tested together with the openjd-model and an openjd-sessions change.

Was this change documented?

N/A

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.

jericht
jericht previously approved these changes Jan 30, 2026
Comment on lines +45 to +48
"""Test that format string timeout is resolved."""
template = TEMPLATES_DIR / "feature_bundle_1_timeout.yaml"
outerr = run_openjd_cli_main(capsys, args=["run", str(template)], expected_exit_code=0)
assert "Running with timeout 5s" in outerr.out
Copy link
Contributor

Choose a reason for hiding this comment

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

This works, but I think it feels more "correct" to have the test ensure the task actually times out, so we know for sure OpenJD is using the parametrized timeout property to set the task timeout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a nice idea, but it would also make the tests slower. This may be something to test in openjd-sessions instead?

@mwiebe mwiebe force-pushed the implement-rfc-0004 branch 2 times, most recently from 6465051 to a0060e6 Compare February 3, 2026 22:15
@mwiebe mwiebe marked this pull request as ready for review February 3, 2026 22:22
@mwiebe mwiebe requested a review from a team as a code owner February 3, 2026 22:22
@mwiebe mwiebe force-pushed the implement-rfc-0004 branch 3 times, most recently from c36da06 to a13c070 Compare February 3, 2026 22:51
Copy link

@stangch stangch left a comment

Choose a reason for hiding this comment

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

I noticed there were Min and Max Properties in <AmountRequirement> in the RFC 0004, but I'm unsure if that is reflected here/ needs tests for?

@mwiebe mwiebe force-pushed the implement-rfc-0004 branch from a13c070 to 85573e5 Compare February 4, 2026 01:18
@mwiebe
Copy link
Contributor Author

mwiebe commented Feb 4, 2026

I noticed there were Min and Max Properties in <AmountRequirement> in the RFC 0004, but I'm unsure if that is reflected here/ needs tests for?

I had started these as more of a spot check, but yeah it's nice to make them more complete. I've added min/max/notifyPeriod test templates.

Signed-off-by: Mark <399551+mwiebe@users.noreply.github.com>
@mwiebe mwiebe force-pushed the implement-rfc-0004 branch from 85573e5 to 9b5baff Compare February 4, 2026 01:21
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 4, 2026

@mwiebe mwiebe enabled auto-merge (rebase) February 5, 2026 20:10
@mwiebe mwiebe disabled auto-merge February 6, 2026 16:03
@mwiebe mwiebe merged commit adfc5a6 into OpenJobDescription:mainline Feb 6, 2026
19 checks passed
@mwiebe mwiebe deleted the implement-rfc-0004 branch February 6, 2026 16:03
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.

4 participants