X Tutup
The Wayback Machine - https://web.archive.org/web/20210508202719/https://github.com/flutter/flutter/pull/79396
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dev/ci.yaml #79396

Merged
merged 7 commits into from Apr 2, 2021
Merged

Create dev/ci.yaml #79396

merged 7 commits into from Apr 2, 2021

Conversation

@CaseyHillers
Copy link
Contributor

@CaseyHillers CaseyHillers commented Mar 30, 2021

Bringup the Cocoon scheduler file to start bootstrapping the scheduler. To get started, it will schedule a linux analyze task and surface it in the dashboard.

Temporarily adding myself as codeowner until this available for prod use.

Issues

#76140

Tests

No tests added as this is a config file. Future work is to bring up presubmit check against this file.

Locally validate with the validation script in cocoon.

dart $COCOON/app_dart/bin/validate_scheduler_config.dart $FLUTTER/.ci.yaml

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], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
  • All existing and new tests are passing.
@CaseyHillers CaseyHillers requested a review from jmagman as a code owner Mar 30, 2021
@google-cla google-cla bot added the cla: yes label Mar 30, 2021
CODEOWNERS Outdated
@@ -8,6 +8,7 @@

/CODEOWNERS @jmagman
/dev/ci/ @christopherfujino
/dev/ci.yaml @caseyhillers

This comment has been minimized.

@christopherfujino

christopherfujino Mar 30, 2021
Contributor

can you place this as /.ci.yaml? the goal being easier discoverability by developers (this is also parity with what we had/have with cirrus)

This comment has been minimized.

@CaseyHillers

CaseyHillers Mar 30, 2021
Author Contributor

Done. This is the best location as Cocoon doesn't need to track for every repo where the config exists

This comment has been minimized.

@christopherfujino

christopherfujino Mar 30, 2021
Contributor

yeah, in my single recipe doc i specified that the recipe would always look in the same place for the file

@@ -0,0 +1,32 @@
# Describes the targets run in continuous integration environment.

This comment has been minimized.

@christopherfujino

christopherfujino Mar 30, 2021
Contributor

  1. does this need a license comment?
  2. I'd prefer a link to a doc in the cocoon source tree (or anywhere, as long as there is only one). this schema is bound to change :)

This comment has been minimized.

@CaseyHillers

CaseyHillers Mar 30, 2021
Author Contributor

  1. I looked at cirrus and devicelab yaml files and didn't see license headers, so I didn't include one here
  2. That's a good point (make it easier to copy this config to other repos). For now, is it okay to leave this in and later this week I can add documentation in Cocoon on the configs?

This comment has been minimized.

CODEOWNERS Outdated
@@ -6,6 +6,7 @@
#
# Use git ls-files '<pattern>' without a / prefix to see the list of matching files.

/.ci.yaml @caseyhillers

This comment has been minimized.

@godofredoc

godofredoc Mar 30, 2021
Contributor

Can we add a group rather than a person? if not possible can we add at least one more person?

This comment has been minimized.

@CaseyHillers

CaseyHillers Mar 30, 2021
Author Contributor

I believe we can (support forum) but we'd need a Flutter infra team in the flutter organization.

Do you know who we should talk to about creating that team?

This comment has been minimized.

@christopherfujino

christopherfujino Mar 31, 2021
Contributor

cc @kf6gpe regarding creating a team under the Flutter github org

This comment has been minimized.

@CaseyHillers

CaseyHillers Mar 31, 2021
Author Contributor

For now, I added Chris since he'll be working on the single recipe builds in this file.

While we're at it, should we create subteams for the other teams as well?

This comment has been minimized.

@jmagman

jmagman Apr 1, 2021
Member

I think you can put them in the same line.

/.ci.yaml @caseyhillers @christopherfujino
# Child targets can reuse artifacts from parent targets.
# * properties: Map<String, String> of properties to pass to recipe
enabled_branches:
- master

This comment has been minimized.

@godofredoc

godofredoc Mar 30, 2021
Contributor

How will this work for builders that run only on a subset of branches?

This comment has been minimized.

@CaseyHillers

CaseyHillers Mar 30, 2021
Author Contributor

I need to sync up with @christopherfujino on this more, but we may need to duplicate the enabled_branches property into the target so it can override what it runs on. As we look into. bringing up the scheduler for that use case we can revisit

This comment has been minimized.

@CaseyHillers

CaseyHillers Apr 1, 2021
Author Contributor

We decided there will be these global values, but targets will be able to override what is globally set

Copy link
Contributor

@christopherfujino christopherfujino left a comment

LGTM

@fluttergithubbot fluttergithubbot merged commit 8743f94 into flutter:master Apr 2, 2021
25 checks passed
25 checks passed
@flutter-github-sync
Google testing Google testing passed!
Details
@flutter-dashboard
Linux analyze
Details
@flutter-dashboard
Linux build_tests_1_2
Details
@flutter-dashboard
Linux build_tests_2_2
Details
@flutter-dashboard
Linux customer_testing
Details
@flutter-dashboard
Linux firebase_abstract_method_smoke_test
Details
@flutter-dashboard
Linux firebase_android_embedding_v2_smoke_test
Details
@flutter-dashboard
Linux firebase_release_smoke_test
Details
@flutter-dashboard
Linux flutter_plugins
Details
@flutter-dashboard
Linux fuchsia_precache
Details
@flutter-dashboard
Mac build_tests_1_4
Details
@flutter-dashboard
Mac build_tests_2_4
Details
@flutter-dashboard
Mac build_tests_3_4
Details
@flutter-dashboard
Mac build_tests_4_4
Details
@flutter-dashboard
Mac customer_testing
Details
@wip
WIP Ready for review
Details
@flutter-dashboard
Windows build_tests_1_3
Details
@flutter-dashboard
Windows build_tests_2_3
Details
@flutter-dashboard
Windows build_tests_3_3
Details
@flutter-dashboard
Windows customer_testing
Details
@cirrus-ci
analyze-linux Task Summary
Details
@google-cla
cla/google All necessary CLAs are signed
@cirrus-ci
customer_testing-linux Task Summary
Details
@cirrus-ci
docs-linux Task Summary
Details
@flutter-dashboard
flutter-build
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
X Tutup