runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

Darcs package missing for Ubuntu 24.04 runners

Open tmcgilchrist opened this issue 1 year ago • 4 comments

Description

The darcs package is missing for Ubuntu 24.04 runners. It is available on 22.04 runners. It is also available on regular Ubuntu 24.04 and 22.04 running on desktop docker.

Platforms affected

  • [ ] Azure DevOps
  • [ ] GitHub Actions - Standard Runners
  • [ ] GitHub Actions - Larger Runners

Runner images affected

  • [ ] Ubuntu 20.04
  • [ ] Ubuntu 22.04
  • [X] Ubuntu 24.04
  • [ ] macOS 12
  • [ ] macOS 13
  • [ ] macOS 13 Arm64
  • [ ] macOS 14
  • [ ] macOS 14 Arm64
  • [ ] Windows Server 2019
  • [ ] Windows Server 2022

Image version and build link

Current runner version: '2.319.1' Operating System Runner Image Runner Image Provisioner GITHUB_TOKEN Permissions Secret source: Actions Prepare workflow directory Prepare all required actions Getting action download info Download action repository 'actions/checkout@v4' (SHA:692973e3d937129bcbf40652eb9f2f61becf3332) Download action repository 'ocaml/setup-ocaml@v3' (SHA:190141893c2e2eb492dfe4973030d58ad763a5dc) Complete job name: build (ubuntu-24.04, 5.2)

Is it regression?

Yes

Expected behavior

Darcs package should be available and installable as per regular Ubuntu 24.04 LTS

Actual behavior

Darcs package is missing from the package index available to Ubuntu 24.04 runner

Repro steps

Using this configuration should demonstrate the failure:

name: Build
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-24.04
          - ubuntu-22.04

    runs-on: ${{ matrix.os }}

    steps:
      - name: Update Ubuntu
        if: runner.os == 'linux'
        run: |
          sudo apt-get update
          sudo apt-cache search darcs
          sudo apt-get install darcs

Ubuntu 24.04 will fail because it can't install darcs while 22.04 will pass.

tmcgilchrist avatar Aug 22 '24 01:08 tmcgilchrist

@tmcgilchrist Thank you for bringing this issue to us. We are looking into this issue and will update you on this issue after investigating.

RaviAkshintala avatar Aug 22 '24 03:08 RaviAkshintala

Hi @tmcgilchrist Can you please try the following workflow, It should allow you to install Darcs on Ubuntu 24 as well.

name: Build
on: [push, pull_request]

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-24.04
          - ubuntu-22.04

    runs-on: ${{ matrix.os }}

    steps:
      - name: Update Ubuntu
        if: runner.os == 'linux'
        run: |
          sudo apt-get update
          sudo apt-get install -y curl
          curl -sSL https://get-ghcup.haskell.org | sh -s -- -y
          source $HOME/.ghcup/env
          ghcup install ghc 8.10.7
          ghcup set ghc 8.10.7
          ghcup install cabal 3.4.0.0
          ghcup set cabal 3.4.0.0
          cabal update
          cabal install darcs

RaviAkshintala avatar Sep 06 '24 11:09 RaviAkshintala

This breaks the ocaml-setup action, which depends on darcs. I don't think the @RaviAkshintala's workaround will get ocaml-setup working since that action actually executes apt-get install darcs.

nlsandler avatar Sep 09 '24 18:09 nlsandler

@nlsandler that's correct, we would need changes in setup-ocaml. I'd be ok if this package wasn't installable on Ubuntu 24.04 on my desktop docker but it is which is why I'd reported it here.

There is an upstream bug report for Debian on this package https://tracker.debian.org/pkg/darcs with the specific failure here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054953 I don't know whether this impacts downstream Ubuntu or the images available in runner-images???

tmcgilchrist avatar Sep 10 '24 23:09 tmcgilchrist

Is there any update on this issue? I'm also hitting this issue when running setup-ocaml on ubuntu-latest

psafont avatar Oct 04 '24 09:10 psafont

Hi @tmcgilchrist Hopefully your issue is resolved here, We are closing this issue. Thanks!

RaviAkshintala avatar Oct 18 '24 10:10 RaviAkshintala