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

fix: bundle gui-submit fails loading bundles with saved queue parameter values #360

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

evanspearman-a
Copy link
Contributor

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

The bundle submitter GUI will fail to open a job bundle if a parameter has a value in parameter_values but the parameter does not exist in the template.

What was the solution? (How)

The error was caused when trying to generate a GUI component for the parameter. parameter_values does not contain type information for the parameter, only the value. The code that generates a component for a parameter assumes there is type information for all parameters. If type information is not found, we simply skip generating a component for that parameter. Note that we still want to retain these parameter values as they can still be used to populate queue parameter values.

What is the impact of this change?

Job bundles as described above can now be opened in the bundle submission GUI. In particular, job bundles generated by the integrated submitters when queue environment parameters were present will now work with the job bundle submission GUI.

How was this change tested?

I opened a job bundle that was previously not opening.

Was this change documented?

No

Is this a breaking change?

No


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

Copy link
Contributor

@jusiskin jusiskin left a comment

Choose a reason for hiding this comment

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

Looks good, but can we please rename the PR and commit title as it should appear in the release notes?

…er values

Signed-off-by: Evan Spearman <evans@amazon.com>
@jusiskin jusiskin changed the title fix: Skip creating GUI components for parameters without types fix: bundle gui-submit fails loading bundles with saved queue parameter values Jun 20, 2024
@crowecawcaw
Copy link
Contributor

You mentioned that you can now open bundles with queue parameters, but can you also submit them?

@crowecawcaw
Copy link
Contributor

This would be better with a unit test.

@evanspearman-a
Copy link
Contributor Author

You mentioned that you can now open bundles with queue parameters, but can you also submit them?

Yes

This would be better with a unit test.

This change is in the UI code. This project isn't set up for unit tests involving UI code. I looked into it, but there are some things that would need to be figured out with respect to Qt bindings in order to get that to work. Given that this is a fairly trivial change, I don't think it's worth figuring that out to test this particular change.

@evanspearman-a evanspearman-a merged commit a2c1f2d into aws-deadline:mainline Jun 21, 2024
15 checks passed
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jun 24, 2024
…er values (aws-deadline#360)

Signed-off-by: Evan Spearman <evans@amazon.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jun 25, 2024
…er values (aws-deadline#360)

Signed-off-by: Evan Spearman <evans@amazon.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jun 26, 2024
…er values (aws-deadline#360)

Signed-off-by: Evan Spearman <evans@amazon.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jun 26, 2024
…er values (aws-deadline#360)

Signed-off-by: Evan Spearman <evans@amazon.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>
rena-cheng pushed a commit to rena-cheng/deadline-cloud that referenced this pull request Jun 26, 2024
…deadline#344)

* fix: bundles are stored in job_history in their original format

Signed-off-by: Stephen Crowe <crowest@amazon.com>

fix: use sids when granting permissions with icacls (aws-deadline#359)

Signed-off-by: Charles Moore <122481442+moorec-aws@users.noreply.github.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

chore: Add OS field support for integ test (aws-deadline#361)

Signed-off-by: Alex Tran <167144297+AlexTranAmz@users.noreply.github.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

fix: bundle gui-submit fails loading bundles with saved queue parameter values (aws-deadline#360)

Signed-off-by: Evan Spearman <evans@amazon.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

ci: update workflow job names for integ tests (aws-deadline#338)

Signed-off-by: Charles Moore <122481442+moorec-aws@users.noreply.github.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

Squish Automated Tests - Settings flow for Dev Submit GUI

Change env var to relative path

Squish Automated Tests - Dev Submit GUI Settings Flow

Squish Automated Tests - Dev Submit GUI settings flow

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

ci: Add integ req to toml (aws-deadline#364)

Signed-off-by: Alex Tran <167144297+AlexTranAmz@users.noreply.github.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

Fixing linting errors

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

feat: support JSON output in bundle GUI submitter (aws-deadline#357)

* feat: support JSON output in bundle GUI submitter

Signed-off-by: Stephen Crowe <crowest@amazon.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

fixing formatting/lint issues

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

fixing linting issues

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

fixing linting errors

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

chore(release): 0.48.5 (aws-deadline#367)

Signed-off-by: client-software-ci <129794699+client-software-ci@users.noreply.github.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

chore(deps): update python-semantic-release requirement (aws-deadline#342)

Updates the requirements on [python-semantic-release](https://github.com/python-semantic-release/python-semantic-release) to permit the latest version.
- [Release notes](https://github.com/python-semantic-release/python-semantic-release/releases)
- [Changelog](https://github.com/python-semantic-release/python-semantic-release/blob/master/CHANGELOG.md)
- [Commits](python-semantic-release/python-semantic-release@v9.5.0...v9.8.1)

---
updated-dependencies:
- dependency-name: python-semantic-release
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

Disabling lint error checks due to Squish modules

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

feat: Adding automated tests using Squish framework: Dev Submit GUI Settings flow

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>

feat: Adding automated tests using Squish framework: Dev Submit GUI Settings flow

Signed-off-by: Cloud User <rocky@ip-172-31-31-216.ec2.internal>
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