flutter/docs/infra/Security.md
Kate Lovett 7d891907e3
[wiki migration] Infra team pages (#148718)
This sorts the wiki pages owned by the Infra team in the docs/ directory as planned in [flutter.dev/go/migrate-flutter-wiki-spreadsheet](https://docs.google.com/spreadsheets/d/1x65189ZBdNiLRygpUYoU08pwvXD4M-Z157c6pm8deGI/edit?usp=sharing) 

It also adds the team-infra label to the bot for future PRs.

Image assets were checked in here: https://github.com/flutter/assets-for-api-docs/pull/246

Changes to the content were only updating links. The remaining wiki links will be updated after the rest of the pages are relocated, the original wiki links still work in the meantime.

Part of https://github.com/flutter/flutter/issues/145009
2024-05-21 18:17:10 +00:00

23 lines
1.5 KiB
Markdown

## Best Practices
### Runtime assertions
Unopt builds use [FML_DCHECK](https://cs.opensource.google/flutter/engine/+/master:fml/logging.h;l=86?q=FML_DCHECK&ss=flutter%2Fengine) to enable assertion checks across the engine repository. Assertions on dependencies like Dart VM or Skia are not enabled because local and CI builds would be extremely slow.
Unopt builds are not published or consumed by the flutter/flutter CI to run integration tests or benchmarks.
### Sanitizers
[flutter/engine](https://github.com/flutter/engine) supports thread, address, memory, undefined behavior and leak sanitizers. Sanitizers are not enabled by default but they can be enabled on local builds following the [sanitizers with the flutter engine](https://github.com/flutter/flutter/wiki/Using-Sanitizers-with-the-Flutter-Engine) instructions.
### Builds with sanitizers, and tests with assertions enabled
[flutter/engine](https://github.com/flutter/engine) runs automated builds with sanitizers and testing with assertions. Testing with assertions is enabled in all the supported platforms and sanitizers are enabled only on the Linux platform.
Sanitizer builds:
* [Linux unopt](https://ci.chromium.org/p/flutter/builders/prod/Linux%20Unopt)
Tests with assertions enabled:
* [Linux unopt](https://ci.chromium.org/p/flutter/builders/prod/Linux%20Unopt)
* [Mac unopt](https://ci.chromium.org/p/flutter/builders/prod/Linux%20mac_unopt)
* [Windows unopt](https://ci.chromium.org/p/flutter/builders/prod/Windows%20Unopt)