-
Notifications
You must be signed in to change notification settings - Fork 92
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
Heroku CI support #183
Comments
Hi @zharikovpro, When submitting test coverage data to Code Climate, we require a couple pieces of git commit information so that we can reliably link your test coverage report to the appropriate code:
If git is installed and we have access to a git repository, we can grab these values from git itself. Otherwise, we have to rely on environment variables set by the CI provider. We fetch those environment variables, based on the CI provider, here: https://github.com/codeclimate/ruby-test-reporter/blob/master/lib/code_climate/test_reporter/ci.rb From the output you shared, it seems like we don't have access to a git repository and we don't currently map values from Heroku CI set environment variables. After briefly looking at the Heroku CI docs I wasn't able to determine if these values are available during a CI run. If they are, all that should be necessary is adding a new entry to the |
Will forward this to the Heroku team, they could probably fix it, thanks. |
Hello, I'm on the Heroku CI team and I'd love for this to work properly! There's no git repo present on Heroku CI runs and I don't think we could add that without some significant work but I could expose some more information as environment variables. We already have |
Hey @appleton! Thanks for following up! A To completely allow test coverage submission from a Heroku CI build to Code Climate without a git repo, it would also help to have these additional environment variables available:
The names can vary but these are the remaining bit of information we would need to generate a valid payload within the test reporter. Thanks so much for your help! Let me know if you have any further questions. |
Any update on this one? The same issue is still present, it would be great to have this working with Heroku CI. |
Please let us know ETA for this feature. |
@appleton any updates on this issue? |
@a-b I haven't heard anything from the Heroku team. I'll try to get in touch with them via another channel and report back. Thanks for the nudge! |
@a-b Also, as we're winding down development on this ruby-specific reporter, I'd recommend checking out our new test reporter and migrating to it if you're interested! https://github.com/codeclimate/test-reporter It's decoupled from the coverage tool used to generate the report, distributed as a static binary, and has support for parallelized builds. 🎉 |
Thanks for update @dblandin! |
Hey y'all -- Sorry for the delay here. @appleton has been on an extended PTO, so he's not around to respond. However, we did add I'll bring up the other suggestions ( |
Hey @joshwlewis, Thank you for the update! Out of those three, If we had that value available, we could address and close this issue easily. Thanks! |
If we used this solution: codeclimate/test-reporter#226 (comment), what other ENV variables can we send to the ruby test reporter to ensure things run smoothly? (and how do we format them) |
Hey @dja, That workaround is specific to the new test-reporter. We'd have to support it differently within this reporter. I'd recommend opening a PR on the new test-reporter repo to support the Heroku env variables that are available and generate the committed at timestamp until Heroku CI supports it. Here's a PR that recently added Drone CI support: codeclimate/test-reporter#215 |
Hey @joshwlewis, just following up here :) Any progress on making those variables available? |
@appleton , I am currently using HEROKU CI , unfortunately I can not run functional test which are part of my source code, because the review app url is dynamically changing , is it possible to have HEROKU_APP_NAME/ WEB URL accessible for HEROKU CI example :HEROKU_TEST_RUN_ID is available for my test script. Appreciate you help on this. OR do you suggest any workaround for this? |
Hey @pmaderamitlasf1, I don’t work at Heroku any more but I’ll cc @joshwlewis ☝️ |
Thanks @appleton . @joshwlewis can you please help me on this? |
When I run command locally, it works fine. It works fine on CodeShip, too. That same command fails on Heroku, though.
The text was updated successfully, but these errors were encountered: