Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ddd25f5
ci: update to rust version of flint
zeitlinger Apr 22, 2026
705401a
ci: preserve full link-check mode on push
zeitlinger Apr 22, 2026
36ea753
ci: allow raw args for lint task
zeitlinger Apr 22, 2026
6ae4434
docs: fix OpenTelemetry Java coding patterns link
zeitlinger Apr 23, 2026
3337dd9
chore: update flint to 0.20.4
zeitlinger Apr 23, 2026
0ed543a
fix: add flint-managed linter configs
zeitlinger Apr 23, 2026
328535a
fix: finish rust-native formatter cutover
zeitlinger Apr 23, 2026
4576dbe
chore: keep flint config under config dir
zeitlinger Apr 23, 2026
1f28629
ci: keep flint rollout scoped to lychee
zeitlinger Apr 26, 2026
22ef1e1
chore: update flint to v0.21.0
zeitlinger Apr 27, 2026
ab98205
chore: clarify yamllint ownership
zeitlinger Apr 27, 2026
c764664
Merge branch 'main' into use-rust-flint-v2
zeitlinger Apr 27, 2026
7ddf659
chore: rely on flint renovate preset
zeitlinger Apr 27, 2026
ea0d4d4
chore: clean otel mise and renovate config
zeitlinger Apr 27, 2026
a0c10bb
chore: keep first-round otel tools minimal
zeitlinger Apr 27, 2026
d2af6d0
chore: keep first-round otel config minimal
zeitlinger Apr 27, 2026
6ee1030
chore: keep first-round otel rollout minimal
zeitlinger Apr 27, 2026
846e086
chore: restore minimal mise settings
zeitlinger Apr 27, 2026
596f582
chore: drop unrelated contributing doc drift
zeitlinger Apr 27, 2026
1fc5b52
chore: sync contributing guide with upstream main
zeitlinger Apr 27, 2026
7ac974d
docs: point style guide link to coding patterns
zeitlinger Apr 27, 2026
a14261e
ci: pass current flint GitHub env vars
zeitlinger Apr 27, 2026
1c27524
chore: drop redundant mise setting
zeitlinger Apr 27, 2026
023a57f
chore: rely on flint task defaults
zeitlinger Apr 27, 2026
96454d5
ci: rename lint workflow
zeitlinger Apr 28, 2026
07a94bb
fix: drop unrelated editorconfig changes
zeitlinger Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/config/flint.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[checks.lychee]
check_all_local = true

[settings]
setup_migration_version = 2
12 changes: 1 addition & 11 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
"github>grafana/flint#v0.21.0",
'config:best-practices',
'helpers:pinGitHubActionDigestsToSemver',
'customManagers:githubActionsVersions',
Expand Down Expand Up @@ -66,17 +67,6 @@
},
],
customManagers: [
{
// keep SHA-pinned raw.githubusercontent.com URLs in mise.toml up to date
customType: 'regex',
datasourceTemplate: 'github-tags',
managerFilePatterns: [
'/^mise\\.toml$/',
],
matchStrings: [
'https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[a-f0-9]{40})/.*#\\s*(?<currentValue>v\\S+)',
],
},
{
customType: 'regex',
datasourceTemplate: 'docker',
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
with:
cache-read-only: true

link-check:
uses: ./.github/workflows/reusable-link-check.yml
lint:
uses: ./.github/workflows/reusable-lint-check.yml

required-status-check:
if: always()
needs:
- common
- link-check # wait for link check to complete, but don't require it to pass for merging
- lint # wait for lint to complete, but don't require it to pass for merging
runs-on: ubuntu-latest
steps:
# The reusable workflow success depends on all its jobs passing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Reusable - Link check
name: Reusable - Lint check

on:
workflow_call:
Expand All @@ -7,7 +7,7 @@ permissions:
contents: read

jobs:
link-check:
lint-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -16,16 +16,18 @@ jobs:

- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1

- name: Link check for pull requests
- name: Lint for pull requests
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_BASE_REF: ${{ github.base_ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
PR_HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
run: mise run lint:links
run: mise run lint

- name: Link check for pushes and scheduled workflows
- name: Lint for pushes and scheduled workflows
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
run: mise run lint:links --full
run: mise run lint --full
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ generate semantic conventions classes from the release contents.

## Style guide

This repository follows the OpenTelemetry Java
repository's [style guide](https://github.com/open-telemetry/opentelemetry-java/blob/main/CONTRIBUTING.md#style-guideline).
This repository follows the OpenTelemetry Java repository's
[coding patterns](https://github.com/open-telemetry/opentelemetry-java/blob/main/docs/knowledge/README.md).
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

broke before and is now fixed: Error: https://raw.githubusercontent.com/open-telemetry/opentelemetry-java/main/CONTRIBUTING.md#style-guideline | Cannot find fragment: Fragment not found in document. Check if fragment exists or page structure

24 changes: 12 additions & 12 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[tools]

# Linters
"github:grafana/flint" = "0.21.0"
lychee = "0.23.0"

[settings]
# Only install tools explicitly defined in the [tools] section above
idiomatic_version_file_enable_tools = []
[tasks.lint]
description = "Run link checks"
raw_args = true
run = "flint run"

# Windows configuration for file-based tasks
# Based on: https://github.com/jdx/mise/discussions/4461
windows_executable_extensions = ["sh"]
windows_default_file_shell_args = "bash"
use_file_shell_for_executable_tasks = true
[tasks."lint:fix"]
description = "Auto-fix lint issues"
run = "flint run --fix"

# Pick the tasks you need from flint (https://github.com/grafana/flint)
[tasks."lint:links"]
description = "Check for broken links in changed files + all local links"
file = "https://raw.githubusercontent.com/grafana/flint/feab606ce514fbbf2722cc26aeafa39956383cf3/tasks/lint/links.sh" # v0.21.0
[env]
FLINT_CONFIG_DIR = ".github/config"
Loading