Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add build dependencies for Linux 'test bins' job #1165

Merged

Conversation

DeeDeeG
Copy link
Member

@DeeDeeG DeeDeeG commented Dec 16, 2024

Issue

There is a compilation error in the test-and-upload-Linux job of the "Build Pulsar binaries" workflow:

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/runner/work/pulsar/pulsar/node_modules/keyboard-layout/build'
  CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager.o
In file included from ../src/keyboard-layout-manager.cc:1:
../src/keyboard-layout-manager.h:7:10: fatal error: X11/Xlib.h: No such file or directory
    7 | #include <X11/Xlib.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [keyboard-layout-manager.target.mk:116: Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager.o] Error 1
make: Leaving directory '/home/runner/work/pulsar/pulsar/node_modules/keyboard-layout/build'
gyp ERR! build error 

(Thank you to @savetheclocktower for noticing and reporting this!!)

Context

Some of these dependencies presumably have been removed or changed in the recent "ubuntu-latest means Ubuntu 24.04" change.

See this tracking issue about the runner migration for details, maybe: github[dot]com/actions/runner-images/issues/10636

Fix

Add the same various apt dependencies to the upload-and-test-Linux job as we install in the main "Build binaries" job on Linux, for this workflow.

Verification Process

Kinda need to see the "Build pulsar binaries" CI job pass to the point of the test-and-upload-Linux job running (and hopefully, passing).

@DeeDeeG DeeDeeG force-pushed the install-missing-deps-for-test-and-upload-Linux-job branch 2 times, most recently from 0528d37 to 958de1a Compare December 16, 2024 03:51
Need to fix a compilation error in CI which is
resulting from missing X11-related headers.

Some of these deps presumably have been removed or changed in the recent
"ubuntu-latest means Ubuntu 24.04" change.

See this tracking issue about the runner migration for details, maybe:
github[dot]com/actions[slash]runner-images/issues/10636

So, adding all of these deps just to be sure our code can compile
and be tested successfully in CI. These are the same deps as used
above in the main "build" Linux part of the workflow file.
@DeeDeeG DeeDeeG force-pushed the install-missing-deps-for-test-and-upload-Linux-job branch from 958de1a to c3a4a9d Compare December 16, 2024 03:54
@DeeDeeG DeeDeeG changed the title CI: Add linux build dependencies for Linux 'test bins' job CI: Add build dependencies for Linux 'test bins' job Dec 16, 2024
Copy link
Member

@confused-Techie confused-Techie left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this one under duress as it was.
LGTM!

@DeeDeeG DeeDeeG force-pushed the install-missing-deps-for-test-and-upload-Linux-job branch from bb937ed to b3a6042 Compare December 16, 2024 04:03
@DeeDeeG
Copy link
Member Author

DeeDeeG commented Dec 16, 2024

Last second force push to reflect the better PR title in the Changelog (done)

@confused-Techie confused-Techie merged commit 82955a6 into master Dec 16, 2024
0 of 6 checks passed
@confused-Techie confused-Techie deleted the install-missing-deps-for-test-and-upload-Linux-job branch December 16, 2024 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants