Skip to content

Commit

Permalink
[NFC] repo-wide: Replace montoring.yml with monitoring.yaml
Browse files Browse the repository at this point in the history
**Summary**

- Previous commit handled all the renames, this commit chnages:
- Comment text in some monitoring files
- The taskfile task for a new monitoring file
- The CI check for monitoring file existence
  • Loading branch information
davidjharder committed Jan 12, 2025
1 parent 071d113 commit ee3114d
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,19 +295,19 @@ tasks:
- common/Scripts/check_appstream_progress.py packages

add-monitoring:
desc: Add skeleton for monitoring.yml
desc: Add skeleton for monitoring.yaml
dir: '{{ .USER_WORKING_DIR }}'
vars:
DATE:
sh: date -u +%Y-%m-%d
COMMENT: "# No known CPE, checked {{ .DATE }}"
cmds:
- touch monitoring.yml
- touch monitoring.yaml
- yq --inplace '
. head_comment="Remove all comments before submitting, except CPE check date if none found" |
.releases.id line_comment = "Check https://release-monitoring.org/" |
.releases.rss line_comment = "For example https://github.com/PyO3/maturin/releases.atom" |
.releases.[] = ~ |
(.security | key) head_comment = "{{ .COMMENT }}" |
.security.cpe = ~
' monitoring.yml
' monitoring.yaml
4 changes: 2 additions & 2 deletions common/CI/package_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def _includes_homepage(self, file: str) -> bool:


class Monitoring(PullRequestCheck):
_error = '`monitoring.yml` is missing'
_error = '`monitoring.yaml` is missing'
_level = Level.WARNING

def run(self) -> List[Result]:
Expand All @@ -430,7 +430,7 @@ def run(self) -> List[Result]:
if not self._has_monitoring_yml(f)]

def _has_monitoring_yml(self, file: str) -> bool:
return self._exists(os.path.join(os.path.dirname(file), 'monitoring.yml'))
return self._exists(os.path.join(os.path.dirname(file), 'monitoring.yaml'))


class PackageBumped(PullRequestCheck):
Expand Down
2 changes: 1 addition & 1 deletion packages/a/appstream-data/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/f/ffmpeg-chromium-opera/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/f/ffmpeg-chromium-vivaldi-stable/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/f/ffmpeg-chromium/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/p/piksemel/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/py/python-gobject2/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/py/python2-gobject/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/w/webrtc-audio-processing03/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down
2 changes: 1 addition & 1 deletion packages/w/woff-tools/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This package will never benefit from a monitoring.yml please do not attempt to edit any of the fields.
# This package will never benefit from a monitoring.yaml please do not attempt to edit any of the fields.
# https://github.com/getsolus/packages/issues/4533
releases:
id: ~
Expand Down

0 comments on commit ee3114d

Please sign in to comment.