Skip to content
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

LPD-32573 Use the url mapping to avoid missing parameters on language change #5862

Closed

Conversation

robertoDiaz
Copy link
Collaborator

@robertoDiaz robertoDiaz commented Sep 12, 2024

What is this trying to solve?

https://liferay.atlassian.net/browse/LPD-32573

How am I fixing it?

Using the existing implementations of FriendlyURLMapper to get the full url and avoid missing parameters

How can you verify that it works?

Run the included automated tests.

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:sf

@robertoDiaz robertoDiaz changed the title LPD-32573 LPD-32573 Use the url mapping to avoid missing parameters on language change Sep 12, 2024
@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: bfddf4d2267afa49bd727d75e5910361130af3ad

Sender Branch:

Branch Name: LPD-32573
Branch GIT ID: f92d7ebfa49e8f9fe6bbb3d13d77c8aab3a6a7d9

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

@robertoDiaz
Copy link
Collaborator Author

ci:test:relevant

@robertoDiaz
Copy link
Collaborator Author

ci:test:content-management

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 27 out of 27 jobs passed

❌ ci:test:relevant - 146 out of 175 jobs passed in 3 hours 9 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: bfddf4d2267afa49bd727d75e5910361130af3ad

Upstream Comparison:

Branch GIT ID: bfddf4d2267afa49bd727d75e5910361130af3ad
Jenkins Build URL: EE Development Acceptance (master) - 821 - 2024-09-11[22:14:36]

ci:test:stable - 27 out of 27 jobs PASSED
27 Successful Jobs:
    ci:test:relevant - 146 out of 175 jobs PASSED

    29 Failed Jobs:

    146 Successful Jobs:
      For more details click here.

      Failures unique to this pull:

      1. unit-jdk8/0/0
        1. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagInternalServerErrorResponseStatus - UNTESTED
        2. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagLayoutRobots - UNTESTED
        3. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagLocalizedLayoutRobots - UNTESTED
        4. ...

      Failures in common with acceptance upstream results at bfddf4d:
      1. ...

      @liferay-continuous-integration
      Copy link
      Collaborator

      @liferay-continuous-integration
      Copy link
      Collaborator

      ❌ ci:test:content-management - 916 out of 1026 jobs passed in 3 hours 36 minutes

      Click here for more details.

      Base Branch:

      Branch Name: master
      Branch GIT ID: bfddf4d2267afa49bd727d75e5910361130af3ad

      Upstream Comparison:

      Branch GIT ID: bfddf4d2267afa49bd727d75e5910361130af3ad
      Jenkins Build URL: EE Development Acceptance (master) - 821 - 2024-09-11[22:14:36]

      ci:test:content-management - 916 out of 1026 jobs PASSED

      110 Failed Jobs:

      916 Successful Jobs:
        For more details click here.

        Failures unique to this pull:

        1. functional-tomcat90-mysql57-jdk8/20/20
               [exec] * What went wrong:
               [exec] Execution failed for task ':runPoshi'.
               [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
               [exec] 
               [exec] * Try:
               [exec] > Run with --scan to get full insights.
               [exec] 
               [exec] BUILD FAILED in 27s
               [exec] 3 actionable tasks: 2 executed, 1 up-to-date
               [exec] 
               [exec] See the profiling report at: file:///opt/dev/projects/github/liferay-portal/portal-web/build/reports/profile/profile-2024-09-12-06-54-10.html
               [exec] A fine-grained performance profile is available: use the --scan option.
               [exec] Result: 1
               [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/1096252
               [copy] Copying 2 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/1096252/screenshots
             [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1284596395.properties
          

          clean-up-selenium-driver:
          [echo] Executing commands:
          [echo]
          [echo] docker logs test-1-31-73.lax.liferay.com_chrome > /tmp/jenkins/test-1-31/test-portal-acceptance-pullrequest-downstream(master)/1096252/docker-logs/test-1-31-73.lax.liferay.com_chrome.log
          [echo]
          [echo] https://test-1-37.liferay.com/userContent/jobs/test-portal-acceptance-pullrequest(master)/builds/17906/functional-tomcat90-mysql57-jdk8/20/20/docker-logs/test-1-31-73.lax.liferay.com_chrome.log
          [echo] Executing commands:
          [echo] killall chromedriver
          [exec] chromedriver: no process found
          [exec] Result: 1
          [stopwatch] [test.execution.duration: 5:57.024 sec]
          [stopwatch] [run.batch.test.action: 6:26.690 sec]
          [echo] The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1685: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1689: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:

        2. functional-tomcat90-mysql57-jdk8/20/21
               [exec] * What went wrong:
          [exec] Execution failed for task ':runPoshi'.
          [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
          [exec]
          [exec] * Try:
          [exec] > Run with --scan to get full insights.
          [exec]
          [exec] BUILD FAILED in 29s
          [exec] Result: 1
          [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/732567
          [copy] Copying 2 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/732567/screenshots
          [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1288332723.properties

          clean-up-selenium-driver:
          [echo] Executing commands:
          [echo]
          [echo] docker logs test-1-40-60.lax.liferay.com_chrome > /tmp/jenkins/test-1-40/test-portal-acceptance-pullrequest-downstream(master)/732567/docker-logs/test-1-40-60.lax.liferay.com_chrome.log
          [echo]
          [echo] https://test-1-37.liferay.com/userContent/jobs/test-portal-acceptance-pullrequest(master)/builds/17906/functional-tomcat90-mysql57-jdk8/20/21/docker-logs/test-1-40-60.lax.liferay.com_chrome.log
          [echo] Executing commands:
          [echo] killall chromedriver
          [exec] chromedriver: no process found
          [exec] Result: 1
          [stopwatch] [test.execution.duration: 4:31.029 sec]
          [stopwatch] [run.batch.test.action: 5:00.911 sec]
          [echo] The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1685: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1689: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16672: Property custom.default.user.password was circularly defined.
          [get] Getting: ${dependencies.url}/archive/test-1-40/test-portal-acceptance-pullrequest-downstream(master)/732567consoleText
          [get] To: /opt/dev/projects/github/liferay-portal/20240912065139190.txt

        3. functional-tomcat90-mysql57-jdk8/20/22
               [exec] * What went wrong:
          [exec] Execution failed for task ':runPoshi'.
          [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
          [exec]
          [exec] * Try:
          [exec] > Run with --scan to get full insights.
          [exec]
          [exec] BUILD FAILED in 27s
          [exec] Result: 1
          [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/942308
          [copy] Copying 2 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/942308/screenshots
          [delete] Deleting: /opt/dev/projects/github/liferay-portal/null830134281.properties

          clean-up-selenium-driver:
          [echo] Executing commands:
          [echo]
          [echo] docker logs test-1-35-15.lax.liferay.com_chrome > /tmp/jenkins/test-1-35/test-portal-acceptance-pullrequest-downstream(master)/942308/docker-logs/test-1-35-15.lax.liferay.com_chrome.log
          [echo]
          [echo] https://test-1-37.liferay.com/userContent/jobs/test-portal-acceptance-pullrequest(master)/builds/17906/functional-tomcat90-mysql57-jdk8/20/22/docker-logs/test-1-35-15.lax.liferay.com_chrome.log
          [echo] Executing commands:
          [echo] killall chromedriver
          [exec] chromedriver: no process found
          [exec] Result: 1
          [stopwatch] [test.execution.duration: 4:24.125 sec]
          [stopwatch] [run.batch.test.action: 4:53.852 sec]
          [echo] The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1685: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1689: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16672: Property custom.default.user.password was circularly defined.
          [get] Getting: ${dependencies.url}/archive/test-1-35/test-portal-acceptance-pullrequest-downstream(master)/942308consoleText
          [get] To: /opt/dev/projects/github/liferay-portal/20240912065226684.txt

        4. functional-tomcat90-mysql57-jdk8/20/23
               [exec] * What went wrong:
          [exec] Execution failed for task ':runPoshi'.
          [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
          [exec]
          [exec] * Try:
          [exec] > Run with --scan to get full insights.
          [exec]
          [exec] BUILD FAILED in 41s
          [exec] Result: 1
          [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/361586
          [copy] Copying 2 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/361586/screenshots
          [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1654078865.properties

          clean-up-selenium-driver:
          [echo] Executing commands:
          [echo]
          [echo] docker logs cloud-10-0-16-6.lax.liferay.com_chrome > /tmp/jenkins/test-1-1/test-portal-acceptance-pullrequest-downstream(master)/361586/docker-logs/cloud-10-0-16-6.lax.liferay.com_chrome.log
          [echo]
          [echo] https://test-1-37.liferay.com/userContent/jobs/test-portal-acceptance-pullrequest(master)/builds/17906/functional-tomcat90-mysql57-jdk8/20/23/docker-logs/cloud-10-0-16-6.lax.liferay.com_chrome.log
          [echo] Executing commands:
          [echo] killall chromedriver
          [exec] chromedriver: no process found
          [exec] Result: 1
          [stopwatch] [test.execution.duration: 7:33.159 sec]
          [stopwatch] [run.batch.test.action: 8:16.764 sec]
          [echo] The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1685: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1689: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:50: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:16672: Property custom.default.user.password was circularly defined.
          [get] Getting: ${dependencies.url}/archive/test-1-1/test-portal-acceptance-pullrequest-downstream(master)/361586consoleText
          [get] To: /opt/dev/projects/github/liferay-portal/20240912070058184.txt

        5. functional-tomcat90-mysql57-jdk8/20/24
               [exec] * What went wrong:
          [exec] Execution failed for task ':runPoshi'.
          [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
          [exec]
          [exec] * Try:
          [exec] > Run with --scan to get full insights.
          [exec]
          [exec] BUILD FAILED in 33s
          [exec] Gradle build finished at 2024-09-12 13:56:47.739.
          [exec] 3 actionable tasks: 2 executed, 1 up-to-date
          [exec]
          [exec] See the profiling report at: file:///opt/dev/projects/github/liferay-portal/portal-web/build/reports/profile/profile-2024-09-12-06-56-18.html
          [exec] A fine-grained performance profile is available: use the --scan option.
          [exec] Result: 1
          [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/972542
          [copy] Copying 2 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-downstream(master)/builds/972542/screenshots
          [delete] Deleting: /opt/dev/projects/github/liferay-portal/null147396319.properties

          clean-up-selenium-driver:
          [echo] Executing commands:
          [echo]
          [echo] docker logs test-1-28-38.lax.liferay.com_chrome > /tmp/jenkins/test-1-28/test-portal-acceptance-pullrequest-downstream(master)/972542/docker-logs/test-1-28-38.lax.liferay.com_chrome.log
          [echo]
          [echo] https://test-1-37.liferay.com/userContent/jobs/test-portal-acceptance-pullrequest(master)/builds/17906/functional-tomcat90-mysql57-jdk8/20/24/docker-logs/test-1-28-38.lax.liferay.com_chrome.log
          [echo] Executing commands:
          [echo] killall chromedriver
          [exec] chromedriver: no process found
          [exec] Result: 1
          [stopwatch] [test.execution.duration: 6:22.299 sec]
          [stopwatch] [run.batch.test.action: 6:52.547 sec]
          [echo] The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:373: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1685: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1689: The following error occurred while executing this line:
          [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:38: The following error occurred while executing this line:

        6. ...

        @liferay-continuous-integration
        Copy link
        Collaborator

        @adolfopa
        Copy link
        Collaborator

        ci:forward

        @robertoDiaz
        Copy link
        Collaborator Author

        ci:forward

        @liferay-continuous-integration
        Copy link
        Collaborator

        CI is automatically triggering the following test suites:

        •     ci:test:relevant
        •     ci:test:sf
        •     ci:test:stable

        The pull request will automatically be forwarded to the user brianchandotcom If the following test suites pass:

        •     ci:test:relevant
        •     ci:test:sf
        •     ci:test:stable

        @liferay-continuous-integration
        Copy link
        Collaborator

        Skipping previously passed test suites:

        • ci:test:sf
        • ci:test:stable

        @liferay-continuous-integration
        Copy link
        Collaborator

        ✔️ ci:test:stable - 27 out of 27 jobs passed

        ❌ ci:test:relevant - 146 out of 176 jobs passed in 5 hours 30 minutes

        Click here for more details.

        Base Branch:

        Branch Name: master
        Branch GIT ID: 2af8dabeca08eae444ee911387f043338ec7b2c3

        Upstream Comparison:

        Branch GIT ID: a3b9e6ea8e217048c7b911ca60ce7d4c920611b1
        Jenkins Build URL: EE Development Acceptance (master) - 831 - 2024-09-16[12:59:20]

        ci:test:stable - 27 out of 27 jobs PASSED
        27 Successful Jobs:
          ci:test:relevant - 146 out of 176 jobs PASSED

          30 Failed Jobs:

          146 Successful Jobs:
            For more details click here.

            Failures unique to this pull:

            1. unit-jdk8/0/0
              1. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagInternalServerErrorResponseStatus - UNTESTED
              2. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagLayoutRobots - UNTESTED
              3. com.liferay.taglib.theme.MetaTagsTagTest.testMetaTagsTagLocalizedLayoutRobots - UNTESTED
              4. ...

            @liferay-continuous-integration
            Copy link
            Collaborator

            @robertoDiaz
            Copy link
            Collaborator Author

            ci:report:13709689

            @liferay-continuous-integration
            Copy link
            Collaborator

            Build completed.

            Testray CSV has been generated successfully for testrayBuildID: 13709689.

            Job Link: generate-testray-csv

            Testray CSV Link: testray-results-13709689.csv

            @robertoDiaz
            Copy link
            Collaborator Author

            @adolfopa Test seem unrelated.

            @adolfopa
            Copy link
            Collaborator

            ci:forward:force

            @liferay-continuous-integration
            Copy link
            Collaborator

            CI is automatically triggering the following test suites:

            •     ci:test:relevant
            •     ci:test:sf
            •     ci:test:stable

            The pull request will automatically be forwarded to the user brianchandotcom if the following test suites complete:

            •     ci:test:relevant
            •     ci:test:sf
              AND If the following test suites pass:
            •     ci:test:stable

            @liferay-continuous-integration
            Copy link
            Collaborator

            Skipping previously completed test suites:

            • ci:test:relevant
            • ci:test:sf
              AND Skipping previously passed test suites:
            • ci:test:stable

            @liferay-continuous-integration
            Copy link
            Collaborator

            All required test suite(s) completed.
            Forwarding pull request to brianchandotcom.
            Console

            @liferay-continuous-integration
            Copy link
            Collaborator

            Pull request has been successfully forwarded to brianchandotcom#154328
            Console

            Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
            Projects
            None yet
            Development

            Successfully merging this pull request may close these issues.

            4 participants