Page MenuHomePhabricator
Feed All Stories

Mar 20 2020

ptarjan added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

Thanks for the code review and archeology! I did some archeology on our end and indeed, it was removed on Sep 26, 2018 when we forked this diff workflow for exactly the reason in this diff. With the --no-verify the LFS objects were not being pushed to our staging repo, so our Jenkins jobs wouldn't have them and would fail. So I do think this the right fix :)

Mar 20 2020, 3:56 PM
avivey edited the content of Community Resources.
Mar 20 2020, 3:12 PM
epriestley added inline comments to D21041: Use a named remote and branches for staging to help git-lfs.
Mar 20 2020, 1:10 AM
epriestley added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

Hmm, I can't immediately find any upstream version of arc that has ever not had --no-verify: D13020 in 2015 had it, and it was version-checked but retained in D14033 (also in 2015) and seems untouched since then. If you're working with a fork, maybe blame/log to figure out why it was removed?

Mar 20 2020, 1:07 AM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.
  • oops wrong way
Mar 20 2020, 1:01 AM
epriestley added inline comments to D21041: Use a named remote and branches for staging to help git-lfs.
Mar 20 2020, 1:00 AM
ptarjan added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

Nice find! I see there is already a --no-verify in this upstream version but we didn't have it in ours... maybe because of the lfs version? So maybe this diff is actually improving the life of lfs folks?

Mar 20 2020, 1:00 AM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.
  • go with --no-verify
Mar 20 2020, 12:59 AM
epriestley added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

Instead of GIT_LFS_SKIP_SMUDGE=1, try git push --no-verify -- <remote-uri> ...? That just skips the pre-push hook, which seems to work locally:

Mar 20 2020, 12:48 AM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.
  • Revert "only run fetch if git for-each-ref is empty"
  • Revert "fix spelling"
  • Revert "handle the case where you need to remove it before adding it"
  • Revert "Use a named remote and branches for staging to help git-lfs"
  • try the double push thing for lfs repos
Mar 20 2020, 12:42 AM
epriestley added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

As much as possible I'd like arc to have the property that interrupting/killing/aborting/striking-it-with-lightning at any point during execution leaves you in the least-surprising state we can leave you in, and "arc uninstalled LFS as a side effect" seems highly-surprising, so I'm hesitant to go down that path. Let me take a quick look and see if I can find some other way to trick LFS here -- maybe there's a clever --config flag or something like that.

Mar 20 2020, 12:40 AM
ptarjan added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

Thanks Evan! I tried what you suggested but I think GIT_LFS_SKIP_SMUDGE=1 is only for pulling not pushing, since the first push in your suggestion is still uploading to LFS and their code doesn't seem to refer to that env var https://github.com/git-lfs/git-lfs/blob/5f969e6a3e48ecee48b6235adccc42a644e82101/commands/command_push.go, I can't really see any way to disable lfs other than git lfs uninstall; git push; git lfs install. Is that nuts?

Mar 20 2020, 12:28 AM

Mar 19 2020

epriestley added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

That is, the sequence would look something like this, if the description above was muddy:

Mar 19 2020, 11:30 PM
epriestley added a comment to D21041: Use a named remote and branches for staging to help git-lfs.

Part of this change -- pushing to a branch rather than a tag -- breaks a million things and can't come upstream without significant changes elsewhere.

Mar 19 2020, 11:24 PM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.
  • only run fetch if git for-each-ref is empty
Mar 19 2020, 9:59 PM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.
  • fix spelling
Mar 19 2020, 6:41 PM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.
  • handle the case where you need to remove it before adding it
Mar 19 2020, 6:38 PM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.

try again with the remote removed from the failure before

Mar 19 2020, 6:33 PM
ptarjan updated the diff for D21041: Use a named remote and branches for staging to help git-lfs.

try again now that I put in my ssh key

Mar 19 2020, 6:33 PM
ptarjan requested review of D21041: Use a named remote and branches for staging to help git-lfs.
Mar 19 2020, 6:29 PM

Mar 18 2020

epriestley added a comment to T13243: Writing to streams can run into issues with EINTR.

It's true that it has been 12 years, but I'm sure fwrite() will start returning an error code when it encounters a permanent, fatal EPIPE error condition soon.

Mar 18 2020, 10:10 PM · Infrastructure

Mar 11 2020

epriestley closed T7697: Drag and drop a text fragment to top-right search box adds it to the placeholder as Resolved.
Mar 11 2020, 3:38 PM · Firefox
dereckson added a comment to T7697: Drag and drop a text fragment to top-right search box adds it to the placeholder.

The issue doesn't appear in the current code base with Firefox 73. That's not unexpected, as the UI has been tweaked several times between 2015 and now.

Mar 11 2020, 12:58 PM · Firefox

Mar 9 2020

Arturas Moskvinas arturas@uber.com <arturas@uber.com> committed rP62f5bdbbd2c5: According to Jira Project keys must start with an uppercase letter, followed by… (authored by Arturas Moskvinas arturas@uber.com <arturas@uber.com>).
According to Jira Project keys must start with an uppercase letter, followed by…
Mar 9 2020, 8:04 PM
Arturas Moskvinas arturas@uber.com <arturas@uber.com> closed D21040: According to Jira Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.
Mar 9 2020, 8:04 PM
epriestley added a comment to T13501: Improve search index normalization of "é" and other characters with variants or multiple representations.

We also have two separate pieces of ngram extraction code:

Mar 9 2020, 5:43 PM · Search
epriestley added a comment to T13501: Improve search index normalization of "é" and other characters with variants or multiple representations.

For now, I'm going to change the ngram slicing to be character-oriented. This should never be worse than the current behavior, and moves us closer to effective normalization.

Mar 9 2020, 5:38 PM · Search
epriestley added a comment to T13501: Improve search index normalization of "é" and other characters with variants or multiple representations.

This appears to be the unicode normalization chart:

Mar 9 2020, 5:27 PM · Search
epriestley triaged T13501: Improve search index normalization of "é" and other characters with variants or multiple representations as Low priority.
Mar 9 2020, 5:16 PM · Search
epriestley accepted D21040: According to Jira Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.
Mar 9 2020, 2:55 PM
artms updated the diff for D21040: According to Jira Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.
  • Fix pattern
Mar 9 2020, 2:37 PM
artms requested review of D21040: According to Jira Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.
Mar 9 2020, 1:26 PM

Mar 6 2020

epriestley added a subtask for T7339: Raise a setup warning when the "en_US.UTF-8" locale is unavailable: T13500: During startup, guarantee "(string)1.23" is "1.23", not "1,23".
Mar 6 2020, 5:53 PM · Diffusion (v3)
epriestley added a parent task for T13500: During startup, guarantee "(string)1.23" is "1.23", not "1,23": T7339: Raise a setup warning when the "en_US.UTF-8" locale is unavailable.
Mar 6 2020, 5:53 PM · Arcanist
epriestley triaged T13500: During startup, guarantee "(string)1.23" is "1.23", not "1,23" as Normal priority.
Mar 6 2020, 5:46 PM · Arcanist
epriestley triaged T13499: Make "undefined index" PHP errors throw a RuntimeException as Normal priority.
Mar 6 2020, 5:22 PM · Infrastructure
epriestley committed rARC66a6128239e2: Remove the "preg_quote()" lint rule and update the "__CLASS__" lint rule (authored by epriestley).
Remove the "preg_quote()" lint rule and update the "__CLASS__" lint rule
Mar 6 2020, 5:14 PM
epriestley closed D21032: Remove the "preg_quote()" lint rule and update the "__CLASS__" lint rule.
Mar 6 2020, 5:14 PM
epriestley triaged T13498: "arc diff" may fail with Toolsets code when trying to build a ConduitEngine to upload files as Normal priority.
Mar 6 2020, 5:10 PM · Arcanist
epriestley closed T13497: Arc may fail on startup with a error about missing "default" config, a subtask of T13490: Upgrade all "classic" Arcanist workflows to Toolsets, as Resolved.
Mar 6 2020, 4:33 PM · Arcanist
epriestley closed T13497: Arc may fail on startup with a error about missing "default" config as Resolved.
Mar 6 2020, 4:33 PM · Arcanist
epriestley added a comment to T13497: Arc may fail on startup with a error about missing "default" config.

If you're affected by this and arc upgrade doesn't work, the easiest fix is to run git pull in arcanist/.

Mar 6 2020, 4:33 PM · Arcanist
epriestley committed rARC31653f6b7749: Fix an issue where "arc" may fail on startup when trying to read older… (authored by epriestley).
Fix an issue where "arc" may fail on startup when trying to read older…
Mar 6 2020, 4:31 PM
epriestley closed D21039: Fix an issue where "arc" may fail on startup when trying to read older "default" config.
Mar 6 2020, 4:31 PM
epriestley added a revision to T13497: Arc may fail on startup with a error about missing "default" config: D21039: Fix an issue where "arc" may fail on startup when trying to read older "default" config.
Mar 6 2020, 4:31 PM · Arcanist
epriestley added a task to D21039: Fix an issue where "arc" may fail on startup when trying to read older "default" config: T13497: Arc may fail on startup with a error about missing "default" config.
Mar 6 2020, 4:31 PM
epriestley added a parent task for T13497: Arc may fail on startup with a error about missing "default" config: T13490: Upgrade all "classic" Arcanist workflows to Toolsets.
Mar 6 2020, 4:30 PM · Arcanist
epriestley added a subtask for T13490: Upgrade all "classic" Arcanist workflows to Toolsets: T13497: Arc may fail on startup with a error about missing "default" config.
Mar 6 2020, 4:30 PM · Arcanist
epriestley triaged T13497: Arc may fail on startup with a error about missing "default" config as Normal priority.
Mar 6 2020, 4:30 PM · Arcanist
epriestley requested review of D21039: Fix an issue where "arc" may fail on startup when trying to read older "default" config.
Mar 6 2020, 3:23 PM

Mar 2 2020

epriestley renamed T13496: Print the object destruction log to stdout/stderr when run interactively via `bin/remove destroy` from Print the objet destruction log to stdout/stderr when run interactively via `bin/remove destroy` to Print the object destruction log to stdout/stderr when run interactively via `bin/remove destroy`.
Mar 2 2020, 5:39 PM · Infrastructure
epriestley triaged T13496: Print the object destruction log to stdout/stderr when run interactively via `bin/remove destroy` as Wishlist priority.
Mar 2 2020, 5:18 PM · Infrastructure
epriestley added a comment to T13111: Periodically run `git prune` on Git working copies.

Does using --max-pack-size to reduce the maximum packfile size really let Git "checkpoint" after each packfile, so the process is effectively resumable?

Mar 2 2020, 4:36 PM · Phacility, Diffusion
epriestley added a comment to T13111: Periodically run `git prune` on Git working copies.

PHI1655 identifies a specific case where enormous packfiles may create problems:

Mar 2 2020, 3:56 PM · Phacility, Diffusion
epriestley updated the task description for T13156: Plans: Improve Phacility UI for managing instance managers and cards.
Mar 2 2020, 2:30 PM · Plans, Phacility

Feb 28 2020

epriestley added a comment to T11968: Decide the fate of FutureGraph.

I have some code which runs and looks plausible (i.e., not covered in piles of callback garbage), at least:

Feb 28 2020, 4:58 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley added a comment to T7339: Raise a setup warning when the "en_US.UTF-8" locale is unavailable.

See https://discourse.phabricator-community.org/t/data-truncated-when-pushing-into-repository/3586/ for what is likely to be a related issue.

Feb 28 2020, 2:54 PM · Diffusion (v3)
epriestley added a comment to T5816: Unhandled Exception ("AphrontQueryException").

The real root cause of this issue may have been a locale setting which uses comma as a decimal separator, see T7339.

Feb 28 2020, 2:51 PM · Aphront, Maniphest
kerberizer added a comment to T4444: "NOT" filter for all applicable lines in a Query.

@epriestley As perhaps an example of another use case, in my workplace we needed, amongst others, the following lists of Maniphest tasks:

  1. assigned to the viewer, regardless of the author,
  2. authored by the viewer, without self-assigned,
  3. subscribed by the viewer, without (1) and (2).

(1) is obviously trivial (there's already a built-in query), but the other two seemed to require custom "NOT" filtering. Of course, (2) can be solved to an extent by using "Group by assigned", but it's not very convenient. Because I tend to self-assign most of the tasks that I create, the ones that I have assigned to other people quickly get visually overwhelmed by the large group of "Assigned to kerberizer" (not to mention that with my username this huge group tends to get in the middle of the list).

Feb 28 2020, 9:51 AM · Maniphest, Custom Fields, Projects

Feb 27 2020

epriestley added a comment to T11968: Decide the fate of FutureGraph.

Here's an actual example of loadHardpoints($objects, $hardpoint):

Feb 27 2020, 5:21 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
jaydiablo added a comment to T12976: Use a server for pygments?.

Perhaps another approach that could be considered, doing the colorizing in the browser using something like highlight.js (https://highlightjs.org/). This, of course, puts the CPU burden on the end user instead of the server.

Feb 27 2020, 4:47 PM · Differential
epriestley added a comment to T11968: Decide the fate of FutureGraph.

In the specific case of the Hardpoints, we currently often have code which loads objects but doesn't do anything with them. For example, most Query classes use didFilterResults() to fill things-that-sure-look-like-hardpoints, but few do anything with the results.

Feb 27 2020, 3:30 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley closed T13177: ServiceProfiler integration should be a configurable part of Future, not hard-coded into subclasses (HTTPSFuture, ExecFuture) as Resolved.

I'm going to mark this as resolved, since:

Feb 27 2020, 3:06 PM · Infrastructure
epriestley requested review of D21038: Integrate "ServiceProfiler" into the base "Future".
Feb 27 2020, 2:53 PM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21038: Integrate "ServiceProfiler" into the base "Future".
Feb 27 2020, 2:53 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley added a revision to T13177: ServiceProfiler integration should be a configurable part of Future, not hard-coded into subclasses (HTTPSFuture, ExecFuture): D21038: Integrate "ServiceProfiler" into the base "Future".
Feb 27 2020, 2:53 PM · Infrastructure
epriestley updated the diff for D21036: Make "FutureIterator" queue management more formal.
  • Fix a unit test issue where a future was explicitly started before being added to an Iterator.
Feb 27 2020, 2:50 PM
epriestley committed rARC5451d2875221: When "ArcanistRuntime" exits with a nonzero exit code, emit that exit code (authored by epriestley).
When "ArcanistRuntime" exits with a nonzero exit code, emit that exit code
Feb 27 2020, 2:17 PM
epriestley closed D21037: When "ArcanistRuntime" exits with a nonzero exit code, emit that exit code.
Feb 27 2020, 2:17 PM
epriestley requested review of D21036: Make "FutureIterator" queue management more formal.
Feb 27 2020, 2:13 PM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21036: Make "FutureIterator" queue management more formal.
Feb 27 2020, 2:13 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley requested review of D21035: Make "exception" on Future a private property.
Feb 27 2020, 12:17 AM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21035: Make "exception" on Future a private property.
Feb 27 2020, 12:17 AM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist

Feb 26 2020

epriestley requested review of D21034: Make the "result" property on Future private.
Feb 26 2020, 8:30 PM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21034: Make the "result" property on Future private.
Feb 26 2020, 8:30 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley updated the diff for D21033: Resolve all futures inside FutureIterator.
  • Also remove uncalled "checkException()" method.
Feb 26 2020, 7:41 PM
epriestley requested review of D21033: Resolve all futures inside FutureIterator.
Feb 26 2020, 7:35 PM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21033: Resolve all futures inside FutureIterator.
Feb 26 2020, 7:34 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley requested review of D21032: Remove the "preg_quote()" lint rule and update the "__CLASS__" lint rule.
Feb 26 2020, 4:59 PM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21032: Remove the "preg_quote()" lint rule and update the "__CLASS__" lint rule.
Feb 26 2020, 4:59 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley updated the task description for T13488: Upgrading: Early 2020 Changes to Arcanist.
Feb 26 2020, 4:52 PM · Arcanist, Installing & Upgrading
epriestley updated the task description for T13488: Upgrading: Early 2020 Changes to Arcanist.
Feb 26 2020, 4:52 PM · Arcanist, Installing & Upgrading
epriestley requested review of D21031: Remove the "timeout" parameter from "Future->resolve()".
Feb 26 2020, 4:40 PM
epriestley added a revision to T11968: Decide the fate of FutureGraph: D21031: Remove the "timeout" parameter from "Future->resolve()".
Feb 26 2020, 4:39 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley updated the task description for T13488: Upgrading: Early 2020 Changes to Arcanist.
Feb 26 2020, 4:38 PM · Arcanist, Installing & Upgrading
epriestley added a comment to T11968: Decide the fate of FutureGraph.

The core idea in D5104 + D5105 is that $future->resolve() and id(new FutureIterator(array($future)))->next() (like, roughly) execute meaningfully different code paths.

Feb 26 2020, 4:29 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley committed rARC1b97f8b4086d: Update "arc upload" for Toolsets (authored by epriestley).
Update "arc upload" for Toolsets
Feb 26 2020, 4:22 PM
epriestley closed D21030: Update "arc upload" for Toolsets.
Feb 26 2020, 4:22 PM
epriestley added a comment to T11968: Decide the fate of FutureGraph.

Somewhere in experimental or wilds, I introduced ArcanistConduitEngine. This has some weird fake future stuff going on, so this is probably now ripe.

Feb 26 2020, 4:14 PM · Diffusion, Performance, Conduit, Infrastructure, Restricted Project, Arcanist
epriestley requested review of D21030: Update "arc upload" for Toolsets.
Feb 26 2020, 4:12 PM
epriestley added a revision to T13490: Upgrade all "classic" Arcanist workflows to Toolsets: D21030: Update "arc upload" for Toolsets.
Feb 26 2020, 4:11 PM · Arcanist

Feb 25 2020

epriestley committed rARC9bd5c23b2a3e: Improve error handling in ArcanistRuntime when failing to load libraries (authored by epriestley).
Improve error handling in ArcanistRuntime when failing to load libraries
Feb 25 2020, 10:07 PM
epriestley closed D21029: Improve error handling in ArcanistRuntime when failing to load libraries.
Feb 25 2020, 10:07 PM
epriestley requested review of D21029: Improve error handling in ArcanistRuntime when failing to load libraries.
Feb 25 2020, 9:51 PM
epriestley added a comment to rARC9cd72baae92c: Update Phage for toolsets and restore library loading behaviors.

Thanks, see D21029.

Feb 25 2020, 9:50 PM
epriestley added a revision to T13490: Upgrade all "classic" Arcanist workflows to Toolsets: D21029: Improve error handling in ArcanistRuntime when failing to load libraries.
Feb 25 2020, 9:50 PM · Arcanist

Feb 24 2020

epriestley added a comment to T6703: Allow multiple copies of the same auth provider type.

Couple of notes on the state of affairs here:

Feb 24 2020, 9:27 PM · Auth
epriestley committed rPd0f4554dbeb0: Read both email addresses and Google Account IDs from Google OAuth (authored by epriestley).
Read both email addresses and Google Account IDs from Google OAuth
Feb 24 2020, 9:26 PM
epriestley closed D21028: Read both email addresses and Google Account IDs from Google OAuth.
Feb 24 2020, 9:26 PM
epriestley requested review of D21028: Read both email addresses and Google Account IDs from Google OAuth.
Feb 24 2020, 9:24 PM