Fix tests org.commoncrawl.* being ignored/skipped#44
Conversation
org.commoncrawl.* be executedorg.commoncrawl.* being ignored/skipped
Test Results115 files 115 suites 3m 57s ⏱️ Results for commit 3bcac79. ♻️ This comment has been updated with latest results. |
|
Hi, @lfoppiano.
Thanks! That's a left-over of NUTCH-2852. Unclear why it hits our fork but not upstream Nutch. It should be fixed upstream. I hope this avoids any fix in the Common Crawl fork. There was also a lot of refactoring and improvements around unit tests and workflow reports ongoing recently. I'd avoid any changes unless these are fully merged into the There are few more blocked because we need to upgrade our Hadoop cluster to 3.4.2 and JDK 17: NUTCH-3085https://issues.apache.org/jira/browse/ NUTCH-3085) and most important the upgrade to JUnit6 NUTCH-3145. |
|
OK. I leave it for now. The last commit fixes all the problems, by running each test as separate fork. Plus removing the |
|
The same fix was committed in the upstream Nutch: apache@f8577a0 |
Ok, that was NUTCH-3143. In addition, the reason should be addressed, that is no |
|
Yes, this is addressed at apache#903 👍 |
This PR fixes the problem described in #43
In short, all test were ran with and there are two tests in particular
TestCommonCrawlDataDumper.dump()which callsSystem.exit()dumping the whole forked process. AlsoTestMimeUtilhad a similar problem.For now I've separated the
org.commoncrawl.*from theorg.apache.*tests. But the issue may still occur preventing other tests from the same group to be executed. Ideally we shoud avoid theSystem.exit(maybe static mocking?) or make the tests in individual forks.