kgeisz commented on code in PR #8724: URL: https://github.com/apache/hbase/pull/8724#discussion_r4155365827
########## dev-support/read-replica/python/render_pytest_html_csp_safe.py: ########## @@ -0,0 +1,123 @@ +#!/usr/bin/env python3 +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +"""Materialize pytest-html 4.x report rows as static HTML. Review Comment: nit ```suggestion """ Materialize pytest-html 4.x report rows as static HTML. ``` ########## dev-support/read-replica/run_read_replica_integration_tests.sh: ########## @@ -301,5 +301,11 @@ pytest -o log_cli=true --log-cli-level=INFO \ PYTEST_SEC=$((SECONDS - PYTEST_START)) echo "Pytest wall time: ${PYTEST_SEC}s ($(format_duration_hms "${PYTEST_SEC}"))" +# pytest-html 4.x renders the results table via JavaScript; Jenkins CSP blocks inline +# scripts on archived/publishHTML reports, leaving an empty table unless we materialize rows. +echo "Materializing static HTML rows for Jenkins CSP-safe viewing..." +python3 python/render_pytest_html_csp_safe.py \ Review Comment: nit: Can we move `python/render_pytest_html_csp_safe.py` to `python/scripts/render_pytest_html_csp_safe.py` and update this command that runs the script? -- 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]
