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

Mirror leak_tracker at dart.googlesource.com #52246

Closed
polina-c opened this issue May 3, 2023 · 11 comments
Closed

Mirror leak_tracker at dart.googlesource.com #52246

polina-c opened this issue May 3, 2023 · 11 comments
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.

Comments

@polina-c
Copy link
Contributor

polina-c commented May 3, 2023

Created this issue per instruction here: https://github.com/dart-lang/sdk/blob/f9ccf90c975ec9f635c9beefcfcb9b40f6184c97/DEPS#LL37C1-L37C1

I need to add dependency on leak_tacker for dart-lang/sdk/pkg/analysis_server.
Issue: flutter/devtools#5606

@polina-c polina-c added the area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes. label May 3, 2023
@whesse
Copy link
Contributor

whesse commented May 3, 2023

To add a package to DEPS, it must be in the Dart Tools package group, according to https://goto.google.com/raising-the-quality-of-dart-packages-2020.

If it is accepted as a new Dart Tools package, then it can be added to DEPS if all its dependencies are in DEPS already. I don't know if that applies to the dev dependencies.

I don't see any comments on the design document, which is in the review stage. For example, could this code go into the analyzer package directly, rather than creating a new package?

Sorry this link is not mentioned in the DEPS instructions for adding dependencies - it should be. It is also unclear what process is being followed for approving new dependencies and adding them.

For example, here is another discussion going on about adding packages to DEPS: https://groups.google.com/a/google.com/g/dart-engprod/c/hfyqZQoM4xE/m/u5NiUax7AgAJ

I'l start a thread on dart-core-libraries about adding this package, citing this issue.

@polina-c
Copy link
Contributor Author

polina-c commented May 3, 2023

It seems it is big deal to reference the library. So, I will just copy the needed code instead.

@polina-c polina-c closed this as completed May 3, 2023
@polina-c
Copy link
Contributor Author

polina-c commented May 3, 2023

Reopening after discussing with team.

@polina-c polina-c reopened this May 3, 2023
@whesse
Copy link
Contributor

whesse commented May 3, 2023

Yes, I will mirror the repo to dart.googlesource.com.

@whesse
Copy link
Contributor

whesse commented May 4, 2023

@whesse whesse closed this as completed May 4, 2023
@polina-c
Copy link
Contributor Author

polina-c commented May 5, 2023

Thank you!
Will mirror be updated automatically or some actions are needed?

@whesse
Copy link
Contributor

whesse commented May 5, 2023

Yes, the mirrors automatically track GitHub.

@polina-c
Copy link
Contributor Author

polina-c commented May 5, 2023

I am getting error, when I run gclient sync for updated DEP.

CL: https://dart-review.googlesource.com/c/sdk/+/301721

Updating depot_tools...
using /var/folders/n1/zk6h3gk108n06st25r4pkmdm00nn0z/T/goma_polinach as tmpdir
update 41b3bcb64014144a844153fd5588c36411fffb56@1677729955@/Users/polinach/_/platform/depot_tools/.cipd_bin/compiler_proxy -> 41b3bcb64014144a844153fd5588c36411fffb56@1677729955@/Users/polinach/_/platform/depot_tools/.cipd_bin/compiler_proxy, skip restart
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "b711e5865292b03745fc354c8dd091740b2ddd05" "--no-tags"' in /Users/polinach/_/dart-sdk/sdk/third_party/pkg/leak_tracker failed; will retry after a short nap...

sdk/third_party/pkg/leak_tracker (ERROR)
----------------------------------------
[0:00:05] Started.
[0:00:05] Finished running: git config remote.origin.url
[0:00:05] Finished running: git rev-list -n 1 HEAD
[0:00:05] Finished running: git rev-parse --abbrev-ref=strict HEAD
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:00:07] fatal: expected 'acknowledgments'
[0:00:10] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:00:10] fatal: expected 'acknowledgments'
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin b711e5865292b03745fc354c8dd091740b2ddd05 --no-tags' returned non-zero exit status 128 in /Users/polinach/_/dart-sdk/sdk/third_party/pkg/leak_tracker
+===================================================+
|      METRICS COLLECTION IS TAKING PLACE           |
|                                                   |
| To suppress this message opt in or out using:     |
| $ gclient metrics [--opt-in] [--opt-out]          |
| For more information please see metrics.README.md |
| in your depot_tools checkout or visit             |
| https://bit.ly/3MpLAYM.                           |
+===================================================+
WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "b711e5865292b03745fc354c8dd091740b2ddd05" "--no-tags"' in /Users/polinach/_/dart-sdk/sdk/third_party/pkg/leak_tracker failed; will retry after a short nap...

If I just run this command in leak_tracker repo, it passes well:

git -c core.deltaBaseCacheLimit=2g fetch origin b711e5865292b03745fc354c8dd091740b2ddd05 --no-tags

@polina-c
Copy link
Contributor Author

polina-c commented May 5, 2023

Reopening to figure this out...

@polina-c polina-c reopened this May 5, 2023
@sortie
Copy link
Contributor

sortie commented May 8, 2023

You pinned a bad commit that doesn't belong to any branch in the repository. Use a commit from the main branch :)

dart-lang/leak_tracker@b711e58

Note how tags cannot be used if the commit is not on any branch.

@sortie sortie closed this as completed May 8, 2023
@polina-c
Copy link
Contributor Author

polina-c commented May 8, 2023

@sortie , thank you! it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Use area-infrastructure for SDK infrastructure issues, like continuous integration bot changes.
Projects
None yet
Development

No branches or pull requests

3 participants