Skip to content

Conversation

@Ilie-Lesan
Copy link
Contributor

Resolves: brave/brave-browser#41436

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@Ilie-Lesan Ilie-Lesan requested a review from a team as a code owner October 7, 2024 08:30
@goodov
Copy link
Member

goodov commented Oct 8, 2024

+ npm run presubmit
Running presubmit upload checks ...
  checking for commit objects in tree took a long time: 0.6s
** Presubmit Messages: 1 **
-------------------------
[Info] chromium_src:
Located 12 #define statements.
** Presubmit ERRORS: 1 **
The brave directory requires source formatting. Please run: npm run presubmit -- --fix.
--- chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc  (before formatting)
+++ chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc  (after formatting)
@@ -3,5 +3,6 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  * You can obtain one at https://mozilla.org/MPL/2.0/. */
+#include "src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc"
+
 #include "brave/browser/ui/views/tabs/brave_tab_hover_card_controller.h"
-#include "src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc"
Presubmit checks took 2.6s to calculate.
There were presubmit errors.
null
Process exited with code 1

@Ilie-Lesan
Copy link
Contributor Author

@goodov Fixed. Thanks!

@goodov
Copy link
Member

goodov commented Oct 9, 2024

@goodov Fixed. Thanks!

ah, you tried to fix the build failure by adding a specific header, but the include ordering wanted the different order, I missed that, sorry. One of the option to keep the order of includes is to add a comment before the #include line. This way the reordering shouldn't happen.

If you want to restore the original impl, but add a comment to keep the includes order exact, please do, otherwise we can go with a define.

@Ilie-Lesan
Copy link
Contributor Author

@goodov Fixed. Thanks!

ah, you tried to fix the build failure by adding a specific header, but the include ordering wanted the different order, I missed that, sorry. One of the option to keep the order of includes is to add a comment before the #include line. This way the reordering shouldn't happen.

If you want to restore the original impl, but add a comment to keep the includes order exact, please do, otherwise we can go with a define.

I think is ok to keep it as it is right now.

@goodov
Copy link
Member

goodov commented Oct 10, 2024

well, now we have this. maybe restoring to the includes approach will be better.

pls run npm run presubmit locally to make sure nothing else pops up.

+ npm run presubmit
Running presubmit upload checks ...
  checking for commit objects in tree took a long time: 0.6s
** Presubmit Messages: 1 **
-------------------------
[Info] chromium_src:
Located 13 #define statements.
** Presubmit ERRORS: 1 **
-------------------------
[Error] chromium_src:
  Override chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc
  defines symbol TabHoverCardController but the symbol could not be found in
  /home/ubuntu/workspace/teamcity/work/contributor-Ilie-Lesan-fix-interactive-ui-tests-build/src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc
  and is not used internally in the override.
Presubmit checks took 2.5s to calculate.
There were presubmit errors.
null
Process exited with code 1

@Ilie-Lesan
Copy link
Contributor Author

well, now we have this. maybe restoring to the includes approach will be better.

pls run npm run presubmit locally to make sure nothing else pops up.

+ npm run presubmit
Running presubmit upload checks ...
  checking for commit objects in tree took a long time: 0.6s
** Presubmit Messages: 1 **
-------------------------
[Info] chromium_src:
Located 13 #define statements.
** Presubmit ERRORS: 1 **
-------------------------
[Error] chromium_src:
  Override chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc
  defines symbol TabHoverCardController but the symbol could not be found in
  /home/ubuntu/workspace/teamcity/work/contributor-Ilie-Lesan-fix-interactive-ui-tests-build/src/chrome/browser/ui/views/tabs/tab_hover_card_controller_interactive_uitest.cc
  and is not used internally in the override.
Presubmit checks took 2.5s to calculate.
There were presubmit errors.
null
Process exited with code 1

I think I've run the npm run presubmit -- --fix command locally before pushing and everything looked fine. I will add the old impl(with the comments added) anyway. Thanks!

#define BlockFirstTopicOnManageTopicsPage \
DISABLED_BlockFirstTopicOnManageTopicsPage
#define UnblockOneTopicOnAdTopicsPage DISABLED_UnblockOneTopicOnAdTopicsPage
#define ConfirmDefaultIconIsNotUsed DISABLED_ConfirmDefaultIconIsNotUsed
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I don't see how these defines are related to tests build.

we have *.filter files to disable upstream tests, so we shouldn't disable them via defines here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the kPrivacySandboxManageTopicsURL and kPrivacySandboxAdTopicsURL pages are not available in Brave, and those added by me are just for fixing the build, I wanted to disable these tests. Disabling the tests via a config file is much better. Thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls remove these defines, let's only fix the build with your PR. I'd like to merge it, but this is not something we should have here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goodov Done. Thanks!

@mihaiplesa
Copy link
Collaborator

Should this be closed or still of interest?

@goodov
Copy link
Member

goodov commented Oct 6, 2025

we don't run interactive tests, so it is non priority for us. If the author wants this to be landed, then it needs to be rebased and updated to match our current chromium_src overrides.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Interactive ui tests build is broken

3 participants