Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Failed to generate a snapshot, build still went fine #1134

@saschaarthur

Description

@saschaarthur

Hello,

We are running in our pipeline:

tns build android --release --key-store-path android.keystore --key-store-password ${KEYSTORE_PASSWORD} --key-store-alias xxx --key-store-alias-password ${KEYSTORE_PASSWORD} --env.aot --env.snapshot --env.compileSnapshot --env.uglify --env.report --env.hiddenSourceMap --aab

Which failed inside with following error:


Copying template files...
Platform android successfully added. v6.4.1
Preparing project...
Project root: /opt/atlassian/pipelines/agent/build
Snapshots build directory: /opt/atlassian/pipelines/agent/build/platforms/android/app/snapshot-build/build
 Snapshotting bundle from /opt/atlassian/pipelines/agent/build/platforms/android/app/src/main/assets/app/snapshot-entry.js,/opt/atlassian/pipelines/agent/build/platforms/android/app/src/main/assets/app/vendor.js
Running snapshot generation with the following arguments: 
{
	"inputFiles": [
		"/opt/atlassian/pipelines/agent/build/platforms/android/app/src/main/assets/app/snapshot-entry.js",
		"/opt/atlassian/pipelines/agent/build/platforms/android/app/src/main/assets/app/vendor.js"
	],
	"preprocessedInputFile": "/opt/atlassian/pipelines/agent/build/platforms/android/app/src/main/assets/app/_embedded_script_.js",
	"useLibs": true,
	"skipSnapshotTools": false
}
Snapshot tools path: /tmp/snapshot-tools
***** Starting snapshot generation using V8 version:  8.0.426.16
Webpack compilation complete.
/tmp/snapshot-tools/mksnapshot-tools/v8-v8.0.426.16/linux-x64/mksnapshot-arm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
Unable to execute '/tmp/snapshot-tools/mksnapshot-tools/v8-v8.0.426.16/linux-x64/mksnapshot-arm' locally.Error message: 'Command failed: /tmp/snapshot-tools/mksnapshot-tools/v8-v8.0.426.16/linux-x64/mksnapshot-arm --help
/tmp/snapshot-tools/mksnapshot-tools/v8-v8.0.426.16/linux-x64/mksnapshot-arm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
'
Generating snapshots in a docker container.
***** Generating snapshot for armeabi-v7a *****
Loading script for embedding: /app/_embedded_script_.js
....

instead of returning a status code != 0 for this command it still went on.

This build an aab build for our android apps, which lead to broken apks on some devices.

In case its failing it should STOP the build and return status != 0

IMO:
This whole setup of building the snapshots, needs some more transparency...

Its related somehow to:
https://github.com/NativeScript/mksnapshot-tools/issues/56
#1026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions