-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add YAMLLint to CI #1933
Add YAMLLint to CI #1933
Conversation
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Co-authored-by: Piotr Kiełkowicz <pkiekowicz@splunk.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1933 +/- ##
==========================================
- Coverage 73.91% 70.70% -3.21%
==========================================
Files 267 298 +31
Lines 9615 11133 +1518
==========================================
+ Hits 7107 7872 +765
- Misses 2508 3261 +753 Flags with carried forward coverage won't be shown. Click here to find out more. |
@mowies, thanks for doing this. As you described, this job is failing: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/actions/runs/9739790217/job/26875671492?pr=1933.
|
So we have 2 options for this: strict mode and ignoring warnings
I will disable the rule. |
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
@Kielek fixed all current linter errors, ignored the warnings for now. Please see my previous comment :) |
@movies, I think that we can ignore all warnings in this PR and enable strict mode in follow up/disable unwanted warnings one by one. Now it pulutes output and PRs: BTW, it will be great if you allow maintainers to modify your pr-branch. With this, we can merge all changes from current main, and merge it without waiting for you. |
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Sounds good @Kielek , I changed the command to include
It seems that I can't, since my fork is owned by an organization and not my personal account... |
@mowies, could you please merge main branch to your PR branch? I think that we are good to merge. Consider creating follow up issues/PRs with enabling more strict validation. |
Fixes #1688
Changes
Note
There's are lots of errors showing right now, using the default ruleset.
For now, I copied the ruleset from https://github.com/open-telemetry/opentelemetry-demo/blob/main/.yamllint which seems reasonable to me, but there's still some linting errors. I can definitely fix the remaining linter errors if somebody here tells me to :)
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes