Update opened status and add NOD test#967
Update opened status and add NOD test#967darko-marinov merged 1 commit intoTestingResearchIllinois:mainfrom rRajivramachandran:update-status-add-test
Conversation
|
Why create Does the newly added test pass when run with the others, or does it make the test suite fail almost always? |
|
Prof @darko-marinov
Module level log: /home/rajivr3/fastjson2/fastjson/test_for_issue/logs/module_level_10runs.log It only passes rarely(when the instant of test time run had 0 value beyond milliseconds). To simulate and verify that this is the pass scenario I used the patch.
|
|
If this test fails so often, how is it not affecting the project's CI? Are they not using any CI? |
|
They seem to be using github actions. On every push/PR they do a mvn build according to their workflow: https://github.com/alibaba/fastjson/actions/runs/4710868258/workflow |
Opened
PR opened for
com.alibaba.fastjson.serializer.TestParse.testParse: alibaba/fastjson#4458Approved tentative PR: rRajivramachandran/fastjson#1
New test
New test found non deterministic:
com.alibaba.json.bvt.issue_2700.Issue2784#test_for_issueWhen the test is run by itself it fails.
The test depends on
java.time.LocalDateTime. The test will only pass when the system time taken is an exact millisecond value(i.e microsecond and nanoseconds are zero). The pass scenario has been verified using the following patch.Since the same test passes and fails when run at different times it is non deterministic. It is not dependent on any other test and is NOD by itself.
VM id: [email protected]
Log passing: /home/rajivr3/fastjson2/fastjson/pass_with_zerobeyondmillis.log
Log failing: /home/rajivr3/fastjson2/fastjson/fail_without_zerobeyondmillis.log
Tentative PR(approved): rRajivramachandran/fastjson#2
Real PR: alibaba/fastjson#4460