Skip to content

Pin emsdk to avoid regression#663

Merged
ilammy merged 1 commit intocossacklabs:masterfrom
ilammy:pin-emsdk
Jul 7, 2020
Merged

Pin emsdk to avoid regression#663
ilammy merged 1 commit intocossacklabs:masterfrom
ilammy:pin-emsdk

Conversation

@ilammy
Copy link
Collaborator

@ilammy ilammy commented Jul 7, 2020

The current HEAD of emsdk repository includes a change that causes the builds to fail with an error:

Adding directories to PATH:
PATH += /home/user/emsdk
PATH += /home/user/emsdk/fastcomp/emscripten
PATH += /home/user/emsdk/node/12.18.1_64bit/bin

Setting environment variables:
EMSDK = /home/user/emsdk
EM_CONFIG = /home/user/emsdk/.emscripten
EM_CACHE = /home/user/emsdk/fastcomp/emscripten/cache
EMSDK_NODE = /home/user/emsdk/node/12.18.1_64bit/bin/node
/home/user/emsdk/emsdk_env.sh: line 26: /home/user/emsdk/emsdk_set_env.sh: No such file or directory

The change has optimized environment variable setup. Apparently, it has issues. To avoid breaking our builds, roll back to the previous known good state for the time being. The issue has been reported to Emscripten, but it's not clear when it's going to be reverted and fixed, so we'd rather not depend on that right now, when Themis release is brewing.


@shadinua, this change needs to be applied to Buildbot infra as well. It's currently broken all over the place because of that.

Checklist

The current HEAD of emsdk repository includes a change that causes the
builds to fail with an error:

    Adding directories to PATH:
    PATH += /home/user/emsdk
    PATH += /home/user/emsdk/fastcomp/emscripten
    PATH += /home/user/emsdk/node/12.18.1_64bit/bin

    Setting environment variables:
    EMSDK = /home/user/emsdk
    EM_CONFIG = /home/user/emsdk/.emscripten
    EM_CACHE = /home/user/emsdk/fastcomp/emscripten/cache
    EMSDK_NODE = /home/user/emsdk/node/12.18.1_64bit/bin/node
    /home/user/emsdk/emsdk_env.sh: line 26: /home/user/emsdk/emsdk_set_env.sh: No such file or directory

The change [1] has optimized environment variable setup. Apparently,
it has issues. To avoid breaking our builds, roll back to the previous
known good state for the time being. The issue has been reported to
Emscripten [2], but it's not clear when it's going to be reverted and
fixed, so we'd rather not depend on that right now, when Themis release
is brewing.

[1]: emscripten-core/emsdk#539
[2]: emscripten-core/emsdk#540
@ilammy ilammy added infrastructure Automated building and packaging W-WasmThemis 🌐 Wrapper: WasmThemis, JavaScript API, npm packages labels Jul 7, 2020
@ilammy ilammy requested review from Lagovas, shadinua and vixentael July 7, 2020 11:15
cd $HOME/emsdk
git reset --hard
git pull
# FIXME(ilammy, 2020-07-07): unpin emsdk version [T1698]
Copy link
Contributor

Choose a reason for hiding this comment

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

amount of FIXME tags for emsdk is sad :(

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Expect a new one on August 7 😂

Copy link
Contributor

Choose a reason for hiding this comment

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

😭

@ilammy ilammy merged commit 0481ffd into cossacklabs:master Jul 7, 2020
@ilammy ilammy deleted the pin-emsdk branch July 7, 2020 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Automated building and packaging W-WasmThemis 🌐 Wrapper: WasmThemis, JavaScript API, npm packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants