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

Map options from settings are merged incorrectly #199

Open
JoshKarpel opened this issue Mar 24, 2020 · 1 comment
Open

Map options from settings are merged incorrectly #199

JoshKarpel opened this issue Mar 24, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JoshKarpel
Copy link
Contributor

In #198 , @keith6014 noted that

I also did this

htmap.settings['MAP_OPTIONS.executable']=sys.executable

The job still gets held. Same held reason. But I get a different stderr.

can't open file '0': [Error 2] No such file or directory

which is actually a bug all on its own; it wasn't intentional that map options from settings can bypass the reserved descriptors check (executable is reserved), but that is indeed exactly what happens, because that check only occurs when constructing the MapOptions, but the settings map options are merged in during create_submit_object_and_itemdata() via get_base_descriptors(). See

**from_settings,

Not quite sure what the logic was supposed to be here, but it's wrong. The intent is that map options in settings should be injected into all MapOptions, so we should probably just do that in the constructor. Might be worth another look at how MapOptions are built up in the first place, because they're pretty weird under the hood.

@JoshKarpel JoshKarpel added the bug Something isn't working label Mar 24, 2020
@JoshKarpel JoshKarpel self-assigned this Mar 24, 2020
@JoshKarpel
Copy link
Contributor Author

JoshKarpel commented Apr 27, 2020

Another case: setting MAP_OPTION.fixed_input_files bypasses

if fixed_input_files is None:
.

The core problem here is that the merge is happening at the wrong location, and therefore does not serve the intended purpose. Need to think hard about what the intent of default options from settings is, which will indicate where they should be merged, especially given that they can't really be Python types.

@JoshKarpel JoshKarpel changed the title Map options from settings bypass reserved submit descriptor check Map options from settings are merged incorrectly Apr 27, 2020
JoshKarpel added a commit that referenced this issue Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant