Pull request checks

Learn how to make your pull request successfully pass all checks

When you raise a pull request (PR) with the opentelemetry.io repository a set of checks are executed. The PR checks verify that:

Easy CLA

This check fails if you haven’t signed the CLA.

Netlify deployment

If the Netlify build fails, select Details for more information.

GitHub PR checks

To make sure that contributions follow our style guide we have implemented a set of checks that verify style guide rules and fail if they find any issues.

The following list describes current checks and what you can do to fix related errors:

TEXT linter

This check verifies that OpenTelemetry-specific terms and words are used consistently across the site.

If any issues are found, annotations are added to your files in the files changed view of your PR. Fix those to turn the check green. As an alternative, you can run npm run check:text -- --fix locally to fix most issues. Run npm run check:text again and manually fix the remaining issues.

MARKDOWN linter

This check verifies that standards and consistency for Markdown files are enforced.

If any issues are found, run npm run fix:format to fix most issues. For more complex issues, run npm run check:markdown and apply the suggested changes.

SPELLING check

This check verifies that all words are spelled correctly.

CSPELL check

This check will verify that all words in your cSpell ignore list are normalized.

If this check fails, run npm run fix:dict locally and push the changes in a new commit.

FILENAME check

This check verifies that all files are formatted by prettier.

If this check fails, run npm run fix:format locally and push the changes in a new commit.

FILE FORMAT

This check verifies that all file names are in kebab-case.

If this check fails, run npm run fix:filenames locally and push the changes in a new commit.

This check builds the website and verifies that all links are valid.

To check links locally, run npm run check:links. This command also updates the reference cache. Push any changes to the refcache in a new commit.

Fix 404s

You need to fix the URLs reported as invalid (HTTP status 404), by the link checker.

The link checker will sometimes get an HTTP status other than 200 (success) by servers that block checkers. Such servers will often return an HTTP status in the 400 range other than 404, such as 401, 403, or 406, which are the most common. Some servers, link LinkedIn, report 999.

If you have manually validated an external link that the checker isn’t getting a success status for, you can add the following query parameter to your URL to have the link checker ignore it: ?no-link-check. For example, https:/some-example.org?no-link-check will be ignored by the link checker.

WARNINGS in build log?

If this check fails, review the BUILD and CHECK LINKS log, under the npm run log:check:links step, for any other potential issues. Ask maintainers for help, if you are unsure how to recover.