The purpose of this document is to provide a companion guide to the Related Website Sets Submission Guidelines, which details the full requirements for Related Website Sets creation and submission.
-
A GitHub account is required to make a set submission, since sets are submitted by creating a pull request (PR).
-
Submitters must sign a Contributor's License Agreement (CLA) to contribute to the GoogleChrome repo where the Related Website Sets (RWS) list lives. If you haven't signed it yet, you will be prompted to sign after you submit your PR.
- Identify which domains you want to declare in your RWS, and decide on the set primary and set members. Set members have a defined relationship with the set primary. Make sure your set members meet the relationship requirements under "Set Formation Requirements."
-
Create a local copy of the GitHub repository on your machine. You may choose to clone or fork the repository.
-
Create a new branch by using the command
git checkout -b your-branch-name -t origin/main
or via the UI. -
Create your JSON resources in the correct format. You can use the RWS JSON Generator tool to easily do this.
-
Make changes to the related_website_sets.JSON file to reflect your new or modified RWS.
-
Ensure you add your submission inside the
"sets": []
list (preferably at the end of the list).
-
Ensure that all domains in your set meet the Set-level technical validation checks. This includes, but is not limited to, checks that look for the https:// scheme and /.well-known metadata requirement.
-
Ensure that member domains in your set meet the Subset-level technical validation checks. This includes, but is not limited to, the X-Robots-Tag requirement for service domains.
Once you've made your changes to your local branch, you can open a terminal and run the command
python3 check_sites.py --primaries=https://yourprimary.example
or, equivalently, run
python3 check_sites.py -p https://yourprimary.example
You will get the results of any failed tests in the terminal. Otherwise, you will see "success" if your changes are passing all of the checks. Make sure that the text of the primary site you're passing into the command line is identical to the primary site you have listed in the related_website_sets.JSON file, or the tests will fail. If you would like to test multiple Related Website Sets at once, you can run the command above with multiple primaries in a comma separated list.
For example, to get the results of the checks for a set with https://foo.example
as its primary, you would run
python3 check_sites.py --primaries=https://foo.example
or equivalently
python3 check_sites.py -p https://foo.example
To get the results for both the set with https://foo.example
as its primary, and for the set with https://bar.example
as its primary, you would run
python3 check_sites.py --primaries=https://foo.example,https://bar.example
or
python3 check_sites.py -p https://foo.example -p https://bar.example
Once you've confirmed that your set is passing checks in your local branch, you can create a pull request (PR).
-
Push your local changes to your remote branch by using the command
git push origin your-branch-name
. -
Create a PR to pull your branch into the master.
-
You may need to resolve merge conflicts.
-
Wait for all actions to finish running to confirm whether your PR has passed or failed the checks.
-
Sometimes, especially if you had merge conflicts that you had to squash, a checkmark will appear before the action has actually run.
-
Check the "Actions" tab to confirm the status of the run triggered by your request.
-
If you want your PR to be merged in a timely manner, please enable repository maintainer permissions on your pull request. This allows the maintainers of the RWS repository to resolve merge conflicts on your behalf. Without this permission, the maintainers must wait for you to resolve any conflicts before they can merge your PR, even if it is otherwise passing the checks. This will delay your submission; maintainers will not revisit your PR until the next regular review.
Per the Submission Guidelines, approved PRs will be manually merged in batches to the canonical RWS list once per week (Tuesdays at 12pm Eastern Time).
-
If your PR fails, an error message will provide additional information on why the submission may have failed. Here is an example.
-
You can also investigate the details of the failure by clicking on "PR-Actions" then clicking the drop-down labeled "File contents."
-
If your PR is failing because of changes you made to related_website_sets.JSON, you can fix those issues in your local copy of the repository, push them to your branch as previously described, and the action will run again once you've finished. The comment should update with any changes to the error message or it will change to say that you've passed all of the tests.
Answer:
You can visit Google's page about the Contributor License Agreement to sign the CLA, or check if you already have a CLA on file.
Answer:
The /.well-known/ directory is commonly used by different services to fetch different metadata relating to a domain. In the case of RWS submission checks, we will be checking that your domains are all hosting a file at /.well-known/related-website-sets.json in order to prove ownership of the domain.
Answer: Yes, technically, you can change the set primary domain. However, when you change the set primary domain, Chrome's implementation will register this change as a set change, and clear site data for all the sites in this set, even if the new primary used to be a member in this set.
Answer: The rationale field is where you provide an explanation as to why or how the domain you've added meets the use case the subset is designed for. For service domains, you must provide an explanation of how each domain in this subset supports functionality or security needs. For associated domains, you must provide an explanation of how you clearly present the affiliation across domains to users and why users would expect your domains to be affiliated (e.g., an About page, header or footer, shared branding or logo, etc).
Answer: A key component to the technical checks that run upon submission is the /.well-known/ metadata requirement. This requirement demonstrates that the submitter has administrative access to the domains present in the set, since administrative access is required to modify the /.well-known/ file. This will help prevent unauthorized actors from adding domains to a set.
Q. Can I make pull requests against files other than related_website_sets.JSON (e.g., the Submission Guidelines or the technical checks)?
Answer: Please refrain from making suggestions in the form of pull requests to files in the GitHub repository other than related_website_sets.JSON. We welcome feedback to any of the content, but would prefer feedback to be submitted as issues to the repository instead.The purpose of this document is to provide a companion guide to the Related Website Sets Submission Guidelines, which details the full requirements for Related Website Sets creation and submission.