flapdoodle-oss / de.flapdoodle.embed.mongo

...will provide a platform neutral way for running mongodb in unittests.
Apache License 2.0
911 stars 160 forks source link

Could not resolve package for V7_0 #520

Closed svenkubiak closed 5 months ago

svenkubiak commented 6 months ago

I am currently running in an issue when updating from 4.12.2 to 4.13.x.

Everything works fine on my local machine (MacBook M1), but once it is executing during unit tests on my Jenkins Server which runs on ARM64 with Debian12 I get the following error:

Caused by: java.lang.IllegalArgumentException: could not resolve package for V7_0:Platform{operatingSystem=Linux, architecture=ARM_64, distribution=Debian, version=DEBIAN_12}

With additional infos as follows:

--------------
(os=Windows)
'WindowsPackageFinder'
  (os=Windows and bitSize=B64 and cpuType=X86) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
    url=/windows/mongodb-windows-x86_64-{version}.zip (ZIP(DEV))
  (os=Windows and bitSize=B64 and cpuType=X86) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29)
    url=/windows/mongodb-windows-x86_64-{version}.zip (ZIP)
  (os=Windows and bitSize=B64 and cpuType=X86) and (4.2.5-4.2.25 or 4.2.0-4.2.3)
    url=/win32/mongodb-win32-x86_64-2012plus-{version}.zip (ZIP)
  (os=Windows and bitSize=B64 and cpuType=X86) and (4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15)
    url=/win32/mongodb-win32-x86_64-2008plus-ssl-{version}.zip (ZIP)
  (os=Windows and bitSize=B64 and cpuType=X86) and (3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
    url=/win32/mongodb-win32-x86_64-2008plus-{version}.zip (ZIP)
  (os=Windows and bitSize=B64 and cpuType=X86) and (3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
    url=/win32/mongodb-win32-x86_64-{version}.zip (ZIP)
  (os=Windows and bitSize=B32 and cpuType=X86) and (3.5.5 or 3.3.1 or 3.2.0-3.2.22 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
    url=/win32/mongodb-win32-i386-{version}.zip (ZIP)
(os=OS_X)
'OSXPackageFinder'
  (os=OS_X and bitSize=B64 and cpuType=ARM) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1)
    url=/osx/mongodb-macos-arm64-{version}.tgz (TGZ(DEV))
  (os=OS_X and bitSize=B64 and cpuType=ARM) and (7.0.0-7.0.9 or 6.0.0-6.0.15)
    url=/osx/mongodb-macos-arm64-{version}.tgz (TGZ)
  (os=OS_X and bitSize=B64) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
    url=/osx/mongodb-macos-x86_64-{version}.tgz (TGZ(DEV))
  (os=OS_X and bitSize=B64) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3)
    url=/osx/mongodb-macos-x86_64-{version}.tgz (TGZ)
  (os=OS_X and bitSize=B64) and (4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.4-3.0.15)
    url=/osx/mongodb-osx-ssl-x86_64-{version}.tgz (TGZ)
  (os=OS_X and bitSize=B64) and (3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
    url=/osx/mongodb-osx-x86_64-{version}.tgz (TGZ)
(os=Linux)
  (os=Linux and (version is any of Ubuntu_16_04, Ubuntu_16_10, Ubuntu_18_04, Ubuntu_18_10, Ubuntu_19_04, Ubuntu_19_10, Ubuntu_20_04, Ubuntu_20_10, Ubuntu_21_04, Ubuntu_21_10, Ubuntu_22_04, Ubuntu_22_10, Ubuntu_23_04, Ubuntu_23_10, Ubuntu_24_04))
  'UbuntuPackageFinder'
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_22_04)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1)
      url=/linux/mongodb-linux-aarch64-ubuntu2204-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_22_04)) and (7.0.0-7.0.9 or 6.0.4-6.0.15)
      url=/linux/mongodb-linux-aarch64-ubuntu2204-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_22_04)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1)
      url=/linux/mongodb-linux-x86_64-ubuntu2204-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_22_04)) and (7.0.0-7.0.9 or 6.0.4-6.0.15)
      url=/linux/mongodb-linux-x86_64-ubuntu2204-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_20_04)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-aarch64-ubuntu2004-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_20_04)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29)
      url=/linux/mongodb-linux-aarch64-ubuntu2004-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_20_04)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-ubuntu2004-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_20_04)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29)
      url=/linux/mongodb-linux-x86_64-ubuntu2004-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_18_04)) and (7.0.0-rc2 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-aarch64-ubuntu1804-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_18_04)) and (6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3)
      url=/linux/mongodb-linux-aarch64-ubuntu1804-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_18_04)) and (7.0.0-rc2 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-ubuntu1804-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_18_04)) and (6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.1-4.0.28 or 3.6.20-3.6.23)
      url=/linux/mongodb-linux-x86_64-ubuntu1804-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Ubuntu_16_04)) and (4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7)
      url=/linux/mongodb-linux-arm64-ubuntu1604-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_16_04)) and (4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-ubuntu1604-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Ubuntu_16_04)) and (4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.7-3.2.22)
      url=/linux/mongodb-linux-x86_64-ubuntu1604-{version}.tgz (TGZ)
  (os=Linux and (version is any of Ubuntu_16_04, Ubuntu_16_10, Ubuntu_18_04, Ubuntu_18_10, Ubuntu_19_04, Ubuntu_19_10, Ubuntu_20_04, Ubuntu_20_10, Ubuntu_21_04, Ubuntu_21_10, Ubuntu_22_04, Ubuntu_22_10, Ubuntu_23_04, Ubuntu_23_10, Ubuntu_24_04))
  'UbuntuVersionDowngradePackageFinder'
    use 'UbuntuPackageFinder' with Ubuntu_24_04, Ubuntu_23_10, Ubuntu_23_04, Ubuntu_22_10, Ubuntu_22_04, Ubuntu_21_10, Ubuntu_21_04, Ubuntu_20_10, Ubuntu_20_04, Ubuntu_19_10, Ubuntu_19_04, Ubuntu_18_10, Ubuntu_18_04, Ubuntu_16_10, Ubuntu_16_04 until package found.
  (os=Linux and (version is any of LINUX_MINT_19_0, LINUX_MINT_19_1, LINUX_MINT_19_2, LINUX_MINT_19_3, LINUX_MINT_20_0, LINUX_MINT_20_1, LINUX_MINT_20_2, LINUX_MINT_20_3, LINUX_MINT_21_0, LINUX_MINT_21_1, LINUX_MINT_21_2, LINUX_MINT_21_3))
    use 'UbuntuVersionDowngradePackageFinder' with Ubuntu_18_04 for LINUX_MINT_19_0, LINUX_MINT_19_1, LINUX_MINT_19_2, LINUX_MINT_19_3 and Ubuntu_20_04 for LINUX_MINT_20_0, LINUX_MINT_20_1, LINUX_MINT_20_2, LINUX_MINT_20_3 and Ubuntu_22_04 for LINUX_MINT_21_0, LINUX_MINT_21_1, LINUX_MINT_21_2, LINUX_MINT_21_3
  (os=Linux and (version is any of POP_OS_22_4))
    use 'UbuntuVersionDowngradePackageFinder' with Ubuntu_22_04 for POP_OS_22_4
  (os=Linux and (version is any of DEBIAN_9, DEBIAN_10, DEBIAN_11, DEBIAN_12, DEBIAN_13))
  'DebianPackageFinder'
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_12)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.0.8-rc0)
      url=/linux/mongodb-linux-x86_64-debian12-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_12)) and (7.0.5-7.0.9)
      url=/linux/mongodb-linux-x86_64-debian12-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_11)) and (7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1)
      url=/linux/mongodb-linux-x86_64-debian11-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_11)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.8-5.0.26)
      url=/linux/mongodb-linux-x86_64-debian11-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_10)) and (7.0.0-rc2 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-debian10-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_10)) and (6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.1-4.2.3)
      url=/linux/mongodb-linux-x86_64-debian10-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_9)) and (5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-debian92-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of DEBIAN_9)) and (5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.0-4.0.28 or 3.6.5-3.6.23)
      url=/linux/mongodb-linux-x86_64-debian92-{version}.tgz (TGZ)
  (os=Linux and (version is any of DEBIAN_9, DEBIAN_10, DEBIAN_11, DEBIAN_12, DEBIAN_13))
  'DebianVersionDowngradePackageFinder'
    use 'DebianPackageFinder' with DEBIAN_13, DEBIAN_12, DEBIAN_11, DEBIAN_10, DEBIAN_9 until package found.
  (os=Linux and (version is any of Redhat_6, Redhat_7, Redhat_8, Redhat_9))
  'RedhatPackageFinder'
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Redhat_9)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 6.0.9-rc1)
      url=/linux/mongodb-linux-aarch64-rhel90-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Redhat_9)) and (7.0.0-7.0.9 or 6.0.7-6.0.15)
      url=/linux/mongodb-linux-aarch64-rhel90-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_9)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1)
      url=/linux/mongodb-linux-x86_64-rhel90-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_9)) and (7.0.0-7.0.9 or 6.0.4-6.0.15)
      url=/linux/mongodb-linux-x86_64-rhel90-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Redhat_8)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-aarch64-rhel82-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of Redhat_8)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.4-4.4.29)
      url=/linux/mongodb-linux-aarch64-rhel82-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_8)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-rhel80-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_8)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.1-4.2.3 or 4.0.14-4.0.28 or 3.6.17-3.6.23 or 3.4.24)
      url=/linux/mongodb-linux-x86_64-rhel80-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_7)) and (7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-rhel70-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_7)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15)
      url=/linux/mongodb-linux-x86_64-rhel70-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_6)) and (4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-rhel62-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of Redhat_6)) and (4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15)
      url=/linux/mongodb-linux-x86_64-rhel62-{version}.tgz (TGZ)
  (os=Linux and (version is any of Redhat_6, Redhat_7, Redhat_8, Redhat_9))
  'RedhatVersionDowngradePackageFinder'
    use 'RedhatPackageFinder' with Redhat_9, Redhat_8, Redhat_7, Redhat_6 until package found.
  (os=Linux and (version is any of Fedora_38, Fedora_39, Fedora_40, Fedora_41))
    use 'RedhatVersionDowngradePackageFinder' with Redhat_9 for Fedora_38, Fedora_39, Fedora_40, Fedora_41
  (os=Linux and (version is any of Oracle_6, Oracle_7, Oracle_8, Oracle_9))
    use 'RedhatVersionDowngradePackageFinder' with Redhat_6 for Oracle_6 and Redhat_7 for Oracle_7 and Redhat_8 for Oracle_8 and Redhat_9 for Oracle_9
  (os=Linux and (version is any of CentOS_6, CentOS_7, CentOS_8, CentOS_9))
    use 'RedhatVersionDowngradePackageFinder' with Redhat_6 for CentOS_6 and Redhat_7 for CentOS_7 and Redhat_8 for CentOS_8 and Redhat_9 for CentOS_9
  (os=Linux and (version is any of Alma_8, Alma_9))
    use 'RedhatVersionDowngradePackageFinder' with Redhat_8 for Alma_8 and Redhat_9 for Alma_9
  (os=Linux and (version is any of AmazonLinux, AmazonLinux2, AmazonLinux2023))
  'AmazonPackageFinder'
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of AmazonLinux2023)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10)
      url=/linux/mongodb-linux-aarch64-amazon2023-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of AmazonLinux2023)) and (7.0.0-7.0.9)
      url=/linux/mongodb-linux-aarch64-amazon2023-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of AmazonLinux2023)) and (8.0.0-rc3 or 7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10)
      url=/linux/mongodb-linux-x86_64-amazon2023-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of AmazonLinux2023)) and (7.0.0-7.0.9)
      url=/linux/mongodb-linux-x86_64-amazon2023-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of AmazonLinux2)) and (7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-aarch64-amazon2-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=ARM and (version is any of AmazonLinux2)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.4-4.4.29 or 4.2.13-4.2.25)
      url=/linux/mongodb-linux-aarch64-amazon2-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of AmazonLinux2)) and (7.3.2-rc1 or 7.3.1-rc2 or 7.3.0-7.3.1 or 7.2.0-rc3 or 7.1.0-7.1.1 or 7.0.8-rc0 or 7.0.3-rc1 or 7.0.0-rc8 or 7.0.0-rc2 or 7.0.0-rc10 or 7.0.0-rc1 or 6.3.1-6.3.2 or 6.0.9-rc1 or 5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-amazon2-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of AmazonLinux2)) and (7.0.0-7.0.9 or 6.0.0-6.0.15 or 5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.0-4.0.28 or 3.6.22-3.6.23)
      url=/linux/mongodb-linux-x86_64-amazon2-{version}.tgz (TGZ)
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of AmazonLinux)) and (5.0.20-rc1 or 4.4.27-rc0 or 4.4.24-rc0)
      url=/linux/mongodb-linux-x86_64-amazon-{version}.tgz (TGZ(DEV))
    (os=Linux and bitSize=B64 and cpuType=X86 and (version is any of AmazonLinux)) and (5.0.0-5.0.26 or 4.4.0-4.4.29 or 4.2.5-4.2.25 or 4.2.0-4.2.3 or 4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.2.0-3.2.22 or 3.0.0-3.0.15)
      url=/linux/mongodb-linux-x86_64-amazon-{version}.tgz (TGZ)
  (os=Linux)
  'LinuxLegacyPackageFinder'
    (os=Linux and bitSize=B64 and cpuType=X86) and (4.0.0-4.0.28 or 3.6.0-3.6.23 or 3.5.5 or 3.4.9-3.4.24 or 3.4.0-3.4.7 or 3.3.1 or 3.2.0-3.2.22 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
      url=/linux/mongodb-linux-x86_64-{version}.tgz (TGZ)
    (os=Linux and bitSize=B32 and cpuType=X86) and (3.5.5 or 3.3.1 or 3.2.0-3.2.22 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
      url=/linux/mongodb-linux-i686-{version}.tgz (TGZ)
  (os=Linux)
    fallback to Ubuntu_20_04 using 'UbuntuVersionDowngradePackageFinder'
(os=Solaris)
'SolarisPackageFinder'
  (os=Solaris and bitSize=B64 and cpuType=X86) and (3.5.5 or 3.4.0-3.4.5 or 3.3.1 or 3.2.0-3.2.14 or 3.0.0-3.0.15 or 2.6.0-2.6.12)
    url=/sunos5/mongodb-sunos5-x86_64-{version}.tgz (TGZ)
michaelmosmann commented 6 months ago

@svenkubiak .. after some testing and debugging the obvious was always there: there is no Debian Version for ARM .. so this will not work.

svenkubiak commented 6 months ago

@michaelmosmann oh, ok. well, then the error makes total sense. Thank you for looking into this! Wasn't there an option to set a specific platform / os combination (e.g. setting an env var)? Then I could check what specific combination it was using with 4.12.x (which works fine on Jenkins) and force that for the Jenkins build only.

michaelmosmann commented 6 months ago

@svenkubiak you can override this with: https://github.com/flapdoodle-oss/de.flapdoodle.os?tab=readme-ov-file#run .. but i am curious what version did run on this machine.. i would guess its ubuntu as there are ARM versions for ubuntu .. hmm.. so maybe it would be usefull to make this a fallback..

i will make some tests.. until that you can try to run the ubuntu version..

svenkubiak commented 6 months ago

@michaelmosmann Ok, I got some odd results:

With 4.12.2 (de.flapdoodle.embed.mongo) the detect() shows the following: [main] INFO de.flapdoodle.os.Platform - Platform.detect() -> Platform{operatingSystem=Linux, architecture=ARM_64, distribution=Debian, version=DEBIAN_12}

With this, the build on Jenkins works fine. Which is odd as this shouldn't exist. But the build clearly works as all unit tests are passing.

If I update to 4.13.1 and force the above platform via system configuration, the build breaks with the mentioned error:

could not resolve package for V7_0:Platform{operatingSystem=Linux, architecture=ARM_64, distribution=Debian, version=DEBIAN_12}

Even if force to ubuntu the build breaks. So there seems to be something happening between 4.12. and 4.13.

- 8<- - - - - - - - - -

/root/.embedmongo/fileSets/0a516fae7d7ed91f324f796e186499d58023284632581048ddcc1550c2ff21ad/mongod: 1: ELF: not found
/root/.embedmongo/fileSets/0a516fae7d7ed91f324f796e186499d58023284632581048ddcc1550c2ff21ad/mongod: 2: Syntax error: "(" unexpected

- >8- - - - - - - - - -

    at de.flapdoodle.embed.mongo.transitions.RunningMongoProcess.lambda$null$1(RunningMongoProcess.java:180)
    at de.flapdoodle.types.ThrowingSupplier.lambda$andFinally$1(ThrowingSupplier.java:47)
    at de.flapdoodle.types.ThrowingSupplier.lambda$andFinally$1(ThrowingSupplier.java:47)
    at de.flapdoodle.embed.mongo.transitions.RunningMongoProcess.lambda$factory$3(RunningMongoProcess.java:186)
    at de.flapdoodle.embed.process.types.RunningProcess.start(RunningProcess.java:83)
    at de.flapdoodle.embed.mongo.transitions.MongoServerStarter.result(MongoServerStarter.java:127)
    at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:58)
    at de.flapdoodle.reverse.TransitionWalker.resolve(TransitionWalker.java:46)
    at de.flapdoodle.reverse.TransitionWalker.initState(TransitionWalker.java:180)
    ... 74 more
[main] INFO de.flapdoodle.os.Platform - try to override Platform.detect() with Linux|X86_64|Ubuntu|Ubuntu_22_04
svenkubiak commented 6 months ago

Ok, finally got it. Update to 4.13.1 works with the following override <de.flapdoodle.os.override>Linux|ARM_64|Ubuntu|Ubuntu_22_04</de.flapdoodle.os.override>

michaelmosmann commented 6 months ago

@svenkubiak .. i will try to add a fallback from debian to ubuntu for arm..

michaelmosmann commented 6 months ago

@svenkubiak .. with even more testing there should be an already working fallback to ubuntu 20.04 .. do you have some more logging information why this is not working in your case?

svenkubiak commented 6 months ago

@michaelmosmann Sure.

So the machine running has Debian12 on an ARM64 platform. My Jenkins runs in docker with the default docker container which is based on linux/arm64. However, I assume Jenkins uses the host system anyway.

I have attached two log files from the builds. The one that is failing had de.flapdoodle.embed.mongo version 4.13.1, which does fail when I don't force platform settings to "Linux|ARM_64|Ubuntu|Ubuntu_22_04". The one that works had version 4.12.2, which is the last version that worked without forcing a specific platform. Hope that helps. Let me know, if you need additional information.

build-fail.txt build-success.txt

michaelmosmann commented 5 months ago

@svenkubiak i think i solved this.. if nothing matches, ubuntu (some fixed ubuntu version) is used.. with some more debian12 support this fallback was eleminated.. i changed this, there will be a release soon.

michaelmosmann commented 5 months ago

@svenkubiak release done, use 4.14.0 .. i close this issue, reopen if it does not work as expected.