Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Clang-tidy: Fixed math on shard-id validator. #37433

Merged
merged 5 commits into from
Nov 8, 2022

Conversation

gaaclarke
Copy link
Member

fixes failure: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8798099822610209889/+/u/test:_lint_host_debug/stdout

That resulted in revert: https://flutter-review.git.corp.google.com/c/recipes/+/35742

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@gaaclarke gaaclarke requested a review from zanderso November 8, 2022 17:43
@gaaclarke
Copy link
Member Author

Copy link
Contributor

@cyanglaz cyanglaz left a comment

Choose a reason for hiding this comment

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

LGTM

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Nov 8, 2022

auto label is removed for flutter/engine, pr: 37433, due to - The status or check suite Linux Unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@zanderso
Copy link
Member

zanderso commented Nov 8, 2022

One of the new tests is failing.

@gaaclarke
Copy link
Member Author

One of the new tests is failing.

Great, works locally. Digging in...

@gaaclarke
Copy link
Member Author

gaaclarke commented Nov 8, 2022

Updated the tests to just operate on Options. There was some git command run by the tool that happened to work locally, but didn't remotely.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Nov 8, 2022

auto label is removed for flutter/engine, pr: 37433, due to - The status or check suite Mac Unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@gaaclarke
Copy link
Member Author

Looks like the test is being run on the bot with a non existent path for compile_commands.json:

Test "shard-id valid": Failed
In test "shard-id valid" Expect.isNull(actual: <ERROR: Build commands path /Volumes/Work/s/w/ir/cache/builder/src/out/host_debug/compile_commands.json doesn't exist.>) fails.
#0      Expect._fail (package:expect/expect.dart:698:5)
#1      Expect.isNull (package:expect/expect.dart:143:5)
#2      isNull (package:async_helper/async_minitest.dart:215:10)
#3      expect (package:async_helper/async_minitest.dart:70:4)
#4      main.<anonymous closure> (file:///Volumes/Work/s/w/ir/cache/builder/src/flutter/tools/clang_tidy/test/clang_tidy_test.dart:125:5)
#5      Test.run.<anonymous closure>.<anonymous closure> (package:litetest/src/test.dart:69:21)
#6      new Future.<anonymous closure> (dart:async/future.dart:253:37)
#7      _rootRun (dart:async/zone.dart:1390:47)
#8      _CustomZone.run (dart:async/zone.dart:1300:19)
#9      _CustomZone.runGuarded (dart:async/zone.dart:1208:7)
#10     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1248:23)
#11     _rootRun (dart:async/zone.dart:1398:13)
#12     _CustomZone.run (dart:async/zone.dart:1300:19)
#13     _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:1232:23)
#14     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:193:26)

I'm going for a walk and I'll come back to figure something out.

@gaaclarke
Copy link
Member Author

Turns out the CI bot runs the tests differently than how it is documented they should be run locally. I've removed the x factor from the test and should pass in both places now.

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Nov 8, 2022

auto label is removed for flutter/engine, pr: 37433, due to - The status or check suite Linux Unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@gaaclarke
Copy link
Member Author

oh my god, how many walls am I going to run into... fixed the format error

@gaaclarke gaaclarke added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 8, 2022
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #37433 at sha 5a77b8a

@gaaclarke
Copy link
Member Author

I'm landing, ignoring the flutter-gold check. There is no way the changes are related. I've notified the team and flutter gold expert.

@gaaclarke gaaclarke merged commit 583c71c into flutter:main Nov 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Nov 9, 2022
Clang-tidy: Fixed math on shard-id validator.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 9, 2022
…115025)

* 6daa75ad4 Roll Skia from 0c8127b3dd7d to 6a056a26b3c5 (16 revisions) (flutter/engine#37438)

* 6517ee8ee Roll Skia from 6a056a26b3c5 to 3cecb22c5827 (1 revision) (flutter/engine#37439)

* c1200c44f Sdk roll failure - add facet to allowlist test_manager and other packages. (flutter/engine#37395)

* 179154ec1 Revert "Sdk roll failure - add facet to allowlist test_manager and other packages. (#37395)" (flutter/engine#37449)

* c171f27c4 Revert "Add rects to accumulator rather than bounds (#37435)" (flutter/engine#37444)

* 583c71ce4 Clang-tidy: Fixed math on shard-id validator. (flutter/engine#37433)

* d224648fc Roll Skia from 3cecb22c5827 to 94450cd1df4e (4 revisions) (flutter/engine#37445)

* 5df42a87b Oops, accidentally compiled the non-null-safe platform file as null safe. (flutter/engine#37453)

* 05455ac0a Roll Skia from 94450cd1df4e to 22526b55be02 (6 revisions) (flutter/engine#37455)

* 9628070ee Roll Skia from 22526b55be02 to 511aa59461f3 (1 revision) (flutter/engine#37458)

* fc7293441 [Impeller] Don't double-convert include path encodings in ImpellerC (flutter/engine#37408)

* d82a2df8a Roll Skia from 511aa59461f3 to 790aedd91cd8 (2 revisions) (flutter/engine#37463)

* be54e3ea0 Roll Skia from 790aedd91cd8 to fe143a0dc368 (3 revisions) (flutter/engine#37467)

* 410f270e6 Roll Dart SDK from c15cdb978761 to 874a662f7507 (3 revisions) (flutter/engine#37466)

* e778ca4e0 Roll Fuchsia Mac SDK from d4l6A1aPw6Z0YjxmA... to vEw8iuSZYmlfk1JiE... (flutter/engine#37468)

* f8048be39 [Reland] Add rects to accumulator rather than bounds (#37435) (flutter/engine#37451)

* 214b84137 Roll Dart SDK from 874a662f7507 to 4fcefaf03496 (1 revision) (flutter/engine#37470)

* 8ecb1c913 [macOS] Remove OpenGL rendering backend (flutter/engine#37448)

* 1a8888b51 Roll Skia from fe143a0dc368 to 0854badd5783 (1 revision) (flutter/engine#37471)

* ca303bfd4 Roll Dart SDK from 4fcefaf03496 to fa6586382e5d (1 revision) (flutter/engine#37473)

* 5d0df764b Use traingle strip for difference clip (flutter/engine#37469)

* eeba9b3c8 Support HLSL ingestion in ImpellerC (flutter/engine#37461)

* 5f88ee42b Use IndexError.check instead of RangeError.checkValidIndex in buffers. (flutter/engine#37450)

* b65ac4ac4 Roll expat to 2.5.0 (flutter/engine#37383)

* ddde8300e [sdk_roll_failure] add facet to allowlist test_manager and other packages. (flutter/engine#37479)

* 62b581ee0 Roll CanvasKit to 0.37.1 (flutter/engine#37454)

* aa4b3ea2f Turned on performance-unnecessary-value-param everywhere. (flutter/engine#37447)
schwa423 pushed a commit to schwa423/engine that referenced this pull request Nov 16, 2022
Clang-tidy: Fixed math on shard-id validator.
godofredoc added a commit that referenced this pull request Nov 16, 2022
* clang-tidy: added the ability to shard jobs (#37265)

* clang-tidy: added the ability to shard jobs

* added test

* jenn feedback

* hack ci to run as a shard to measure the time

* tweak

* fix hack

* zach feedback

* zach feedback 2

* removed stray async

* moved to using sets for lookups

* fixed typo in docstring

* Revert "fix hack"

This reverts commit 06a61a6.

Revert "tweak"

This reverts commit e7c58b1.

Revert "hack ci to run as a shard to measure the time"

This reverts commit e458963.

* removed calls to map

* turned the ci hack back on

* Revert "turned the ci hack back on"

This reverts commit 0d53794.

* removed sync*

* Clang-tidy: Fixed math on shard-id validator. (#37433)

Clang-tidy: Fixed math on shard-id validator.

* Felt analyze (#37481)

* Adding `felt analyze` command that CI will run.

* Remove some copypasta'd stuff.

* Also remove code path from felt.dart that forces a rebuild if it doesn't
detect the host_debug_unopt directory.

* More cleanup of felt.bat for CI.

* Fix typo in felt.bat.

* Run pub get before building host.dart. (#37502)

* Run pub get before building host.dart.

* We should call `pub get` for `web_ui` in the launcher script because
felt itself needs it. However, we should let felt invoke `pub get` on
`web_engine_tester` only as needed, not in the launcher script.

* Skip the skwasm unit test suite on Safari since it is flaky. (#37602)

* Skip the skwasm unit test suite on Safari since it is flaky.

* Add TODO.

* Remove felt snapshotting behavior. (#37639)

* Remove felt snapshotting behavior.

* Use `dart run`.

* Combine results of all the test batches. (#37610)

* Combine results of all the test batches.

* Skip regressions

* Use bool instead

* remove unused var

* skip fragment_program_test

* Also skip GL context lost test

* Transparent background test fails on Firefox and Safari

* Skip other test in safari

* Skip text test on firefox

Co-authored-by: gaaclarke <[email protected]>
Co-authored-by: Jackson Gardner <[email protected]>
Co-authored-by: Harry Terkelsen <[email protected]>
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#115025)

* 6daa75ad4 Roll Skia from 0c8127b3dd7d to 6a056a26b3c5 (16 revisions) (flutter/engine#37438)

* 6517ee8ee Roll Skia from 6a056a26b3c5 to 3cecb22c5827 (1 revision) (flutter/engine#37439)

* c1200c44f Sdk roll failure - add facet to allowlist test_manager and other packages. (flutter/engine#37395)

* 179154ec1 Revert "Sdk roll failure - add facet to allowlist test_manager and other packages. (flutter#37395)" (flutter/engine#37449)

* c171f27c4 Revert "Add rects to accumulator rather than bounds (flutter#37435)" (flutter/engine#37444)

* 583c71ce4 Clang-tidy: Fixed math on shard-id validator. (flutter/engine#37433)

* d224648fc Roll Skia from 3cecb22c5827 to 94450cd1df4e (4 revisions) (flutter/engine#37445)

* 5df42a87b Oops, accidentally compiled the non-null-safe platform file as null safe. (flutter/engine#37453)

* 05455ac0a Roll Skia from 94450cd1df4e to 22526b55be02 (6 revisions) (flutter/engine#37455)

* 9628070ee Roll Skia from 22526b55be02 to 511aa59461f3 (1 revision) (flutter/engine#37458)

* fc7293441 [Impeller] Don't double-convert include path encodings in ImpellerC (flutter/engine#37408)

* d82a2df8a Roll Skia from 511aa59461f3 to 790aedd91cd8 (2 revisions) (flutter/engine#37463)

* be54e3ea0 Roll Skia from 790aedd91cd8 to fe143a0dc368 (3 revisions) (flutter/engine#37467)

* 410f270e6 Roll Dart SDK from c15cdb978761 to 874a662f7507 (3 revisions) (flutter/engine#37466)

* e778ca4e0 Roll Fuchsia Mac SDK from d4l6A1aPw6Z0YjxmA... to vEw8iuSZYmlfk1JiE... (flutter/engine#37468)

* f8048be39 [Reland] Add rects to accumulator rather than bounds (flutter#37435) (flutter/engine#37451)

* 214b84137 Roll Dart SDK from 874a662f7507 to 4fcefaf03496 (1 revision) (flutter/engine#37470)

* 8ecb1c913 [macOS] Remove OpenGL rendering backend (flutter/engine#37448)

* 1a8888b51 Roll Skia from fe143a0dc368 to 0854badd5783 (1 revision) (flutter/engine#37471)

* ca303bfd4 Roll Dart SDK from 4fcefaf03496 to fa6586382e5d (1 revision) (flutter/engine#37473)

* 5d0df764b Use traingle strip for difference clip (flutter/engine#37469)

* eeba9b3c8 Support HLSL ingestion in ImpellerC (flutter/engine#37461)

* 5f88ee42b Use IndexError.check instead of RangeError.checkValidIndex in buffers. (flutter/engine#37450)

* b65ac4ac4 Roll expat to 2.5.0 (flutter/engine#37383)

* ddde8300e [sdk_roll_failure] add facet to allowlist test_manager and other packages. (flutter/engine#37479)

* 62b581ee0 Roll CanvasKit to 0.37.1 (flutter/engine#37454)

* aa4b3ea2f Turned on performance-unnecessary-value-param everywhere. (flutter/engine#37447)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…lutter#115025)

* 6daa75ad4 Roll Skia from 0c8127b3dd7d to 6a056a26b3c5 (16 revisions) (flutter/engine#37438)

* 6517ee8ee Roll Skia from 6a056a26b3c5 to 3cecb22c5827 (1 revision) (flutter/engine#37439)

* c1200c44f Sdk roll failure - add facet to allowlist test_manager and other packages. (flutter/engine#37395)

* 179154ec1 Revert "Sdk roll failure - add facet to allowlist test_manager and other packages. (flutter#37395)" (flutter/engine#37449)

* c171f27c4 Revert "Add rects to accumulator rather than bounds (flutter#37435)" (flutter/engine#37444)

* 583c71ce4 Clang-tidy: Fixed math on shard-id validator. (flutter/engine#37433)

* d224648fc Roll Skia from 3cecb22c5827 to 94450cd1df4e (4 revisions) (flutter/engine#37445)

* 5df42a87b Oops, accidentally compiled the non-null-safe platform file as null safe. (flutter/engine#37453)

* 05455ac0a Roll Skia from 94450cd1df4e to 22526b55be02 (6 revisions) (flutter/engine#37455)

* 9628070ee Roll Skia from 22526b55be02 to 511aa59461f3 (1 revision) (flutter/engine#37458)

* fc7293441 [Impeller] Don't double-convert include path encodings in ImpellerC (flutter/engine#37408)

* d82a2df8a Roll Skia from 511aa59461f3 to 790aedd91cd8 (2 revisions) (flutter/engine#37463)

* be54e3ea0 Roll Skia from 790aedd91cd8 to fe143a0dc368 (3 revisions) (flutter/engine#37467)

* 410f270e6 Roll Dart SDK from c15cdb978761 to 874a662f7507 (3 revisions) (flutter/engine#37466)

* e778ca4e0 Roll Fuchsia Mac SDK from d4l6A1aPw6Z0YjxmA... to vEw8iuSZYmlfk1JiE... (flutter/engine#37468)

* f8048be39 [Reland] Add rects to accumulator rather than bounds (flutter#37435) (flutter/engine#37451)

* 214b84137 Roll Dart SDK from 874a662f7507 to 4fcefaf03496 (1 revision) (flutter/engine#37470)

* 8ecb1c913 [macOS] Remove OpenGL rendering backend (flutter/engine#37448)

* 1a8888b51 Roll Skia from fe143a0dc368 to 0854badd5783 (1 revision) (flutter/engine#37471)

* ca303bfd4 Roll Dart SDK from 4fcefaf03496 to fa6586382e5d (1 revision) (flutter/engine#37473)

* 5d0df764b Use traingle strip for difference clip (flutter/engine#37469)

* eeba9b3c8 Support HLSL ingestion in ImpellerC (flutter/engine#37461)

* 5f88ee42b Use IndexError.check instead of RangeError.checkValidIndex in buffers. (flutter/engine#37450)

* b65ac4ac4 Roll expat to 2.5.0 (flutter/engine#37383)

* ddde8300e [sdk_roll_failure] add facet to allowlist test_manager and other packages. (flutter/engine#37479)

* 62b581ee0 Roll CanvasKit to 0.37.1 (flutter/engine#37454)

* aa4b3ea2f Turned on performance-unnecessary-value-param everywhere. (flutter/engine#37447)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App will affect goldens
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants