Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 53b3703

Browse files
author
Release Manager
committed
Trac #29622: cygwin, conda, homebrew: Fixes for CI
Hopefully the last change for the CI for 9.1 URL: https://trac.sagemath.org/29622 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Dima Pasechnik
2 parents bfbaddc + 630576b commit 53b3703

File tree

7 files changed

+948
-231
lines changed

7 files changed

+948
-231
lines changed

.github/workflows/ci-cygwin-minimal.yml

Lines changed: 304 additions & 76 deletions
Large diffs are not rendered by default.

.github/workflows/ci-cygwin-standard-python2.yml

Lines changed: 304 additions & 76 deletions
Large diffs are not rendered by default.

.github/workflows/ci-cygwin-standard.yml

Lines changed: 304 additions & 76 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env bash
2+
# to be run from $SAGE_ROOT, with arguments sage-local-${{ env.PREVIOUS_STAGES }}.tar
3+
4+
# Show all tar files
5+
ls -l $*
6+
7+
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
8+
for a in $*; do
9+
echo Extracting $a
10+
tar xf $a
11+
rm -f $a
12+
done
13+
14+
# Also get rid of the stages that were not extracted
15+
rm -f sage-local-*.tar
16+
17+
# We set the installation records to the same mtime so that no rebuilds due to dependencies
18+
# among these packages are triggered.
19+
(cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *)
20+
21+
# Show what has been built already.
22+
ls -l local local/var/lib/sage/installed/
23+
df -h
24+
25+
# Rebase!
26+
src/bin/sage-rebase.sh local

.github/workflows/tox-optional.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
fail-fast: false
37+
max-parallel: 6
3738
matrix:
38-
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-eoan, ubuntu-focal, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, centos-7, centos-8, archlinux-latest, slackware-14.2, ubuntu-bionic-i386, ubuntu-eoan-i386, debian-buster-i386, centos-7-i386]
39+
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-eoan, ubuntu-focal, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, centos-7, centos-8, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-eoan-i386, debian-buster-i386, centos-7-i386]
3940
tox_packages_factor: [maximal]
4041
env:
4142
TOX_ENV: docker-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
@@ -99,6 +100,7 @@ jobs:
99100
runs-on: macos-latest
100101
strategy:
101102
fail-fast: false
103+
max-parallel: 3
102104
matrix:
103105
tox_system_factor: [homebrew-macos-python2, homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, homebrew-macos-python3_pythonorg, conda-forge-macos]
104106
tox_packages_factor: [maximal]

.github/workflows/tox.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
runs-on: ubuntu-latest
3535
strategy:
3636
fail-fast: false
37+
max-parallel: 20
3738
matrix:
38-
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-eoan, ubuntu-focal, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, centos-7, centos-8, archlinux-latest, slackware-14.2, ubuntu-bionic-i386, ubuntu-eoan-i386, debian-buster-i386, centos-7-i386]
39+
tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-eoan, ubuntu-focal, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, centos-7, centos-8, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-eoan-i386, debian-buster-i386, centos-7-i386]
3940
tox_packages_factor: [minimal, standard, standard-python2]
4041
env:
4142
TOX_ENV: docker-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
@@ -99,8 +100,9 @@ jobs:
99100
runs-on: macos-latest
100101
strategy:
101102
fail-fast: false
103+
max-parallel: 4
102104
matrix:
103-
tox_system_factor: [homebrew-macos-python2, homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, homebrew-macos-python3_pythonorg, conda-forge-macos]
105+
tox_system_factor: [homebrew-macos-python2, homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, homebrew-macos-python3_pythonorg, homebrew-macos-python3_xcode-gcc_spkg, conda-forge-macos]
104106
tox_packages_factor: [minimal, standard]
105107
env:
106108
TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
@@ -142,6 +144,7 @@ jobs:
142144
runs-on: ubuntu-latest
143145
strategy:
144146
fail-fast: false
147+
max-parallel: 1
145148
matrix:
146149
tox_system_factor: [conda-forge-ubuntu]
147150
tox_packages_factor: [minimal, standard, standard-python2]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/env bash
2+
for X in standard-python2 minimal; do sed 's/\[standard\]/['$X']/g;s/CI cygwin-standard/CI cygwin-'$X'/g;' ci-cygwin-standard.yml > ci-cygwin-$X.yml; done

0 commit comments

Comments
 (0)