Skip to content

fix: address AI code quality findings across install scripts and utilities#84

Merged
rhuanbarreto merged 3 commits into
mainfrom
claude/naughty-almeida
Mar 18, 2026
Merged

fix: address AI code quality findings across install scripts and utilities#84
rhuanbarreto merged 3 commits into
mainfrom
claude/naughty-almeida

Conversation

@rhuanbarreto

Copy link
Copy Markdown
Contributor

Summary

  • install.ps1: Add error handling for GitHub API calls (Invoke-RestMethod) and downloads (Invoke-WebRequest), verify archgate.exe exists after extraction before attempting Move-Item, fix $InstallDir quoting in manual PATH instruction
  • install.sh: Add jq support for JSON parsing with grep/sed fallback, validate version tag format, add explicit curl/wget availability check in download step, improve /dev/tty readability check with graceful fallback
  • tests/test-utils.ts: Consume stdout and stderr concurrently via Promise.all to prevent potential deadlock when subprocess writes large output
  • docs/src/components/HeadSEO.astro: Extract toBreadcrumbName() helper with special-case handling for acronyms (API, CLI, PT-BR), simplify complex markdownUrl ternary into intermediate variables

Findings skipped (not valid)

  • tests/helpers/binary-upgrade.test.ts (2 findings): File no longer exists in the codebase
  • tests/test-utils.ts rename safeRmSyncrmSyncWithRetry: Purely cosmetic, name already communicates intent

Test plan

  • bun run validate passes (lint, typecheck, format, tests, ADR check, build)

…ities

- install.ps1: add error handling for GitHub API calls and downloads,
  verify extracted exe exists before move, fix PATH instruction quoting
- install.sh: add jq support for JSON parsing with grep/sed fallback,
  validate version tag format, add explicit curl/wget check in download,
  improve /dev/tty readability check with fallback message
- tests/test-utils.ts: consume stdout/stderr concurrently via Promise.all
  to prevent potential deadlock on large output
- HeadSEO.astro: extract toBreadcrumbName() helper with special-case
  handling for acronyms (API, CLI, PT-BR), simplify markdownUrl ternary
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Mar 18, 2026

Copy link
Copy Markdown

Deploying archgate-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c92643
Status: ✅  Deploy successful!
Preview URL: https://bc5145db.archgate-cli.pages.dev
Branch Preview URL: https://claude-naughty-almeida.archgate-cli.pages.dev

View logs

Rename windows-smoke-test.yml → smoke-test.yml and add:
- install.ps1 smoke test on Windows (downloads real release, verifies binary)
- install.sh smoke test on Linux (downloads real release, verifies binary)

Both use ARCHGATE_VERSION env var to pin the version, avoiding
GitHub API rate limits. Gracefully skip if no releases exist yet.
@rhuanbarreto rhuanbarreto merged commit 4730beb into main Mar 18, 2026
8 checks passed
@rhuanbarreto rhuanbarreto deleted the claude/naughty-almeida branch March 18, 2026 23:49
@github-actions github-actions Bot mentioned this pull request Mar 18, 2026
rhuanbarreto added a commit that referenced this pull request Mar 20, 2026
…ities (#84)

* fix: address AI code quality findings across install scripts and utilities

- install.ps1: add error handling for GitHub API calls and downloads,
  verify extracted exe exists before move, fix PATH instruction quoting
- install.sh: add jq support for JSON parsing with grep/sed fallback,
  validate version tag format, add explicit curl/wget check in download,
  improve /dev/tty readability check with fallback message
- tests/test-utils.ts: consume stdout/stderr concurrently via Promise.all
  to prevent potential deadlock on large output
- HeadSEO.astro: extract toBreadcrumbName() helper with special-case
  handling for acronyms (API, CLI, PT-BR), simplify markdownUrl ternary

* test: add install script smoke tests to CI

Rename windows-smoke-test.yml → smoke-test.yml and add:
- install.ps1 smoke test on Windows (downloads real release, verifies binary)
- install.sh smoke test on Linux (downloads real release, verifies binary)

Both use ARCHGATE_VERSION env var to pin the version, avoiding
GitHub API rate limits. Gracefully skip if no releases exist yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant