snazy commented on code in PR #3553: URL: https://github.com/apache/polaris/pull/3553#discussion_r2913873009
########## site/it/README.md: ########## @@ -0,0 +1,117 @@ +<!-- + 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. +--> + +# Polaris Guide Testing + +This repository contains tools and scripts for testing Apache Spark guides. +It provides a framework for running automated tests against guide content, +ensuring that at least the basic functionality works. + +## Overview + +Guide testing is performed via the "entry" shell script `site_guide_ci.sh`, +which can also be invoked locally. + +The "entry" script calls a Python tool to extract the code blocks from a +guide's Markdown file and write it to a temporary file as a bash script. +Only `shell` code blocks are extracted, see [Spark SQL](#spark-sql-code) below. + +The "entry" script then executes the generated bash script. + +Executed code blocks that do not complete successfully, stop the execution of +the generated test script and mark the test for that guide as failed. + +Each generated temporary bash script, one per guide, is called with the +current working directory set to the projects _workspace_ directory. + +## Running the tests + +Requirements: Python 3.14 Review Comment: I just have only tested it with 3.14. If it works with other Python versions, it's fine. -- 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]
