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

Install Ruby gems in AppVeyor #1312

Merged
merged 2 commits into from
Dec 7, 2018
Merged

Conversation

rhemon
Copy link
Contributor

@rhemon rhemon commented Jan 16, 2017

Added commands to install ruby gems in appveyor
so that it can perform tests for the bears that
use ruby gems.

Fixes #1305

@gitmate-bot
Copy link
Collaborator

Thanks for your contribution!

Reviewing pull requests take really a lot of time and we're all volunteers. Please make sure you go through the following check list and complete them all before pinging someone for a review.

As you learn things over your Pull Request please help others on the chat and on PRs to get their stuff right as well!

.ci/appveyor.yml Outdated
@@ -51,6 +54,12 @@ install:
- "%CMD_IN_ENV% pip install --find-links=C:\\wheels -r test-requirements.txt"
- "%CMD_IN_ENV% pip install --find-links=C:\\wheels -r requirements.txt"
- "CALL .ci/deps.nltk.cmd"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line contains following spacing inconsistencies:

  • Trailing whitespaces.

SpaceConsistencyBear, severity NORMAL, section ci.

The issue can be fixed by applying the following patch:

--- a/.ci/appveyor.yml
+++ b/.ci/appveyor.yml
@@ -54,7 +54,7 @@
   - "%CMD_IN_ENV% pip install --find-links=C:\\wheels -r test-requirements.txt"
   - "%CMD_IN_ENV% pip install --find-links=C:\\wheels -r requirements.txt"
   - "CALL .ci/deps.nltk.cmd"
-  
+
   - sed -i '/ruby \'2\.2\.2\'/d' Gemfile
   - "sed -i '/sqlint/d' Gemfile"
   - "type Gemfile"

.ci/appveyor.yml Outdated

- sed -i '/ruby \'2\.2\.2\'/d' Gemfile
- "sed -i '/sqlint/d' Gemfile"
- "type Gemfile"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont need this line now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sorry, forgot to remove that

@jayvdb
Copy link
Member

jayvdb commented Jan 16, 2017

tests\ruby\RuboCopBearTest.py ssssss the tests are still being skipped because it cant find the binaries...hint hint.

@rhemon
Copy link
Contributor Author

rhemon commented Jan 23, 2017

I need help in this, I installed gems with command bundle install --path=vendor\\bundle --verbose. And then added the bin dir with .BAT files to PATH with this command SET PATH=C:\\projects\\coala-bears\\vendor\\bundle\\ruby\\2.2.0\\bin;%PATH%. so after this some of the tests started to fail. Here is the log Without the command to add bin dir to PATH, tests get skipped and the build is green. I am sorry but I am not understanding the problem here. Full code here.

@yukiisbored
Copy link
Member

yukiisbored commented Jan 26, 2017

@rhemon You can try by echo-ing the PATH variable and list the directories to see what's going on. It's a shame that Appveyor doesn't have an easy way to debug CI issues like this.

@rhemon
Copy link
Contributor Author

rhemon commented Jan 26, 2017

@yukiisbored yup have tried that. as far as i can see PATH is fine. and have also listed the files in dir and saw it had .bat files. i am wondering if appveyor have problems with .bat?

@yukiisbored
Copy link
Member

@rhemon I'm not quite sure, I'm not a Windows user by any means. I think the appveyor script on coala/coala runs an external batch script.

@rhemon
Copy link
Contributor Author

rhemon commented Jan 27, 2017

cant understand the reason for tests failing for the bears with ruby gems here https://ci.appveyor.com/project/rhemon/coala-bears/build/1.0.156/job/n57e6dewq7hc9sbk
previously when I had bundle install --path=vendor/bundle and even after adding the dir with .bat files in PATH it didn't run the gem properly . i tried testing it by running a gem - https://ci.appveyor.com/project/rhemon/coala-bears/build/1.0.154/job/oj2lr0auwleu8b2b#L1165.
later following another repo i just tried bundle install and i was able to successfully run the gem https://ci.appveyor.com/project/rhemon/coala-bears/build/1.0.156/job/n57e6dewq7hc9sbk#L612 but tests are still failing. Here is the present appveyor.yml file
and you can ignore the InvalidLinkBearTest fail.
so if anyone knows what I have done wrong, please help me fix it.

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

2 similar comments
@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@rhemon
Copy link
Contributor Author

rhemon commented Feb 13, 2017

Managed to get some bear tests that use ruby gems to pass by adding .BAT since coala wasn't finding .bat files (which is solved right now, so I will undo those changes)
I still have RuboCopBearTest and CSVLintBearTest failing.
For CSVLintBear its yielding no result where it should, also getting AssertionError: list index out of range
For RuboCopBearTest its yielding a result, but it shouldn't. also getting AssertionError: Bear returned None on execution
I am not clear about this test fails and how I should be dealing with it.

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@nemani
Copy link
Member

nemani commented Feb 26, 2017

Marking WIP because the tests are failing.
You should ask your doubts on Gitter. :)

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

1 similar comment
@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@@ -63,7 +71,8 @@ test_script:
"%CMD_IN_ENV% python -m pytest
--cov -k "not ClangASTPrintBear and not ClangCloneDetectionBear and
not ClangComplexityBear and not ClangCountVectorCreator and
not ClangCountingConditions"
not ClangCountingConditions and not RuboCopBearTest and
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Euhm, you can't install rubocop?

Copy link
Contributor Author

@rhemon rhemon Jun 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no. it installs the gems but the tests fail for some reason in AppVeyor (link available above). same case for CSVLintBearTest

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give us the logs when the tests fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the Rubocop tests needs rework for Windows? It's harder to read without colors :/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still wondering why csvlint just keeps returning blank

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about the problems myself and since not a windows user I am not sure if they are actually working fine in windows or not. maybe there should be separate issues for these two tests? and this PR moves on (ignoring the two tests for now) so that I can move on to #1288 😅

@sils
Copy link
Member

sils commented Jun 30, 2017

marking WIP because there are open discussions and failing builds

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

2 similar comments
@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@gitmate-bot
Copy link
Collaborator

Hey! This pull request hasn't been updated for a while :/ It would be nice if we could get this going again!

@rhemon
Copy link
Contributor Author

rhemon commented Aug 19, 2017

@jayvdb so what can I do for this? there is still #1288

rhemon and others added 2 commits December 7, 2018 20:01
Added commands to install ruby gems in appveyor
so that it can perform tests for the bears that
use ruby gems.

Closes coala#1305
@jayvdb
Copy link
Member

jayvdb commented Dec 7, 2018

ack 53fac0b f6119ad

@jayvdb
Copy link
Member

jayvdb commented Dec 7, 2018

@gitmate-bot ff

@gitmate-bot
Copy link
Collaborator

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@gitmate-bot gitmate-bot merged commit f6119ad into coala:master Dec 7, 2018
@gitmate-bot
Copy link
Collaborator

Automated fastforward with GitMate.io was successful! 🎉

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

Successfully merging this pull request may close these issues.

8 participants