-
Notifications
You must be signed in to change notification settings - Fork 153
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
PHP and Python unable to run tests. #349
Comments
I have no idea how gitlab runs its "zeroconf testing", and to be honest, thats not really a herokuish problem. Dokku partially supports That said, if there is a way you can build this in that will replicate how it works on Heroku, I am all ears. Note that the |
sorry. I don't have a lot of experience with heroku so my limited ability to explain the problem may have got this off on the wrong foot. First gitlab's test step is based around https://devcenter.heroku.com/articles/heroku-ci#php is where I was looking to solve this problem. It seems to be the only method I've found for providing testing for php/python buildpacks. So applying these things I see this:
|
Seems like if that If you'd like to contribute that, we'd almost certainly accept it (with the accompanying tests to herokuish so we don't accidentally drop the functionality of course). |
Wouldn't it make sense to use the app.json script first and then fallback on the buildpack? I'm willing to look at that but I have no idea where to start adding tooling to parse json and the like. |
I would do whatever heroku does in this case. It seems like if the buildpack has a As far as where to start, this location seems good, as it appears to be where the error you pasted comes from. |
Comments like "For typical Ruby apps, you should not need to define scripts in app.json." would imply to me the opposite which makes sense. You should use explicit values over implicit defaults. What about parsing json in bash? I would just use something like |
I don't know what heroku does in terms of order of operations, so you should test that with sample apps where that isn't clear. As far as parsing in bash, you might be able to get away with injecting a small golang binary to grab the test command. |
so the run process is pretty clear here https://devcenter.heroku.com/articles/heroku-ci-technical-detail-on-ci-lifecycle#step-5-the-test-run-is-executed On each step first app.json is used. then buildpack is called. so I've dug around and I'm just not clear on how to do any of that or how to develop or test herokuish. your irc channel has been pretty quite so not sure about fixing this myself. |
@neclimdul sorry, I don't open irc much. Would you be willing to join us on slack with any questions? |
sure, request submitted. |
You'll need to check your email for the invite :) |
I think your slackin is broken. slack.gliderlabs.com socket polling shows only 400 and the |
I've jumped on irc (I am savant) in the #dokku room if you want to say hi there. |
Hi, How is this going ? I'm also trying Gitlab's Auto-Devops. And even if my app.json is complete, I can't test my PHP Application. Any direction to get it work ? Thanks ;) |
@VincentSurelle I haven't had time to dig in to the solution, there is some learning I need to do to address it. For the time being I'm using https://github.com/neclimdul/heroku-buildpack-php to get past that particular pipeline job. It provides a test script that calls That build pack is not a long term solution though because I only plan on maintaining it until this issue is fixed. |
Any news on this? I am currently stack at this point. |
@swilso793 what little time I had to look at this completely dried up. I did file an issue with gitlab since they are invested so maybe more eyes can get involved. |
If anyone from Gitlab is reading this, if you want this to work for your customers, you're going to have to implement it. Its a great idea, and I think it makes a lot of sense to include it, but I don't have time to work on this and I don't think the other maintainers do either. If anyone is asking for "news", there won't be any real updates unless someone either:
Hope that makes sense. |
We took @neclimdul's idea of a change in the php buildpack a little further and came up with a small merge request for heroku's official php buildpack (heroku/heroku-buildpack-php#289). I especially liked the idea of using "composer test" as an entrypoint for my tests. Let's see if the change gets merged. |
The PHP buildpack has support for If anyone would like to sponsor the work of adding |
Just sent a PR (heroku/heroku-buildpack-python#982) to get this added to the Heroku Python buildpack. Hope it gets accepted. |
Going to close this as it's not really something we can fix in this project. We'll pull in new versions of each buildpack as they come in. |
Using a custom PHP buildpack until heroku/heroku-buildpack-php#289 is merged Related issue: gliderlabs/herokuish#349
Seems from #288 there is no app.json support which means buildpacks like php and python don't even work completely. There's no test provided by the buildpack and you're expected to use app.json and without support it doesn't work.
This is a blocker for these languages using systems like gitlab autodev which us herokuish for zeroconf testing.
The text was updated successfully, but these errors were encountered: