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

Breaks tests #2761

Open
2 of 3 tasks
apprehensions opened this issue Mar 19, 2024 · 3 comments
Open
2 of 3 tasks

Breaks tests #2761

apprehensions opened this issue Mar 19, 2024 · 3 comments
Labels

Comments

@apprehensions
Copy link

apprehensions commented Mar 19, 2024

OS/Platform

My actual OS is not present in the bug report template.

Installed

OS/Platform's package manager

Version

122.0.6261.128

Have you tested that this is not an upstream issue or an issue with your configuration?

  • I have tried reproducing this issue in Chrome and it could not be reproduced there
  • I have tried reproducing this issue in vanilla Chromium and it could not be reproduced there
  • I have tried reproducing this issue in ungoogled-chromium with a new and empty profile using --user-data-dir command line argument and it could not be reproduced there

Description

When applying ungoogled-chromium's patchset to a chromium source, it breaks tests

How to Reproduce?

  1. Fetch Chromium and relevant ungoogled patchset for versions 122.0.6261.128
  2. Run <ninja_out>/bld/base_unittests --test-launcher-bot-mode

Actual behaviour

Tests fail.

Expected behaviour

Tests complete without needing a ignore list.

Relevant log output

[6895/6895] All/StatisticsRecorderStarvationTest.StatisticsRecorderNoStarvation/5 (5435 ms)
Retrying 5 tests (retry #0)
[0319/190338.859744:INFO:test_launcher.cc(1192)] Starting [FileUtilTest.PreReadFile_Executable]
[0319/190338.882295:INFO:test_launcher.cc(1192)] Starting [ReadOnlyFileUtilTest.ContentsEqual]
[ RUN      ] FileUtilTest.PreReadFile_Executable
../../base/files/file_util_unittest.cc:4558: Failure
Value of: PreReadFile(test_exe, true)
  Actual: false
Expected: true
[  FAILED  ] FileUtilTest.PreReadFile_Executable (0 ms)
[6896/6900] FileUtilTest.PreReadFile_Executable (0 ms)
[0319/190338.904986:INFO:test_launcher.cc(1192)] Starting [StringUtilTest.MatchPatternTest]
[ RUN      ] ReadOnlyFileUtilTest.ContentsEqual
../../base/files/file_util_unittest.cc:2746: Failure
Value of: ContentsEqual(binary_file, binary_file_same)
  Actual: false
Expected: true
[  FAILED  ] ReadOnlyFileUtilTest.ContentsEqual (0 ms)
[6897/6900] ReadOnlyFileUtilTest.ContentsEqual (0 ms)
[0319/190338.927542:INFO:test_launcher.cc(1192)] Starting [AlternateBucketDistribution/PartitionAllocThreadCacheTest.Bookkeeping/0]
[ RUN      ] StringUtilTest.MatchPatternTest
../../base/strings/pattern_unittest.cc:12: Failure
Value of: MatchPattern("www.9oo91e.qjz9zk", "*.com")
  Actual: false
Expected: true
../../base/strings/pattern_unittest.cc:40: Failure
Value of: MatchPattern(u"www.9oo91e.qjz9zk", u"*.com")
  Actual: false
Expected: true
[  FAILED  ] StringUtilTest.MatchPatternTest (0 ms)
[6898/6900] StringUtilTest.MatchPatternTest (0 ms)
[0319/190338.950140:INFO:test_launcher.cc(1192)] Starting [AlternateBucketDistribution/PartitionAllocThreadCacheTest.Bookkeeping/1]
[6899/6900] AlternateBucketDistribution/PartitionAllocThreadCacheTest.Bookkeeping/0 (0 ms)
[6900/6900] AlternateBucketDistribution/PartitionAllocThreadCacheTest.Bookkeeping/1 (0 ms)
3 tests failed:
    FileUtilTest.PreReadFile_Executable (../../base/files/file_util_unittest.cc:4548)
    ReadOnlyFileUtilTest.ContentsEqual (../../base/files/file_util_unittest.cc:2704)
    StringUtilTest.MatchPatternTest (../../base/strings/pattern_unittest.cc:11)
Tests took 36 seconds.
>>> ERROR: ungoogled-chromium: check failed
>>> ungoogled-chromium: Uninstalling dependencies...

Additional context

I am using Alpine, and building from source.

@networkException
Copy link
Member

Whats your goal with this? Do you want to see if ungoogled still passes all tests to catch us introducing bugs?

I guess we can adjust domain substitution to ignore tests

@apprehensions
Copy link
Author

Whats your goal with this?

My goal for this issue request is to not require the need for ignoring tests that ungoogled-chromium breaks, making it easier for people to build ungoogled-chromium (i waited foo hours just to see it fail due to tests) using their package managers.

@PF4Public
Copy link
Contributor

to not require the need for ignoring tests that ungoogled-chromium breaks, making it easier for people to build ungoogled-chromium (i waited foo hours just to see it fail due to tests) using their package managers

Those two goals are mutually exclusive. As per building instructions for ungoogled-chromium one isn't supposed to run tests. If you're using ungoogled-chromium patches within your other workflow, you're expected to adapt it, say exclude tests for example.

Not breaking tests is admittedly a noble goal. It might however have impact on maintainability of ungoogled-chromium.

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

No branches or pull requests

3 participants