Opened 21 months ago

Last modified 3 months ago

#29283 new enhancement

tox.ini: Add test environments using LXC

Reported by: mkoeppe Owned by:
Priority: major Milestone: sage-wishlist
Component: porting Keywords:
Cc: dimpase, novoselt, tmonteil Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: u/mkoeppe/tox_ini__add_test_environments_using_lxc (Commits, GitHub, GitLab) Commit: 7e1cb194e3c9802c40109b8ca03c9e314e4f17b1
Dependencies: #31831 Stopgaps:

Status badges

Description

This would be in addition to the existing test environments that use Docker.

https://us.images.linuxcontainers.org/

Change History (10)

comment:1 Changed 17 months ago by mkoeppe

  • Cc novoselt added

comment:2 Changed 5 months ago by mkoeppe

  • Dependencies set to #31831

comment:3 Changed 5 months ago by mkoeppe

  • Branch set to u/mkoeppe/tox_ini__add_test_environments_using_lxc

comment:4 Changed 5 months ago by mkoeppe

  • Commit set to 3b06c8133da7a5ae2783aa375dd60a6d5428e4de
tox -e lxc-ubuntu-trusty-standard
lxc-ubuntu-trusty-standard run-test-pre: PYTHONHASHSEED='3914799934'
lxc-ubuntu-trusty-standard run-test: commands[0] | bash -c 'echo Now do something like.... lxc-create --template download --name sage-lxc-ubuntu-trusty-standard -- --dist ubuntu --release trusty --arch amd64 ..... not implemented!'
Now do something like.... lxc-create --template download --name sage-lxc-ubuntu-trusty-standard -- --dist ubuntu --release trusty --arch amd64 ..... not implemented!
______________________________________________________________________ summary ______________________________________________________________________
  lxc-ubuntu-trusty-standard: commands succeeded

New commits:

b3a3c6dtox.ini, .github/workflows/tox.yml: Add ubuntu-impish, linuxmint-20.2, fedora-35
041872fMerge #31831
3b06c81tox.ini: Beginnings of lxc technology

comment:5 Changed 3 months ago by mkoeppe

  • Cc tmonteil added

This ticket needs help by people who have experience with lxc.

comment:6 Changed 3 months ago by novoselt

I have some experience as SageMathCell uses LXC, this is the script that builds Sage inside containers: https://github.com/sagemath/sagecell/blob/master/contrib/vm/container_manager.py I am not clear however what is needed on this ticket.

comment:7 Changed 3 months ago by mkoeppe

I hope to replicate what is described in https://doc.sagemath.org/html/en/developer/portability_testing.html#automatic-docker-based-build-testing-using-tox using LXC instead of Docker client.

comment:8 Changed 3 months ago by dimpase

For one, lxc/lxd on the host should be configured to allow non-root to install new containers. Then, in principle, it should be non-problematic: install containers, login to the container, install packages and Sage there, run tests. A bit unclear how to get results out.

comment:9 Changed 3 months ago by git

  • Commit changed from 3b06c8133da7a5ae2783aa375dd60a6d5428e4de to 7e1cb194e3c9802c40109b8ca03c9e314e4f17b1

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

7e1cb19tox.ini: Beginnings of lxc technology

comment:10 Changed 3 months ago by mkoeppe

Rebased on current beta

Note: See TracTickets for help on using tickets.