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

dws2jgf: fix node attributes #135

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

jameshcorbett
Copy link
Member

Problem: flux-dws2jgf writes out vertex properties as a python list,
but Fluxion's JGF reader expects a JSON object.

Write out properties as keys in a mapping with empty string values.

See also flux-framework/flux-sched#1149.

Problem: flux-dws2jgf writes out vertex properties as a python list,
but Fluxion's JGF reader expects a JSON object.

Write out properties as keys in a mapping with empty string values.

Some properties are still written out as a list, because they are
written out by Fluxion code. When Fluxion updates to write them out
correctly, the tests will need to be updated again. However, at the
moment they do not cause any errors.
Problem: there are no tests to ensure that flux-dws2jgf handles
the encoding of properties correctly.

Add a test and change the expected type of properties from a JSON list
to an object.
@jameshcorbett jameshcorbett marked this pull request as ready for review March 4, 2024 23:37
Copy link
Member

@cmoussa1 cmoussa1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mergify mergify bot merged commit 03aaaee into flux-framework:master Mar 5, 2024
8 checks passed
@jameshcorbett jameshcorbett deleted the dws2jgf-fix-attributes branch March 5, 2024 00:16
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.

None yet

2 participants