Skip to content

Conversation

@theyoyojo
Copy link
Contributor

Fixes: #94
Fixes: #65
Fixes: #13

The dockerignore will prevent host build artifacts from getting put into
the container image by accident.

By handling SIGTERM explicitly, we can avoid having to wait ten seconds
for podman-compose to resort to force-killing the container with SIGKILL.

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
@theyoyojo theyoyojo marked this pull request as ready for review May 9, 2024 17:01
@charliemirabile charliemirabile force-pushed the submission branch 2 times, most recently from bb3c166 to ed8c3b1 Compare May 9, 2024 20:22
charliemirabile and others added 6 commits May 9, 2024 16:45
…HLD`

There is more than one way to not have to reap your children processes
the simplest being explicitly setting `SIG_IGN` as the handler for
`SIGCHLD`.

However, unfortunately, doing this causes that setting to persist across
`execve` which means that children inherit it and thus cannot reap their
children (unless the explicitly reset it). This interferes with the
behavior of functions like `system` or `popen`.

Setting the `SA_NOCLDWAIT` flag on the handler involves using the more
complicated `sigaction` interface, but the setting is properly reset
during a call to `execve` so that children can properly manage their
descendant processes.
We can rebuild him. The future is now.

The singularity is here.

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
Give orbit access to the grades.db where the submissions live.
A simple query can retrieve all submissions for a given student,
enabling a basic submission dashboard.

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
Check that the patches apply and check whether any of them contain
whitespace errors.

Signed-off-by: Joel Savitz <jsavitz@redhat.com>
If the patches apply, we try to push a tag with the patches
to a git remote running on the host.
The previous logic was a bit confusing. Explcitly enumerating the cases
with explanatory comments hopefully makes this code easier to understand
and maintain.

No major functional changes, only maybe in some edge cases (like more
than one email sent at once, but not addressed to a submission inbox).
Copy link
Contributor

@charliemirabile charliemirabile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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 this pull request may close these issues.

Decide on dashboard architecture Submission status dashboard Container for graderd/autograder9000d/denisd

3 participants