[ 
https://issues.apache.org/jira/browse/YARN-11969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheng Pan resolved YARN-11969.
------------------------------
    Fix Version/s: 3.4.4
                   3.5.1
                   3.6.0
       Resolution: Fixed

> Make catalog-webapp jasmine browser tests skippable independently of 
> -DskipTests
> --------------------------------------------------------------------------------
>
>                 Key: YARN-11969
>                 URL: https://issues.apache.org/jira/browse/YARN-11969
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: yarn
>    Affects Versions: 3.6.0
>            Reporter: Ferenc Erdelyi
>            Assignee: Ferenc Erdelyi
>            Priority: Minor
>              Labels: build, pull-request-available, test
>             Fix For: 3.4.4, 3.5.1, 3.6.0
>
>
> `hadoop-yarn-applications-catalog-webapp` runs a `jasmine-maven-plugin` test
> that drives a PhantomJS browser. In headless build environments PhantomJS
> cannot start, and the plugin fails with `UnreachableBrowserException`. Because
> this is a plugin-execution failure rather than a Surefire test failure,
> `-Dmaven.test.failure.ignore=true` does not suppress it and it fails the 
> build.
> The module's jasmine config currently hardcodes its skip flag to 
> `${skipTests}`,
> so the only way to avoid the browser test is `-DskipTests`, which skips every
> test in the module.
> Introduce a `skipJasmineTests` property (default `${skipTests}`) and bind the
> plugin's `<skipJasmineTests>` to it. Default behavior is unchanged; a headless
> build can pass `-DskipJasmineTests=true` to skip only the browser-driven tests
> while still compiling and testing the rest of the module. Build-config change
> only; no production code affected.
> **Acceptance / verification:**
> - With no new flag, `skipJasmineTests` resolves to `${skipTests}` and behavior
>   is unchanged (jasmine runs with tests; skipped under `-DskipTests`).
> - `-DskipJasmineTests=true` skips the jasmine plugin executions and the module
>   builds without a PhantomJS browser, without needing `-DskipTests`.
> **Notes for reviewers:**
> - Single-file change: the catalog-webapp `pom.xml`.
> - The property defaults to `${skipTests}`, preserving existing CI/build
>   behavior; the new flag is purely additive.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to