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

Add Slack to Owners Page (Proof of Concept, do not land) #872

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Commits on Oct 1, 2021

  1. [phab] Add retries to HTTP POST harbormaster builds as well as grafan…

    …a metrics
    
    Summary:
    this diff adds exponential backoff retries for harbormaster builds that return an error status code (for our use case, this will usually be 28 for timeouts).
    
    in addition, it adds grafana metrics for HTTP post requests and their status codes (filterable by build plan).
    
    Test Plan:
    i copy pasted my local code onto the build-core phabricator code base and then used the bin/harbormaster binary to manually trigger runs of my build plan. you can see it in action here:
    https://phabricator.robinhood.com/harbormaster/build/2385585/
    
    i intentionally changed the TOKEN for one of the jobs to something different, and as you can see the HTTP403 was retried 3 times at increasing intervals. the other job which i didnt modify was triggered succesfully and ran to completion.
    
    you can also see associated metrics here: http://metrics.dev.rhinternal.net/explore?orgId=1&left=%5B%22now-1h%22,%22now%22,%22cortex-multitenant%22,%7B%22exemplar%22:true,%22expr%22:%22phabricator_build_result_total%22%7D%5D
    
    Reviewers: paul.tarjan, stephan.zharkov, harry.li
    
    Reviewed By: paul.tarjan
    
    Task Link: https://robinhood.atlassian.net/browse/TI-1144
    
    Differential Revision: https://phabricator.robinhood.com/D292841
    Jeff An authored and gsilk committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    13ec744 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b527033 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. [DEVX-2064] disable foist upon and commandeer

    Summary:
    To handle the security task, we've decided to disable 'foist upon' and
    'commandeer' feature in our fork.
    
    Test Plan:
    tested in staging.
    * Before:
    revision editor: {F5071084}
    author's UI: {F5071086}
    reviewer's UI: {F5071087}
    
    * After:
    revision editor: {F5071088}
    author's UI: {F5071154}
    reviewer's UI: {F5071089}
    
    Reviewers: greg.magolan, paul.tarjan
    
    Reviewed By: paul.tarjan
    
    Task Link: https://robinhood.atlassian.net/browse/DEVX-2064
    
    Differential Revision: https://phabricator.robinhood.com/D304649
    txchen committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    386590f View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2021

  1. [phabricator] only save build_unit_message for failed case or coverage

    Summary:
    Try to improve the revision page load latency.
    Jenkins test will report back to harbormaster for every single test case run, and phabricator will save all of them to database.
    Currently the table is having 1.8 billion rows, and for the revision that has a lot of test cases in CI, the page load logic will read
    huge amount of data, and often we see timeouts.
    
    After this change, we will only save for failed test case (so that dev can still view the test log), and if coverage data is provided in the unit_message, we will save as well.
    
    Test Plan: manual apply change to staging and test
    
    Reviewers: boyang.tian
    
    Reviewed By: boyang.tian
    
    Task Link: DEVX-2087
    
    Differential Revision: https://phabricator.robinhood.com/D306789
    txchen committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    b31feee View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2021

  1. [perf] skip file policy check if it is public or readable by all users

    Summary:
    Phabricator is checking files' policy if they are used in timeline or feed.
    
    For commonly used files, like a meme in the test failure message, the file will be attached to
    huge amount of the revisions, and make the policy check very slow and resource hogging.
    
    This change adds a short-circuit evaluation: if file policy is public or all_users, skip doing the
    expensive check.
    
    Test Plan: Change in staging and test.
    
    Reviewers: boyang.tian
    
    Reviewed By: boyang.tian
    
    Differential Revision: https://phabricator.robinhood.com/D306850
    txchen committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    6ea07f7 View commit details
    Browse the repository at this point in the history
  2. Re-enable commandeer

    Summary:
    Based on the slack discussion: https://hood.slack.com/archives/C016GGP0QDD/p1635800664006300
    
    Partially revert 386590f to restore commandeer.
    
    Please notice that with commandeer, hacker can use single machine to land the code: grabbing an
    accepted diff -> change -> land.
    
    Test Plan: staging
    
    Reviewers: paul.tarjan
    
    Reviewed By: paul.tarjan
    
    Subscribers: paul.tarjan
    
    Differential Revision: https://phabricator.robinhood.com/D307232
    txchen committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    aace7af View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. [phab] fix error handling for metrics emitting and increase nc timeout

    Summary: ^
    
    Test Plan:
    i can patch in the code on canary phab and make sure harboramster is still good
    
    tested live on prod phabricator as well
    
    Reviewers: paul.tarjan
    
    Reviewed By: paul.tarjan
    
    Differential Revision: https://phabricator.robinhood.com/D303561
    Jeff An committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    ce54a03 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. Disable changing username during registration

    Summary:
    We want to ensure that Phabricator username is the same as user's email prefix and not changed during registration.
    
    SW-ID-6553158c3b
    
    Test Plan: Observe registration flow after deployment with an employee who is not an engineer
    
    Reviewers: gabriel.silk, paul.tarjan
    
    Reviewed By: gabriel.silk
    
    Differential Revision: https://phabricator.robinhood.com/D348202
    annapst committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    6e700e5 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2022

  1. Disable changing username during registration, try 2

    Summary:
    The previous change did disable the box, but resulted in an error after clicking the register button
    afterwards. This is attempt to do this differently - using another control type.
    
    SW-ID-a8c6c5308e
    
    Test Plan: Observe registration flow after deployment with an employee who is not an engineer
    
    Reviewers: gabriel.silk, paul.tarjan
    
    Reviewed By: gabriel.silk
    
    Differential Revision: https://phabricator.robinhood.com/D349374
    annapst committed Feb 25, 2022
    Configuration menu
    Copy the full SHA
    39a5237 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2022

  1. Disable changing username during registration, try 3

    Summary:
    I understood this controller calls this page multiple times, so this change
    takes this into account.
    
    SW-ID-d68578809d
    
    Test Plan: Observe registration flow after deployment with an employee who is not an engineer
    
    Reviewers: gabriel.silk, paul.tarjan
    
    Reviewed By: gabriel.silk
    
    Differential Revision: https://phabricator.robinhood.com/D350590
    annapst committed Mar 1, 2022
    Configuration menu
    Copy the full SHA
    2c9c3ba View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Improve kubediff comments in Phab

    Summary:
    ^
    
    SW-ID-69834bc741
    
    Test Plan: None
    
    Reviewers: david.aghassi
    
    Reviewed By: david.aghassi
    
    Differential Revision: https://phabricator.robinhood.com/D428019
    annapst committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    c9155b9 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Improve comments take 2

    Summary:
    ^
    
    SW-ID-4df721d987
    
    Test Plan: staging
    
    Reviewers: david.aghassi
    
    Reviewed By: david.aghassi
    
    Differential Revision: https://phabricator.robinhood.com/D431131
    annapst committed Sep 13, 2022
    Configuration menu
    Copy the full SHA
    d2a19fe View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2022

  1. Require revisions to be updated in the last 30 days by default

    Summary:
    Stale revisions are unlandable and make it very hard to find things in
    the UI.
    
    SW-ID-f8f44e04f7
    
    Test Plan: staging
    
    Reviewers: anna.pstrucha
    
    Reviewed By: anna.pstrucha
    
    Differential Revision: https://phabricator.robinhood.com/D447876
    pugmajere committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    74b6f30 View commit details
    Browse the repository at this point in the history
  2. [differential] Enable the modified start/end fields in search

    Summary:
    This will help manage the large number of stale and abandoned diffs
    left after the layoffs.
    
    SW-ID-b9431677ef
    
    Test Plan: staging
    
    Reviewers: anna.pstrucha
    
    Reviewed By: anna.pstrucha
    
    Differential Revision: https://phabricator.robinhood.com/D447877
    pugmajere committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    f2c2599 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2023

  1. Editing the Phabricator disclosure markup rule

    Summary:
    Phabricator alters html symbols like < and > before rule processing which prevents the current diclosure rule from ever being applied. This changes the rule to use
    the syntax of confluences expand macro to avoid using html symbols.
    
    Test Plan: local testing
    
    Differential Revision: https://phabricator.robinhood.com/D475229
    GavinLoughridge committed Jan 7, 2023
    Configuration menu
    Copy the full SHA
    0e8a5ea View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2023

  1. [commit-rendering] include project tags in commit template

    Summary:
    
    This is expected to include project tags in the commit message that is fetched by PHLQ
    
    Test Plan: Deploy to Phabricator staging and use https://secure.phabricator.com/conduit/method/differential.getcommitmessage/ to view rendering
    
    Reviewers: #devx
    
    Subscribers:
    
    Task Link:
    joeljeske committed Jun 7, 2023
    Configuration menu
    Copy the full SHA
    4a0844b View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2023

  1. Merge pull request #2 from robinhoodmarkets/tags-in-commit

    [commit-rendering] include project tags in commit template
    joeljeske authored Jun 8, 2023
    Configuration menu
    Copy the full SHA
    e82818a View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. Configuration menu
    Copy the full SHA
    cbbfd72 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. Configuration menu
    Copy the full SHA
    56cd30a View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2023

  1. Configuration menu
    Copy the full SHA
    f7434d6 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2024

  1. [phabricator] add exact responsible viewer function

    Summary:
    when we query revisions, there is `exact(<username>)` function that matches the exact user only, and not projects or groups the user is a member of; this is useful when we search revisions that we are directly tagged on, however this function must take in a specific username, so I can't build a query generalized for everyone
    
    there is also a `viewer()` function, which is supposed to be a general query that can be used to build dashboards, so whoever views a dashboard used query with this function only sees their own stuff, but this includes the viewer's projects and groups and everything
    
    this diffs adds an `exact-viewer()` function, which combines the two, so we can query things match exactly the viewer
    
    why this change: when we discussed in our team sync how the current default phabricator "Home" dashboard is not so useful and I built my own query, @brian.myers said he wanted it to. So I figure instead of teaching people the query, I can just build a new home dashboard that's more informational. this exact-viewer() function makes the query generalized so I can just build a dashboard on top this query and make it available to everyone
    
    Test Plan:
    tested locally, and on phabricator staging
    
    when I query "exact current viewer"
    {F14482326}
    I get my own stuff
    {F14482342}
    
    when I query "current viewer"
    {F14482353}
    I get a diff where I'm the group reviewer
    {F14482375}
    
    Reviewers: brian.myers, joel.jeske
    
    Reviewed By: brian.myers
    
    Subscribers: brian.myers
    
    Differential Revision: https://phabricator.robinhood.com/D643179
    yi-lu committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    9ab3223 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Configuration menu
    Copy the full SHA
    fc3ce9d View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. Merge pull request #5 from robinhoodmarkets/marcelo/custom-field-set-…

    …object
    
    [custom fields] Call setObject before shouldEnableForRole
    yi-lu authored Mar 5, 2024
    Configuration menu
    Copy the full SHA
    4368724 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. Revert "Merge pull request #5 from robinhoodmarkets/marcelo/custom-fi…

    …eld-set-object"
    
    This reverts commit 4368724, reversing
    changes made to 9ab3223.
    yi-lu committed Mar 8, 2024
    Configuration menu
    Copy the full SHA
    f8fbf1a View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. Configuration menu
    Copy the full SHA
    e310cbd View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. [phabricator] Add slack channel to ping for review to owners page

    Summary: When engineers know which channel to ping for review, reviews are done faster. For every 5 minutes it takes to do a code review costs 1600 engineer days are saved per year.
    
    Test Plan: Demo
    
    Reviewers:
    
    Subscribers:
    
    Task Link:
    
    RedOak ID:
    
    Tags:
    kvissuet committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    c2eab37 View commit details
    Browse the repository at this point in the history