Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

build-package.sh fails to extract deb package with beta channel on Travis CI with Ubuntu Trusty #94

Closed
vzamanillo opened this issue Jul 8, 2019 · 2 comments

Comments

@vzamanillo
Copy link

vzamanillo commented Jul 8, 2019

Description

CI tests with Travis and Ubuntu Trusty fails for atom beta channel.


jobs:
  include:
    - stage: test
      env: ATOM_CHANNEL=beta

Expected behavior:

Test passes.

Actual behavior:

$ curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
The command "curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh" exited with 0.
0.00s$ chmod u+x build-package.sh
The command "chmod u+x build-package.sh" exited with 0.
0.84s$ ./build-package.sh
Downloading latest Atom release on the beta channel...
dpkg-deb: error: archive 'atom-amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
Using Atom version:
./build-package.sh: 94: ./build-package.sh: /home/travis/atom/usr/bin/atom-beta: not found
Using APM version:
./build-package.sh: 96: ./build-package.sh: /home/travis/atom/usr/bin/apm-beta: not found
Downloading package dependencies...
./build-package.sh: 102: ./build-package.sh: /home/travis/atom/usr/bin/apm-beta: not found
Running specs...
./build-package.sh: 196: ./build-package.sh: /home/travis/atom/usr/bin/atom-beta: not found
The command "./build-package.sh" exited with 127.

Reproduces how often:

Always.

Versions

atom-amd64.deb

dpkg-deb -I atom-amd64.deb 
 paquete Debian nuevo, versión 2.0.
 tamaño 108049684 bytes: archivo de control= 640 bytes.
     654 bytes,    12 líneas     control              
 Package: atom-beta
 Version: 1.39.0-beta3
 Depends: git, libgconf-2-4 (>= 3.2.5) | libgconf2-4, libgtk-3-0 (>= 3.9.10), libgcrypt11 | libgcrypt20, libnotify4, libxtst6, libnss3 (>= 2:3.22), python, gvfs-bin, xdg-utils, libx11-xcb1, libxss1, libasound2 (>= 1.0.16), libxkbfile1, libcurl3 | libcurl4, policykit-1
 Recommends: lsb-release
 Suggests: libsecret-1-0, gir1.2-gnomekeyring-1.0
 Section: devel
 Priority: optional
 Architecture: amd64
 Installed-Size: 631884
 Maintainer: GitHub <atom@github.com>
 Description: A hackable text editor for the 21st Century.
  Atom is a free and open source text editor that is modern, approachable, and hackable to the core.

Travis

dist: trusty

Additional Information

I tryed to fix the issue based on the solution provided on travis-ci/travis-ci#9361, upgrade to dpkg >= 1.17.5ubuntu5.8, which fixes https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/173062

install:
  - sudo apt-get install -qq -y dpkg

with no success

Downloading latest Atom release on the beta channel...

Using Atom version:

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

The build has been terminate

I can confirm that changing the distro to dist: xenial (needs libgconf-2-4 to run atom) builds the package and runs the tests without any problem so looks like the problem is not directly related to the build script.

vzamanillo added a commit to vzamanillo/linter-rubocop that referenced this issue Jul 8, 2019
@vzamanillo vzamanillo changed the title build-package.sh fails to extract deb package with beta channel build-package.sh fails to extract deb package with beta channel on Travis CI with Ubuntu Trusty Jul 8, 2019
vzamanillo added a commit to vzamanillo/linter-rubocop that referenced this issue Jul 8, 2019
Alhadis added a commit to Alhadis/Atom-CI that referenced this issue Jul 8, 2019
vzamanillo added a commit to AtomLinter/linter-bailey that referenced this issue Jul 12, 2019
vzamanillo added a commit to AtomLinter/linter-flint that referenced this issue Jul 12, 2019
vzamanillo added a commit to AtomLinter/linter-gotype that referenced this issue Jul 12, 2019
vzamanillo added a commit to AtomLinter/linter-govet that referenced this issue Jul 12, 2019
vzamanillo added a commit to AtomLinter/linter-lua that referenced this issue Jul 12, 2019
vzamanillo added a commit to AtomLinter/linter-rst that referenced this issue Jul 12, 2019
vzamanillo added a commit to AtomLinter/linter-slim that referenced this issue Jul 12, 2019
vzamanillo added a commit to vzamanillo/linter-ruumba that referenced this issue Jul 12, 2019
ewanharris added a commit to ewanharris/atom-appcelerator-titanium that referenced this issue Jul 15, 2019
longton95 pushed a commit to tidev/pulsar-titanium that referenced this issue Jul 15, 2019
* ci: move travis to using xenial to fix extract issues

See atom/ci#94 for more info

* ci: add libgconf-2-4 to apt packages
ewanharris added a commit to tidev/pulsar-titanium that referenced this issue Jul 15, 2019
* ci: move travis to using xenial to fix extract issues

See atom/ci#94 for more info

* ci: add libgconf-2-4 to apt packages
longton95 pushed a commit to tidev/pulsar-titanium that referenced this issue Jul 15, 2019
* ci: move travis to using xenial to fix extract issues

See atom/ci#94 for more info

* ci: add libgconf-2-4 to apt packages
@as-cii
Copy link
Contributor

as-cii commented Jul 25, 2019

This issue started occurring after we transitioned from Ubuntu 14 to Ubuntu 18 in our build infrastructure. Initially, we thought it would have been fine to just switch all package builds to a newer Ubuntu distro, but during the last railcar release we realized that building on a newer distro would prevent people using older kernels from launching Atom at all.

We have opened atom/atom#19617 to go back to building Atom on Ubuntu 14 and we're actively working on releasing a hotfix on beta and stable. Once that's done, triggering a re-build should automatically fix the problem. Apologies for the oversight on this problem.

@jasonrudolph
Copy link
Contributor

We have opened atom/atom#19617 to go back to building Atom on Ubuntu 14 and we're actively working on releasing a hotfix on beta and stable. Once that's done, triggering a re-build should automatically fix the problem. Apologies for the oversight on this problem.

atom/atom#19617 is merged, and we've published Atom 1.39.1 and 1.40.0-beta1 with that fix in place. I think that resolves this problem, so I'm going to close this issue. If you continue to experience this problem, please let us know. 🙇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants