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

Conversation

@aam
Copy link
Member

@aam aam commented Oct 11, 2024

Default implementation of copy does it via hardlink, which seems to be causing issues with Gatekeeper on mac.

BUG=flutter/flutter#154437

@aam aam requested a review from mraleph October 11, 2024 17:21
Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

lgtm. Alternatively, you could tweak the macOS copy rule in the buildroot to drop the ln and just always rsync.

@chinmaygarde
Copy link
Member

May I land this? Seems good to go.

@aam
Copy link
Member Author

aam commented Oct 14, 2024

May I land this? Seems good to go.

I wanted to get another failure before landing this to confirm that this will fix it. We haven't had a failure in a few days - we landed flutter/buildroot#910 since then as well(which should not fix anything, just will provide another data point regarding whether 2nd run is successful or not).

"$dart_src/runtime/bin:$gen_snapshot_target_name($build_toolchain)"

copy(target_name) {
action(target_name) {
Copy link
Member

Choose a reason for hiding this comment

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

What's the rationale for only using it here and not updating the toolchain definition so that all copy targets use it?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was to limit impact to only gen_snapshots. Only them had an issue with Gatekeeper.
Generally speaking ln has an advantage of reduced disk space usage.

Copy link
Member

Choose a reason for hiding this comment

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

Presumably, Gatekeeper would also impact other binaries as well. If this is the fix for gen_snapshot, then we wouldn't want to go through all this investigation again a second time for some other binary. I think it's fine to do it just for gen_snpashot for now as an experiment, but if it works, there has to be follow-up work to deploy the solution more generally.

@chinmaygarde
Copy link
Member

Triage: The investigation of this issue might have gone in a different direction. Do we still need this PR?

@aam
Copy link
Member Author

aam commented Oct 22, 2024

Triage: The investigation of this issue might have gone in a different direction. Do we still need this PR?

Have been waiting for a recent failure before submitting this fix.
The failure just happened https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8733431533211634625/+/u/build_ci_ios_debug_sim_arm64_extension_safe/stdout
So submitting now.

@aam aam merged commit 6c4f05c into flutter:main Oct 22, 2024
27 checks passed
@aam aam deleted the copy-gen-snapshot branch October 22, 2024 01:48
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Oct 22, 2024
…157323)

flutter/engine@8828844...30bd6c9

2024-10-22 [email protected] Roll Fuchsia Linux SDK from avSAUwQTf5xVGuZQU... to xPbin_33tT-_omeQT... (flutter/engine#56011)
2024-10-22 [email protected] Copy gen_snapshots using python's shutil.copy, avoid links (flutter/engine#55830)

Also rolling transitive DEPS:
  fuchsia/sdk/core/linux-amd64 from avSAUwQTf5xV to xPbin_33tT-_

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@chinmaygarde
Copy link
Member

I ran into the following error after pulling past this commit and building today. flutter/flutter#157367

@chinmaygarde chinmaygarde added the revert Label used to revert changes in a closed and merged pull request. label Oct 22, 2024
@auto-submit
Copy link
Contributor

auto-submit bot commented Oct 22, 2024

A reason for requesting a revert of flutter/engine/55830 could
not be found or the reason was not properly formatted. Begin a comment with 'Reason for revert:' to tell the bot why
this issue is being reverted.

@auto-submit auto-submit bot removed the revert Label used to revert changes in a closed and merged pull request. label Oct 22, 2024
@chinmaygarde
Copy link
Member

Reason for revert: Incremental builds are broken. flutter/flutter#157367

@chinmaygarde chinmaygarde added the revert Label used to revert changes in a closed and merged pull request. label Oct 22, 2024
auto-submit bot pushed a commit that referenced this pull request Oct 22, 2024
@auto-submit auto-submit bot removed the revert Label used to revert changes in a closed and merged pull request. label Oct 22, 2024
auto-submit bot added a commit that referenced this pull request Oct 22, 2024
…55830)" (#56034)

Reverts: #55830
Initiated by: chinmaygarde
Reason for reverting: Incremental builds are broken. flutter/flutter#157367
Original PR Author: aam

Reviewed By: {mraleph, cbracken}

This change reverts the following previous change:
Default implementation of copy does it via hardlink, which seems to be causing issues with Gatekeeper on mac.

BUG=flutter/flutter#154437
aam added a commit to aam/engine that referenced this pull request Oct 23, 2024
…lutter#55830)"

This reverts commit 78f4ffa as it addresses the issues with copying over existing link.
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
…ngine#55830)

Default implementation of copy does it via hardlink, which seems to be
causing issues with Gatekeeper on mac.

BUG=flutter#154437
nick9822 pushed a commit to nick9822/flutter that referenced this pull request Dec 18, 2024
…lutter#55830)" (flutter/engine#56034)

Reverts: flutter/engine#55830
Initiated by: chinmaygarde
Reason for reverting: Incremental builds are broken. flutter#157367
Original PR Author: aam

Reviewed By: {mraleph, cbracken}

This change reverts the following previous change:
Default implementation of copy does it via hardlink, which seems to be causing issues with Gatekeeper on mac.

BUG=flutter#154437
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants