-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test(dialogflow): deflake and re-enable test cases in ITSystemTest #13511
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
Open
whowes
wants to merge
1
commit into
main
Choose a base branch
from
whowes/b423958346
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuite name="JUnit Jupiter" tests="0" skipped="0" failures="0" errors="0" time="0" hostname="whowes.c.googlers.com" timestamp="2026-07-10T21:09:39"> | ||
| <properties> | ||
| <property name="file.encoding" value="UTF-8"/> | ||
| <property name="file.separator" value="/"/> | ||
| <property name="java.class.path" value=""/> | ||
| <property name="java.class.version" value="61.0"/> | ||
| <property name="java.endorsed.dirs" value=""/> | ||
| <property name="java.ext.dirs" value=""/> | ||
| <property name="java.io.tmpdir" value="/tmp"/> | ||
| <property name="java.library.path" value="/usr/lib/mesa-diverted/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/mesa:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/x86_64-linux-gnu/gallium-pipe:/usr/lib64:/lib64:/lib:/usr/lib"/> | ||
| <property name="java.runtime.name" value="GraalVM Runtime Environment"/> | ||
| <property name="java.runtime.version" value="17.0.9+9-jvmci-23.0-b22"/> | ||
| <property name="java.specification.name" value="Java Platform API Specification"/> | ||
| <property name="java.specification.vendor" value="Oracle Corporation"/> | ||
| <property name="java.specification.version" value="17"/> | ||
| <property name="java.vendor" value="GraalVM Community"/> | ||
| <property name="java.vendor.url" value="https://www.graalvm.org/"/> | ||
| <property name="java.vendor.version" value="GraalVM CE 17.0.9+9.1"/> | ||
| <property name="java.version" value="17.0.9"/> | ||
| <property name="java.version.date" value="2023-10-17"/> | ||
| <property name="java.vm.info" value="serial gc"/> | ||
| <property name="java.vm.name" value="Substrate VM"/> | ||
| <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> | ||
| <property name="java.vm.specification.vendor" value="Oracle Corporation"/> | ||
| <property name="java.vm.specification.version" value="17"/> | ||
| <property name="java.vm.vendor" value="GraalVM Community"/> | ||
| <property name="java.vm.version" value="17.0.9+9"/> | ||
| <property name="jdk.lang.Process.launchMechanism" value="FORK"/> | ||
| <property name="line.separator" value=" | ||
| "/> | ||
| <property name="native.encoding" value="UTF-8"/> | ||
| <property name="org.graalvm.nativeimage.imagecode" value="runtime"/> | ||
| <property name="org.graalvm.nativeimage.kind" value="executable"/> | ||
| <property name="os.arch" value="amd64"/> | ||
| <property name="os.name" value="Linux"/> | ||
| <property name="os.version" value="6.18.14-1rodete3-amd64"/> | ||
| <property name="path.separator" value=":"/> | ||
| <property name="sun.arch.data.model" value="64"/> | ||
| <property name="sun.jnu.encoding" value="UTF-8"/> | ||
| <property name="user.dir" value="/usr/local/google/home/whowes/cloudsdk/google-cloud-java"/> | ||
| <property name="user.home" value="/usr/local/google/home/whowes"/> | ||
| <property name="user.name" value="whowes"/> | ||
| <property name="user.timezone" value="Etc/UTC"/> | ||
| </properties> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-jupiter] | ||
| display-name: JUnit Jupiter | ||
| ]]></system-out> | ||
| </testsuite> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <testsuite name="JUnit Vintage" tests="9" skipped="0" failures="0" errors="0" time="4.314" hostname="whowes.c.googlers.com" timestamp="2026-07-10T21:09:39"> | ||
| <properties> | ||
| <property name="file.encoding" value="UTF-8"/> | ||
| <property name="file.separator" value="/"/> | ||
| <property name="java.class.path" value=""/> | ||
| <property name="java.class.version" value="61.0"/> | ||
| <property name="java.endorsed.dirs" value=""/> | ||
| <property name="java.ext.dirs" value=""/> | ||
| <property name="java.io.tmpdir" value="/tmp"/> | ||
| <property name="java.library.path" value="/usr/lib/mesa-diverted/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/mesa:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/x86_64-linux-gnu/gallium-pipe:/usr/lib64:/lib64:/lib:/usr/lib"/> | ||
| <property name="java.runtime.name" value="GraalVM Runtime Environment"/> | ||
| <property name="java.runtime.version" value="17.0.9+9-jvmci-23.0-b22"/> | ||
| <property name="java.specification.name" value="Java Platform API Specification"/> | ||
| <property name="java.specification.vendor" value="Oracle Corporation"/> | ||
| <property name="java.specification.version" value="17"/> | ||
| <property name="java.vendor" value="GraalVM Community"/> | ||
| <property name="java.vendor.url" value="https://www.graalvm.org/"/> | ||
| <property name="java.vendor.version" value="GraalVM CE 17.0.9+9.1"/> | ||
| <property name="java.version" value="17.0.9"/> | ||
| <property name="java.version.date" value="2023-10-17"/> | ||
| <property name="java.vm.info" value="serial gc"/> | ||
| <property name="java.vm.name" value="Substrate VM"/> | ||
| <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> | ||
| <property name="java.vm.specification.vendor" value="Oracle Corporation"/> | ||
| <property name="java.vm.specification.version" value="17"/> | ||
| <property name="java.vm.vendor" value="GraalVM Community"/> | ||
| <property name="java.vm.version" value="17.0.9+9"/> | ||
| <property name="jdk.lang.Process.launchMechanism" value="FORK"/> | ||
| <property name="line.separator" value=" | ||
| "/> | ||
| <property name="native.encoding" value="UTF-8"/> | ||
| <property name="org.graalvm.nativeimage.imagecode" value="runtime"/> | ||
| <property name="org.graalvm.nativeimage.kind" value="executable"/> | ||
| <property name="os.arch" value="amd64"/> | ||
| <property name="os.name" value="Linux"/> | ||
| <property name="os.version" value="6.18.14-1rodete3-amd64"/> | ||
| <property name="path.separator" value=":"/> | ||
| <property name="sun.arch.data.model" value="64"/> | ||
| <property name="sun.jnu.encoding" value="UTF-8"/> | ||
| <property name="user.dir" value="/usr/local/google/home/whowes/cloudsdk/google-cloud-java"/> | ||
| <property name="user.home" value="/usr/local/google/home/whowes"/> | ||
| <property name="user.name" value="whowes"/> | ||
| <property name="user.timezone" value="Etc/UTC"/> | ||
| </properties> | ||
| <testcase name="detectIntentTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="2.229"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:detectIntentTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: detectIntentTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="getContextTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.142"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:getContextTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: getContextTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="getAgentTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.192"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:getAgentTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: getAgentTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="listContextsTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.14"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:listContextsTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: listContextsTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="listEntityTypesTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.17"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:listEntityTypesTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: listEntityTypesTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="searchAgentsTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.06"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:searchAgentsTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: searchAgentsTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="listIntentsTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.086"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:listIntentsTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: listIntentsTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="getIntentTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.074"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:getIntentTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: getIntentTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <testcase name="getEntityTypeTest" classname="com.google.cloud.dialogflow.v2.it.ITSystemTest" time="0.137"> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage]/[runner:com.google.cloud.dialogflow.v2.it.ITSystemTest]/[test:getEntityTypeTest(com.google.cloud.dialogflow.v2.it.ITSystemTest)] | ||
| display-name: getEntityTypeTest | ||
| ]]></system-out> | ||
| </testcase> | ||
| <system-out><![CDATA[ | ||
| unique-id: [engine:junit-vintage] | ||
| display-name: JUnit Vintage | ||
| ]]></system-out> | ||
| </testsuite> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure
listContextsTestis fully deflaked against eventual consistency (replication lag), we should also wrap the assertion in anawaitilityblock. Otherwise, if the context is not immediately visible in the list, the test will fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this relevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this one is necessary - the observed flakiness was related to the unexpected system context appearing in the list and not related to eventual consistency.