github-actions[bot] commented on code in PR #70271:
URL: https://github.com/apache/doris/pull/70271#discussion_r4657760263


##########
build-support/tests/test-build-hygiene-header-deps.sh:
##########
@@ -99,6 +107,69 @@ cp 
"${BACKUP}/be/src/storage/index/inverted/query/spi/index_source.h" \
     "${ROOT}/be/src/storage/index/inverted/query/spi/index_source.h"
 
 # ---- RED: third-party ban (uint24.h must not include fmt) ----
+# CLucene-free roots: an angle include two hops away from a root.
+printf '#pragma once\n#include <CLucene/util/Misc.h>\n' > 
"${ROOT}/${PROBE_INNER}"
+printf '#pragma once\n#include "util/zz_clucene_probe_inner.h"\n' > 
"${ROOT}/${PROBE_OUTER}"
+printf '#include "util/zz_clucene_probe_outer.h"\n' \
+    >> "${ROOT}/be/src/storage/index/inverted/query/spi/index_source.h"
+OUT="$(run_gate)"; EC=$?

Review Comment:
   [P2] Use portable in-place sed syntax in the new hygiene probes. Both added 
edits at lines 138 and 163 invoke `sed -i` without an extension; BSD/macOS sed 
rejects that form, so `test-build-hygiene-header-deps.sh` fails before it can 
exercise the stale-exception checks. Use `sed -i.bak ...` and remove the `.bak` 
files, matching the build-support portability rule and adjacent tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to