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

OIOIOI doesn't actually use ingen.sh #277

Open
meithecatte opened this issue Jan 16, 2025 · 3 comments
Open

OIOIOI doesn't actually use ingen.sh #277

meithecatte opened this issue Jan 16, 2025 · 3 comments

Comments

@meithecatte
Copy link
Contributor

meithecatte commented Jan 16, 2025

Describe the bug
Importing the example package results in an error being printed by ingen.cpp that you should use ingen.sh instead

To Reproduce
Steps to reproduce the behavior:

  1. sm init abc
  2. sm export --no-statement
  3. Attempt importing the generated abc.tgz into Szkopuł

Expected behavior
Package imports without issues.

Output

Failed operation: _generate_tests
Operation description: Generates tests for the problem.
 
Error description: ProblemPackageError("Błąd generowania danych wejściowych: {'task_id': 'urn:uuid:796a4722-c562-4cf5-8e62-e5904af2ccaf', 'post_upload_handlers': ['oioioi.problems.handlers.update_problem_instance'], 'out_file': '/unpack/57049/d759a6a3-8905-4695-8a20-098d13f3dcee-abcingen.e@1737039901', 'ingen_mem_limit': 524288, 'job_type': 'ingen', 'package_id': 57049, 'source_file': '/unpack/57049/d759a6a3-8905-4695-8a20-098d13f3dcee-abcingen.cpp@1737039791', 'result': 'SUCCESS', 'compiled_file': '/unpack/57049/d759a6a3-8905-4695-8a20-098d13f3dcee-abcingen.e@1737039901', 'exe_file': '/unpack/57049/d759a6a3-8905-4695-8a20-098d13f3dcee-abcingen.e@1737039901', 'job_id': 'd759a6a3-8905-4695-8a20-098d13f3dcee', 'author': 'mei_b', 'contest_uid': ['Szkopuł', None], 'filetracker_url': 'http://filetracker-szkopul:19999', 'use_sandboxes': True, 'is_reupload': False, 'extra_files': {}, 'stdout': ['Run prog/abcingen.sh to stresstest and create proper tests.', ''], 'round_id': 22213, 'worker': 'spr-qemu', 'return_code': 1, 'backend_name': 'oioioi.sinolpack.package.SinolPackageBackend', 'contest_id': '[...]', 'visibility': 'FR', 'real_time_used': 31, 'additional_archive': '/unpack/57049/d759a6a3-8905-4695-8a20-098d13f3dcee-/tmp/tmp0g1cfuer/abc/compilation-dir-archive.zip@1737039790', 'compiler': 'g++12_2_cpp20_amd64', 'collected_files_path': '/unpack/57049/d759a6a3-8905-4695-8a20-098d13f3dcee-in', 'language': 'cpp', 'exec_info': {'mode': 'executable'}, 'extra_compilation_args': ['-Wall', '-Wno-unused-result', '-Werror'], 'task_priority': 500, 're_string': '^(abc(([0-9]+)([a-z]?[a-z0-9]*))).in$', 'compiler_output': '', 'group_id': 'GROUP_urn:uuid:fae20392-e32a-49df-a445-1315782abc0d', 'unpack_dir': '/unpack/57049', 'result_code': 'OK'}")

In particular, note:

'stdout': ['Run prog/abcingen.sh to stresstest and create proper tests.', ''], 

System (please complete the following information):

  • OS: Arch Linux i guess
  • sinol-make 1.9.2
@MasloMaslane
Copy link
Member

Yeah, the template needs updating. It was based on OI's package template and since sio2.mimuw runs ingen.sh it was added here

@meithecatte
Copy link
Contributor Author

Ah, so this is a case of everyone running their own slightly incompatible pile of hacks. Neat 😅

Is Szkopuł simply using an outdated version of OIOIOI?

@MasloMaslane
Copy link
Member

No, it's the same version of OIOIOI, ingen.sh is simply disabled on Szkopuł, because it's run without any sandboxing

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

No branches or pull requests

2 participants