Repository navigation
Point older edition Amazon book links at the 3rd edition - #634
Open
dannystaple wants to merge 1 commit into
Open
dannystaple wants to merge 1 commit into
dannystaple wants to merge 1 commit into
Conversation
Posts keep their wording about the edition they describe, with a "now in its 3rd edition" link. Current wiki pages present the 3rd. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
🏗️ Eleventy Site Build Smoke Test
Updated: Fri, 04 Dec 2026 19:26:18 GMT |
Contributor
✅
|
| Descriptor | Linter | Files | Fixed | Errors | Max errors | Warnings | Elapsed time |
|---|---|---|---|---|---|---|---|
| ✅ ACTION | actionlint | 9 | 0 | 0 | 0.15s | ||
| zizmor | 9 | 1 | 0 | 0.24s | |||
| ✅ BASH | bash-exec | 5 | 0 | 0 | 0.02s | ||
| ✅ BASH | shellcheck | 5 | 0 | 0 | 0.25s | ||
| shfmt | 5 | 4 | 0 | 0.01s | |||
| cppcheck | 8 | 8 | 0 | 0.06s | |||
| cppcheck | 8 | 8 | 0 | 0.05s | |||
| ✅ JAVASCRIPT | eslint | 19 | 0 | 0 | 4.15s | ||
| ✅ JSON | npm-package-json-lint | yes | no | no | 0.75s | ||
| ✅ JSON | v8r | 17 | 0 | 0 | 11.65s | ||
| ✅ REPOSITORY | betterleaks | yes | no | no | 1.5s | ||
| ✅ REPOSITORY | git_diff | yes | no | no | 1.15s | ||
| ✅ REPOSITORY | grype | yes | no | no | 85.6s | ||
| ✅ REPOSITORY | secretlint | yes | no | no | 12.11s | ||
| ✅ REPOSITORY | syft | yes | no | no | 1.77s | ||
| ✅ REPOSITORY | trivy | yes | no | no | 15.07s | ||
| ✅ REPOSITORY | trivy-sbom | yes | no | no | 1.42s | ||
| ✅ REPOSITORY | trufflehog | yes | no | no | 3.79s | ||
| ✅ TYPESCRIPT | eslint | 3 | 0 | 0 | 1.91s | ||
| ✅ TYPESCRIPT | ts-standard | 3 | 0 | 0 | 4.01s | ||
| ✅ XML | xmllint | 1 | 0 | 0 | 8.49s | ||
| ✅ YAML | v8r | 17 | 0 | 0 | 9.89s |
Detailed Issues
⚠️ C / cppcheck - 8 errors
Checking assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h ...
assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
1/8 files checked 12% done
Checking assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h ...
assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
2/8 files checked 19% done
Checking assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h ...
assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
3/8 files checked 31% done
Checking assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h ...
assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
4/8 files checked 49% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
5/8 files checked 62% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
6/8 files checked 69% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
7/8 files checked 81% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
8/8 files checked 100% done
⚠️ CPP / cppcheck - 8 errors
Checking assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h ...
assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
1/8 files checked 12% done
Checking assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h ...
assets/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
2/8 files checked 19% done
Checking assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h ...
assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
3/8 files checked 31% done
Checking assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h ...
assets/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
4/8 files checked 49% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
5/8 files checked 62% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/alternative_demo/Motors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
6/8 files checked 69% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/DistanceSensor.h:3:1: error: Code 'classSR04{' is invalid C code. [syntaxError]
class SR04 {
^
7/8 files checked 81% done
Checking galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h ...
galleries/2013-11-14-explorer-wall-avoider-kit/demo_sketch/TurtleMotors.h:3:1: error: Code 'classMotor{' is invalid C code. [syntaxError]
class Motor {
^
8/8 files checked 100% done
⚠️ BASH / shfmt - 4 errors
_package "${package}"
- done
+ local package
+ for package in "$@"; do
+ evict_package "${package}"
+ done
}
# Only run when executed, so the tests can source the functions.
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
- main "$@"
+ main "$@"
fi
diff .github/scripts/tests/test_evict_ci_images.sh.orig .github/scripts/tests/test_evict_ci_images.sh
--- .github/scripts/tests/test_evict_ci_images.sh.orig
+++ .github/scripts/tests/test_evict_ci_images.sh
@@ -16,29 +16,29 @@
failure_count=0
assert_equal() {
- local test_name=$1 expected=$2 actual=$3
- if [[ "${expected}" == "${actual}" ]]; then
- echo "ok ${test_name}"
- else
- echo "FAIL ${test_name}: expected [${expected}] got [${actual}]"
- failure_count=$((failure_count + 1))
- fi
+ local test_name=$1 expected=$2 actual=$3
+ if [[ "${expected}" == "${actual}" ]]; then
+ echo "ok ${test_name}"
+ else
+ echo "FAIL ${test_name}: expected [${expected}] got [${actual}]"
+ failure_count=$((failure_count + 1))
+ fi
}
# Prints one package version as the GitHub API returns it.
make_version() {
- local version_id=$1 digest_name=$2 created_at=$3 tags_json=$4
- printf '{"id":%s,"name":"sha256:%s","created_at":"%s","metadata":{"container":{"tags":%s}}}' \
- "${version_id}" "${digest_name}" "${created_at}" "${tags_json}"
+ local version_id=$1 digest_name=$2 created_at=$3 tags_json=$4
+ printf '{"id":%s,"name":"sha256:%s","created_at":"%s","metadata":{"container":{"tags":%s}}}' \
+ "${version_id}" "${digest_name}" "${created_at}" "${tags_json}"
}
# Ids of the versions on stdin, sorted and space separated.
sorted_ids() {
- cut --delimiter=' ' --fields=1 | sort --numeric-sort | tr '\n' ' '
+ cut --delimiter=' ' --fields=1 | sort --numeric-sort | tr '\n' ' '
}
build_versions() {
- cat <<EOF
+ cat <<EOF
[
$(make_version 1 oldest_index 2026-01-01T00:00:00Z "[\"${OLDEST_HASH_TAG}\"]"),
$(make_version 2 oldest_platform 2026-01-01T00:00:00Z '[]'),
@@ -58,90 +58,90 @@
# own functions call them, so shellcheck cannot see the calls.
# shellcheck disable=SC2329
list_child_digests() {
- local image_reference=$1
- if [[ "${image_reference}" == *@sha256:middle_index ]]; then
- echo sha256:middle_platform
- fi
+ local image_reference=$1
+ if [[ "${image_reference}" == *@sha256:middle_index ]]; then
+ echo sha256:middle_platform
+ fi
}
# shellcheck disable=SC2329
list_versions() {
- build_versions
+ build_versions
}
# shellcheck disable=SC2329
delete_version() {
- local version_id=$2
- deleted_ids+=("${version_id}")
+ local version_id=$2
+ deleted_ids+=("${version_id}")
}
# shellcheck disable=SC2329
oldest_protected_timestamp() {
- echo "${OLDEST_PROTECTED}"
+ echo "${OLDEST_PROTECTED}"
}
test_versions_kept_by_tag() {
- # Newest 2 hash tags, the cache tag and the non-hash tag. The oldest hash
- # tag is evictable.
- # shellcheck disable=SC2034 # read by the sourced script
- KEEP_NEWEST=2
- local kept_ids
- kept_ids=$(list_versions_kept_by_tag <<< "$(build_versions)" | sorted_ids)
- assert_equal "versions kept by tag" "4 6 7 10 " "${kept_ids}"
+ # Newest 2 hash tags, the cache tag and the non-hash tag. The oldest hash
+ # tag is evictable.
+ # shellcheck disable=SC2034 # read by the sourced script
+ KEEP_NEWEST=2
+ local kept_ids
+ kept_ids=$(list_versions_kept_by_tag <<<"$(build_versions)" | sorted_ids)
+ assert_equal "versions kept by tag" "4 6 7 10 " "${kept_ids}"
}
test_versions_to_delete() {
- local keep_digests_file deleted
- keep_digests_file=$(mktemp)
- write_keep_digests pkg "$(build_versions)" "${keep_digests_file}" 2> /dev/null
- deleted=$(list_versions_to_delete "${OLDEST_PROTECTED}" "${keep_digests_file}" \
- <<< "$(build_versions)" | sorted_ids)
- rm --force "${keep_digests_file}"
- # 1 (old hash tag), 2 and 3 (its children) and 8 (orphan) go. 5 is a child
- # of a kept tag and 9 is too young.
- assert_equal "versions to delete" "1 2 3 8 " "${deleted}"
+ local keep_digests_file deleted
+ keep_digests_file=$(mktemp)
+ write_keep_digests pkg "$(build_versions)" "${keep_digests_file}" 2>/dev/null
+ deleted=$(list_versions_to_delete "${OLDEST_PROTECTED}" "${keep_digests_file}" \
+ <<<"$(build_versions)" | sorted_ids)
+ rm --force "${keep_digests_file}"
+ # 1 (old hash tag), 2 and 3 (its children) and 8 (orphan) go. 5 is a child
+ # of a kept tag and 9 is too young.
+ assert_equal "versions to delete" "1 2 3 8 " "${deleted}"
}
test_dry_run_deletes_nothing() {
- deleted_ids=()
- DRY_RUN=true evict_package pkg > /dev/null 2>&1
- assert_equal "dry run deletes nothing" "0" "${#deleted_ids[@]}"
+ deleted_ids=()
+ DRY_RUN=true evict_package pkg >/dev/null 2>&1
+ assert_equal "dry run deletes nothing" "0" "${#deleted_ids[@]}"
}
test_real_run_deletes() {
- deleted_ids=()
- DRY_RUN=false evict_package pkg > /dev/null 2>&1
- local deleted
- deleted=$(printf '%s\n' "${deleted_ids[@]}" | sort --numeric-sort | tr '\n' ' ')
- assert_equal "real run deletes" "1 2 3 8 " "${deleted}"
+ deleted_ids=()
+ DRY_RUN=false evict_package pkg >/dev/null 2>&1
+ local deleted
+ deleted=$(printf '%s\n' "${deleted_ids[@]}" | sort --numeric-sort | tr '\n' ' ')
+ assert_equal "real run deletes" "1 2 3 8 " "${deleted}"
}
test_pr_numbered_tags() {
- # .base images are tagged by PR number: newest evictable one is kept, and
- # `latest` is permanent.
- local original_pattern=${EVICTABLE_TAG_PATTERN}
- # shellcheck disable=SC2034 # read by the sourced script
- EVICTABLE_TAG_PATTERN='^[0-9]+$'
- # shellcheck disable=SC2034 # read by the sourced script
- KEEP_NEWEST=1
- local versions kept_ids
- versions="[
+ # .base images are tagged by PR number: newest evictable one is kept, and
+ # `latest` is permanent.
+ local original_pattern=${EVICTABLE_TAG_PATTERN}
+ # shellcheck disable=SC2034 # read by the sourced script
+ EVICTABLE_TAG_PATTERN='^[0-9]+$'
+ # shellcheck disable=SC2034 # read by the sourced script
+ KEEP_NEWEST=1
+ local versions kept_ids
+ versions="[
$(make_version 1 pr_old 2026-01-01T00:00:00Z '["560"]'),
$(make_version 2 pr_new 2026-02-01T00:00:00Z '["561"]'),
$(make_version 3 latest_image 2026-01-01T00:00:00Z '["latest"]')
]"
- kept_ids=$(list_versions_kept_by_tag <<< "${versions}" | sorted_ids)
- assert_equal "PR numbered tags" "2 3 " "${kept_ids}"
- EVICTABLE_TAG_PATTERN=${original_pattern}
+ kept_ids=$(list_versions_kept_by_tag <<<"${versions}" | sorted_ids)
+ assert_equal "PR numbered tags" "2 3 " "${kept_ids}"
+ EVICTABLE_TAG_PATTERN=${original_pattern}
}
main() {
- test_versions_kept_by_tag
- test_versions_to_delete
- test_dry_run_deletes_nothing
- test_real_run_deletes
- test_pr_numbered_tags
- exit $((failure_count > 0))
+ test_versions_kept_by_tag
+ test_versions_to_delete
+ test_dry_run_deletes_nothing
+ test_real_run_deletes
+ test_pr_numbered_tags
+ exit $((failure_count > 0))
}
main
diff .github/scripts/validate-local-build.sh.orig .github/scripts/validate-local-build.sh
--- .github/scripts/validate-local-build.sh.orig
+++ .github/scripts/validate-local-build.sh
@@ -30,9 +30,9 @@
echo ""
echo "=== Step 1: Checking http_serve is running ==="
if ! docker ps --format '{{.Names}}' | grep -q "^${HTTP_SERVE_CONTAINER}$"; then
- echo "ERROR: ${HTTP_SERVE_CONTAINER} is not running."
- echo "Start it with: docker compose --profile manual up -d http_serve"
- exit 1
+ echo "ERROR: ${HTTP_SERVE_CONTAINER} is not running."
+ echo "Start it with: docker compose --profile manual up -d http_serve"
+ exit 1
fi
# ─── Step 2: Quick HTTP smoke check from host ─────────────────────────────────
@@ -39,17 +39,17 @@
echo ""
echo "=== Step 2: HTTP smoke checks (host -> port ${HOST_PORT}) ==="
for path in "/" "/construction_guide.html" "/tags/arduino/"; do
- status=$(curl -s -o /dev/null -w "%{http_code}" "http://localhost:${HOST_PORT}${path}")
- if [[ "$status" == "200" ]]; then
- echo " OK ${path} -> ${status}"
- else
- echo " FAIL ${path} -> ${status}"
- SMOKE_FAILED=1
- fi
+ status=$(curl -s -o /dev/null -w "%{http_code}" "http://localhost:${HOST_PORT}${path}")
+ if [[ "$status" == "200" ]]; then
+ echo " OK ${path} -> ${status}"
+ else
+ echo " FAIL ${path} -> ${status}"
+ SMOKE_FAILED=1
+ fi
done
if [[ -n "${SMOKE_FAILED:-}" ]]; then
- echo "ERROR: Smoke checks failed."
- exit 1
+ echo "ERROR: Smoke checks failed."
+ exit 1
fi
# ─── Step 3: Verify AVIF images are generated ────────────────────────────────
@@ -62,8 +62,8 @@
echo " Post body WebP: ${webp_count}"
echo " Thumbnail AVIF: ${thumb_avif}"
if [[ "$avif_count" -eq 0 ]]; then
- echo "ERROR: No AVIF images found in _site/assets/images. Was the build run?"
- exit 1
+ echo "ERROR: No AVIF images found in _site/assets/images. Was the build run?"
+ exit 1
fi
# ─── Step 4: BDD tests ─────────────────────────────────────────────────────
@@ -71,14 +71,14 @@
echo "=== Step 4: BDD tests (via Docker, network: ${DOCKER_NETWORK}) ==="
docker run --rm \
- --network "${DOCKER_NETWORK}" \
- -e BASE_URL="${BASE_URL}" \
- -v "${PROJECT_ROOT}/tests:/app/src/tests" \
- -v "${PROJECT_ROOT}/package.json:/app/src/package.json" \
- -v "${PROJECT_ROOT}/package-lock.json:/app/src/package-lock.json" \
- -v "${PROJECT_ROOT}/cucumber.js:/app/src/cucumber.js" \
- "${TEST_IMAGE}" \
- npm run test:bdd
+ --network "${DOCKER_NETWORK}" \
+ -e BASE_URL="${BASE_URL}" \
+ -v "${PROJECT_ROOT}/tests:/app/src/tests" \
+ -v "${PROJECT_ROOT}/package.json:/app/src/package.json" \
+ -v "${PROJECT_ROOT}/package-lock.json:/app/src/package-lock.json" \
+ -v "${PROJECT_ROOT}/cucumber.js:/app/src/cucumber.js" \
+ "${TEST_IMAGE}" \
+ npm run test:bdd
echo ""
echo "=== Validation complete ==="
(Truncated to last 10000 characters out of 19596)
⚠️ ACTION / zizmor - 1 error
INFO zizmor: 🌈 zizmor v1.25.0
WARN audit:audit{input=Workflow(file://.github/workflows/on_call_build_site.yaml)}: zizmor::audit::unpinned_uses: failed to look up commit for docker/setup-buildx-action@v4.4.1: couldn't list branches for docker/setup-buildx-action
fatal: no audit was performed
'artipacked' audit failed on file://.github/workflows/on_call_build_site.yaml
Caused by:
0: error in 'artipacked' audit
1: couldn't list tags for actions/checkout
2: request error while accessing GitHub API
3: HTTP status client error (401 Unauthorized) for url (https://github.com/actions/checkout.git/git-upload-pack)
[ACTION_ZIZMOR_ERROR_GITHUB_API_UNREACHABLE] Zizmor could not access a repository referenced by a `uses:` clause via the GitHub API (missing token, insufficient scope, or cross-repo private access).
To allow zizmor to authenticate with GITHUB_TOKEN (or a PAT with `Contents: read-only`), whitelist the variable in your .mega-linter.yml:
ACTION_ZIZMOR_UNSECURED_ENV_VARIABLES:
- GITHUB_TOKEN
If the referenced workflow is in a private repo outside the current one, provide a PAT with cross-repo access instead of the default GITHUB_TOKEN, or run zizmor in offline mode.
Notices
REPOSITORY_KICS. See Removed linters to find their replacements.
See detailed reports in MegaLinter artifacts
You could have the same capabilities but better runtime performances if you use a MegaLinter flavor:
- oxsecurity/megalinter/flavors/dotnetweb@v10.2.0 (81 linters)
Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)
- Documentation: Custom Flavors
- Command:
npx mega-linter-runner@10.2.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,ACTION_ZIZMOR,BASH_EXEC,BASH_SHELLCHECK,BASH_SHFMT,C_CPPCHECK,CPP_CPPCHECK,JAVASCRIPT_ES,JSON_V8R,JSON_NPM_PACKAGE_JSON_LINT,REPOSITORY_GIT_DIFF,REPOSITORY_BETTERLEAKS,REPOSITORY_GRYPE,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,TYPESCRIPT_ES,TYPESCRIPT_STANDARD,XML_XMLLINT,YAML_V8R

Show us your support by starring ⭐ the repository
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #633, covering
amzn.tolinks to the 1st and 2nd editions of Learn Robotics Programming.What changed
Left alone
41JdHr72nd edition link, which suits its article.Not verified
🤖 Generated with Claude Code