Skip to content

Specifying entry point #132

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

Closed
niemela opened this issue Oct 16, 2023 · 2 comments · Fixed by #160
Closed

Specifying entry point #132

niemela opened this issue Oct 16, 2023 · 2 comments · Fixed by #160

Comments

@niemela
Copy link
Member

niemela commented Oct 16, 2023

In the list of programming languages we define "default entry points" for some languages. The fact that we talk about a default entry point implies that an entry point could be defined somehow. We don't ever touch on this in the spec. some systems have in the past used rules do detect or decide on the entry point, others (e.g. Kattis) allows the user to specify. This UI detail is an implementation detail and we don't have to specify it, but I think we do need to specify it for submissions and included files in the package.

So, what is a good way to specify an override for default entry point for submissions or included files? One obvious solution would be to have some yaml file, say submission.yaml with a single key entry-point to specify this value. It's a bit awkward, but the default value requires no file and would be the most common by far. It also implies that you can't include a file called submission.yaml (at least not for languages that needs an entry point), but that seems like a very minor issue.

Thoughts?

@niemela
Copy link
Member Author

niemela commented Dec 1, 2023

I'm leaning quite strongly towards piggybacking this on the "expectations" framework (see #135).

Specifically, add a entrypoint property to the "filename globs" in the YAML file of the expectations framework, and call that file submissions.yaml (due to the now extended use):

# submissions.yaml
accepted/sol2:
   entrypoint: main2.py

Thoughts?

@Kattis Kattis deleted a comment from Tagl Dec 1, 2023
@meisterT
Copy link
Contributor

meisterT commented Dec 1, 2023

Sounds reasonable to me. If we end up doing this, we might also add the option to include an author per submission.

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

Successfully merging a pull request may close this issue.

2 participants