-
Notifications
You must be signed in to change notification settings - Fork 55
Feature/topics for works #369
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
Conversation
Winning submission of the challenge 30099211
…opics functionality
|
@maxceem It seems something is changed in terms of unit tests setup, 138 unit tests are failing on CircleCI. |
|
@vikasrohit yep, checking... |
…d them work for real in new tests
…ng/unmocking RabbitMQ
|
@vikasrohit Unit tests for this PR are fixed now. The main issue was that I think this PR can merged now. |
|
Thanks @maxceem However, I am little confused how the build was working fine earlier then? |
|
The difference between before and now is that before we only mock RabbitMQ. But for new tests regarding creating topics for phases and works, we had to un-mock RabbitMQ for these tests, i. e. we have to use real RabbitMQ setup, as topics are created by listening to RabbitMQ events. |
|
Thanks for the info @maxceem Now when we have the rabbitmq working in the CI/CD, we can add unit tests for more event based processing in this service. Could you please log an issue for that, we would take care of that later. |
|
Issue created #371 |
|
@maxceem one test is failing after merging it to dev. |
|
@vikasrohit works on the third attempt: |
|
It failed again. :( |
|
The last fail was strange as it looks like there is RabbitMQ in the docker, it shouldn't happen as I've already configured the CircleCI for RabbitMQ. I re-run again and it works. |
|
May be we need to add some time delay to wait for RabbitMQ to start properly before actual tests start. |
|
I tried to rerun it and it failed again. So, I think there is something definitely wrong here. And the error is consistent: |
|
Yeah, this error is not because of CircleCI setup. Cannot reproduce it locally even once, but will try to search for possible reasons. |
|
May be this error happens when we rebuild the docker images (used in local setup) because on circle ci every time it fetches the docker images so essentially it starts from scratch on CircleCI while on our local setup, we have the basic setup already working for every test case run. It caused issues in past as well when we were asserting the ids of the new records in unit tests the reason was CircleCI has primary key sequences reset on every run while our local setup does not. |
|
Hmm, so far there two types of failing build.
If the first case with multiple errors would happen again, would have to check it out also. |

Implementation for #357
Creating 2 topics for works to show comments on Details and Requirements tabs.
Notes:
Tested it locally and also have unit tests. So I think it's safe to merge and continue testing on DEV.