Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: Update openjd-cli to pass template_dir/cwd to preprocess_job_parameters #29

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

mwiebe
Copy link
Contributor

@mwiebe mwiebe commented Jan 17, 2024

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

The breaking change in OpenJobDescription/openjd-model-for-python#39
requires an update to openjd-cli

What was the solution? (How)

Update the openjd run command to pass the required directories to preprocess_job_parameters.

What is the impact of this change?

The CLI will work once both the model and this change are merged.

How was this change tested?

Updated the unit tests and verified they run. Note I had to increase the timeout from 30 to 60 seconds, seems like running a session is slower on Windows.

I ran a job with both a template path parameter relative path default and a CLI parameter relative path, and confirmed that it works now, compared to before this breaking change when it failed.

Was this change documented?

No

Is this a breaking change?

Yes


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

@mwiebe mwiebe requested a review from a team as a code owner January 17, 2024 01:57
@mwiebe mwiebe force-pushed the markw/update-preprocess-job-params branch from 22cdaff to 35c89a0 Compare January 17, 2024 01:58
AWS-Samuel
AWS-Samuel previously approved these changes Jan 17, 2024
epmog
epmog previously approved these changes Jan 17, 2024
@mwiebe mwiebe dismissed stale reviews from epmog and AWS-Samuel via 3edf35a January 18, 2024 23:11
@mwiebe mwiebe force-pushed the markw/update-preprocess-job-params branch 2 times, most recently from 3edf35a to 8ecee03 Compare January 19, 2024 00:56
…arameters

* Update the openjd-sessions dependency to 0.3.*
* Modify the use of preprocess_job_parameters, and the tests, to account
  for the upstream change
* Update to reflect type changes from openjd-sessions
* Add Python 3.12 and Windows to the gihub actions configuration.

Signed-off-by: Mark Wiebe <[email protected]>
@mwiebe mwiebe force-pushed the markw/update-preprocess-job-params branch from 8ecee03 to ad7c329 Compare January 19, 2024 00:59
Copy link
Contributor

@ddneilson ddneilson left a comment

Choose a reason for hiding this comment

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

This is great! Thanks for doing this. It was first on my to-do list for today.

@ddneilson ddneilson merged commit 0983e1d into mainline Jan 19, 2024
15 checks passed
@ddneilson ddneilson deleted the markw/update-preprocess-job-params branch January 19, 2024 15:00
@ddneilson ddneilson added the security Pull requests that could impact security label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Pull requests that could impact security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants