Repository navigation
tentacle: qa,src: replace deprecated egrep/fgrep with grep -E/grep -F - #71917
Conversation
egrep and fgrep are deprecated and emit warnings on modern systems: egrep: warning: egrep is obsolescent; using grep -E Replace all occurrences of egrep with grep -E and fgrep with grep -F across shell scripts, Python files, and YAML configs. These are POSIX-defined equivalences with identical behavior. Fixes: https://tracker.ceph.com/issues/75776 Signed-off-by: Lumir Sliva <[email protected]> (cherry picked from commit 8b9dbb5) Conflicts: qa/workunits/rbd/cli_generic.sh: this branch does not carry the test_trash_purge_schedule_staggering test added on main. Applied the fgrep -> grep -F substitution to the occurrences present here.
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #71917 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| e729073 qa,src: replace deprecated egrep/fgrep with grep -E/grep -F | PR #68095 | 8b9dbb5 qa,src: replace deprecated egrep/fgrep with grep -E/grep -F |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport e729073 (cherry-pick of 8b9dbb5)
Affected File(s)
qa/workunits/rbd/cli_generic.sh
Range Diff
Click to expand
--- Original (8b9dbb50)
+++ Backport (e7290733)
@@ -10,3 +10,9 @@
Fixes: https://tracker.ceph.com/issues/75776
Signed-off-by: Lumir Sliva <[email protected]>
+(cherry picked from commit 8b9dbb50d08c6e4f2ca5a444ffcbabc658ec8090)
+
+Conflicts:
+ qa/workunits/rbd/cli_generic.sh: this branch does not carry the
+ test_trash_purge_schedule_staggering test added on main. Applied the
+ fgrep -> grep -F substitution to the occurrences present here.
================================================================================
RANGE DIFF
================================================================================
1: 8b9dbb50d08 ! 1: e72907331ad qa,src: replace deprecated egrep/fgrep with grep -E/grep -F
@@ Commit message
Fixes: https://tracker.ceph.com/issues/75776
Signed-off-by: Lumir Sliva <[email protected]>
+ (cherry picked from commit 8b9dbb50d08c6e4f2ca5a444ffcbabc658ec8090)
+
+ Conflicts:
+ qa/workunits/rbd/cli_generic.sh: this branch does not carry the
+ test_trash_purge_schedule_staggering test added on main. Applied the
+ fgrep -> grep -F substitution to the occurrences present here.
## qa/standalone/mon/osd-crush.sh ##
@@ qa/standalone/mon/osd-crush.sh: function TEST_crush_rule_create_simple() {
@@ qa/workunits/rbd/cli_generic.sh: test_trash_purge_schedule() {
expect_fail rbd trash purge schedule ls
test "$(rbd trash purge schedule ls -R --format json)" = "[]"
-@@ qa/workunits/rbd/cli_generic.sh: test_trash_purge_schedule_staggering() {
-
- # Initial empty check
- test "$(ceph rbd trash purge schedule list)" = "{}"
-- ceph rbd trash purge schedule status | fgrep '"scheduled": []'
-+ ceph rbd trash purge schedule status | grep -F '"scheduled": []'
-
- # Create 80 namespaces
- for i in {1..80}; do
@@ qa/workunits/rbd/cli_generic.sh: test_mirror_snapshot_schedule() {
rbd mirror pool peer add rbd2 cluster1
@@ qa/workunits/rbd/cli_generic.sh: test_mirror_snapshot_schedule() {
expect_fail rbd mirror snapshot schedule ls
test "$(rbd mirror snapshot schedule ls -R --format json)" = "[]"
-@@ qa/workunits/rbd/cli_generic.sh: test_mirror_snapshot_schedule_staggering() {
-
- # Initial empty check
- test "$(ceph rbd mirror snapshot schedule list)" = "{}"
-- ceph rbd mirror snapshot schedule status | fgrep '"scheduled_images": []'
-+ ceph rbd mirror snapshot schedule status | grep -F '"scheduled_images": []'
-
- # Create 80 images
- for i in {1..80}; do
@@ qa/workunits/rbd/cli_generic.sh: test_mirror_pool_peer_bootstrap_create() {
test "$TOKEN_FSID" = "$(ceph fsid)"
test "$TOKEN_KEY" = "$(ceph auth get-key client.$TOKEN_CLIENT_ID)"How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @idryomov. |
|
jenkins test windows |
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-09-22-04:07. |
|
This PR has been added to wip-bharath19-testing-20260922.090258-tentacle. |
RGW pr testing completed and approved by @ivancich , more details in https://tracker.ceph.com/issues/80711. |
backport tracker: https://tracker.ceph.com/issues/80630
backport of #68095
parent tracker: https://tracker.ceph.com/issues/75776
this backport was staged manually
One adaptation. Tentacle doesn't carry the
test_trash_purge_schedule_staggering test main added later to
qa/workunits/rbd/cli_generic.sh, so the fgrep -> grep -F substitution
covers the 13 call sites that exist here instead of 14. Everything else
applied unchanged.
After this the only egrep left on tentacle is in src/vstart.sh (fixed on
main by 745cece, never backported) and one doc example. Neither runs
in teuthology.
Checklist