-
Notifications
You must be signed in to change notification settings - Fork 399
CLDR-14409 Make cldr-apps-webdriver a project module; minor fixes #4736
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
Conversation
-Add cldr-apps-webdriver as a module in tools/pom.xml, so it can be debugged in IntelliJ with right-click, Debug All Tests -Fix comment for location of surveydriver.properties, now expected directly inside cldr-apps-webdriver directory -Avoid some NullPointerExceptions in SurveyDriverCredentials.java if properties are not defined, by checking for null before calling toString -Define PROPS_TIME_OUT_SECONDS_KEY consistently with other keys
-Change the name cldr-apps-webdriver to CLDR Apps Webdriver, for consistency with cldr-apps, cldr-code -Add skipIfEmpty for maven-jar-plugin, maven-install-plugin, and maven-deploy-plugin -Specify execution goal test-jar to prevent error: ... packaging for this project did not assign a file ...
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.
Looks great!
@srl295 Before merging this, I'm looking at the failures. "cldr-mvn / build (pull_request)Failing after 22m" links to a log including:
Then, "cldr-mvn / Docker test cldr-apps ... Failing after 3m" links to a log including:
Looking at other PRs, there are different failures, so seemingly surveydriver.properties is found sometimes but not always. The inconsistencies are puzzling. For PR 4718, there is:
|
-Added surveydriver.properties is identical to surveydriver-docker.properties
Actually the FileNotFoundException for surveydriver.properties was blocking this PR. That failure was in the required cldr-mvn / build, not in the currently optional cldr-mvn / Docker test. The 3rd commit adds surveydriver.properties. It's not clear though whether that should be necessary. Dockerfile has:
Does SurveyDriverCredentials.java look for it in
Testing without Docker that means it's looked for at |
After the 3rd commit, the good news is we don't get "FileNotFoundException: surveydriver.properties"; the bad news is:
|
I suspect that the webdriver test should be inhibited during the required Maybe making cldr-apps-webdriver a project module accounts for its test becoming part of |
it's a test, so it's trying to test it.
maybe unlinking it is better so that it only runs when requested.
…On Mon, May 26, 2025 at 9:26 PM Tom Bishop ***@***.***> wrote:
*btangmu* left a comment (unicode-org/cldr#4736)
<#4736 (comment)>
I suspect that the webdriver test should be inhibited during the required cldr-mvn
/ build (pull_request) and only enabled in cldr-mvn / Docker test
cldr-apps (pull_request); the latter is currently not required to pass.
Maybe making cldr-apps-webdriver a project module accounts for its test
becoming part of cldr-mvn / build (pull_request)...
—
Reply to this email directly, view it on GitHub
<#4736 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGQZMZVD4TMME4KIV2GGE33APEO3AVCNFSM6AAAAAB5ZPQHIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMJQHEZDSMJUGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
oh! I don't think we actually want this file. WE don't WANT the webdriver to run during mvn test
- I would move this back to gitignore.
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.
these values are inappropriate outside of the docker build.
@@ -41,6 +41,7 @@ | |||
<modules> | |||
<module>cldr-code</module> | |||
<module>cldr-apps</module> | |||
<module>cldr-apps-webdriver</module> |
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.
<module>cldr-apps-webdriver</module> | |
<!-- <module>cldr-apps-webdriver</module> --> |
Maybe it's better to leave it detached for now.
* A file should exist: cldr-apps-webdriver/surveydriver.properties -- not in version control; | ||
* contains WEBDRIVER_PASSWORD=..., etc. |
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'd revert this
public class AppTest {
@Test
public void shouldDrive() {
SurveyDriver.runTests();
}
} it looks like AppTest.java has the only test hookage. If we delete AppTest.java and change SurveyDriver to be a |
but we do not want to run the test in this situation.
looks for it in the current working directory
right, the working diretory. Another option is that we could throw an but i think it might be best to make the webdriver not be a unit test and make it an explicitly run executable- what do you think? that will reach the goal of including it in the project hierarchy - which makes sense as a goal. |
@btangmu ok if i make changes to this PR as mentioned? maybe i can make a sub PR , i'll do that |
Yes, anything you'd like. I'm mostly out of office today. I agree webdriver probably doesn't need to be a "test" |
btangmu#179 work in progrss but welcome to merge. i'm not able to push for some reason |
CLDR-14409 change webdriver to be a 'main' and not a test
It needed to be a rebase merge - you could check it out locally and run "git commit --amend" and then fix it and then force push. |
See #4800 |
-Add cldr-apps-webdriver as a module in tools/pom.xml, so it can be debugged in IntelliJ with right-click, Debug All Tests
-Fix comment for location of surveydriver.properties, now expected directly inside cldr-apps-webdriver directory
-Avoid some NullPointerExceptions in SurveyDriverCredentials.java if properties are not defined, by checking for null before calling toString
-Define PROPS_TIME_OUT_SECONDS_KEY consistently with other keys
-In pom.xml, change the name cldr-apps-webdriver to CLDR Apps Webdriver, for consistency with cldr-apps, cldr-code
-In pom.xml, add skipIfEmpty for maven-jar-plugin, maven-install-plugin, and maven-deploy-plugin
-In pom.xml, specify execution goal test-jar to prevent error: ... packaging for this project did not assign a file ...
CLDR-14409
ALLOW_MANY_COMMITS=true