Skip to content

Travis use bionic as default for Linux#16521

Merged
tgamblin merged 8 commits intospack:developfrom
alalazo:qa/update_travis
May 12, 2020
Merged

Travis use bionic as default for Linux#16521
tgamblin merged 8 commits intospack:developfrom
alalazo:qa/update_travis

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented May 8, 2020

Modifications:

  • Travis now uses bionic as a default (xenial used for Python 3.5, trusty for Python 2.6)
  • Shell unit tests have been factored into their own run
  • kcov is built only for tests that upload coverage results

Overall with this we shave 3-4 mins. on each run and add an additional run of about 3 min. For some reason kcov 38 fails forwarding output when used with Python unit tests, so I used v34 for that and v38 (latest) for shell testing. Previously we were using v25.

@alalazo alalazo added the travis label May 8, 2020
@alalazo alalazo force-pushed the qa/update_travis branch 9 times, most recently from 2d91e3d to ae7da61 Compare May 11, 2020 17:16
@alalazo alalazo force-pushed the qa/update_travis branch from ae7da61 to c2a0d07 Compare May 11, 2020 18:40
@alalazo alalazo added the tests General test capability(ies) label May 12, 2020
@alalazo alalazo marked this pull request as ready for review May 12, 2020 09:08
@alalazo alalazo requested a review from tgamblin May 12, 2020 09:08
tar -C ${KCOV_ROOT} -xzvf ${KCOV_ROOT}/${KCOV_VERSION}.tar.gz;
mkdir -p ${KCOV_ROOT}/build;
cd ${KCOV_ROOT}/build && cmake -Wno-dev ${KCOV_ROOT}/kcov-${KCOV_VERSION} && cd - ;
make -C ${KCOV_ROOT}/build && sudo make -C ${KCOV_ROOT}/build install;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we use spack for this? We should if possible. In general I think we should prefer to dogfood even in tests, unless there’s a reason not to.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If we go all the way down this means installing:

kcov@38%[email protected] build_type=RelWithDebInfo arch=linux-ubuntu18.04-broadwell
    ^[email protected]%[email protected]~doc+ncurses+openssl+ownlibs patches=1c540040c7e203dd8e27aa20345ecb07fe06570d56410a24a266ae570b1c4c39 ~qt arch=linux-ubuntu18.04-broadwell
        ^[email protected]%[email protected]~symlinks+termlib arch=linux-ubuntu18.04-broadwell
            ^[email protected]%[email protected] arch=linux-ubuntu18.04-broadwell
        ^[email protected]%[email protected]+systemcerts arch=linux-ubuntu18.04-broadwell
            ^[email protected]%[email protected]+cpanm+shared+threads arch=linux-ubuntu18.04-broadwell
                ^[email protected]%[email protected] arch=linux-ubuntu18.04-broadwell
                    ^[email protected]%[email protected] arch=linux-ubuntu18.04-broadwell
            ^[email protected]%[email protected]+optimize+pic+shared arch=linux-ubuntu18.04-broadwell
    ^[email protected]%[email protected]~darwinssl~gssapi~libssh~libssh2~nghttp2 arch=linux-ubuntu18.04-broadwell

which may take a long time under CI, unless we want to register most of the things as externals but that would complicate a bit the setup and defeat the idea of dogfooding. If we only had binary packages... 🙂

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yeah ok let's hold off until we have binaries. Gosh that'll be nice.

@tgamblin tgamblin merged commit 11fa616 into spack:develop May 12, 2020
@alalazo alalazo deleted the qa/update_travis branch May 12, 2020 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants