Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-8085

RPM packages have a release version of "SNAPSHOT", even though version is clearly not snapshot

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: DC/OS 1.12.0
    • Component/s: Build & CI
    • Labels:

      Description

      See isSnapshot definition here:

      https://www.scala-sbt.org/0.13.13/sxr/sbt/Defaults.scala.html

          isSnapshot := (isSnapshot or version(_ endsWith "-SNAPSHOT")).value,
      

      https://github.com/sbt/sbt-native-packager/blob/master/src/main/scala/com/typesafe/sbt/packager/rpm/RpmPlugin.scala#L67

      I downloaded the package https://repos.mesosphere.com/el/7/noarch/RPMS/systemd-marathon-1.5.6-SNAPSHOT.noarch.rpm. Info says this:

      [root@c0a4f5c466af lol]# rpm -qip systemd-marathon-1.5.6-SNAPSHOT.noarch.rpm
      warning: systemd-marathon-1.5.6-SNAPSHOT.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID e56151bf: NOKEY
      Name        : marathon
      Version     : 1.5.6
      Release     : SNAPSHOT
      Architecture: noarch
      Install Date: (not installed)
      Group       : Unspecified
      Size        : 91339952
      License     : Apache 2
      Signature   : RSA/SHA256, Mon Jan 29 19:30:36 2018, Key ID df7d54cbe56151bf
      Source RPM  : marathon-1.5.6-SNAPSHOT.src.rpm
      Build Date  : Mon Jan 29 19:17:11 2018
      Build Host  : ip-172-16-10-216.ec2.internal
      Relocations : (not relocatable)
      Vendor      : mesosphere
      Summary     : Scheduler for Apache Mesos
      Description :
      Cluster-wide init and control system for services running on\
      	Apache Mesos
      

      However, extracting the package and looking and the MANIFEST.MF file in the marathon lib clearly indicates that it is not a snapshot version:

      [root@c0a4f5c466af lib]# cat META-INF/MANIFEST.MF
      Manifest-Version: 1.0
      Implementation-Title: marathon
      Implementation-Version: 1.5.6
      Specification-Vendor: mesosphere.marathon
      Specification-Title: marathon
      Implementation-Vendor-Id: mesosphere.marathon
      Scala-Version: 2.11.11
      Specification-Version: 1.5.6
      Implementation-Vendor: mesosphere.marathon
      Main-Class: mesosphere.marathon.Main
      Git-Commit: f15b81aec408892312e77d92ab9093f8a14aad02
      

      I can't reproduce this when running locally; it only seems to happen for Jenkins? Perhaps there is an out-of-order operation issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kjeschkies Karsten Jeschkies
                Reporter:
                tharper Tim Harper
                Team:
                Orchestration Team
                Watchers:
                Karsten Jeschkies, Pwalne, Tim Harper
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: