Skip to content

Conversation

@darrenaustin
Copy link
Contributor

@darrenaustin darrenaustin commented Jul 7, 2021

Part of #84014.

This migrates the core framework parts of the devicelab code. It doesn't turn on sound null safety for running the tasks yet. It just allows other parts of the devicelab code to run with null safety when they are migrated.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@justinmc justinmc left a comment

Choose a reason for hiding this comment

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

LGTM, but take a look at my comments in case I caught anything small.

@Hixie
Copy link
Contributor

Hixie commented Jul 8, 2021

test-exempt: refactor with no semantic change

@darrenaustin darrenaustin merged commit 2175e64 into flutter:master Jul 12, 2021
@darrenaustin darrenaustin deleted the null_devicelab_core branch July 12, 2021 01:36
@darrenaustin darrenaustin restored the null_devicelab_core branch July 12, 2021 06:17
darrenaustin added a commit that referenced this pull request Jul 12, 2021
@whesse
Copy link
Contributor

whesse commented Jul 12, 2021

When running benchmarks on triple-headed builds (tip-of-tree of framework, engine, and Dart SDK), the gitBranch parameter is null.
Upload to cocoon is a separate step in the drone recipe, that only runs if an builder property is set, and so only runs when this is non-null. But there are runs of the drone recipe that only upload the results file to CAS, with a null gitBranch (CommitBranch in the json).

So: the assert non-null in cocoon.dart:118 is incorrect, but was never run in production
The gitBranch parameter must be nullable in writeTaskResultToFile

The check of gitBranch for non-null added in line 45 should not be added.

An example of a build uploading json with a null value for CommitBranch is
https://luci-milo.appspot.com/ui/p/flutter/builders/try/Linux_staging%20hot_mode_dev_cycle_linux__benchmark/232
and the uploaded json can be seen through the CAS UI on the upload to cas step.

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

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants