Commit fae36fa
clientinfo: thread CI_PURPOSE through FbClientInfo
Summary:
When the sandcastle worker sets the CI_PURPOSE environment variable, we want to pass that information to Mononoke. This diff adds a ci_purpose field to FbClientInfo, which is serialized into the X-Client-Info header similar to Sandcastle Alias.
Their values are not dissimlar form aliases but better suited for demand control. In faxct, they are the identifier RE uses for CI demand control. This table contain some examples: https://fburl.com/scuba/ci_demand_budget_entity_purpose_quotas_grodd_inde/kluni1nk
| purpose | Hits | Samples |
| -----| -----| ----- |
| "diff_citadel_fbcode" | 11 | 11 |
| "autoknowledge" | 8 | 8 |
| "citadel_orchestrator" | 8 | 8 |
| "ig-postcommit" | 6 | 6 |
| "rl_robotics_xqb" | 6 | 6 |
| "whatsapp_ml_agent" | 6 | 6 |
| "ads_ai_baf" | 5 | 5 |
| "devmate_code_review" | 5 | 5 |
| "quality_analyser" | 5 | 5 |
| "whatsapp-cf" | 5 | 5 |
If no purpose is set, the field is omitted from the header.
Reviewed By: muirdm
Differential Revision: D109559711
fbshipit-source-id: 52681b934573b224929558e7bb8a27eea5e2458f1 parent 581661a commit fae36fa
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
121 | 127 | | |
122 | 128 | | |
123 | 129 | | |
| 130 | + | |
124 | 131 | | |
125 | 132 | | |
126 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
0 commit comments