Skip to content

test: fix the nightly e2e, add Gitea 28 - #14

Merged
AlexeyShalaev merged 2 commits into
masterfrom
test/nightly-e2e
Oct 8, 2026
Merged

AlexeyShalaev merged 2 commits into
masterfrom
test/nightly-e2e

Conversation

@AlexeyShalaev

@AlexeyShalaev AlexeyShalaev commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

The nightly runs of 2026-10-07 failed in two places, both in the tests:

  • CI, e2e on Gitea 1.26.4: TestDoctor. The test wanted the writer's scopes ok on any Gitea, but GET /api/v1/token exists from Gitea 1.27 on, so on 1.26 doctor rightly reports them unknown. The test now asks the server's version: ok from 1.27, unknown with that reason before. Only the nightly matrix runs 1.26, so pull requests never saw it.
  • E2E GitLab, every image: TestSetup. The stand's shell runner ran the Ubuntu gitlab/gitlab-runner image, whose git 2.43 is too old for plan (2.45), so the reader job failed. The stand now runs the Alpine image of the same version: git 2.47 (17.11.4), 2.52 (18.11.4), 2.54 (19.4.1).

Also, ghfake took a GraphQL Int as 64 bits. The GraphQL spec makes it a signed 32-bit integer, so a literal or variable out of range now fails validation or coercion, as on GitHub, with tests. This closes CodeQL alerts #4–#7.

Checked locally: scripts/e2e/gitea.sh --run TestDoctor on Gitea 1.26.4 and 1.27.3 passes; scripts/e2e/gitlab.sh gitlab/gitlab-ce:18.11.12-ce.0 passes every test, TestSetup included; the ghfake tests pass.

Gitea 28. Gitea 28.0.0 and 28.1.0 are out. The stand could not seed 28: it refuses a team created with both units and units_map (HTTP 400), so gitea.sh and the e2e fixtures now send units_map alone, which every supported version takes. The full suite passes locally on Gitea 1.26.4, 1.27.3 and 28.1.0 and Forgejo 15.0.9 and 16.0.5, and the facts the e2e records on 28.1.0 match 1.27.3's. Pull requests now run Gitea 28.1.0, the latest, and the nightly runs all five images. The docs' "Gitea 1.26 and newer" covers 28 already.

…Int in ghfake

TestDoctor wanted the writer's scopes ok on any Gitea, but Gitea 1.26 has no GET /api/v1/token, so doctor rightly says unknown there. The test now asks the server's version: ok from Gitea 1.27 on, unknown with the reason before.

The GitLab stand's shell runner ran the Ubuntu gitlab-runner image, whose git 2.43 is too old for plan (2.45), so TestSetup's reader job failed on every image. It now runs the Alpine image of the same version, with git 2.47 to 2.54.

ghfake took a GraphQL Int as 64 bits. The GraphQL spec makes it a signed 32-bit integer, so a literal or variable out of that range now fails validation or coercion as on GitHub; this also ends four CodeQL integer-conversion alerts.
Gitea 28 refuses a team created with both units and units_map (HTTP 400), so gitea.sh and the e2e fixtures send units_map alone, which Gitea 1.26 to 28 and Forgejo 15 and 16 all take. The full suite passes on Gitea 1.26.4, 1.27.3 and 28.1.0 and Forgejo 15.0.9 and 16.0.5, and the facts the e2e records on 28.1.0 match 1.27.3's. Pull requests now run Gitea 28.1.0, the latest, and the nightly run all five images.
@AlexeyShalaev AlexeyShalaev changed the title test: fix the nightly e2e on Gitea 1.26 and GitLab test: fix the nightly e2e, add Gitea 28 Oct 8, 2026
@AlexeyShalaev
AlexeyShalaev merged commit c86f364 into master Oct 8, 2026
22 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the test/nightly-e2e branch October 8, 2026 02:00
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