Page MenuHomePhabricator
Feed Advanced Search

Apr 13 2021

davidgiga1993 added a comment to T7000: 404 when accessing repo via http.

This issue is still occurring.. the root cause is related to phabricator being set to allow-public. My fix still works and it would be nice if anyone here would support me bringing this upstream.

Apr 13 2021, 6:42 AM · Diffusion

Mar 28 2021

epriestley added a revision to T13647: Reduce repository update cost for repositories with large numbers of refs: D21658: Skip "git for-each-ref" when identifying deleted commits.
Mar 28 2021, 5:58 PM · Diffusion
epriestley added a comment to T13647: Reduce repository update cost for repositories with large numbers of refs.

One call to for-each-ref comes from resolving a list of commit hashes, to test if they still exist. This is accomplished with DiffusionLowLevelResolveRefsQuery, which calls git for-each-ref first and falls back to git cat-file --batch-check.

Mar 28 2021, 5:44 PM · Diffusion
epriestley added a comment to T13647: Reduce repository update cost for repositories with large numbers of refs.

Has this repository changed?

Mar 28 2021, 5:25 PM · Diffusion

Mar 26 2021

epriestley triaged T13647: Reduce repository update cost for repositories with large numbers of refs as Normal priority.
Mar 26 2021, 11:09 PM · Diffusion

Mar 17 2021

epriestley added a comment to T13290: Clean up remaining "Autoclose" behaviors related to "One Revision, Many Commits".

A general concern with "batch processing" is that it's quite bad if one commit failing to import can stall the entire repository forever.

Mar 17 2021, 11:18 PM · Diffusion, Differential
epriestley added a comment to T13290: Clean up remaining "Autoclose" behaviors related to "One Revision, Many Commits".

See also T13552, which modifies the above discussion. The "Update" steps now happen after the "Publish" step.

Mar 17 2021, 11:12 PM · Diffusion, Differential
epriestley closed T13513: Make schema changes to inlines to prepare for new inline features as Resolved.

When you are viewing a document with engine X, and comments originally made with engine Y are present, this should be indicated ("This comment was made while looking at this change as a Q document."). They should probably also be moved to the top/bottom of the file, at least by default, since "Jupyter line number 9 = raw source line number 9" is an exceptionally bad and confusing guess at how to map line numbers.

Mar 17 2021, 10:59 PM · Inline Comments, Diffusion, Differential
epriestley triaged T13645: In Diffusion "Tags" view, improve behavior for tags that point at tag objects as Low priority.
Mar 17 2021, 10:45 PM · Diffusion

Mar 15 2021

epriestley moved T13105: Plans: Rich presentation and diff rendering pipelines for various file types from Backlog to Next on the Differential board.
Mar 15 2021, 5:11 PM · Plans, Files, Differential, Diffusion
epriestley moved T13290: Clean up remaining "Autoclose" behaviors related to "One Revision, Many Commits" from Backlog to Next on the Differential board.
Mar 15 2021, 5:10 PM · Diffusion, Differential
epriestley moved T13513: Make schema changes to inlines to prepare for new inline features from Backlog to Next on the Differential board.
Mar 15 2021, 5:10 PM · Inline Comments, Diffusion, Differential

Mar 12 2021

epriestley closed T13631: Support an "auditors" attachment for "diffusion.commit.search" as Resolved.

For now, I fixed the explicit misinformation in audit.can-author-close-audit, at least.

Mar 12 2021, 5:27 PM · Diffusion
epriestley added a revision to T13631: Support an "auditors" attachment for "diffusion.commit.search": D21610: Clarify the behavior of "audit.can-author-close-audit".
Mar 12 2021, 5:13 PM · Diffusion

Mar 11 2021

epriestley triaged T13634: Support marking commits as UNREACHABLE in Mercurial as Low priority.
Mar 11 2021, 6:15 PM · Diffusion

Mar 10 2021

epriestley closed T13625: Daemons may make commit-related API calls as users without privileges as Resolved.

Although I didn't look particularly hard, I can't immediately find any more evidence that this is occurring in production.

Mar 10 2021, 6:26 PM · Diffusion, Daemons
epriestley added a comment to T13631: Support an "auditors" attachment for "diffusion.commit.search".

One remaining artifact here is this configuration option:

Mar 10 2021, 6:23 PM · Diffusion
epriestley added a revision to T13631: Support an "auditors" attachment for "diffusion.commit.search": D21601: Allow "transaction.search" to be called on an object type.
Mar 10 2021, 6:13 PM · Diffusion
epriestley added a revision to T13631: Support an "auditors" attachment for "diffusion.commit.search": D21600: Give audit statuses API constants that match their UI strings.
Mar 10 2021, 6:07 PM · Diffusion
epriestley added a revision to T13631: Support an "auditors" attachment for "diffusion.commit.search": D21599: Modernize and clean up "PhabricatorAuditStatusConstants".
Mar 10 2021, 5:15 PM · Diffusion
epriestley added a revision to T13631: Support an "auditors" attachment for "diffusion.commit.search": D21598: Remove very old Audit status constants and AuditRequest data.
Mar 10 2021, 12:01 AM · Diffusion

Mar 9 2021

epriestley added a comment to T13631: Support an "auditors" attachment for "diffusion.commit.search".

Long ago, we used to write a <package, commit> audit relationship with "AUDIT_NOT_REQUIRED", meaning "This commit affects the package, but package owners don't need to audit it.".

Mar 9 2021, 11:50 PM · Diffusion
epriestley added a revision to T13631: Support an "auditors" attachment for "diffusion.commit.search": D21597: Add a very basic "auditors" attachment to "differential.commit.search".
Mar 9 2021, 11:03 PM · Diffusion
epriestley added a comment to T13631: Support an "auditors" attachment for "diffusion.commit.search".

PhabricatorAuditStatusConstants appears to have a set of unused constants:

Mar 9 2021, 10:37 PM · Diffusion
epriestley triaged T13631: Support an "auditors" attachment for "diffusion.commit.search" as Low priority.
Mar 9 2021, 10:27 PM · Diffusion

Mar 4 2021

epriestley added a comment to T13624: Provide an error log for `sshd` subprocesses.

Evidence increasingly suggests that the root problem here was GET_LOCK() issue in T13627, not an error in an sshd subprocess context.

Mar 4 2021, 12:08 AM · Diffusion

Mar 2 2021

epriestley updated the task description for T13625: Daemons may make commit-related API calls as users without privileges.
Mar 2 2021, 11:29 PM · Diffusion, Daemons
epriestley added a comment to T13624: Provide an error log for `sshd` subprocesses.

In general, Phacility production hosts may interact with logs as several different users:

Mar 2 2021, 5:40 PM · Diffusion
epriestley reopened T13624: Provide an error log for `sshd` subprocesses as "Open".

This ran into some filesystem permissions issues and needs followup.

Mar 2 2021, 5:20 PM · Diffusion

Mar 1 2021

epriestley added a comment to T13625: Daemons may make commit-related API calls as users without privileges.

When we are importing a commit, we often don't have any legitimate user to act as: the commit may come from an observed repository (so we never authenticated a pusher), and the "Author" and "Committer" strings are arbitrary and untrusted in Git and Mercurial.

Mar 1 2021, 7:09 PM · Diffusion, Daemons
epriestley added a revision to T13625: Daemons may make commit-related API calls as users without privileges: D21582: When updating revisions in responset to commits, use the omnipotent viewer to pull diffs.
Mar 1 2021, 7:00 PM · Diffusion, Daemons
epriestley added a comment to T13625: Daemons may make commit-related API calls as users without privileges.

All three of these are almost certainly diffusion.rawdiffquery, I think the first one just predated D21463 reaching production so it didn't show the method.

Mar 1 2021, 6:15 PM · Diffusion, Daemons
epriestley closed T13624: Provide an error log for `sshd` subprocesses as Resolved.

This deployed, and appears resolved.

Mar 1 2021, 6:12 PM · Diffusion

Feb 27 2021

epriestley updated the task description for T13625: Daemons may make commit-related API calls as users without privileges.
Feb 27 2021, 7:41 PM · Diffusion, Daemons
epriestley triaged T13625: Daemons may make commit-related API calls as users without privileges as Normal priority.
Feb 27 2021, 7:38 PM · Diffusion, Daemons

Feb 26 2021

epriestley added a revision to T13624: Provide an error log for `sshd` subprocesses: Restricted Differential Revision.
Feb 26 2021, 10:49 PM · Diffusion
epriestley added a revision to T13624: Provide an error log for `sshd` subprocesses: Restricted Differential Revision.
Feb 26 2021, 10:48 PM · Diffusion
epriestley added a revision to T13624: Provide an error log for `sshd` subprocesses: D21579: Support an SSH error log.
Feb 26 2021, 10:46 PM · Diffusion
epriestley added a revision to T13624: Provide an error log for `sshd` subprocesses: D21578: Add a simple primitive for managing PHP runtime error logs.
Feb 26 2021, 10:42 PM · Diffusion
epriestley triaged T13624: Provide an error log for `sshd` subprocesses as Normal priority.
Feb 26 2021, 7:38 PM · Diffusion

Feb 25 2021

epriestley closed T13611: In clusters, "writable" property on bindings may not actually prevent writes as Resolved.
  • This was originally implemented in D19357.
  • This was broken by a refactoring change in D20775.
  • I made problem observable in D21575 fixed it in D21576.
Feb 25 2021, 8:31 PM · Clusters, Diffusion
epriestley added a revision to T13611: In clusters, "writable" property on bindings may not actually prevent writes: D21576: Correct behavior of "writable" Almanac service binding for repository services.
Feb 25 2021, 8:15 PM · Clusters, Diffusion
epriestley added a revision to T13611: In clusters, "writable" property on bindings may not actually prevent writes: D21575: Add an internal service ref panel to repository "Storage" information.
Feb 25 2021, 8:06 PM · Clusters, Diffusion
epriestley added a comment to T13620: Improve access to commit messages from email and timeline contexts.

This is a brute force approach to support "context blocks" without taking any steps backwards (i.e., it supports older transactions and newer, modular transactions), but it feels like this is a lot of steps sideways and this change would be far better if it took a nuanced approach through T12921.

Feb 25 2021, 7:32 PM · Hovercards, Diffusion
epriestley added a comment to T13620: Improve access to commit messages from email and timeline contexts.
  • T12921 is adjacent to mail rendering.
  • T13439 mentioned the hovercard summary text.
Feb 25 2021, 7:11 PM · Hovercards, Diffusion
epriestley added a comment to T13620: Improve access to commit messages from email and timeline contexts.

D21574 implements the hovercard and summary length changes.

Feb 25 2021, 7:01 PM · Hovercards, Diffusion
epriestley added a revision to T13620: Improve access to commit messages from email and timeline contexts: D21574: Provide hovercards for generic edge stories, and include more message information in commit hovercards.
Feb 25 2021, 6:28 PM · Hovercards, Diffusion
epriestley triaged T13620: Improve access to commit messages from email and timeline contexts as Low priority.
Feb 25 2021, 6:18 PM · Hovercards, Diffusion

Feb 24 2021

epriestley updated the task description for T13614: Provide a write-free, non-locking maintenance window for repositories.
Feb 24 2021, 10:10 PM · Clusters, Diffusion

Feb 19 2021

epriestley triaged T13614: Provide a write-free, non-locking maintenance window for repositories as Normal priority.
Feb 19 2021, 4:27 PM · Clusters, Diffusion

Feb 18 2021

epriestley triaged T13611: In clusters, "writable" property on bindings may not actually prevent writes as Low priority.
Feb 18 2021, 11:54 PM · Clusters, Diffusion

Feb 15 2021

epriestley triaged T13606: In Diffusion UI, satisfy "Refs" query from the database, not the API as Normal priority.
Feb 15 2021, 8:17 PM · Diffusion
epriestley added a comment to T13125: Plans: Code coverage reporting.

See PHI1997, which discusses things from the perspective of reporting coverage from a build system.

Feb 15 2021, 7:44 PM · Diffusion, Plans

Feb 4 2021

epriestley closed T13600: Improve workflow for host-to-host Phacility cluster repository migrations of observed repositories as Resolved.

This more-or-less worked as desired. Some minor issues:

Feb 4 2021, 9:33 PM · Diffusion, Phacility
epriestley added a revision to T13600: Improve workflow for host-to-host Phacility cluster repository migrations of observed repositories: Restricted Differential Revision.
Feb 4 2021, 6:29 PM · Diffusion, Phacility
epriestley added a revision to T13600: Improve workflow for host-to-host Phacility cluster repository migrations of observed repositories: D21544: Add an "--ignore-locality" flag to "bin/repository pull".
Feb 4 2021, 6:26 PM · Diffusion, Phacility
epriestley triaged T13600: Improve workflow for host-to-host Phacility cluster repository migrations of observed repositories as Normal priority.
Feb 4 2021, 6:26 PM · Diffusion, Phacility

Feb 2 2021

epriestley closed T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT" as Resolved.

Update the daemon UI to break tasks down by object/container.

Feb 2 2021, 10:37 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21536: Add basic documentation for using "bin/worker" to manage imports of large repositories.
Feb 2 2021, 9:38 PM · Daemons, Diffusion
epriestley closed T13590: Large HTTP repository pushes may leave clustered repository write lock held as Resolved.

The affected user in PHI1980 reported that this appeared to be effective in resolving the issue.

Feb 2 2021, 9:37 PM · Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21535: Add "bin/worker delay" and "bin/worker priority" utilities for managing task queues.
Feb 2 2021, 12:28 AM · Daemons, Diffusion

Feb 1 2021

epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21534: Add more selectors to existing "bin/worker" commands.
Feb 1 2021, 9:53 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21533: Internally, align commit processing tasks around PHIDs, not IDs.
Feb 1 2021, 8:07 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21532: Improve consistency in use of "via", "objectPHID", and "containerPHID" parameters in repository workers.
Feb 1 2021, 7:44 PM · Daemons, Diffusion

Jan 29 2021

epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21531: Add support for a "containerPHID" in the worker queue.
Jan 29 2021, 12:33 AM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21529: Introduce storage patch "phases" to allow index-rebuilding patches to execute after worker queue schema changes.
Jan 29 2021, 12:23 AM · Daemons, Diffusion

Jan 28 2021

epriestley added a revision to T13599: In Diffusion browse views, some trailing slash behavior could be improved: D21528: Correct Diffusion browse behavior when visiting a path URI with no trailing slash.
Jan 28 2021, 12:34 AM · Diffusion
epriestley triaged T13599: In Diffusion browse views, some trailing slash behavior could be improved as Low priority.
Jan 28 2021, 12:29 AM · Diffusion

Jan 27 2021

epriestley added a revision to T13590: Large HTTP repository pushes may leave clustered repository write lock held: D21526: Prevent interruption by the PHP "set_time_limit()" mechanism while holding the durable write lock.
Jan 27 2021, 12:09 AM · Diffusion
epriestley added a revision to T13590: Large HTTP repository pushes may leave clustered repository write lock held: D21525: Catch more HTTP VCS errors and convert them into VCS repsonses.
Jan 27 2021, 12:03 AM · Diffusion
epriestley added a revision to T13590: Large HTTP repository pushes may leave clustered repository write lock held: D21524: After loading the effective Viewer during a VCS request, flag them for inline cache generation.
Jan 27 2021, 12:01 AM · Diffusion

Jan 26 2021

epriestley added a revision to T13590: Large HTTP repository pushes may leave clustered repository write lock held: D21523: Return Git HTTP error messages in an HTTP header.
Jan 26 2021, 11:58 PM · Diffusion
epriestley closed T13593: Testing for changed refs in repositories with >65K refs misses ref cache as Resolved.

This at least resolved the obvious badness in the case of PHI1979.

Jan 26 2021, 11:04 PM · Diffusion
epriestley closed T13595: Browsing directories with submodules fails with bad call to "setExternalURI()" as Resolved.

However, the existence of the original code might point at a bug in the "Variable Reused as Iterator" lint check: I would expect it to have prevented the original code in the first place.

Jan 26 2021, 11:03 PM · Diffusion, Lint
epriestley added a comment to T13592: Initial discovery in large repositories may take an unreasonably long amount of time.

As a coarse first pass at this, forcing the commit cache to fail results in a full discovery of the Linux repository in 14 seconds, versus 2m36s with normal cache behavior.

Jan 26 2021, 8:26 PM · Diffusion
epriestley added a revision to T13593: Testing for changed refs in repositories with >65K refs misses ref cache: D21521: Improve performance of repository discovery in repositories with >65K refs.
Jan 26 2021, 7:10 PM · Diffusion
epriestley updated the task description for T13595: Browsing directories with submodules fails with bad call to "setExternalURI()".
Jan 26 2021, 5:38 PM · Diffusion, Lint
epriestley added a revision to T13595: Browsing directories with submodules fails with bad call to "setExternalURI()": D21520: Fix a "setExternalURI()" fatal while browsing directories with submodules.
Jan 26 2021, 4:42 PM · Diffusion, Lint
epriestley triaged T13595: Browsing directories with submodules fails with bad call to "setExternalURI()" as Normal priority.
Jan 26 2021, 4:37 PM · Diffusion, Lint
epriestley added a comment to T13593: Testing for changed refs in repositories with >65K refs misses ref cache.

I updated the description, but the relevant workflow is during the "discovery" step, not the "refs" step. The "refs" step uses the RefCursor table and doesn't interact with the commit cache.

Jan 26 2021, 4:27 PM · Diffusion
epriestley updated the task description for T13593: Testing for changed refs in repositories with >65K refs misses ref cache.
Jan 26 2021, 4:26 PM · Diffusion
epriestley added a comment to T13166: Herald "block" and "send an email" actions are mutually exclusive, which isn't intuitive.

It looks like the case in PHI1977 was actually a situation of attempting to trigger an audit by writing a Differential rule, so the Global/Personal stuff may still be worth fixing but has zero known cases of actual confusion in the wild. I'm less sure how the UI could be clarified around the Audit/Differential issue.

Jan 26 2021, 4:21 PM · Diffusion, Herald

Jan 25 2021

epriestley triaged T13593: Testing for changed refs in repositories with >65K refs misses ref cache as Normal priority.
Jan 25 2021, 4:56 PM · Diffusion

Jan 23 2021

epriestley triaged T13592: Initial discovery in large repositories may take an unreasonably long amount of time as Low priority.
Jan 23 2021, 5:46 PM · Diffusion
epriestley added a comment to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".

After D21518:

Jan 23 2021, 3:51 AM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21518: Correct some issues around IMPORTED_PERMANENT in RefEngine.
Jan 23 2021, 12:38 AM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21517: Support an "--active" flag for selecting active tasks.
Jan 23 2021, 12:10 AM · Daemons, Diffusion

Jan 22 2021

epriestley added a comment to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".

These parts seem likely resolved once I convince myself the patches so far actually work:

Jan 22 2021, 11:57 PM · Daemons, Diffusion
epriestley added a comment to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".

I have a change to add containerPHID locally, but it ends up having relatively high complexity because several other patches (including 20190909.herald.01.rebuild.php) call PhabricatorRebuildIndexesWorker::rebuildObjectsWithQuery(...), which does not work if executed in sequence prior to a worker queue schema change.

Jan 22 2021, 11:47 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21516: Lift logic for queueing commit import tasks into RepositoryEngine.
Jan 22 2021, 10:50 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21515: Separate "shouldPublishRef()" from "isPermanentRef()" and set "IMPORTED_PERMANENT" more narrowly.
Jan 22 2021, 10:09 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21514: Rename "IMPORTED_CLOSEABLE" to "IMPORTED_PERMANENT" to clarify the meaning of the flag.
Jan 22 2021, 9:41 PM · Daemons, Diffusion
epriestley added a comment to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".

This also relates slightly to T13580, but I believe the two issues are addressable independently.

Jan 22 2021, 9:24 PM · Daemons, Diffusion
epriestley added a comment to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".

However, I'd like to have a better understanding of how we're reaching this state, and I'm not satisfied that these repositories are going down the "natural" pathway (of changing ref definitions after the import starts) and suspect there is some more complicated interaction at play here.

Jan 22 2021, 9:18 PM · Daemons, Diffusion
epriestley added a revision to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": D21513: Correct the behavior of "bin/repository discover --repair".
Jan 22 2021, 8:25 PM · Daemons, Diffusion
epriestley added a comment to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".

I'm hoping to land at least a narrow fix for this today to support an import in PHI1979 tomorrow. However, I'd like to have a better understanding of how we're reaching this state, and I'm not satisfied that these repositories are going down the "natural" pathway (of changing ref definitions after the import starts) and suspect there is some more complicated interaction at play here.

Jan 22 2021, 8:23 PM · Daemons, Diffusion
epriestley updated the task description for T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".
Jan 22 2021, 6:47 PM · Daemons, Diffusion
epriestley updated the task description for T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT".
Jan 22 2021, 6:45 PM · Daemons, Diffusion
epriestley added a project to T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT": Daemons.
Jan 22 2021, 6:05 PM · Daemons, Diffusion
epriestley triaged T13591: Importing repositories may incorrectly queue some tasks at "PRIORITY_COMMIT" as Normal priority.
Jan 22 2021, 6:05 PM · Daemons, Diffusion