1
0
mirror of https://git.cloudron.io/cloudron/gitea-app synced 2026-06-20 07:05:52 +00:00

Compare commits

...

6 Commits

Author SHA1 Message Date
Package Updates ed0a196086 Update package version to 1.38.2 2026-05-21 09:27:46 +00:00
Renovate Bot 9f1662242a chore(deps): update dependency go-gitea/gitea to v1.26.2
| datasource      | package        | from   | to     |
| --------------- | -------------- | ------ | ------ |
| github-releases | go-gitea/gitea | 1.26.1 | 1.26.2 |
2026-05-21 09:00:26 +00:00
Girish Ramakrishnan 4b83728ef9 test: make test/test.js non-executable and remove shebang 2026-05-19 15:32:50 +02:00
Girish Ramakrishnan f0e98b3ea0 test: simplify clearCache, drop logout helpers, simplify button selectors
- Drop `await clearCache()` from login/auth helpers; clearing cache before
  every login is no longer necessary now that charlie isolates sessions.
- Replace `logout` helpers with `clearCache` directly in `it()` calls; the
  helpers were either thin wrappers around `clearCache()` or did real
  navigation that is no longer worth the maintenance.
- Simplify `xpath=//button[text()=...]` / `[contains(., ...)]` button text
  selectors to charlie's bare-string (or RegExp for OR-clauses) form.
2026-05-01 10:39:30 +02:00
Girish Ramakrishnan 335940ab4a test file cleanups 2026-04-30 10:22:27 +02:00
Girish Ramakrishnan 7c3fa660e0 test: pass full Mocha test to takeScreenshot for unique screenshot names 2026-04-29 17:09:57 +02:00
4 changed files with 23 additions and 30 deletions
+14
View File
@@ -2008,3 +2008,17 @@
* Fix Mermaid diagrams failing when node labels contain line breaks ([#37296](https://github.com/go-gitea/gitea/issues/37296)) ([#37299](https://github.com/go-gitea/gitea/issues/37299)) * Fix Mermaid diagrams failing when node labels contain line breaks ([#37296](https://github.com/go-gitea/gitea/issues/37296)) ([#37299](https://github.com/go-gitea/gitea/issues/37299))
* Fix: dump with default zip type produces uncompressed zip ([#37401](https://github.com/go-gitea/gitea/issues/37401)) [#37402](https://github.com/go-gitea/gitea/issues/37402) * Fix: dump with default zip type produces uncompressed zip ([#37401](https://github.com/go-gitea/gitea/issues/37401)) [#37402](https://github.com/go-gitea/gitea/issues/37402)
[1.38.2]
* Update gitea to 1.26.2
* [Full Changelog](https://github.com/go-gitea/gitea/releases/tag/v1.26.2)
* fix(permissions): Fix reading permission ([#37769](https://github.com/go-gitea/gitea/issues/37769))
* fix(actions): make artifact signature payloads unambiguous ([#37707](https://github.com/go-gitea/gitea/issues/37707))
* fix(oauth): strengthen PKCE validation and refresh token replay protection ([#37706](https://github.com/go-gitea/gitea/issues/37706))
* fix(web): enforce token scopes on raw, media, and attachment downloads ([#37698](https://github.com/go-gitea/gitea/issues/37698))
* feat(api): encrypt AWS creds ([#37679](https://github.com/go-gitea/gitea/issues/37679))
* fix!: add DEFAULT_TITLE_SOURCE setting for pull request title default behavior ([#37465](https://github.com/go-gitea/gitea/issues/37465))
* fix(pull): handle empty pull request files view to allow reviews ([#37783](https://github.com/go-gitea/gitea/issues/37783))
* fix(actions): deadlock between PrepareRunAndInsert and UpdateTaskByState ([#37692](https://github.com/go-gitea/gitea/issues/37692))
* fix: treat email addresses case-insensitively ([#37600](https://github.com/go-gitea/gitea/issues/37600))
* Fix color regressions, add `priority` color ([#37417](https://github.com/go-gitea/gitea/issues/37417)) ([#37421](https://github.com/go-gitea/gitea/issues/37421))
+2 -2
View File
@@ -4,8 +4,8 @@
"author": "Gitea developers", "author": "Gitea developers",
"description": "file://DESCRIPTION.md", "description": "file://DESCRIPTION.md",
"tagline": "A painless self-hosted Git Service", "tagline": "A painless self-hosted Git Service",
"version": "1.38.1", "version": "1.38.2",
"upstreamVersion": "1.26.1", "upstreamVersion": "1.26.2",
"healthCheckPath": "/explore", "healthCheckPath": "/explore",
"httpPort": 3000, "httpPort": 3000,
"memoryLimit": 536870912, "memoryLimit": 536870912,
+1 -1
View File
@@ -18,7 +18,7 @@ WORKDIR /home/git
ENV GNUPGHOME="/app/data/gnupg" ENV GNUPGHOME="/app/data/gnupg"
# renovate: datasource=github-releases depName=go-gitea/gitea versioning=semver extractVersion=^v(?<version>.+)$ # renovate: datasource=github-releases depName=go-gitea/gitea versioning=semver extractVersion=^v(?<version>.+)$
ARG GITEA_VERSION=1.26.1 ARG GITEA_VERSION=1.26.2
RUN mkdir -p /home/git/gitea && \ RUN mkdir -p /home/git/gitea && \
curl -L https://github.com/go-gitea/gitea/releases/download/v${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64 -o /home/git/gitea/gitea \ curl -L https://github.com/go-gitea/gitea/releases/download/v${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64 -o /home/git/gitea/gitea \
+6 -27
View File
@@ -1,25 +1,9 @@
#!/usr/bin/env node
import assert from 'node:assert/strict'; import assert from 'node:assert/strict';
import { execSync } from 'node:child_process'; import { execSync } from 'node:child_process';
import fs from 'node:fs'; import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import { import { app, clearCache, click, cloudronCli, goto, loginOIDC, sendKeys, setupBrowser, takeScreenshot, teardownBrowser, username, waitFor, waitForUrl, press } from '@cloudron/charlie';
app,
clearCache,
click,
cloudronCli,
goto,
loginOIDC,
sendKeys,
setupBrowser,
takeScreenshot,
teardownBrowser,
username,
waitFor,
waitForUrl,
press
} from '@cloudron/charlie';
/* global it, describe, before, after, afterEach */ /* global it, describe, before, after, afterEach */
@@ -36,7 +20,7 @@ describe('Application life cycle test', function () {
}); });
afterEach(async function () { afterEach(async function () {
await takeScreenshot(this.currentTest.title); await takeScreenshot(this.currentTest);
}); });
async function login(user, passwd) { async function login(user, passwd) {
@@ -52,16 +36,11 @@ describe('Application life cycle test', function () {
} }
async function loginGiteaOIDC() { async function loginGiteaOIDC() {
await clearCache();
await goto(`https://${app.fqdn}/user/login`, /Sign in with/); await goto(`https://${app.fqdn}/user/login`, /Sign in with/);
await click(/Sign in with/); await click(/Sign in with/);
await loginOIDC('Milestones'); await loginOIDC('Milestones');
} }
async function logout() {
await clearCache();
}
async function addPublicKey() { async function addPublicKey() {
const keyPath = path.join(import.meta.dirname, 'id_ed25519'); const keyPath = path.join(import.meta.dirname, 'id_ed25519');
fs.chmodSync(keyPath, 0o600); fs.chmodSync(keyPath, 0o600);
@@ -108,7 +87,7 @@ describe('Application life cycle test', function () {
}); });
it('can admin login', adminLogin); it('can admin login', adminLogin);
it('can logout', logout); it('can logout', clearCache);
it('can login', loginGiteaOIDC); it('can login', loginGiteaOIDC);
@@ -149,11 +128,11 @@ describe('Application life cycle test', function () {
}); });
it('can admin login (no sso)', adminLogin); it('can admin login (no sso)', adminLogin);
it('can logout', logout); it('can logout', clearCache);
it('uninstall app (no sso)', cloudronCli.uninstall); it('uninstall app (no sso)', cloudronCli.uninstall);
it('can install app from appstore', async function () { it('can install app for update', async function () {
await cloudronCli.appstoreInstall({ tcpPortFlags: INSTALL_TCP_FLAGS }); await cloudronCli.appstoreInstall({ tcpPortFlags: INSTALL_TCP_FLAGS });
}); });
@@ -166,7 +145,7 @@ describe('Application life cycle test', function () {
it('can update', cloudronCli.update); it('can update', cloudronCli.update);
it('can admin login', adminLogin); it('can admin login', adminLogin);
it('can logout', logout); it('can logout', clearCache);
it('can login', loginGiteaOIDC); it('can login', loginGiteaOIDC);
it('can clone the url', cloneRepo); it('can clone the url', cloneRepo);