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

Scheduled wheel building not working #68

Closed
riddell-stan opened this issue Dec 16, 2020 · 6 comments · Fixed by #69
Closed

Scheduled wheel building not working #68

riddell-stan opened this issue Dec 16, 2020 · 6 comments · Fixed by #69

Comments

@riddell-stan
Copy link
Contributor

The BUILD_COMMIT variable is not being set, see https://github.com/stan-dev/httpstan-wheels/runs/1560819086?check_suite_focus=true.

@ahartikainen
Copy link
Contributor

I think this should fix the problem: git fetch --tags

echo "BUILD_COMMIT=$(cd httpstan && git fetch --tags && git tag --sort version:refname | tail -1)" >> $GITHUB_ENV

@riddell-stan
Copy link
Contributor Author

riddell-stan commented Dec 16, 2020 via email

@ahartikainen
Copy link
Contributor

I have no idea. It will also fails with forks.

I think some default settings change depending how CI is triggered.

@riddell-stan
Copy link
Contributor Author

I think actions/checkout#217 explains what is going on.

I'm reopening this issue because the current solution involves a subshell doing a ton of work. I think we should have a step where we fetch the tags separately, akin to this, perhaps, actions/checkout#217 (comment)

@riddell-stan
Copy link
Contributor Author

git fetch --tags will, as I understand it, fetch the entire history. Is that what we want?

--tags

Fetch all tags from the remote (i.e., fetch remote tags refs/tags/*
           into local tags with the same name), in addition to whatever else
           would otherwise be fetched. 

@ahartikainen
Copy link
Contributor

I liked the PR solution. It does add more work for the engine, but I think it is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants