Skip to content

fix: remove validate CI job#6

Merged
Svtter merged 1 commit into
mainfrom
fix/remove-validate-job
Apr 9, 2026
Merged

fix: remove validate CI job#6
Svtter merged 1 commit into
mainfrom
fix/remove-validate-job

Conversation

@Svtter
Copy link
Copy Markdown
Collaborator

@Svtter Svtter commented Apr 9, 2026

Summary

  • Remove the validate job (shellcheck lint + local test suite) from CI
  • Shellcheck tends to produce false positives for these scripts, and the outer retry loop already provides reliability
  • Keep smoke-actions job which provides meaningful end-to-end verification

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0187fb6cec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/ci.yml
- name: Run local test suite
run: bash tests/test.sh

smoke-actions:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore running the local test suite in CI

This change removes the only CI step that executes bash tests/test.sh, so pull requests now pass with just the smoke-actions happy-path workflow. That smoke job uses single-attempt settings (install-attempts: 1, attempts: 1) and does not exercise many guardrails covered by the local tests (for example, the invalid-attempt validation and retry behavior in tests/setup-opencode.sh and tests/run-opencode.sh), so regressions in the action scripts can be merged undetected.

Useful? React with 👍 / 👎.

@Svtter Svtter merged commit fa1766f into main Apr 9, 2026
1 check passed
Svtter added a commit that referenced this pull request May 27, 2026
TS (platform.ts):
- Cache detectPlatform() result to avoid repeated env reads (#6)
- getRepo() returns empty string + warn instead of throw (#5)
- fetchAllGiteaComments() capped at MAX_PAGES=20 (#1)
- getGiteaToken() checks both GITEA_TOKEN and GITHUB_RUN_OPENCODE_GITEA_TOKEN (#13)
- Add /* ignore */ comments to empty catch blocks (#11)

Python (run-github-opencode.py):
- Use specific exception types: (TimeoutExpired, JSONDecodeError) not bare Exception (#2)
- Add HTTP plaintext warning for GITEA_API_URL (#3)
- Validate repo/pr format before URL construction (#4)
- Add pagination for Gitea comment listing with max_pages=20 (#1)
- Unify token lookup to GITEA_TOKEN only (#13)
Svtter added a commit that referenced this pull request May 27, 2026
* feat: add Gitea CI compatibility via platform abstraction layer

- New platform.ts: auto-detect GitHub/Gitea via GITEA_API_URL env var
- Unified interfaces for PR diff fetch, comment posting, error comment cleanup
- Gitea: tea CLI (preferred) → curl REST API fallback
- GitHub: unchanged, zero-impact on existing workflows
- comment.ts refactored to thin proxy over platform.ts
- index.ts: platform-aware diff fetch with pre-fetched file fallback
- action.yml (multi-review, review): new gitea-token input
- Python: detect_platform() + Gitea error comment cleanup

Closes #55

* fix: address AI code review feedback

- Remove dead httpRequest code and unused http/https imports (阻塞项 #1)
- Reverse diff fetch priority: pre-fetched file first, platform fetch as
  fallback to avoid duplicate API calls on GitHub (阻塞项 #2)
- Fix redundant Python exception catches (Exception covers subclasses)
- Use get_env() in detect_platform() for consistency
- Add HTTPS warning for GITEA_API_URL using plain HTTP
- Validate GITHUB_REPOSITORY format before API calls
- Lazy-cache hasTea() result to avoid repeated which calls
- Add pagination support for Gitea comment cleanup
- Revert tsup externals (https/http no longer imported)
- Remove duplicate empty-diff check in index.ts

* fix: address second round AI code review feedback

TS (platform.ts):
- Cache detectPlatform() result to avoid repeated env reads (#6)
- getRepo() returns empty string + warn instead of throw (#5)
- fetchAllGiteaComments() capped at MAX_PAGES=20 (#1)
- getGiteaToken() checks both GITEA_TOKEN and GITHUB_RUN_OPENCODE_GITEA_TOKEN (#13)
- Add /* ignore */ comments to empty catch blocks (#11)

Python (run-github-opencode.py):
- Use specific exception types: (TimeoutExpired, JSONDecodeError) not bare Exception (#2)
- Add HTTP plaintext warning for GITEA_API_URL (#3)
- Validate repo/pr format before URL construction (#4)
- Add pagination for Gitea comment listing with max_pages=20 (#1)
- Unify token lookup to GITEA_TOKEN only (#13)

* fix: address third round review feedback

- Restore error log in GitHub cleanup catch block (#1)
- Add --repo to tea pulls diff call (#2)
- Python Gitea token fallback: check both GITEA_TOKEN and GITHUB_RUN_OPENCODE_GITEA_TOKEN (#4)
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