Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@godofredoc
Copy link
Contributor

This is used to avoid trying to download experimental dependencies as part of the release candidate branches.

Bug: flutter/flutter#113931

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 and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@godofredoc
Copy link
Contributor Author

This will be followed by a recipes change to set the variable to true on release candidate branches.

# for the web engine.
'download_emsdk': False,

# For experimental features some dependencies may only be avaialable in the master/main
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: available

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.


# For experimental features some dependencies may only be avaialable in the master/main
# channels. This variable is being set when CI is checking out the repository.
'release_candidate': False,
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it would be better to have a "channel" variable, it's likely that down the road Windows ARM64 and RISCV SDKs will be on beta but not on stable.

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can change the variable name however we don't have a good way to detect the channel. Flutter builds everything in release candidate branches and for new beta|stable releases we only know the channel when we push the release candidate branch to the channel branch.

Would it be confusing naming the variable channel and always setting to beta?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, if it's only ever beta, it wouldn't help much. How would we know to have Windows ARM64 on beta but not on stable. It would be possible to determine what Dart channel is to be used from the Dart version. Would it help if the variable was dart_channel? We always CP a Dart release, and when that CP happens, maybe we can change the value of dart_channel to match the CP'ed version of Dart?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how can we get that information without hardcoding it somewhere in the infra configs, any ideas?

@athomas
Copy link
Contributor

athomas commented Oct 25, 2022 via email

@chinmaygarde chinmaygarde added the Work in progress (WIP) Not ready (yet) for review! label Oct 27, 2022
This is used to avoid trying to download experimental dependencies as
part of the release candidate branches.

Bug: flutter/flutter#113931
@godofredoc
Copy link
Contributor Author

My suggestion would be to build it into the "pick the the desired Dart version for the release" tooling. On flutter/engine main it would always be dev. On release candidate branches the Dart CP would change it together with the Dart revision to beta or stable.

On Tue, 25 Oct 2022, 20:07 godofredoc, @.> wrote: @.* commented on this pull request. ------------------------------ In DEPS <#36978 (comment)>: > @@ -30,6 +30,11 @@ vars = { # for the web engine. 'download_emsdk': False, + # For experimental features some dependencies may only be avaialable in the master/main + # channels. This variable is being set when CI is checking out the repository. + 'release_candidate': False, Not sure how can we get that information without hardcoding it somewhere in the infra configs, any ideas? — Reply to this email directly, view it on GitHub <#36978 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYRJBYBPXPBKD4KJJYZO73WFAOVNANCNFSM6AAAAAARNK52HM . You are receiving this because you commented.Message ID: @.***>

Wouldn't this fail for beta and stable if the cipd packages do not exist? or is the purpose to make it a no-op if the cipd package does not exist?

Copy link
Contributor Author

@godofredoc godofredoc left a comment

Choose a reason for hiding this comment

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

@zanderso @athomas we may want to land this change to unblock dart sdk hotfixes.

@godofredoc godofredoc removed the Work in progress (WIP) Not ready (yet) for review! label Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants