Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salt 2016.11.5 Release on github pretends like it's 2016.11.0 #41847

Closed
farcaller opened this issue Jun 20, 2017 · 8 comments
Closed

Salt 2016.11.5 Release on github pretends like it's 2016.11.0 #41847

farcaller opened this issue Jun 20, 2017 · 8 comments
Assignees
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P4 Priority 4 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@farcaller
Copy link
Contributor

Description of Issue/Question

Downloading salt from GH releases results in an install that looks like 2016.11.0

Steps to Reproduce Issue

$ curl -LO https://github.com/saltstack/salt/archive/v2016.11.5.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   126    0   126    0     0    295      0 --:--:-- --:--:-- --:--:--   295
100 9143k    0 9143k    0     0  4144k      0 --:--:--  0:00:02 --:--:-- 9814k
$ tar xzf v2016.11.5.tar.gz
$ cd /salt-2016.11.5
$ python setup.py install --optimize=1
2016.11.0
running install
running build
running build_py
...
$ salt --versions-report
Salt Version:
           Salt: 2016.11.0

Dependency Versions:
           cffi: 1.10.0
       cherrypy: Not Installed
       dateutil: 2.6.0
      docker-py: Not Installed
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.9.6
        libgit2: 0.25.1
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.8
   mysql-python: Not Installed
      pycparser: 2.17
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: 0.25.0
         Python: 2.7.13 (default, Apr 20 2017, 12:13:37)
   python-gnupg: Not Installed
         PyYAML: 3.12
          PyZMQ: 16.0.2
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.5.1
            ZMQ: 4.2.2

System Versions:
           dist:
        machine: x86_64
        release: 4.10.0-22-generic
         system: Linux
        version: Not Installed
@Ch3LL
Copy link
Contributor

Ch3LL commented Jun 20, 2017

I can replicate this behavior. Looks like we need to get this fixed. Thanks

@Ch3LL Ch3LL self-assigned this Jun 20, 2017
@Ch3LL Ch3LL added Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around labels Jun 20, 2017
@Ch3LL Ch3LL added this to the Approved milestone Jun 20, 2017
@Ch3LL Ch3LL added the P4 Priority 4 label Jun 20, 2017
@gtmanfred
Copy link
Contributor

This is the expected behavior i believe

@s0undt3ch can you verify? I remember having a discussion about this before that pypi is the source of truth for the full version of salt.

Thanks,
Daniel

@s0undt3ch
Copy link
Collaborator

This undesirable and unavoidable. We can't disable GH downloads.

The only tarballs that report proper version are the ones SaltStack creates and uploads to pypi or those created from a repository checkout(python setup.py sdist).

The reason being that we gerenate the right version from git tags, and, for the tarballs we upload to pypi, we generate a _version module with the right version information, something that cannot be done for GH tarball downloads.

@farcaller
Copy link
Contributor Author

I remember having a discussion about this before that pypi is the source of truth for the full version of salt.

That should be somewhere on GH page, preferably in bold, then 😄

@Ch3LL
Copy link
Contributor

Ch3LL commented Aug 11, 2017

Okay going forward for the releases in github we will upload the tar ball from pypi and include this warning message:

WARNING: The tarball generated by GitHub will not have the correct version information when using a version not ending in .0 . Please use the tarball generated by SaltStack instead. See issue #41847 for more information.

You can see this in use here

@Ch3LL Ch3LL closed this as completed Aug 11, 2017
@thatch45
Copy link
Contributor

I wanted to add a comment here with regard to a conversation with the team at SUSE.
The version number used by Salt is automatically generated by the setup.py and stored in a file next to the version.py file called _version.py.
If a packager wishes to use the GitHub tarball as a package source then that is perfectly fine so long as they understand that they will need to create the _version.py file themselves since the setup.py will not be able to without the git tag and commit information.

@ncopa
Copy link

ncopa commented Jun 19, 2018

Please use the tarball generated by SaltStack instead. See issue #41847 for more information.

I was expecting to find an URL to the tarball generated by SaltStack here. Maybe add a link to where to find this SaltStack generated tarball?

@gtmanfred
Copy link
Contributor

We upload them to pypi.

https://pypi.org/project/salt/

algitbot pushed a commit to alpinelinux/aports that referenced this issue Jun 19, 2018
Ikke added a commit to Ikke/repology-rules that referenced this issue Sep 26, 2019
Salt official releases have a 3-part version scheme, but they also push
2-part tags to github, but they are not official releases.

For example the last official release is 2019.2.1, but 2019.8 is
available as tag, but not as release (and also not available on pypi,
which they consider the official source for releases[0]).

[0]:saltstack/salt#41847
Ikke added a commit to Ikke/repology-rules that referenced this issue Sep 26, 2019
Salt official releases have a 3-part version scheme, but they also push
2-part tags to github, which are not official releases.

For example the last official release is 2019.2.1. 2019.8 is
available as tag on github, but not as release (and also not available
on pypi, which they consider the official source for releases[0]).

[0]:saltstack/salt#41847
Ikke added a commit to Ikke/repology-rules that referenced this issue Sep 26, 2019
Salt official releases have a 3-part version scheme, but they also push
2-part tags to github, which are not official releases.

For example the last official release is 2019.2.1. 2019.8 is
available as tag on github, but not as release (and also not available
on pypi, which they consider the official source for releases[0]).

[0]:saltstack/salt#41847
Ikke added a commit to Ikke/repology-rules that referenced this issue Sep 26, 2019
Salt official releases have a 3-part version scheme, but they also push
2-part tags to github, which are not official releases.

For example the last official release is 2019.2.1. 2019.8 is
available as tag on github, but not as release (and also not available
on pypi, which they consider the official source for releases[0]).

[0]:saltstack/salt#41847
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Core relates to code central or existential to Salt P4 Priority 4 severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

6 participants