-
Notifications
You must be signed in to change notification settings - Fork 227
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
Update pr-data.csv, test renamed #1127
base: main
Are you sure you want to change the base?
Conversation
Test renamed
Did you check if it remained |
Please update the PR with the commit where the test was moved or renamed. Otherwise, we'll take -2 "points" if the PR remains unresolved past the deadline. |
Hi professor, I cannot successfully build this project, so I can't tell whether it is still OD or not. Should I close this PR? |
Just add in the |
Please put a link to the commit not a PR. Also squash your commits (without closing this PR). |
Following up on the unresolved PR.
Developers sometimes commit partial changes that would obviously fail to build. This commit d7e11f08a6bfc85ce47c4db8dffe8c307aafc54d, with the renaming of the test case, fails to build: ...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project dubbo-config-api: Compilation failure
[ERROR] /root/dubbo/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractConfig.java:[646,26] error: cannot find symbol
[ERROR] symbol: method isGetter(Method)
[ERROR] location: class ClassUtils
... The next closest commit in the PR that builds is: 65a9227f379f2278192b4c2d141a958d287dde55 Commit With RenameThis apache/dubbo#3806 is correct where the rename occurred here: apache/dubbo@d7e11f0. However, the diff isn't a simple renaming of a Java Class name. Instead the maintainer removed
After 89 rounds of running iDFlakies against the PR branch and 270 rounds running against the latest (3.2) branch, it does not appear org.apache.dubbo.common.utils.ClassUtilsTest.testForName3 is still OD Flaky. However, the latest branch has over 1,000 tests alone in the dubbo-common submodule and I cannot check all 1,000! permutations. I would attempt I tried to look into the source of the flakiness, but it is unclear what is causing the flakiness. I'm not even sure if this is really flaky or not... So whether or not this is still flaky or not is inconclusive. Steps To Reproduce###############################################################################
# Setup
#
# Windows WSL2 Ubuntu 18.04.6 LTS:
###############################################################################
# Maven Version
root@LAPTOP-MR10D0GP:~/dubbo# mvn -v
Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c)
Maven home: /root/apache-maven-3.9.2
Java version: 1.8.0_202, vendor: Oracle Corporation, runtime: /root/jdk1.8.0_202/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.10.16.3-microsoft-standard-wsl2", arch: "amd64", family: "unix"
# Java Version
root@LAPTOP-MR10D0GP:~/dubbo# java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)
###############################################################################
# iDFlakies
###############################################################################
# Sanity Check IDoft
git checkout 737f7a7ea67832d7f17517326fb2491d0a086dd7
mvn clean install -DskipTests -Dgpg.skip=true -Dcheckstyle.skip=true -U
mvn -pl dubbo-common edu.illinois.cs:idflakies-maven-plugin:2.0.1-SNAPSHOT:detect -Ddetector.detector_type=random-class-method -Ddt.randomize.rounds=100 -Ddt.detector.original_order.all_must_pass=false > idflakies--100_rounds--dubbo_common--idoft--737f7a7ea67832d7f17517326fb2491d0a086dd7.log
# Check Commit With Rename
git fetch origin 65a9227f379f2278192b4c2d141a958d287dde55
git checkout 65a9227f379f2278192b4c2d141a958d287dde55
mvn clean install -DskipTests -Dgpg.skip=true -Dcheckstyle.skip=true -U
mvn -pl dubbo-common edu.illinois.cs:idflakies-maven-plugin:2.0.1-SNAPSHOT:detect -Ddetector.detector_type=random-class-method -Ddt.randomize.rounds=100 -Ddt.detector.original_order.all_must_pass=false > idflakies--100_rounds--dubbo_common--commit_with_test_rename--65a9227f379f2278192b4c2d141a958d287dde55.log
#
mvn -pl dubbo-common edu.illinois.cs:idflakies-maven-plugin:2.0.1-SNAPSHOT:detect -Ddetector.detector_type=random-class-method -Ddt.randomize.rounds=10 -Ddt.detector.original_order.all_must_pass=false > idflakies--10_rounds--dubbo-all--latest--f7a32be429e815e9bc70f0dec31d67461e5c695e.log
###############################################################################
# iDFlakies (Experimental Approach)
#
# Targeting just the test class fails to reproduce the flakiness
###############################################################################
# Try Targeting org.apache.dubbo.common.utils.ClassHelperTest
mvn clean install -DskipTests -Dcheckstyle.skip=true -U
mvn -pl dubbo-common edu.illinois.cs:idflakies-maven-plugin:2.0.1-SNAPSHOT:detect -Ddetector.detector_type=random-class-method -Ddt.randomize.rounds=10000 -Ddt.detector.original_order.all_must_pass=false -Ddt.original.order=./input.txt > idflakies--10000_rounds--dubbo_common_utils_ClassHelperTest--idoft--737f7a7ea67832d7f17517326fb2491d0a086dd7.log
# input.txt
org.apache.dubbo.common.utils.ClassHelperTest.testForName1
org.apache.dubbo.common.utils.ClassHelperTest.testForName2
org.apache.dubbo.common.utils.ClassHelperTest.testForName3
org.apache.dubbo.common.utils.ClassHelperTest.testForNameWithThreadContextClassLoader
org.apache.dubbo.common.utils.ClassHelperTest.testGetCallerClassLoader
org.apache.dubbo.common.utils.ClassHelperTest.testGetClassLoader1
org.apache.dubbo.common.utils.ClassHelperTest.testGetClassLoader2
org.apache.dubbo.common.utils.ClassHelperTest.testResolvePrimitiveClassName
org.apache.dubbo.common.utils.ClassHelperTest.testToShortString
org.apache.dubbo.common.utils.ClassHelperTest.tetForNameWithCallerClassLoader I also tried to run iDFlakies against the latest (Apache Dubbo 3.2 branch) and get this error:
The logs are here: https://gitlab.engr.illinois.edu/abadia2/cs527/-/tree/master/incomplete/finalize-pull-1127?ref_type=heads Is this enough to close the PR? If so, logistically, how do you want me to "resolve" this PR as I am not the author? |
In the PR changes, what should be the link instead of apache/dubbo#3806 ? For this test itself, we can stop at For iDFlakies, it seems you found some bug. It'd be good to report it at https://github.com/UT-SE-Research/iDFlakies |
The specific commit to be listed in idoft from that PR apache/dubbo#3806 should be: d7e11f08a6bfc85ce47c4db8dffe8c307aafc54d |
@yijut2 can you change the last column per the previous comment? |
The
ClassHelperTest.java
was renamed asClassUtilsTest.java
. Here is the link to the related commit: apache/dubbo#3806