| Commit message (Collapse) | Author | Age | Lines |
... | |
|
|
|
| |
Merge DEVELOPING.md into CONTRIBUTING.md
|
| |
|
|
|
|
|
| |
Reusable workflows don't have access to secrets, even in this case where
the workflow is local.
|
|\ |
|
| |
| |
| |
| |
| | |
There are no pipes the in script, so the presence of -o pipefail may
confuse readers.
|
| |
| |
| |
| | |
The latter is consistent with GitHub Action's documentation.
|
| |
| |
| |
| | |
There isn't enough "meat" to warrant their use.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Use docker-compose run instead of docker-compose up. This is more
appropriate since the container is only needed for one command. The
latter was actually starting the whole snekbox server. Furthermore,
the former has the --rm option to remove the container when the command
finishes.
As an extra precaution, use docker-compose down in the self-hosted
runner to also remove images, volumes, networks, and any other
containers that were somehow missed. Removing images will also prevent
the disk usage from building up. This is not necessary for the GH-hosted
runner since a new VM is used for each run.
|
| |
| |
| |
| | |
The step was running even if the pre-commit hooks step never ran.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Remove the dependency on the container so the lint job can run in
parallel with the build job. More time has to be spent installing
Python dependencies, but this is made up for by not having to download
and load the image artefact in addition to not having to wait for the
build job.
|
| |
| |
| |
| | |
See https://github.com/TheKevJames/coveralls-python/issues/240
|
| |
| |
| |
| |
| |
| | |
Unlike the cache action, the build-push action's GHA cache feature
seems to only do an exact comparison for the scope. Thus, new commits
lead to cache misses.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Make the artefact and file names identical to simplify things. The
artefact name doesn't have to be unique anyway since it can only be
downloaded by the same workflow run.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
load: true was already creating a tarball, but it was getting
immediately loaded. Since no other Docker builds run in this job,
it's useless to load it. The action can still be leveraged to create
the tarball instead of manually invoking `docker save`.
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\ |
|
| |
| |
| | |
Co-authored-by: wookie184 <[email protected]>
|
| |
| |
| |
| | |
No more mocks!
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Python args are specified as a single string because if they were
positional, there wouldn't be a way to distinguish them from NsJail's
args.
|
|/ |
|
|\
| |
| | |
Store relative paths in coverage data
|
|/
|
|
|
|
|
| |
Also remove the reliance on the container needing to mount the host's
files to the same directory during local testing.
Fix #135
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Python 3.9 is available on the self-hosted runner and is sufficient to
run coveralls. Trying to get the setup-python action supported on
the self-hosted runner proved to be problematic.
|
| |
| |
| |
| |
| |
| | |
The self-hosted runner has cgroupv2 enabled. It's only needed to run
the tests on a cgroupv2 system. Only lint, push the image, and deploy
it on one runner to avoid redundancy.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Fix NsJail failing to set the swap limit because it tries to write to
a file that doesn't exist.
Log a warning if swap is on, the swap controller is disabled, and the
NsJail config is attempting to limit swap memory.
|
| |
| |
| |
| |
| | |
Memory limit of the parent doesn't need to be modified because NsJail
is now able to set the swap limit itself.
|
| | |
|
| |
| |
| |
| |
| |
| | |
The NsJail config can be overridden by command-line arguments. However,
there is no way to negate `--use_cgroupv2`. Hence, manual correction
of the config by the user is required.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
`test_numpy_import` fails when running with `pipenv run tests`, since
numpy was not installed. Modify the pipenv script to install numpy
before starting the tests.
|
| |
| |
| |
| |
| | |
Dynamically calculate the position of the arguments rather than
hard-coding them.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The updated versions adds support for telling NsJail to set the max swap
memory in the cgroup.
Resolve #125
|
| |
| |
| |
| |
| | |
They're encoded with the system's locale, so that's what should be used
to read them.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Ensure the cgroupv2 mount exists, subtree_control is not empty, and
swap is disabled.
Fix #126
Fix #102
|