Skip to content

[ci] Clean up workflows#3954

Merged
junaway merged 28 commits intofix/local-web-testsfrom
ci/cleanup-workflows
Mar 11, 2026
Merged

[ci] Clean up workflows#3954
junaway merged 28 commits intofix/local-web-testsfrom
ci/cleanup-workflows

Conversation

@jp-agenta
Copy link
Copy Markdown
Member

@jp-agenta jp-agenta commented Mar 11, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Mar 11, 2026 11:01pm

Request Review

@jp-agenta jp-agenta changed the title Ci/cleanup workflows [ci] Clean up workflows Mar 11, 2026
Comment thread .github/workflows/00-releases.yml Fixed
Comment thread .github/workflows/10-checks.yml Fixed
Comment thread .github/workflows/30-crons.yml Fixed
Comment thread .github/workflows/40-railway.yml Fixed
@jp-agenta jp-agenta marked this pull request as ready for review March 11, 2026 11:42
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. ci/cd labels Mar 11, 2026
@jp-agenta
Copy link
Copy Markdown
Member Author

@mmabrouk -- at or after v0.93.1

Screenshot 2026-03-11 at 12 46 10

@jp-agenta jp-agenta requested review from ardaerzin and mmabrouk March 11, 2026 11:46
devin-ai-integration[bot]

This comment was marked as resolved.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 11, 2026

Railway Preview Environment

Preview URL https://gateway-production-1798.up.railway.app/w
Project agenta-oss-pr-3954
Image tag pr-3954-15c9bd0
Status Deployed
Railway logs Open logs
Workflow logs View workflow run
Updated at 2026-03-11T23:04:39.691Z

devin-ai-integration[bot]

This comment was marked as resolved.

@junaway junaway changed the base branch from main to fix/local-web-tests March 11, 2026 14:43
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 11, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ jp-agenta
✅ mmabrouk
✅ bekossy
❌ github-actions[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

devin-ai-integration[bot]

This comment was marked as resolved.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 11, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

@junaway junaway marked this pull request as ready for review March 11, 2026 23:00
Copilot AI review requested due to automatic review settings March 11, 2026 23:00
@junaway junaway merged commit 086ed49 into fix/local-web-tests Mar 11, 2026
19 of 21 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 63 out of 74 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +95 to +96
- name: Run ESLint fix
run: cd web && pnpm run lint-fix
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

This job runs pnpm run lint-fix (auto-fix) instead of a check-only lint command. That can mask lint issues by fixing them in the runner workspace and still exiting 0, which defeats the purpose of a PR check. Prefer pnpm run lint (or an equivalent non-fixing lint command) so violations cause CI to fail.

Suggested change
- name: Run ESLint fix
run: cd web && pnpm run lint-fix
- name: Run ESLint lint check
run: cd web && pnpm run lint

Copilot uses AI. Check for mistakes.
Comment on lines +52 to +55
The scripts default to compose-like placeholder values for `AGENTA_AUTH_KEY`,
`AGENTA_CRYPT_KEY`, and `POSTGRES_PASSWORD`. This is acceptable for ephemeral
preview environments, but not for persistent deployments. For persistent
deployments, set unique values:
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

This section says the scripts default POSTGRES_PASSWORD to a placeholder, but configure.sh actually resolves an existing password or generates a random one when unset. Update the note so it matches the actual behavior (placeholder vs generated/retained password), otherwise operators may assume an insecure default.

Copilot uses AI. Check for mistakes.
Comment on lines +18 to +29
resolve_postgres_password() {
if [ -n "$POSTGRES_PASSWORD" ]; then
return 0
fi

local existing_password
existing_password="$(railway_call variable list -k --service "$POSTGRES_REF_NS" --environment "$ENV_NAME" | grep '^POSTGRES_PASSWORD=' | cut -d= -f2- || true)"
if [ -n "$existing_password" ]; then
POSTGRES_PASSWORD="$existing_password"
else
POSTGRES_PASSWORD="$(openssl rand -hex 24)"
fi
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

resolve_postgres_password calls openssl rand, but openssl is not included in the script’s required-command checks. If this script is run in a minimal environment without OpenSSL installed, it will fail at runtime. Add require_cmd openssl (or avoid the dependency) before this function can execute.

Copilot uses AI. Check for mistakes.
Comment on lines +71 to +72
- name: Run Prettier formatting fix
run: cd web && pnpm run format-fix
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

This job runs pnpm run format-fix (Prettier write) rather than a check-only command. In CI this can succeed while silently modifying files, so it won’t reliably enforce formatting. Use a check-only command (e.g., pnpm run format) or run Prettier with --check so the job fails when formatting is required.

Suggested change
- name: Run Prettier formatting fix
run: cd web && pnpm run format-fix
- name: Run Prettier formatting check
run: cd web && pnpm run format

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 new potential issue.

View 17 additional findings in Devin Review.

Open in Devin Review

Comment on lines +71 to +72
- name: Run Prettier formatting fix
run: cd web && pnpm run format-fix
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 CI workflow step name says "fix" instead of "check" for Prettier and ESLint

In .github/workflows/11-check-code-styling.yml, the prettier-format job's step is named "Run Prettier formatting fix" (line 71) and runs pnpm run format-fix (line 72), and the eslint job's step is named "Run ESLint fix" (line 95) and runs pnpm run lint-fix (line 96). A CI check workflow should only check for violations (non-zero exit on failure), not fix them. Running format-fix and lint-fix will auto-correct files and the job will always pass, defeating the purpose of a PR gate check. The deleted workflows (02-check-python-formatting.yml, 04-check-frontend-linting.yml) correctly used ruff format --check and pnpm lint (check-only commands).

Prompt for agents
In .github/workflows/11-check-code-styling.yml, the prettier-format job (lines 71-72) should run a check-only command instead of a fix command. Change the step name to 'Run Prettier formatting check' and the command to 'cd web && pnpm run format-check' (or equivalent check-only script). Similarly, the eslint job (lines 95-96) should run a check-only command. Change the step name to 'Run ESLint check' and the command to 'cd web && pnpm run lint' (or equivalent). Running fix commands in CI will silently auto-correct issues and always succeed, making the check useless as a PR gate.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants