Skip to content

Fix tools test verifyVersion() regex - #41744

Merged
christopherfujino merged 6 commits into
flutter:masterfrom
chris-forks:fix-tools-test-on-hotfix-branch
Oct 2, 2019
Merged

Fix tools test verifyVersion() regex#41744
christopherfujino merged 6 commits into
flutter:masterfrom
chris-forks:fix-tools-test-on-hotfix-branch

Conversation

@christopherfujino

@christopherfujino christopherfujino commented Oct 1, 2019

Copy link
Copy Markdown
Contributor

Description

Prior to this, hotfix branches would fail tools tests on pre-submit because they didn't match the version check regex.

Related Issues

#41310

Tests

Added a unit test for the verifyVersion() method. @dnfield do you by any chance know if the tests in flutter/dev/bots/test ever get run (it looks to me like they don't). And I don't know that it's worth running them in Cirrus; here I added tasks for windows/linux/mac that only run if flutter/dev/bots/** were changed.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@fluttergithubbot fluttergithubbot added c: contributor-productivity Team-specific productivity, code health, technical debt. work in progress; do not review labels Oct 1, 2019
@christopherfujino
christopherfujino marked this pull request as ready for review October 1, 2019 23:46
Comment thread .cirrus.yml Outdated
- name: bots_tests-windows
skip: "!changesInclude('dev/bots/**')"
test_script:
- (cd ./dev/bots && pub run test)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This gets me every time

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yep, I fixed it and the test passed.

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@christopherfujino
christopherfujino merged commit e70236e into flutter:master Oct 2, 2019
@christopherfujino
christopherfujino deleted the fix-tools-test-on-hotfix-branch branch October 2, 2019 16:32
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 4, 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.

4 participants