cms icon indicating copy to clipboard operation
cms copied to clipboard

Allow configuring the filename format for OutputOnly tasks

Open SvizelPritula opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. The OutputOnly task type requires files named output_*code*.txt, but some organisers use different naming conventions, like *code*.out.

Describe the solution you'd like A text parameter could be added to the OutputOnly task type to replace the existing USER_OUTPUT_FILENAME_TEMPLATE constant.

Describe alternatives you've considered The ioi2022 fork simply changes the constant to their preferred format, but this could easily be configurable instead of requiring changing the source code.

Additional context I don't have too much experience with contributing to free software projects, but I could try to implement this once I get a development VM running, since this seems an easy change.

SvizelPritula avatar Sep 20 '21 09:09 SvizelPritula

As a reference, for IOI 2022 we hardcode the filename format in this commit: https://github.com/ioi/cms/commit/eae340e3c4a5a2d210af32ae6623b11bcaa2a27d (Output-only: Change output filename extension from .txt to .out)

fushar avatar Sep 03 '22 14:09 fushar

I've acually implemented this in https://github.com/SvizelPritula/cms/tree/output-filename, but thats based on the IOI 2022 CMS version and since I already have 2 PR in this repo and I'm a bit lost in all my git branches.

SvizelPritula avatar Sep 03 '22 15:09 SvizelPritula