-
Notifications
You must be signed in to change notification settings - Fork 12
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
/info: automated version
ing by versioneer needs fixing
#222
Comments
huh, I tried this when I deployed it and it worked fine. I will work on this. |
The problem seems to be that when the project slug is deployed in Heroku, it doesn't have a VCS context, so |
most likely due to shallow clone in deployment. Don't do shallow or do sufficient depth to hit a release (100 commits? 1000? unlikely worthwhile to bother) and it might all start working |
an we are now at
in dandi-api , but I bet (before RF to make staging work etc) we have progressed deployed instance to some state. What state is/was that? it must be tagged! |
FWIW, my findings -- deploy action
which I believe causes versioneer to not mint "static" version since in develop mode it wants to rely on current git information.
to test if having a tag on that remote heroku git would somehow help , I pushed v0.1.1 to that git repo ... no immediate fix for but I think it is the |
let's see what would happen whenever we redeploy some new release, now that I pushed v0.1.1 to that heroku git repo. -staging indeed just sucks code in directly from github and I guess doesn't bother to fetch tags. But I think the core issue is that it relies on FTR: sources for the heroku buildpack having all details: https://github.com/heroku/heroku-buildpack-python.git |
This might at least partially address a problem of incorrect version being provided by versioneer (#222). Because staging and deployment have different ways of deployment it is not even necessary that this working on one would work on another.
This might at least partially address a problem of incorrect version being provided by versioneer (#222). Because staging and deployment have different ways of deployment it is not even necessary that this working on one would work on another.
ok, installation without
if only it was possible to augment execution of the builder so it could at least show more detail about the source location :-/ |
Because of how Heroku builds deployed code, there is no VCS context at all (as Daniel mentioned above), so versioneer simply cannot retrieve the correct version from its computations. To be clear: it's not a problem of a shallow clone or anything like that; it's more that the software setup Heroku receives is not a git repository. I have an ugly solution in mind but it will probably "just work": in our GitHub action that does deployment, we simply run a script that generates a I'm interested to try this because I can't figure out another cleaner strategy, and surprisingly other people out in the world don't seem to care about this. If there is a more kosher way to do what I'm suggesting (it seems that perhaps there's a way involving (attn @yarikoptic, @dchiquito, @brianhelba) |
I would advise to address #404 first by making https://github.com/dandi/dandi-api/blob/master/.github/workflows/production-deploy.yml deploy for both instances. This would be beneficial regardless of this issue. And then we get back to this one ;-) |
I will do that, but I am almost certain it will have no bearing on Heroku's build process. |
🚀 Issue was released in |
I don't see any indication that it was fixed: $> curl -s https://gui-staging.dandiarchive.org/server-info/ | jq . | grep version
"schema_version": "0.6.2",
"version": "0+unknown",
"cli-minimal-version": "0.14.2",
"cli-bad-versions": [] $> curl -s -X GET "https://api-staging.dandiarchive.org/api/info/" | jq . | grep version
"schema_version": "0.6.2",
"version": "0+unknown",
"cli-minimal-version": "0.14.2",
"cli-bad-versions": [] |
There was an issue with the deployment, which I'm working on now. |
@yarikoptic if you check again you'll see the correct version is now present in both staging and prod. |
confirming -- thank you$> curl -s https://gui-staging.dandiarchive.org/server-info/ | jq . | grep version
"schema_version": "0.6.2",
"version": "0.2.18.post3+g1aa8bb4f",
"cli-minimal-version": "0.14.2",
"cli-bad-versions": []
1 21794.....................................:Mon 02 May 2022 11:10:21 AM EDT:.
lena:~
$> curl -s -X GET "https://api-staging.dandiarchive.org/api/info/" | jq . | grep version
"schema_version": "0.6.2",
"version": "0.2.18.post3+g1aa8bb4f",
"cli-minimal-version": "0.14.2",
"cli-bad-versions": []
1 21795.....................................:Mon 02 May 2022 11:10:28 AM EDT:.
lena:~
$> curl -s -X GET "https://api.dandiarchive.org/api/info/" | jq . | grep version
"schema_version": "0.6.2",
"version": "0.2.18",
"cli-minimal-version": "0.14.2",
"cli-bad-versions": []
1 21796.....................................:Mon 02 May 2022 11:10:34 AM EDT:.
lena:~
$> curl -s https://gui.dandiarchive.org/server-info/ | jq . | grep version
parse error: Invalid numeric literal at line 1, column 12
1 21797 ->1.....................................:Mon 02 May 2022 11:10:44 AM EDT:.
lena:~
$> curl -s https://gui.dandiarchive.org/server-info/
Redirecting to https://dandiarchive.org/server-info/% 1 21798.....................................:Mon 02 May 2022 11:10:53 AM EDT:.
lena:~
$> curl -s https://dandiarchive.org/server-info/ | jq . | grep version
"schema_version": "0.6.2",
"version": "0.2.18",
"cli-minimal-version": "0.14.2",
"cli-bad-versions": []
|
#221 added versioning by versioneer but seems deployment is not entirely kosher with it since getting
I guess it depends on how it gets deployed (may be fetch is happening without fetching the git tags or smth like that)
The text was updated successfully, but these errors were encountered: