GDK preflight fails for `ffi` gem even after `gem pristine ffi` has executed
Overview
GDK runs a preflight check to try to find issues in the environment, like gems that may be broken due to C based library dependency update.
The way to fix this is to run gem pristine <gemname>
.
I got a failure for ffi which after running pristine still don't pass preflight check.
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
Here is the output of the execution:
$ gem pristine ffi
Restoring gems to pristine condition...
Building native extensions. This could take a while...
Restored ffi-1.15.5
$ gdk update
ℹ️ gdk update: before hook -> support/exec-cd gitlab bin/spring stop || true
Spring is not running
--------------------------------------------------------------------------------
Running self-update on GDK
--------------------------------------------------------------------------------
Already on 'main'
--------------------------------------------------------------------------------
Running self-update on GDK
--------------------------------------------------------------------------------
Already on 'main'
INFO: Performing common preflight checks..
--------------------------------------------------------------------------------
Ensuring platform software installed
--------------------------------------------------------------------------------
INFO: Setting up 'darwin' platform..
INFO: This GDK has already had platform packages installed.
INFO: Remove '/Users/brodock/Projetos/Gitlab/gdk-review/.cache/.gdk_platform_setup' to force execution.
INFO: Installing gitlab-development-kit Ruby gem..
Latest version already installed. Done.
ERROR: The following Ruby Gems appear to have issues:
ffi
Try running the following to fix:
cd /Users/brodock/Projetos/Gitlab/gdk-review/gitlab && gem pristine ffi
make[1]: *** [preflight-checks-run] Error 1
make: *** [preflight-checks-timed] Error 2
❌️ ERROR: Failed to update.
-------------------------------------------------------
You can try the following that may be of assistance:
- Run 'gdk doctor'.
- Visit the troubleshooting documentation:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/troubleshooting/index.md.
- Visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues to
see if there are known issues.
- Run 'gdk reset-data' if appropriate.
- Run 'gdk pristine' which will restore your GDK to a pristine state.
-------------------------------------------------------
Proposal (optional)
Environment (optional)
- Operating system name:
Darwin ... 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
- Architecture:
arm64
- The contents of your
gdk.yml
(if any) - Ruby version:
ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c5) [arm64-darwin22]
- GDK version:
GitLab Development Kit 0.2.16 (7bbe9b4f)
Edited by Ash McKenzie