Install Vim dependency for assembly script
Why is this change being made?
We have been working towards greater automation of the Release Post. Towards that goal we have a few scheduled pipelines that kickoff the process, assemble the script and update deprecations.
The Release Post Content Assembly
scheduled pipeline runs at 08:00 UTC on day-of-month 18. However, since it's inception, it fails in the pipeline environment, but succeeds in the local environment.
An example failure: https://gitlab.com/gitlab-com/www-gitlab-com/-/jobs/4134161178
bundler: failed to load command: bin/release-post-build (bin/release-post-build)
/builds/gitlab-com/www-gitlab-com/lib/release_posts/helpers.rb:23:in `popen': No such file or directory - ex (Errno::ENOENT)
The failure is in the replace
method where we make a system call to ex
editor (often installed alongside vim) for some crafty substitution.
It turns out that the default image, a variant of Debian Bullseye does not have Vim installed by default.
Before updating the base image for all other steps, we're proposing to install Vim in a before_script
configuration step.
Author Checklist
-
Provided a concise title for this Merge Request (MR) -
Added a description to this MR explaining the reasons for the proposed change, per say why, not just what - Copy/paste the Slack conversation to document it for later, or upload screenshots. Verify that no confidential data is added, and the content is SAFE
-
Assign reviewers for this MR to the correct Directly Responsible Individual/s (DRI) - If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the
Maintained by
section on the page being edited - If your manager does not have merge rights, please ask someone to merge it AFTER it has been approved by your manager in #mr-buddies
- The when to get approval handbook section explains the workflow in more detail
- If the DRI for the page/s being updated isn’t immediately clear, then assign it to one of the people listed in the
-
If the changes affect team members, or warrant an announcement in another way, please consider posting an update in #whats-happening-at-gitlab linking to this MR - If this is a change that directly impacts the majority of global team members, it should be a candidate for #company-fyi. Please work with internal communications and check the handbook for examples.