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

Change tests for event rules #88

Merged
merged 23 commits into from Jul 1, 2020
Merged

Change tests for event rules #88

merged 23 commits into from Jul 1, 2020

Conversation

gcgbarbosa
Copy link
Contributor

@gcgbarbosa gcgbarbosa commented Jun 19, 2020

  • Now all event tests extend EventSpec
  • Helper fixtures moved to EventSpec

@marcovzla
Copy link
Contributor

@gcgbarbosa why doesn't your PR has a codecov report?
like #87 (comment)

@gcgbarbosa
Copy link
Contributor Author

@marcovzla it does. The report was generated. The question is: why codecov bot sometimes come and sometimes does not come :(

You can find the report here:
https://codecov.io/gh/lum-ai/odinson/commit/8ae2ac35e8e20e50d0c95f6cce6e047c417ffe2c

Copy link
Contributor

@marcovzla marcovzla left a comment

Choose a reason for hiding this comment

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

I left a comment in the code. Also, can you look into the problem with the codecov bot?
Thanks!


def getJsonDocument(id: String): String = {
val json = Map(
"1" -> """{"id":"48fb577b-f5ba-4e16-864f-f8ba20ba9cfa","metadata":[],"sentences":[{"numTokens":8,"fields":[{"$type":"ai.lum.odinson.TokensField","name":"raw","tokens":["The","consumption","of","gummy","bears","and","donuts","."],"store":true},{"$type":"ai.lum.odinson.TokensField","name":"word","tokens":["The","consumption","of","gummy","bears","and","donuts","."]},{"$type":"ai.lum.odinson.TokensField","name":"tag","tokens":["DT","NN","IN","NN","NNS","CC","NNS","."]},{"$type":"ai.lum.odinson.TokensField","name":"lemma","tokens":["the","consumption","of","gummy","bear","and","donut","."]},{"$type":"ai.lum.odinson.TokensField","name":"entity","tokens":["O","O","O","B-dessert","I-dessert","O","B-dessert","O"]},{"$type":"ai.lum.odinson.TokensField","name":"chunk","tokens":["B-NP","I-NP","B-PP","B-NP","I-NP","O","B-NP","O"]},{"$type":"ai.lum.odinson.GraphField","name":"dependencies","edges":[[1,0,"det"],[1,4,"nmod_of"],[1,7,"punct"],[4,2,"case"],[4,3,"compound"],[4,5,"cc"],[4,6,"conj"]],"roots":[1]}]}]}""",
Copy link
Contributor

Choose a reason for hiding this comment

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

Having all the docs in one place is great, but can you give them names that make it easier to know which one we're grabbing? Maybe add as a comment a mapping from name to contents, i.e., the actual sentences in the doc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think using the id is enough?

I was planning to have a TAG svg of all documents used for test somewhere in a readme.
Meanwhile the only thing I could think would be informative would be the document id.jk

@marcovzla
Copy link
Contributor

I noticed that the report says Waiting for CI to complete. Please review report with caution, it may change.
May that be related to the bot issue?

@gcgbarbosa
Copy link
Contributor Author

Yeah, I just noticed the same thing. Whenever codecove detecs the CI status it sends the bot. It is not detecting our CI status for some reason.

@gcgbarbosa
Copy link
Contributor Author

gcgbarbosa commented Jun 22, 2020

I found a few people saying that installing the code-cov github plugin would solve the problem, so I went ahead and asked for permition to install the plugin.

Similar issue:
codecov/codecov-python#157

@BeckySharp
Copy link
Contributor

BeckySharp commented Jun 23, 2020 via email

@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #88 into master will decrease coverage by 0.17%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
- Coverage   56.51%   56.34%   -0.18%     
==========================================
  Files          71       71              
  Lines        2870     2870              
  Branches      228      228              
==========================================
- Hits         1622     1617       -5     
- Misses       1248     1253       +5     
Impacted Files Coverage Δ
.../scala/ai/lum/odinson/lucene/search/Priority.scala 44.44% <0.00%> (-16.67%) ⬇️
...ore/src/main/scala/ai/lum/odinson/RuleReader.scala 78.57% <0.00%> (-2.39%) ⬇️
...rc/main/scala/ai/lum/odinson/ExtractorEngine.scala 70.27% <0.00%> (-1.36%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a39dfa...967e392. Read the comment docs.

@gcgbarbosa gcgbarbosa closed this Jun 23, 2020
@gcgbarbosa gcgbarbosa reopened this Jun 23, 2020
@marcovzla
Copy link
Contributor

@gcgbarbosa There is a conflict. I just merged #94 so that could be it.
Can you please take care of it?
Thanks!

@gcgbarbosa
Copy link
Contributor Author

@marcovzla done.

@marcovzla marcovzla merged commit ecf663d into master Jul 1, 2020
@marcovzla marcovzla deleted the event-rule-testing branch July 1, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants