Coder Social home page Coder Social logo

snapshottest's Introduction

Timestamped SNAPSHOTs do not guarantee reproducibility

An example: Let’s have a simple war project [1] that depends on hawkular-inventory-impl-tinkerpop

<dependencies>
  <dependency>
    <groupId>org.hawkular.inventory</groupId>
    <artifactId>hawkular-inventory-impl-tinkerpop</artifactId>
    <version>0.2.1-20150818.120735-14</version>
  </dependency>
</dependencies>

Note that hawkular-inventory-impl-tinkerpop depends on hawkular-inventory-api which is another artifact from the same group org.hawkular.inventory.

If we use version 0.2.1-20150818.120735-14 which happens to be the last available snapshot in the repo [2], all is well: when we open the war and check the Built-From-Git-SHA1 entries in MANIFEST.MF of hawkular-inventory-impl-tinkerpop-*.jar and hawkular-inventory-api-\*.jar they both have the same value 90a594475048a7a81a5557a96ecd367cf6cc1d6c.

But, let’s say that we need to downgrade hawkular-inventory-impl-tinkerpop to an older version 20150817.100338-13 for some reason:

<dependencies>
  <dependency>
    <groupId>org.hawkular.inventory</groupId>
    <artifactId>hawkular-inventory-impl-tinkerpop</artifactId>
    <version>20150817.100338-13</version>
  </dependency>
</dependencies>

The war file built with hawkular-inventory-impl-tinkerpop:20150817.100338-13 contains hawkular-inventory-impl-tinkerpop-*.jar with Built-From-Git-SHA1 c41249a9e45e3d5ed2cf2299db09463e339105e0 as expected, but contains hawkular-inventory-api-\*.jar 90a594475048a7a81a5557a96ecd367cf6cc1d6c which corresponds to the latest snapshot 0.2.1-20150818.120735-14 rather than 20150817.100338-13. This makes the build non-deterministic.

snapshottest's People

Contributors

ppalaga avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.