The non-inclusive language check and 3p code

21 views
Skip to first unread message

Daniel Cheng

unread,
Oct 15, 2023, 10:02:33 PM10/15/23
to community, rust...@chromium.org
What is the expectation around non-inclusive language and 3p code?

In this case, the problematic file is here:

The flagged word reflects the name of the git branch. I *could* request the upstream project to rename their git branch and update their CI config, but while this would be the ideal outcome in an ideal world, it also imposes extra process work on the volunteer maintainers of an OSS project.

I could apply a local patch to this crate to add # nocheck comments as requested, but that seems heavyweight and complicates future work to update the 3p crate (anyone updating it has to remember there are local patches, and to re-apply them, and/or update the patches if needed).

Instead, I'm opting to just skip the presubmit, but it feels like there should be a better option here for 3p code (e.g. maybe we could provide an escape hatch via a tag in the CL description).

(There is a third option, which is for me to go and personally fix their project, but I think requiring that of every 3p library would be sub-optimal)

Daniel

Peter Kasting

unread,
Oct 16, 2023, 12:07:58 AM10/16/23
to Daniel Cheng, community, rust...@chromium.org
Imo, skipping the presubmit is fine, and I might drop a friendly note upstream telling them if they make a change it would be convenient for us, but I wouldn't go further.

PK

--
You received this message because you are subscribed to the Google Groups "community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to community+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/community/CAF3XrKpjhVdaYc9z35X7%3D0ySmhBYApr%2BSi5YJDnV6cMqMi-yjg%40mail.gmail.com.

Dirk Pranke

unread,
Oct 16, 2023, 2:41:15 PM10/16/23
to Peter Kasting, Daniel Cheng, community, rust...@chromium.org
I feel like we actually have guidance for this somewhere (that says that 3p code is out of scope) but I'm not finding it at the moment. I would also say that skipping presubmit in this case is fine. I can check w/ the Gerrit folks to see if there's an allowlist of exceptions we can maintain somewhere.

-- Dirk

Dirk Pranke

unread,
Oct 16, 2023, 6:26:40 PM10/16/23
to Josip Sokcevic, Peter Kasting, Daniel Cheng, community, rust...@chromium.org
Hi Josip,

Do you know if the inclusive language checker has any guidance on how to manage 3p code, and/or if there's some allowlist we can modify to make things pass?

-- Dirk

Josip Sokcevic

unread,
Oct 16, 2023, 7:00:26 PM10/16/23
to Dirk Pranke, Peter Kasting, Daniel Cheng, community, rust...@chromium.org
Afaik, there's no 3p guidance, but we have allowlist: https://source.chromium.org/chromium/chromium/src/+/main:infra/inclusive_language_presubmit_exempt_dirs.txt so I'd recommend adding it there. 
--
Josip Sokcevic

Daniel Cheng

unread,
Oct 16, 2023, 10:49:41 PM10/16/23
to Josip Sokcevic, Dirk Pranke, Peter Kasting, community, rust...@chromium.org
Thanks. I've sent out  https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4944933 to add language to consider updating the allowlist if appropriate. I hope that's OK—it specifically mentions 3p code, which I think should be understood to be about things under third_party (excepting Blink). I did this because I think a lot of people don't know about it: https://chromium-review.googlesource.com/c/chromium/src/+/4945250/

(And maybe we should be stricter about not allowing new additions in non 3p code?)

Daniel
Reply all
Reply to author
Forward
0 new messages