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

Conversation

@gaaclarke
Copy link
Member

@gaaclarke gaaclarke commented May 10, 2023

fixes flutter/flutter#126441

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.

@gaaclarke
Copy link
Member Author

This solves the issue but now we are running into an infra issue:

Finding files...
Detected changes to license tool. Forcing license collection for all components.
Collecting licenses for flutter

Collecting licenses for fuchsia

Collecting licenses for gpu

Collecting licenses for third_party

failure: ProcessException: No such file or directory
  Command: gclient revinfo
#0      _ProcessImpl._runAndWait (dart:io-patch/process_patch.dart:487:7)
#1      _runNonInteractiveProcessSync (dart:io-patch/process_patch.dart:632:18)
#2      Process.runSync (dart:io-patch/process_patch.dart:68:12)
#3      _RepositoryRootCertificatesDirectory.officialSourceLocation (package:licenses/main.dart:1604:56)
#4      MozillaLicense.toStringBody (package:licenses/licenses.dart:1314:93)
#5      groupLicenses (package:licenses/licenses.dart:219:44)
#6      _collectLicensesForComponent (package:licenses/main.dart:1951:41)
<asynchronous suspension>
#7      main (package:licenses/main.dart:2094:9)
<asynchronous suspension>

case '.icc': return FileType.binary; // Color profile
case '.swp': return FileType.binary; // Vim swap file
case '.bfbs': return FileType.binary; // Flatbuffers Binary Schema
case '.rom': return FileType.binary;
Copy link
Member

Choose a reason for hiding this comment

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

.rom-files that are part of fuchsia/sdk/linux/tools should be already skipped by https://github.com/flutter/engine/blob/main/tools/licenses/lib/paths.dart#L40.
Were you able to confirm where other .rom-files are coming?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, it's in the linked issue: ../../../fuchsia/sdk/core.tar.gz!core.tar!/tools/arm64/aemu_internal/lib/pc-bios/efi-e1000.rom.

Copy link
Member

Choose a reason for hiding this comment

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

Were you able to confirm where core.tar.gz came from? I don't think it's part of fuchsia sdk.

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, I didn't look deeply into it since this is a blocker and it's there somehow, and in no case do we want to do license checks on rom files. I assume its presence is justified somewhere else since the engine code isn't doing it.

Copy link
Member

@aam aam May 10, 2023

Choose a reason for hiding this comment

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

I would be wary of this being another symptom of some issue with newly introduced license builder. Similar to how 'gclient' was missing, for example.

Copy link
Member Author

Choose a reason for hiding this comment

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

(I just verified that srujans PR still needs this fix)

Copy link
Member Author

Choose a reason for hiding this comment

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

actually, every PR needs this

Copy link
Contributor

Choose a reason for hiding this comment

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

if we're not expecting the core.tar.gz file we should figure out where it is coming from.

Copy link
Contributor

Choose a reason for hiding this comment

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

(especially a .tar.gz file, which is probably adding more time to the already slow license script process)

Copy link
Member Author

Choose a reason for hiding this comment

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

I filed an issue: flutter/flutter#126475

@gaaclarke
Copy link
Member Author

CI seems hung, i'll push an empty commit to retrigger everything.

@gaaclarke gaaclarke force-pushed the ignore-fuchsia-artifacts-licenses branch from b25562a to 12bcb6e Compare May 10, 2023 20:35
@gaaclarke
Copy link
Member Author

gaaclarke commented May 10, 2023

The engine tree is now closed on this failure

Sorry, this is a different license checker error that was related to godofredos revert.

@gaaclarke gaaclarke requested a review from zanderso May 10, 2023 20:42
@gaaclarke gaaclarke force-pushed the ignore-fuchsia-artifacts-licenses branch from 12bcb6e to 516b9ad Compare May 10, 2023 21:49
@gaaclarke gaaclarke changed the title Started identifying fuchsia sdk rom files as binary files in license checker Started identifying fuchsia sdk rom files as binary files in Linux linux_license May 10, 2023
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@gaaclarke gaaclarke changed the title Started identifying fuchsia sdk rom files as binary files in Linux linux_license Started identifying fuchsia sdk rom files as binary files in license checker May 10, 2023
@gaaclarke
Copy link
Member Author

This may not be necessary. Godofredo reverted the engine_v2 license checker that was displaying this error in #41903, so no one is blocked on this.

We have an issue for the residual files that seem to be tripping up the license checker and godofredo has an idea how to fix it.

@chinmaygarde
Copy link
Member

From Triage: This was an issue with the bot not clearing artifacts from previous runs and should no longer be necessary. Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

License checker is tripping up on fuchsia artifacts

5 participants