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

Mac test ignoring os field on prod task, ran on newer version of macOS #99087

Closed
jmagman opened this issue Feb 24, 2022 · 13 comments
Closed

Mac test ignoring os field on prod task, ran on newer version of macOS #99087

jmagman opened this issue Feb 24, 2022 · 13 comments
Assignees
Labels
P0 Critical issues such as a build break or regression team Infra upgrades, team productivity, code health, technical debt. See also team: labels. team-infra Owned by Infrastructure team

Comments

@jmagman
Copy link
Member

jmagman commented Feb 24, 2022

Mac web_tool_tests ran on a macOS 12 machine, even though .ci.yaml specifies Mac-10.15.

flutter/.ci.yaml

Lines 3077 to 3078 in 37a1aaf

os: Mac-10.15 # Override OS and Xcode for https://github.com/flutter/flutter/issues/98278
xcode: 12c33

https://ci.chromium.org/p/flutter/builders/prod/Mac%20web_tool_tests/5034

https://chromium-swarm.appspot.com/task?id=5946338c72923b10&o=true&w=true
Task dimensions shows:

          {
            "key": "os",
            "value": "Mac-12"
          },

Note it failed due to #98278 which seems to only reproduce on macOS 12, which is how I noticed this.

@jmagman jmagman added team Infra upgrades, team productivity, code health, technical debt. See also team: labels. team-infra Owned by Infrastructure team labels Feb 24, 2022
@jmagman jmagman added this to New in Infra Ticket Queue via automation Feb 24, 2022
@jmagman
Copy link
Member Author

jmagman commented Feb 24, 2022

@keyonghan

@jmagman
Copy link
Member Author

jmagman commented Feb 24, 2022

os isn't in the Input Properties list, but xcode is:
Screen Shot 2022-02-24 at 1 30 51 PM

@jmagman jmagman added the P1 label Feb 24, 2022
@keyonghan
Copy link
Contributor

I am afraid this is expected. For post-submit builders, their configs will be auto-rolled after it's merged. Let me double check.

@keyonghan keyonghan moved this from New to Triaged in Infra Ticket Queue Feb 24, 2022
@jmagman
Copy link
Member Author

jmagman commented Feb 24, 2022

How long does it usually take to auto-roll, that config change happened 21 hours ago #98297

@keyonghan
Copy link
Contributor

The culprit is here: https://flutter.googlesource.com/infra/+/refs/heads/main/config/lib/ci_yaml/ci_yaml.star#315
It only reads the platform os value, ignoring target level os property.

@keyonghan keyonghan self-assigned this Feb 24, 2022
@keyonghan keyonghan moved this from Triaged to In progress in Infra Ticket Queue Feb 24, 2022
@keyonghan
Copy link
Contributor

https://flutter-review.googlesource.com/c/infra/+/27401 to fix.

@keyonghan
Copy link
Contributor

keyonghan commented Feb 24, 2022

New os version is picked up: https://ci.chromium.org/ui/p/flutter/builders/prod/Mac%20web_tool_tests/5037/overview, but it seems still using new xcode version..

@keyonghan
Copy link
Contributor

@CaseyHillers IIRC, the properties will be merged among platform and target. Is the xcode version defined in target level expected to be auto rolled?

@CaseyHillers
Copy link
Contributor

It looks like def _properties(ci_yaml, target, default_properties = {}, repo = None, branch = None): in the starlark needs to be updated

It should pull from the merged _properties instead of the platform

@keyonghan
Copy link
Contributor

https://flutter-review.googlesource.com/c/infra/+/27420 to override with target level property.

@keyonghan
Copy link
Contributor

Changes populated, and test is validated to run on expected test beds.

Infra Ticket Queue automation moved this from In progress to Done Feb 25, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2022
@flutter-triage-bot flutter-triage-bot bot added P0 Critical issues such as a build break or regression and removed P1 labels Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P0 Critical issues such as a build break or regression team Infra upgrades, team productivity, code health, technical debt. See also team: labels. team-infra Owned by Infrastructure team
Projects
No open projects
Development

No branches or pull requests

3 participants