-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[23.1] Fix metadata setting in extended metadata + outputs_to_working_directory mode #16678
[23.1] Fix metadata setting in extended metadata + outputs_to_working_directory mode #16678
Conversation
``` outputs = [ Bunch(false_path=os.path.join(outputs_directory, os.path.basename(path)), real_path=path) for path in self.get_output_files(job_wrapper) ] ``` would always set the false_path attribute, even if that is not correct because outputs_to_working_directory isn't activated and pulsar doesn't need to do any staging (e.g. with ``` default_file_action: copy # don't copy outputs, not needed. file_actions: paths: - path_types: output action: none ``` as done in embedded_pulsar_metadata_extended_job_conf.xml. Fixing this allows us to eliminate the `if object_store:` guard to setting the external filename, which in turn fixes the metadata value setting if `outputs_to_working_directory: true` and `metadata_strategy: extended` is used.
We'll surely need that too, as well as a datatypes config file. I'd assume this probably didn't fully work before and that we have no tests ? It does seem a little hard to test and I found no traces of tests.
Wow, cool! |
Alright, so now the extended + outputs to working dir tests are broken ... |
This looks quite weird, can we just get the outputs from the tool run maybe ?
3b16a93
to
01d4d43
Compare
cddc58b
to
3930c6a
Compare
Hmm, I'm not quite sure what's up with the converter tests ... it seems other PRs are passing this test, and locally this passes too (but I can only test with |
OK, the |
would always set the false_path attribute, even if that is not correct
because outputs_to_working_directory isn't activated and pulsar doesn't
need to do any staging (e.g. with
as done in embedded_pulsar_metadata_extended_job_conf.xml.
Fixing this allows us to eliminate the
if object_store:
guard tosetting the external filename, which in turn fixes the metadata value
setting if
outputs_to_working_directory: true
andmetadata_strategy: extended
is used.We didn't catch this previously because of the
outpus_to_working_dir
typo ...The actual, isolated fix is in 8c5ac57, but I noticed that
use_metadata_binary
is probably broken in pulsar, so 6210267 should also fix that.How to test the changes?
(Select all options that apply)
License