Skip to content

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Apr 17, 2020

Fixes #27574

Validates that flutter_tester --help gives us a Flutter Engine Version that matches the contents of bin/internal/engine.version. This is meant to guard against regressions in the recipe scripts where we accidentally upload a revision to the wrong bucket folder.

@fluttergithubbot fluttergithubbot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Apr 17, 2020
@fluttergithubbot
Copy link
Contributor

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.

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

@dnfield
Copy link
Contributor Author

dnfield commented Apr 17, 2020

The bot is confused because this PR doesn't modify a _test.dart file, but this does in fact add a test.


final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}';
final String relativeWorkingDir = path.relative(workingDirectory);
final String relativeWorkingDir = path.relative(workingDirectory ?? Directory.current.path);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This throws right now if someone calls it without specifying a working directory. If that's intended, we can change this to be an @required param, but I think this makes sense.

Copy link
Contributor

@digiter digiter left a comment

Choose a reason for hiding this comment

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

LGTM

@jonahwilliams
Copy link
Contributor

This is a good addition, but this only handles the upload side of #27574. The tool would also like to validate the cache contents after downloading

@dnfield
Copy link
Contributor Author

dnfield commented Apr 17, 2020

@jonahwilliams isn't this running after we download the artifacts again?

@dnfield dnfield merged commit 98651c0 into flutter:master Apr 17, 2020
@dnfield dnfield deleted the test_test branch April 17, 2020 23:30
@dnfield
Copy link
Contributor Author

dnfield commented Apr 17, 2020

If there's more work you want to do for the linked bug we can reopen it

@alexmarkov
Copy link
Contributor

This change broke Flutter-engine-Dart head-head-head bot:

Running smoketests...
▌10:18:29▐ RUNNING: cd .; bin/cache/artifacts/engine/linux-x64/flutter_tester --help
▌10:18:29▐ ELAPSED TIME: 0.058s for bin/cache/artifacts/engine/linux-x64/flutter_tester --help in .
Expected "Flutter Engine Version: 2b75c6d111f768b349311884212fc50b454b921d", but found "Flutter Engine Version: 189ec1e7c43030f67a6323cd743bd449d2719eab".

This might be because HHH bot replaces certain parts of Flutter (e.g. flutter/bin/cache/dart-sdk) with a version built from sources (at HEAD).

@dnfield
Copy link
Contributor Author

dnfield commented Apr 20, 2020

Maybe we could add a flag for the bot to bypass this check... Why doesn't the bot just use the local-engine flag though? Modifying the cache seems dangerous

dnfield added a commit that referenced this pull request Apr 20, 2020
dnfield added a commit that referenced this pull request Apr 20, 2020
dnfield added a commit to dnfield/flutter that referenced this pull request Apr 20, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter engine artifacts version mismatch

6 participants