Skip to content

Conversation

justbennet
Copy link
Contributor

The dummy toolchain was being used in the bootstrap script and generating a deprecation warning.

Changed to system. Warning is no longer issued.

My first naive attempt did not take into account the checksum and
version check on bootstrap_eb.py.  Trying to fix that here.

Incremented version from .01 to .02 and updated .travis.yml with
new sha256sum for bootstrap_eb.py
Corrected version to Mar 15, updated sha25sum.  I am not understanding
why it is failing.  When I copy the lines from .travis.yml into a
shell script and run, it seems to work.

$ cat my_test.sh
    TRAVIS_BUILD_DIR=.
    # version and SHA256 checksum are hardcoded below to avoid forgetting to update the version in the script along with contents
    EB_BOOTSTRAP_VERSION=$(grep '^EB_BOOTSTRAP_VERSION' $TRAVIS_BUILD_DIR/easybuild/scripts/bootstrap_eb.py | sed 's/[^0-9.]//g')
    EB_BOOTSTRAP_SHA256SUM=$(sha256sum $TRAVIS_BUILD_DIR/easybuild/scripts/bootstrap_eb.py | cut -f1 -d' ')
    EB_BOOTSTRAP_FOUND="$EB_BOOTSTRAP_VERSION $EB_BOOTSTRAP_SHA256SUM"
    EB_BOOTSTRAP_EXPECTED="20200315.01 f8c5958b9ce839a9aa1defe968f7c1d84d10b6befc4da697c3cd2571172cf86d"
    test "$EB_BOOTSTRAP_FOUND" = "$EB_BOOTSTRAP_EXPECTED" && (echo "Version check on bootstrap script succeeded $EB_BOOTSTRAP_FOUND")

$ bash my_test.sh
Version check on bootstrap script succeeded 20200315.01 f8c5958b9ce839a9aa1defe968f7c1d84d10b6befc4da697c3cd2571172cf86d
@easybuilders easybuilders deleted a comment from boegelbot Mar 16, 2020
@ocaisa
Copy link
Member

ocaisa commented Mar 16, 2020

Hi @justbennet thanks for the PR, there is actually an open PR #3211 that also fixes this along with some other issues with the bootstrap script. That PR takes into account that people may still want to bootstrap in an older version (3.x) of EB where system is not understood.

In general, there are quite a few open issues with the bootstrap script (see #3223) and we probably need a deeper fix.

@justbennet
Copy link
Contributor Author

Thanks, @ocaisa . I will close this one then.

@justbennet justbennet closed this Mar 16, 2020
@boegel boegel added the bug fix label Mar 22, 2020
@boegel boegel added this to the 4.x milestone Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants