每轮只推进合理适量的上下文、禁止顺手扩功能 smoke:源码链接构建约束
This commit is contained in:
@@ -6,7 +6,8 @@ cd "$(dirname "$0")"
|
||||
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
|
||||
manifest=${1:-linuxcnc-rs274-wasm-source-files.txt}
|
||||
|
||||
LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs.sh "$manifest"
|
||||
LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh "$manifest"
|
||||
linuxcnc_root=$(cd "$linuxcnc_root" && pwd)
|
||||
|
||||
python_blockers=()
|
||||
core_python_sources=()
|
||||
@@ -53,19 +54,38 @@ wasm_safe_shim_in_build() {
|
||||
return 1
|
||||
}
|
||||
|
||||
core_source_output=$(./list-linuxcnc-wasm-manifest-sources.sh "$manifest" core)
|
||||
mapfile -t core_sources <<<"$core_source_output"
|
||||
blocked_source_output=$(./list-linuxcnc-wasm-manifest-sources.sh "$manifest" blocked)
|
||||
mapfile -t blocked_sources <<<"$blocked_source_output"
|
||||
core_sources=()
|
||||
blocked_sources=()
|
||||
while IFS=: read -r group path note extra; do
|
||||
case "$group" in
|
||||
""|\#*)
|
||||
continue
|
||||
;;
|
||||
core)
|
||||
core_sources+=("$path")
|
||||
;;
|
||||
blocked)
|
||||
blocked_sources+=("$path")
|
||||
;;
|
||||
header|metadata|blocked-header)
|
||||
;;
|
||||
*)
|
||||
echo "unknown manifest group: $group" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done < "$manifest"
|
||||
core_count=${#core_sources[@]}
|
||||
blocked_count=${#blocked_sources[@]}
|
||||
|
||||
scan_source() {
|
||||
local group=$1
|
||||
local path=$2
|
||||
full_path=$(LINUXCNC_ROOT="$linuxcnc_root" ./list-linuxcnc-source-files.sh \
|
||||
--missing-message "missing manifest source" \
|
||||
"$path")
|
||||
full_path="$linuxcnc_root/$path"
|
||||
if [[ ! -f "$full_path" ]]; then
|
||||
echo "missing manifest source: $path" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ "$group" == "blocked" ]]; then
|
||||
if ! replacement=$(blocked_replacement_for "$path"); then
|
||||
echo "missing blocked replacement mapping: $path" >&2
|
||||
|
||||
Reference in New Issue
Block a user