Compare commits
90
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
456dc232cb | ||
|
|
b690f4eb8f | ||
|
|
455d76cab4 | ||
|
|
10247ace43 | ||
|
|
ce462dbe20 | ||
|
|
cf505b3065 | ||
|
|
f8d3daf7ff | ||
|
|
0b0d460eac | ||
|
|
3ac62eb510 | ||
|
|
fbe1b9560b | ||
|
|
019e65a951 | ||
|
|
8b132a520e | ||
|
|
de0eace537 | ||
|
|
a5f57a6e2a | ||
|
|
35b11ed975 | ||
|
|
a3c56a9272 | ||
|
|
d372a0f4c0 | ||
|
|
d466cb205c | ||
|
|
d76d421fc6 | ||
|
|
fbd21b636c | ||
|
|
cb93f12eb2 | ||
|
|
cd040d0c6d | ||
|
|
c15333d2a2 | ||
|
|
84908d0810 | ||
|
|
8948de6633 | ||
|
|
8d8a015d1a | ||
|
|
adeecc8cf7 | ||
|
|
853d7d19d2 | ||
|
|
2b4204ddb8 | ||
|
|
12d4423284 | ||
|
|
5988f8b8e6 | ||
|
|
b623e7dbe7 | ||
|
|
2eff54dcb2 | ||
|
|
cb9ced39f0 | ||
|
|
ef46003751 | ||
|
|
791a895b2f | ||
|
|
22ce901173 | ||
|
|
5e132219c0 | ||
|
|
09e7446f84 | ||
|
|
a7f7d564a1 | ||
|
|
474ecbe36d | ||
|
|
ca261fdff2 | ||
|
|
14e0773642 | ||
|
|
abe3461807 | ||
|
|
2a267a62c5 | ||
|
|
541e5824d2 | ||
|
|
2faf44b0db | ||
|
|
cbcc3216e3 | ||
|
|
a137821862 | ||
|
|
895d09db3f | ||
|
|
544ebe5cad | ||
|
|
b7d887527b | ||
|
|
42f7fdcfee | ||
|
|
55102a205f | ||
|
|
56b73d55d6 | ||
|
|
d24c9ba2c4 | ||
|
|
c6cb215058 | ||
|
|
a015a5e578 | ||
|
|
459a54c88f | ||
|
|
f3a6a12f95 | ||
|
|
0806aed6a7 | ||
|
|
a56e2fae6f | ||
|
|
5d6d57465d | ||
|
|
74acbb6b25 | ||
|
|
3292b2efb7 | ||
|
|
8bda37b02d | ||
|
|
e73022e3c4 | ||
|
|
c4f5f80558 | ||
|
|
31a68bbb77 | ||
|
|
2f7a7ed095 | ||
|
|
6f8a092547 | ||
|
|
42a3e4ad9c | ||
|
|
429b5ba085 | ||
|
|
a0c68115c1 | ||
|
|
5864af0675 | ||
|
|
67b9407807 | ||
|
|
3486e5de0a | ||
|
|
b521fdff4e | ||
|
|
45e4ffbee7 | ||
|
|
bae5dafc0c | ||
|
|
dbe5aabe6d | ||
|
|
428c38c113 | ||
|
|
6cbeab1935 | ||
|
|
2f03cc7521 | ||
|
|
a9d040f438 | ||
|
|
56449b60c5 | ||
|
|
2e86d35ab4 | ||
|
|
084c971e08 | ||
|
|
6fb37a591e | ||
|
|
7c57cb63bd |
No files matched your search
-22
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
exclude_paths:
|
|
||||||
- '.github/**'
|
|
||||||
- 'CHANGELOG.md'
|
|
||||||
- '**/CHANGELOG.md'
|
|
||||||
- 'changelog/**'
|
|
||||||
- '**/changelog/**'
|
|
||||||
- 'docs/**'
|
|
||||||
- '**/docs/**'
|
|
||||||
- '**/pkg/proto/**'
|
|
||||||
- 'idp/ui_config/**'
|
|
||||||
- 'idp/scripts/**'
|
|
||||||
- 'settings/rollup.config.js'
|
|
||||||
- 'accounts/rollup.config.js'
|
|
||||||
- 'deployments/**'
|
|
||||||
- 'tests/acceptance/expected-failures-*.md'
|
|
||||||
- 'tests/acceptance/bootstrap/**'
|
|
||||||
- 'tests/acceptance/TestHelpers/**'
|
|
||||||
- 'tests/acceptance/run.sh'
|
|
||||||
- 'vendor/**/*'
|
|
||||||
- 'tests/ociswrapper/vendor/**'
|
|
||||||
...
|
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
name: Build Package (Reverse Cloud)
|
||||||
|
|
||||||
|
# 手動実行専用。ビルドして Actions の Artifact(7 日間)に保存する。
|
||||||
|
# push / PR / タグでは実行しない。
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'パッケージのバージョン(空欄なら 0.0.0-dev.<短縮SHA>)'
|
||||||
|
required: false
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-package-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
NODE_VERSION: '24'
|
||||||
|
CHROMEDRIVER_SKIP_DOWNLOAD: 'true'
|
||||||
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 90
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Determine version
|
||||||
|
id: ver
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
INPUT_VERSION: ${{ github.event.inputs.version }}
|
||||||
|
run: |
|
||||||
|
if [[ -n "${INPUT_VERSION}" ]]; then
|
||||||
|
VERSION="${INPUT_VERSION#v}"
|
||||||
|
else
|
||||||
|
VERSION="0.0.0-dev.$(git rev-parse --short HEAD)"
|
||||||
|
fi
|
||||||
|
if ! [[ "${VERSION}" =~ ^[0-9A-Za-z.+-]+$ ]]; then
|
||||||
|
echo "::error::invalid version: ${VERSION}"; exit 1
|
||||||
|
fi
|
||||||
|
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
cache-dependency-path: go.sum
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
|
||||||
|
- name: Enable pnpm (packageManager in web/package.json)
|
||||||
|
id: pnpm
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
corepack enable
|
||||||
|
cd web && corepack prepare --activate && pnpm --version
|
||||||
|
echo "store=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Cache pnpm store
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: ${{ steps.pnpm.outputs.store }}
|
||||||
|
key: pnpm-${{ runner.os }}-${{ hashFiles('web/pnpm-lock.yaml', 'services/idp/pnpm-lock.yaml') }}
|
||||||
|
restore-keys: pnpm-${{ runner.os }}-
|
||||||
|
|
||||||
|
- name: Build frontend assets (web / idp)
|
||||||
|
run: make ci-node-generate
|
||||||
|
|
||||||
|
- name: Go generate
|
||||||
|
env:
|
||||||
|
BUF_TOKEN: ${{ secrets.BUF_API_TOKEN }}
|
||||||
|
run: make ci-go-generate
|
||||||
|
|
||||||
|
- name: Build ocis (linux/amd64, static PIE)
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: '0'
|
||||||
|
VERSION: ${{ steps.ver.outputs.version }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
sed -i "s/LatestTag = \".*\"/LatestTag = \"${VERSION}\"/" ocis-pkg/version/version.go
|
||||||
|
make -C ocis release-linux-docker-amd64
|
||||||
|
OUT="dist/ocis-${VERSION}-linux-amd64"
|
||||||
|
mkdir -p dist
|
||||||
|
cp ocis/dist/binaries/ocis-linux-amd64 "${OUT}"
|
||||||
|
(cd dist && sha256sum "$(basename "${OUT}")" > "$(basename "${OUT}").sha256")
|
||||||
|
ls -lh dist
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ocis-${{ steps.ver.outputs.version }}-linux-amd64
|
||||||
|
path: dist/
|
||||||
|
retention-days: 7
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
# SPDX-FileCopyrightText: ownCloud GmbH - A Kiteworks Company and ownCloud contributors
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
# Managed by owncloud/admin — edit codeowners/ownership.yml, not this file.
|
|
||||||
# Generated by scripts/sync-codeowners.py. Last matching pattern wins.
|
|
||||||
* @owncloud/ocis-maintainers
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Configuration for update-docs - https://github.com/behaviorbot/update-docs
|
|
||||||
|
|
||||||
# Comment to be posted to on PRs that don't update documentation
|
|
||||||
updateDocsComment: >
|
|
||||||
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a [changelog](https://github.com/owncloud/ocis/blob/master/changelog/README.md) item based on your changes.
|
|
||||||
updateDocsWhiteList:
|
|
||||||
- Tests-only
|
|
||||||
- tests-only
|
|
||||||
- Tests-Only
|
|
||||||
- docs-only
|
|
||||||
- docs-Only
|
|
||||||
- Docs-Only
|
|
||||||
|
|
||||||
updateDocsTargetFiles:
|
|
||||||
- changelog/unreleased/
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: gomod
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: sunday
|
|
||||||
time: '22:00'
|
|
||||||
timezone: Etc/UTC
|
|
||||||
open-pull-requests-limit: 5
|
|
||||||
groups:
|
|
||||||
minor-and-patch:
|
|
||||||
update-types:
|
|
||||||
- minor
|
|
||||||
- patch
|
|
||||||
|
|
||||||
- package-ecosystem: composer
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: sunday
|
|
||||||
time: '22:00'
|
|
||||||
timezone: Etc/UTC
|
|
||||||
open-pull-requests-limit: 5
|
|
||||||
groups:
|
|
||||||
minor-and-patch:
|
|
||||||
update-types:
|
|
||||||
- minor
|
|
||||||
- patch
|
|
||||||
|
|
||||||
- package-ecosystem: npm
|
|
||||||
directory: "/services/idp"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: sunday
|
|
||||||
time: '22:00'
|
|
||||||
timezone: Etc/UTC
|
|
||||||
open-pull-requests-limit: 5
|
|
||||||
groups:
|
|
||||||
minor-and-patch:
|
|
||||||
update-types:
|
|
||||||
- minor
|
|
||||||
- patch
|
|
||||||
|
|
||||||
- package-ecosystem: docker
|
|
||||||
directories:
|
|
||||||
- "/"
|
|
||||||
- "/ocis/docker"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: sunday
|
|
||||||
time: '22:00'
|
|
||||||
timezone: Etc/UTC
|
|
||||||
open-pull-requests-limit: 5
|
|
||||||
groups:
|
|
||||||
minor-and-patch:
|
|
||||||
update-types:
|
|
||||||
- minor
|
|
||||||
- patch
|
|
||||||
|
|
||||||
- package-ecosystem: github-actions
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
day: sunday
|
|
||||||
time: '22:00'
|
|
||||||
timezone: Etc/UTC
|
|
||||||
cooldown:
|
|
||||||
default-days: 7
|
|
||||||
open-pull-requests-limit: 5
|
|
||||||
groups:
|
|
||||||
minor-and-patch:
|
|
||||||
update-types:
|
|
||||||
- minor
|
|
||||||
- patch
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
### Template
|
|
||||||
[Release Template](https://github.com/owncloud/ocis/blob/master/.github/release_template.md)
|
|
||||||
|
|
||||||
### Prerequisites
|
|
||||||
|
|
||||||
* [ ] DEV/QA: Kickoff meeting [Kickoff meeting] (https://confluence.owncloud.com/display/QA/Technical+release+3.0.0+Overview)
|
|
||||||
* [ ] DEV/QA: Define client versions and provide list of breaking changes for desktop/mobile team
|
|
||||||
* [ ] DEV/QA: Check new strings and align with clients
|
|
||||||
* [ ] DEV/DOCS: Create list of pending docs tasks
|
|
||||||
* [ ] DEV: Create branch `release-x.x.x-rc.x` -> CODEFREEZE
|
|
||||||
* [ ] DEV: bump ocis version in necessary files
|
|
||||||
* [ ] DEV: `changelog/CHANGELOG.tmpl`
|
|
||||||
* [ ] DEV: `ocis-pkg/version/version.go`
|
|
||||||
* [ ] DEV: `sonar-project.properties`
|
|
||||||
* [ ] DEV: prepare changelog folder in `changelog/x.x.x_????_??_??`
|
|
||||||
* [ ] DEV: Check successful CI run on release branch
|
|
||||||
* [ ] DEV: Create signed tag `vx.y.z-rc.x`
|
|
||||||
* [ ] DEV: Check successful CI run on `vx.y.z-rc.x` tag / BLOCKING for all further activity
|
|
||||||
* [ ] DEV: Merge back release branch
|
|
||||||
* [ ] DEV: bump released deployments to `vx.y.z-rc.x`
|
|
||||||
* [ ] DEV: update `ocis.released.owncloud.works`
|
|
||||||
* [ ] DEV: https://ocis.team.owncloud.works/
|
|
||||||
* [ ] DEV: needs snapshot and migration
|
|
||||||
|
|
||||||
### QA Phase
|
|
||||||
|
|
||||||
* [ ] QA: Confirmatory testing (if needed)
|
|
||||||
* [ ] QA: [Compatibility test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Compatibility_Test.md)
|
|
||||||
* [ ] QA: [Performance test](https://github.com/owncloud/cdperf/tree/main/packages/k6-tests/src)
|
|
||||||
* [ ] QA: Documentation test:
|
|
||||||
* [ ] QA: Single binary - setup
|
|
||||||
* [ ] QA: Docker - setup
|
|
||||||
* [ ] QA: Docker-compose - setup
|
|
||||||
* [ ] QA: helm/k8s - setup
|
|
||||||
* [ ] QA: e2e with different deployment:
|
|
||||||
* [ ] QA: [wopi](ocis.ocis-wopi.released.owncloud.works)
|
|
||||||
* [ ] QA: [traefik](ocis.ocis-traefik.released.owncloud.works)
|
|
||||||
* [ ] QA: [ldap](ocis.ocis-ldap.released.owncloud.works)
|
|
||||||
* [ ] QA: e2e with different storage:
|
|
||||||
* [ ] QA: local
|
|
||||||
* [ ] QA: nfs
|
|
||||||
* [ ] QA: s3
|
|
||||||
* [ ] QA: Different clients:
|
|
||||||
* [ ] QA: desktop (define version) https://github.com/owncloud/client/releases
|
|
||||||
* [ ] QA: against mac - smoke test
|
|
||||||
* [ ] QA: against windows - smoke test
|
|
||||||
* [ ] QA: against linux (use auto tests)
|
|
||||||
* [ ] QA: android (define version) https://github.com/owncloud/android/releases
|
|
||||||
* [ ] QA: ios (define version)
|
|
||||||
* [ ] QA: [Web Office Smoke test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Smoke_Web_Office_Test.md) on Web Office (Collabora, Onlyoffice, Microsoft office)
|
|
||||||
* [ ] QA: [Smoke test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Smoke_Test.md) on pre-production server
|
|
||||||
* [ ] QA: [Smoke test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Smoke_Ldap_Test.md) ldap
|
|
||||||
* [ ] QA: Collecting errors found
|
|
||||||
|
|
||||||
### After QA Phase
|
|
||||||
|
|
||||||
* [ ] Brief company-wide heads up via mail @tbsbdr
|
|
||||||
* [ ] Create list of changed ENV vars and send to release-coordination@owncloud.com
|
|
||||||
* [ ] Variable Name
|
|
||||||
* [ ] Introduced in version
|
|
||||||
* [ ] Default Value
|
|
||||||
* [ ] Description
|
|
||||||
* [ ] dependencies with user other components
|
|
||||||
* [ ] DEV: Create branch `release-x.x.x`
|
|
||||||
* [ ] DEV: bump ocis version in necessary files
|
|
||||||
* [ ] DEV: `ocis-pkg/version/version.go`
|
|
||||||
* [ ] DEV: `sonar-project.properties`
|
|
||||||
* [ ] DEV: released deployment versions
|
|
||||||
* [ ] DEV: prepare changelog folder in `changelog/x.x.x_???`
|
|
||||||
* [ ] Release Notes + Breaking Changes @tbsbdr
|
|
||||||
* [ ] Migration + Breaking Changes Admin Doc @mmattel
|
|
||||||
* [ ] DEV: Create final signed tag
|
|
||||||
* [ ] DEV: Check successful CI run on `vx.y.z` tag / BLOCKING for all further activity
|
|
||||||
* [ ] Merge release notes
|
|
||||||
|
|
||||||
### Post-release communication
|
|
||||||
* [ ] DEV: Create a `docs-stable-x.y` branch based on the docs folder in the ocis repo @micbar
|
|
||||||
* [ ] DEV/QA: Ping documentation in RC about the new release tag (for ocis/helm chart version bump in docs)
|
|
||||||
* [ ] DEV/QA: Ping marketing to update all download links (download mirrors are updated at the full hour, wait with ping until download is actually available)
|
|
||||||
* [ ] DEV/QA: Ping @hodyroff once the demo instances are running this release
|
|
||||||
* [ ] DEV: Merge back release branch
|
|
||||||
* [ ] DEV: Create stable-x.y branch in the ocis repo from final tag
|
|
||||||
@@ -1,88 +0,0 @@
|
|||||||
---
|
|
||||||
_extends: gh-labels
|
|
||||||
|
|
||||||
repository:
|
|
||||||
name: ocis
|
|
||||||
description: ':atom_symbol: ownCloud Infinite Scale Stack'
|
|
||||||
homepage: 'https://doc.owncloud.com/ocis/next/'
|
|
||||||
topics: reva, ocis
|
|
||||||
|
|
||||||
private: false
|
|
||||||
has_issues: true
|
|
||||||
has_projects: true
|
|
||||||
has_wiki: false
|
|
||||||
has_downloads: false
|
|
||||||
|
|
||||||
default_branch: master
|
|
||||||
|
|
||||||
allow_squash_merge: true
|
|
||||||
allow_merge_commit: true
|
|
||||||
allow_rebase_merge: true
|
|
||||||
|
|
||||||
labels:
|
|
||||||
- name: OCIS-Fastlane
|
|
||||||
color: "#deadbf"
|
|
||||||
description: Planned outside of the sprint
|
|
||||||
- name: Storage:EOS
|
|
||||||
color: "#3F7A62"
|
|
||||||
- name: Storage:S3NG
|
|
||||||
color: "#3F7A62"
|
|
||||||
- name: Storage:CephFS
|
|
||||||
color: "#3F7A62"
|
|
||||||
- name: Storage:OCIS
|
|
||||||
color: "#3F7A62"
|
|
||||||
- name: Storage:POSIX
|
|
||||||
color: "#3F7A62"
|
|
||||||
- name: Storage:ownCloudSQL
|
|
||||||
color: "#3F7A62"
|
|
||||||
|
|
||||||
teams:
|
|
||||||
- name: ci
|
|
||||||
permission: admin
|
|
||||||
- name: employees
|
|
||||||
permission: push
|
|
||||||
- name: cern
|
|
||||||
permission: triage
|
|
||||||
- name: ocis-contractors
|
|
||||||
permission: push
|
|
||||||
|
|
||||||
branches:
|
|
||||||
- name: master
|
|
||||||
protection:
|
|
||||||
required_pull_request_reviews:
|
|
||||||
required_approving_review_count: 1
|
|
||||||
dismiss_stale_reviews: false
|
|
||||||
require_code_owner_reviews: false
|
|
||||||
required_status_checks:
|
|
||||||
strict: false
|
|
||||||
contexts: []
|
|
||||||
enforce_admins: null
|
|
||||||
restrictions:
|
|
||||||
apps: []
|
|
||||||
users:
|
|
||||||
- dependabot
|
|
||||||
teams:
|
|
||||||
- ci
|
|
||||||
- employees
|
|
||||||
- ocis-contractors
|
|
||||||
- name: stable-*
|
|
||||||
protection:
|
|
||||||
required_pull_request_reviews:
|
|
||||||
required_approving_review_count: 2
|
|
||||||
dismiss_stale_reviews: false
|
|
||||||
require_code_owner_reviews: false
|
|
||||||
required_status_checks:
|
|
||||||
strict: false
|
|
||||||
contexts: []
|
|
||||||
enforce_admins: null
|
|
||||||
restrictions:
|
|
||||||
apps: []
|
|
||||||
users:
|
|
||||||
- dependabot
|
|
||||||
teams:
|
|
||||||
- ci
|
|
||||||
- employees
|
|
||||||
- ocis-contractors
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
only: issues
|
|
||||||
# Number of days of inactivity before an issue becomes stale
|
|
||||||
daysUntilStale: 60
|
|
||||||
# Number of days of inactivity before a stale issue is closed
|
|
||||||
daysUntilClose: 10
|
|
||||||
# Issues with these labels will never be considered stale
|
|
||||||
exemptLabels:
|
|
||||||
- "Type:Bug"
|
|
||||||
- "Type:Technical-Debt"
|
|
||||||
- "Category:Enhancement"
|
|
||||||
- "Category:Research"
|
|
||||||
- "QA:team"
|
|
||||||
# Label to use when marking an issue as stale
|
|
||||||
staleLabel: "Status:Stale"
|
|
||||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
||||||
markComment: >
|
|
||||||
This issue has been automatically marked as stale because it has not had
|
|
||||||
recent activity. It will be closed in 10 days if no further activity occurs. Thank you
|
|
||||||
for your contributions.
|
|
||||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
||||||
closeComment: false
|
|
||||||
@@ -1,920 +0,0 @@
|
|||||||
name: Acceptance Tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
detect-changes:
|
|
||||||
name: detect-changes
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
outputs:
|
|
||||||
docs-only: ${{ steps.check.outputs.docs-only }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Check if changes are docs-only
|
|
||||||
id: check
|
|
||||||
env:
|
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
||||||
run: |
|
|
||||||
# Always run full CI on workflow_dispatch, tags, or when PR title contains [full-ci]
|
|
||||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
|
||||||
echo "docs-only=false" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if echo "$PR_TITLE" | grep -qi "\[full-ci\]"; then
|
|
||||||
echo "docs-only=false" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Get changed files between the PR base and head
|
|
||||||
CHANGED_FILES=$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" 2>/dev/null || git diff --name-only HEAD~1)
|
|
||||||
|
|
||||||
# Patterns that are considered documentation/non-code changes
|
|
||||||
DOCS_ONLY=true
|
|
||||||
while IFS= read -r file; do
|
|
||||||
case "$file" in
|
|
||||||
.github/workflows/*) DOCS_ONLY=false; break ;;
|
|
||||||
.github/*|.vscode/*|changelog/*|docs/*|deployments/*) ;;
|
|
||||||
*/CHANGELOG.md|*/CONTRIBUTING.md|*/README.md|CHANGELOG.md|CONTRIBUTING.md|LICENSE|README.md) ;;
|
|
||||||
*) DOCS_ONLY=false; break ;;
|
|
||||||
esac
|
|
||||||
done <<< "$CHANGED_FILES"
|
|
||||||
|
|
||||||
echo "docs-only=$DOCS_ONLY" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "Changed files docs-only: $DOCS_ONLY"
|
|
||||||
|
|
||||||
build-and-test:
|
|
||||||
name: build-and-test
|
|
||||||
needs: [detect-changes]
|
|
||||||
if: needs.detect-changes.outputs.docs-only != 'true'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 60
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: "24"
|
|
||||||
|
|
||||||
- name: Enable pnpm
|
|
||||||
run: corepack enable && corepack prepare pnpm@10.33.3 --activate
|
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
|
||||||
with:
|
|
||||||
php-version: "8.4"
|
|
||||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Install libvips-dev for ENABLE_VIPS build
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips-dev
|
|
||||||
|
|
||||||
- name: Pre-checks and generate
|
|
||||||
run: |
|
|
||||||
# Phase 1 — I/O + light CPU, no contention between tasks.
|
|
||||||
# wa (I/O wait) will spike during npm/pnpm downloads.
|
|
||||||
# Expected avg load: ~50-60 % CPU on 2 vCPU.
|
|
||||||
vmstat 2 > /tmp/vmstat-phase1.log & MONITOR_PID=$!
|
|
||||||
|
|
||||||
(make vendor-bin-codestyle && make vendor-bin-codesniffer && make test-php-style && make check-env-var-annotations) > /tmp/php-style.log 2>&1 & PIDS=($!)
|
|
||||||
(npm install -g @gherlint/gherlint@1.1.0 && make test-gherkin-lint) > /tmp/gherkin.log 2>&1 & PIDS+=($!)
|
|
||||||
bash tests/acceptance/check-deleted-suites-in-expected-failure.sh > /tmp/suites.log 2>&1 & PIDS+=($!)
|
|
||||||
make govulncheck > /tmp/govulncheck.log 2>&1 & PIDS+=($!)
|
|
||||||
make ci-node-generate > /tmp/node-gen.log 2>&1 & PIDS+=($!)
|
|
||||||
make ci-go-generate > /tmp/go-gen.log 2>&1 & PIDS+=($!)
|
|
||||||
make changelog-lint > /tmp/changelog-lint.log 2>&1 & PIDS+=($!)
|
|
||||||
|
|
||||||
FAILED=0
|
|
||||||
for PID in "${PIDS[@]}"; do wait "$PID" || FAILED=1; done
|
|
||||||
kill $MONITOR_PID 2>/dev/null; wait $MONITOR_PID 2>/dev/null || true
|
|
||||||
|
|
||||||
# How to read the load line:
|
|
||||||
# busy — % of time CPUs were doing work (100% = fully saturated)
|
|
||||||
# runq — processes waiting for a CPU turn; runq >> nCPU means tasks
|
|
||||||
# compete and each runs slower (runq 10 on 2 vCPU = ~5× slower)
|
|
||||||
# wa — % waiting on disk/network; wa > 20% = I/O bound, not CPU bound
|
|
||||||
# → high wa: add more parallel tasks; high runq: reduce them
|
|
||||||
awk '/^[ ]*[0-9]/ { busy=100-$15; sum_b+=busy; if(busy>pk_b)pk_b=busy;
|
|
||||||
sum_r+=$1; if($1>pk_r) pk_r=$1; sum_wa+=$16; n++ }
|
|
||||||
END { printf "=== phase 1 load (2 vCPU): avg busy %d%% peak %d%% | avg runq %.0f peak %d | avg wa %d%%\n",
|
|
||||||
sum_b/n, pk_b, sum_r/n, pk_r, sum_wa/n }' /tmp/vmstat-phase1.log
|
|
||||||
|
|
||||||
echo "=== php-style ===" && cat /tmp/php-style.log
|
|
||||||
echo "=== gherkin ===" && cat /tmp/gherkin.log
|
|
||||||
echo "=== suites ===" && cat /tmp/suites.log
|
|
||||||
echo "=== govulncheck ===" && cat /tmp/govulncheck.log
|
|
||||||
echo "=== ci-node-generate ===" && cat /tmp/node-gen.log
|
|
||||||
echo "=== ci-go-generate ===" && cat /tmp/go-gen.log
|
|
||||||
echo "=== changelog-lint ===" && cat /tmp/changelog-lint.log
|
|
||||||
|
|
||||||
exit $FAILED
|
|
||||||
|
|
||||||
- name: Trivy scan
|
|
||||||
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
|
||||||
with:
|
|
||||||
scan-type: fs
|
|
||||||
format: table
|
|
||||||
exit-code: 1
|
|
||||||
severity: CRITICAL,HIGH
|
|
||||||
trivy-config: .trivy.yaml
|
|
||||||
|
|
||||||
- name: Build, lint and test
|
|
||||||
run: |
|
|
||||||
# Phase 2 — all three are CPU-bound Go compilation on 2 vCPU.
|
|
||||||
# They compete for CPU (expect id < 10, load ~95 %) but share the
|
|
||||||
# Go build cache within this runner, so make test reuses artifacts
|
|
||||||
# from the ocis build. Critical path = ocis build (~300 s).
|
|
||||||
vmstat 2 > /tmp/vmstat-phase2.log & MONITOR_PID=$!
|
|
||||||
|
|
||||||
make ci-golangci-lint > /tmp/golangci-lint.log 2>&1 & PIDS=($!)
|
|
||||||
( ENABLE_VIPS=true make -C ocis build-debug \
|
|
||||||
&& mv ocis/bin/ocis-debug ocis/bin/ocis ) > /tmp/ocis-build.log 2>&1 & PIDS+=($!)
|
|
||||||
make test > /tmp/unit-tests.log 2>&1 & PIDS+=($!)
|
|
||||||
# vips-tagged files live only under thumbnails; scoped run, no coverprofile.
|
|
||||||
go test -v -tags 'enable_vips' ./services/thumbnails/... > /tmp/unit-tests-vips.log 2>&1 & PIDS+=($!)
|
|
||||||
GOWORK=off make -C tests/ociswrapper build > /tmp/ociswrapper-build.log 2>&1 & PIDS+=($!)
|
|
||||||
|
|
||||||
FAILED=0
|
|
||||||
for PID in "${PIDS[@]}"; do wait "$PID" || FAILED=1; done
|
|
||||||
kill $MONITOR_PID 2>/dev/null; wait $MONITOR_PID 2>/dev/null || true
|
|
||||||
|
|
||||||
# Signal: busy=saturated runq>>2=tasks competing(slows each) wa>20%=I/O bound
|
|
||||||
awk '/^[ ]*[0-9]/ { busy=100-$15; sum_b+=busy; if(busy>pk_b)pk_b=busy;
|
|
||||||
sum_r+=$1; if($1>pk_r) pk_r=$1; sum_wa+=$16; n++ }
|
|
||||||
END { printf "=== phase 2 load (2 vCPU): avg busy %d%% peak %d%% | avg runq %.0f peak %d | avg wa %d%%\n",
|
|
||||||
sum_b/n, pk_b, sum_r/n, pk_r, sum_wa/n }' /tmp/vmstat-phase2.log
|
|
||||||
|
|
||||||
echo "=== golangci-lint ===" && cat /tmp/golangci-lint.log
|
|
||||||
echo "=== ocis build ===" && cat /tmp/ocis-build.log
|
|
||||||
echo "=== ociswrapper build ===" && cat /tmp/ociswrapper-build.log
|
|
||||||
echo "=== unit tests ===" && cat /tmp/unit-tests.log
|
|
||||||
echo "=== vips unit tests ===" && cat /tmp/unit-tests-vips.log
|
|
||||||
|
|
||||||
exit $FAILED
|
|
||||||
|
|
||||||
- name: Upload build artifacts
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
path: |
|
|
||||||
ocis/bin/ocis
|
|
||||||
tests/ociswrapper/bin/ociswrapper
|
|
||||||
retention-days: 1
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
local-api-tests:
|
|
||||||
name: ${{ matrix.suite }}
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
env:
|
|
||||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
suite:
|
|
||||||
# contract & locks
|
|
||||||
- apiContract
|
|
||||||
- apiLocks
|
|
||||||
# settings & notifications (needs email)
|
|
||||||
- apiSettings
|
|
||||||
- apiNotification
|
|
||||||
- apiCors
|
|
||||||
# graph
|
|
||||||
- apiGraphUser
|
|
||||||
- apiGraph
|
|
||||||
- apiGraphGroup
|
|
||||||
# spaces & dav
|
|
||||||
- apiSpaces
|
|
||||||
- apiSpacesShares
|
|
||||||
- apiSpacesDavOperation
|
|
||||||
- apiDownloads
|
|
||||||
- apiAsyncUpload
|
|
||||||
- apiDepthInfinity
|
|
||||||
- apiArchiver
|
|
||||||
- apiActivities
|
|
||||||
# search
|
|
||||||
- apiSearch1
|
|
||||||
- apiSearch2
|
|
||||||
- apiSearchContent # needs Tika
|
|
||||||
# sharing
|
|
||||||
- apiSharingNgShares
|
|
||||||
- apiReshare
|
|
||||||
- apiSharingNgPermissions
|
|
||||||
- apiSharingNgAdditionalShareRole
|
|
||||||
- apiSharingNgDriveInvitation
|
|
||||||
- apiSharingNgItemInvitation
|
|
||||||
- apiSharingNgDriveLinkShare
|
|
||||||
- apiSharingNgItemLinkShare
|
|
||||||
- apiSharingNgLinkShareManagement
|
|
||||||
# auth
|
|
||||||
- apiAuthApp
|
|
||||||
# antivirus (needs ClamAV)
|
|
||||||
- apiAntivirus
|
|
||||||
# federation (needs email + federation ocis)
|
|
||||||
- apiOcm
|
|
||||||
# collaboration (needs WOPI)
|
|
||||||
- apiCollaboration
|
|
||||||
- apiVault
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
|
||||||
with:
|
|
||||||
php-version: "8.4"
|
|
||||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Cache libcurl 8.12.0
|
|
||||||
id: cache-libcurl
|
|
||||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
||||||
with:
|
|
||||||
path: /opt/libcurl
|
|
||||||
key: libcurl-8.12.0-${{ runner.os }}
|
|
||||||
|
|
||||||
- name: Install libcurl 8.12.0 build dependencies
|
|
||||||
# Always run: libvips-dev is needed at runtime (govips thumbnails in the pre-built binary)
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libssl-dev libnghttp2-dev libpsl-dev libldap-dev libssh-dev zlib1g-dev libvips-dev
|
|
||||||
|
|
||||||
- name: Compile libcurl 8.12.0 from source
|
|
||||||
if: steps.cache-libcurl.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd /tmp
|
|
||||||
curl -sLO https://curl.se/download/curl-8.12.0.tar.gz
|
|
||||||
tar xzf curl-8.12.0.tar.gz
|
|
||||||
cd curl-8.12.0
|
|
||||||
./configure --with-ssl --with-zlib --with-nghttp2 --prefix=/opt/libcurl --enable-versioned-symbols --silent
|
|
||||||
make -j$(nproc) --silent
|
|
||||||
sudo make install --silent
|
|
||||||
|
|
||||||
- name: Restore libcurl ldconfig
|
|
||||||
# Always run: on cache hit the .so files are restored to /opt/libcurl/lib but
|
|
||||||
# /etc/ld.so.cache on the fresh runner doesn't know about them yet.
|
|
||||||
# Without ldconfig, PHP's curl extension can't find libcurl even though it's present.
|
|
||||||
run: |
|
|
||||||
echo "/opt/libcurl/lib" | sudo tee /etc/ld.so.conf.d/libcurl-8.conf
|
|
||||||
sudo ldconfig
|
|
||||||
/opt/libcurl/bin/curl --version | head -1
|
|
||||||
php -r '
|
|
||||||
$v = curl_version()["version"];
|
|
||||||
echo "PHP curl: $v\n";
|
|
||||||
if (version_compare($v, "8.12.0", "<")) {
|
|
||||||
fwrite(STDERR, "FATAL: PHP sees libcurl $v, need >= 8.12.0\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
'
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
|
||||||
|
|
||||||
- name: Run ${{ matrix.suite }}
|
|
||||||
run: |
|
|
||||||
mkdir -p "$GOCOVERDIR"
|
|
||||||
BEHAT_SUITES=${{ matrix.suite }} python3 tests/acceptance/run-github.py
|
|
||||||
|
|
||||||
- name: Upload raw coverage data
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: api-coverage-${{ matrix.suite }}
|
|
||||||
path: ${{ env.GOCOVERDIR }}
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
cli-tests:
|
|
||||||
needs: [build-and-test]
|
|
||||||
name: ${{ matrix.suite }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
env:
|
|
||||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
suite:
|
|
||||||
- cliCommands,apiServiceAvailability # grouped: both need ClamAV + email services
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
|
||||||
with:
|
|
||||||
php-version: "8.4"
|
|
||||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
|
||||||
|
|
||||||
- name: Run ${{ matrix.suite }}
|
|
||||||
run: |
|
|
||||||
mkdir -p "$GOCOVERDIR"
|
|
||||||
BEHAT_SUITES="${{ matrix.suite }}" python3 tests/acceptance/run-github.py
|
|
||||||
|
|
||||||
- name: Upload raw coverage data
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: api-coverage-cli-${{ matrix.suite }}
|
|
||||||
path: ${{ env.GOCOVERDIR }}
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
ldap-pool-tests:
|
|
||||||
needs: [build-and-test]
|
|
||||||
name: ldapPool-${{ matrix.suite }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
env:
|
|
||||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
suite:
|
|
||||||
- apiGraphUser,apiGraph,apiGraphGroup
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
|
||||||
with:
|
|
||||||
php-version: "8.4"
|
|
||||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
|
||||||
|
|
||||||
- name: Run ${{ matrix.suite }} with OCIS_LDAP_POOL_ENABLED=true
|
|
||||||
run: |
|
|
||||||
mkdir -p "$GOCOVERDIR"
|
|
||||||
BEHAT_SUITES="${{ matrix.suite }}" OCIS_LDAP_POOL_ENABLED=true python3 tests/acceptance/run-github.py
|
|
||||||
|
|
||||||
- name: Upload raw coverage data
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: api-coverage-ldap-pool-${{ matrix.suite }}
|
|
||||||
path: ${{ env.GOCOVERDIR }}
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
core-api-tests:
|
|
||||||
name: ${{ matrix.suite }}
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
env:
|
|
||||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
suite:
|
|
||||||
- "coreApiAuth,coreApiCapabilities,coreApiFavorites,coreApiMain,coreApiVersions"
|
|
||||||
- "coreApiShareManagementBasicToShares,coreApiShareManagementToShares"
|
|
||||||
- "coreApiSharees"
|
|
||||||
- "coreApiSharePublicLink2"
|
|
||||||
- "coreApiShareOperationsToShares1,coreApiShareOperationsToShares2,coreApiSharePublicLink1,coreApiShareCreateSpecialToShares1,coreApiShareCreateSpecialToShares2,coreApiShareUpdateToShares"
|
|
||||||
- "coreApiTrashbin,coreApiTrashbinRestore,coreApiWebdavEtagPropagation1,coreApiWebdavEtagPropagation2"
|
|
||||||
- "coreApiWebdavDelete,coreApiWebdavOperations,coreApiWebdavMove2"
|
|
||||||
- "coreApiWebdavProperties"
|
|
||||||
- "coreApiWebdavMove1,coreApiWebdavPreviews,coreApiWebdavUpload,coreApiWebdavUploadTUS"
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
|
||||||
with:
|
|
||||||
php-version: "8.4"
|
|
||||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Cache libcurl 8.12.0
|
|
||||||
id: cache-libcurl
|
|
||||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
||||||
with:
|
|
||||||
path: /opt/libcurl
|
|
||||||
key: libcurl-8.12.0-${{ runner.os }}
|
|
||||||
|
|
||||||
- name: Install libcurl 8.12.0 build dependencies
|
|
||||||
# Always run: libvips-dev is needed at runtime (govips thumbnails in the pre-built binary)
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libssl-dev libnghttp2-dev libpsl-dev libldap-dev libssh-dev zlib1g-dev libvips-dev
|
|
||||||
|
|
||||||
- name: Compile libcurl 8.12.0 from source
|
|
||||||
if: steps.cache-libcurl.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
cd /tmp
|
|
||||||
curl -sLO https://curl.se/download/curl-8.12.0.tar.gz
|
|
||||||
tar xzf curl-8.12.0.tar.gz
|
|
||||||
cd curl-8.12.0
|
|
||||||
./configure --with-ssl --with-zlib --with-nghttp2 --prefix=/opt/libcurl --enable-versioned-symbols --silent
|
|
||||||
make -j$(nproc) --silent
|
|
||||||
sudo make install --silent
|
|
||||||
|
|
||||||
- name: Restore libcurl ldconfig
|
|
||||||
# Always run: on cache hit the .so files are restored to /opt/libcurl/lib but
|
|
||||||
# /etc/ld.so.cache on the fresh runner doesn't know about them yet.
|
|
||||||
# Without ldconfig, PHP's curl extension can't find libcurl even though it's present.
|
|
||||||
run: |
|
|
||||||
echo "/opt/libcurl/lib" | sudo tee /etc/ld.so.conf.d/libcurl-8.conf
|
|
||||||
sudo ldconfig
|
|
||||||
/opt/libcurl/bin/curl --version | head -1
|
|
||||||
php -r '
|
|
||||||
$v = curl_version()["version"];
|
|
||||||
echo "PHP curl: $v\n";
|
|
||||||
if (version_compare($v, "8.12.0", "<")) {
|
|
||||||
fwrite(STDERR, "FATAL: PHP sees libcurl $v, need >= 8.12.0\n");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
'
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
|
||||||
|
|
||||||
- name: Run ${{ matrix.suite }}
|
|
||||||
run: |
|
|
||||||
mkdir -p "$GOCOVERDIR"
|
|
||||||
BEHAT_SUITES="${{ matrix.suite }}" \
|
|
||||||
ACCEPTANCE_TEST_TYPE=core-api \
|
|
||||||
WITH_REMOTE_PHP=true \
|
|
||||||
python3 tests/acceptance/run-github.py
|
|
||||||
|
|
||||||
- name: Upload raw coverage data
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: api-coverage-core-${{ matrix.suite }}
|
|
||||||
path: ${{ env.GOCOVERDIR }}
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
e2e-tests:
|
|
||||||
name: e2e-${{ matrix.suite }}
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- suite: part-1
|
|
||||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 1"
|
|
||||||
- suite: part-2
|
|
||||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 2"
|
|
||||||
- suite: part-3
|
|
||||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 3"
|
|
||||||
- suite: part-4
|
|
||||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 4"
|
|
||||||
- suite: search
|
|
||||||
args: "--type playwright --suites search"
|
|
||||||
tika: true
|
|
||||||
- suite: keycloak
|
|
||||||
args: "--type playwright --suites journeys,keycloak"
|
|
||||||
keycloak: true
|
|
||||||
- suite: mfa
|
|
||||||
args: "--type playwright --suites mfa"
|
|
||||||
mfa: true
|
|
||||||
- suite: oidc
|
|
||||||
args: "--type playwright specs/oidc/refreshToken.spec.ts"
|
|
||||||
oidc: true
|
|
||||||
- suite: oidc-iframe
|
|
||||||
args: "--type playwright specs/oidc/iframeTokenRenewal.spec.ts"
|
|
||||||
oidc_iframe: true
|
|
||||||
- suite: app-provider
|
|
||||||
args: "--type playwright --suites app-provider"
|
|
||||||
collaboration: true
|
|
||||||
- suite: ocm
|
|
||||||
args: "--type playwright --suites ocm"
|
|
||||||
federated: true
|
|
||||||
- suite: vault-storage
|
|
||||||
args: "--type playwright --suites vault-storage"
|
|
||||||
vault_storage: true
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
# 24.16.0 breaks playwright install (yauzl zip extraction hangs); pin to last known good.
|
|
||||||
# https://github.com/microsoft/playwright/issues/40724
|
|
||||||
node-version: "24.15.0"
|
|
||||||
- name: Enable pnpm
|
|
||||||
run: |
|
|
||||||
corepack enable && corepack prepare pnpm@10.33.3 --activate
|
|
||||||
pnpm config set store-dir ./.pnpm-store
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis tests/ociswrapper/bin/ociswrapper
|
|
||||||
|
|
||||||
- name: Cache Playwright Chromium
|
|
||||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
||||||
with:
|
|
||||||
path: ~/.cache/ms-playwright
|
|
||||||
key: playwright-chromium-${{ hashFiles('web/pnpm-lock.yaml') }}
|
|
||||||
|
|
||||||
# --- Tika (search suite only) ---
|
|
||||||
- name: Start Tika
|
|
||||||
if: matrix.tika == true
|
|
||||||
run: |
|
|
||||||
docker run -d --name tika --network host apache/tika:3.2.2.0-full
|
|
||||||
timeout 120 bash -c 'until curl -sf http://localhost:9998; do sleep 2; done'
|
|
||||||
echo "tika ready."
|
|
||||||
|
|
||||||
# --- Keycloak (keycloak and mfa suites) ---
|
|
||||||
- name: Generate Keycloak certs
|
|
||||||
if: matrix.keycloak == true || matrix.mfa == true || matrix.vault_storage == true
|
|
||||||
run: |
|
|
||||||
mkdir -p keycloak-certs
|
|
||||||
openssl req -x509 -newkey rsa:2048 \
|
|
||||||
-keyout keycloak-certs/keycloakkey.pem \
|
|
||||||
-out keycloak-certs/keycloakcrt.pem \
|
|
||||||
-nodes -days 365 -subj '/CN=keycloak' \
|
|
||||||
-addext 'subjectAltName=DNS:localhost,IP:127.0.0.1'
|
|
||||||
chmod -R 777 keycloak-certs
|
|
||||||
|
|
||||||
- name: Start Postgres
|
|
||||||
if: matrix.keycloak == true || matrix.mfa == true || matrix.vault_storage == true
|
|
||||||
run: |
|
|
||||||
docker run -d --name postgres --network host \
|
|
||||||
-e POSTGRES_DB=keycloak \
|
|
||||||
-e POSTGRES_USER=keycloak \
|
|
||||||
-e POSTGRES_PASSWORD=keycloak \
|
|
||||||
postgres:alpine3.18
|
|
||||||
timeout 30 bash -c 'until docker exec postgres pg_isready -U keycloak; do sleep 1; done'
|
|
||||||
|
|
||||||
- name: Start Keycloak
|
|
||||||
if: matrix.keycloak == true || matrix.mfa == true || matrix.vault_storage == true
|
|
||||||
run: |
|
|
||||||
# The mfa suite needs a different realm with TOTP MFA configured.
|
|
||||||
# ocis-ci-realm uses ocis-server:9200, ocis-mfa-ci-realm uses localhost:9200;
|
|
||||||
# ocis runs on 127.0.0.1:9200 so we rewrite both forms.
|
|
||||||
if [[ "${{ matrix.mfa }}" == "true" || "${{ matrix.vault_storage }}" == "true" ]]; then
|
|
||||||
REALM_FILE=tests/config/ci/ocis-mfa-ci-realm.dist.json
|
|
||||||
else
|
|
||||||
REALM_FILE=tests/config/ci/ocis-ci-realm.dist.json
|
|
||||||
fi
|
|
||||||
sed -e 's|https://ocis-server:9200|https://127.0.0.1:9200|g' \
|
|
||||||
-e 's|https://localhost:9200|https://127.0.0.1:9200|g' \
|
|
||||||
"$REALM_FILE" > /tmp/ocis-realm.json
|
|
||||||
docker run -d --name keycloak --network host \
|
|
||||||
-e OCIS_DOMAIN=https://127.0.0.1:9200 \
|
|
||||||
-e KC_HOSTNAME=localhost \
|
|
||||||
-e KC_PORT=8443 \
|
|
||||||
-e KC_DB=postgres \
|
|
||||||
-e "KC_DB_URL=jdbc:postgresql://localhost:5432/keycloak" \
|
|
||||||
-e KC_DB_USERNAME=keycloak \
|
|
||||||
-e KC_DB_PASSWORD=keycloak \
|
|
||||||
-e KC_FEATURES=impersonation \
|
|
||||||
-e KC_BOOTSTRAP_ADMIN_USERNAME=admin \
|
|
||||||
-e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
|
|
||||||
-e KC_HTTPS_CERTIFICATE_FILE=/keycloak-certs/keycloakcrt.pem \
|
|
||||||
-e KC_HTTPS_CERTIFICATE_KEY_FILE=/keycloak-certs/keycloakkey.pem \
|
|
||||||
-v "$(pwd)/keycloak-certs:/keycloak-certs:ro" \
|
|
||||||
-v "/tmp/ocis-realm.json:/opt/keycloak/data/import/oCIS-realm.json:ro" \
|
|
||||||
quay.io/keycloak/keycloak:26.2.5 \
|
|
||||||
start-dev --proxy-headers xforwarded \
|
|
||||||
--spi-connections-http-client-default-disable-trust-manager=true \
|
|
||||||
--import-realm --health-enabled=true
|
|
||||||
timeout 300 bash -c 'until curl -skf https://localhost:9000/health/ready; do sleep 3; done' \
|
|
||||||
|| (echo "=== keycloak logs ===" && docker logs keycloak --tail 80 && exit 1)
|
|
||||||
echo "keycloak ready."
|
|
||||||
|
|
||||||
# --- Collabora + OnlyOffice (app-provider suite only) ---
|
|
||||||
- name: Start Collabora
|
|
||||||
if: matrix.collaboration == true
|
|
||||||
run: |
|
|
||||||
docker run -d \
|
|
||||||
--name collabora \
|
|
||||||
--network host \
|
|
||||||
--entrypoint bash \
|
|
||||||
-e DONT_GEN_SSL_CERT=set \
|
|
||||||
-e "extra_params=--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://127.0.0.1:9200" \
|
|
||||||
collabora/code:25.04.7.3.1 \
|
|
||||||
-c "coolconfig generate-proof-key && bash /start-collabora-online.sh"
|
|
||||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:9980/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "collabora ready."
|
|
||||||
|
|
||||||
- name: Start OnlyOffice
|
|
||||||
if: matrix.collaboration == true
|
|
||||||
run: |
|
|
||||||
sudo systemctl stop postgresql || true
|
|
||||||
docker run -d \
|
|
||||||
--name onlyoffice \
|
|
||||||
--network host \
|
|
||||||
-e WOPI_ENABLED=true \
|
|
||||||
-e USE_UNAUTHORIZED_STORAGE=true \
|
|
||||||
-v "${{ github.workspace }}/tests/config/ci/only-office.json:/tmp/local.json:ro" \
|
|
||||||
--entrypoint /bin/sh \
|
|
||||||
onlyoffice/documentserver:9.2.1 \
|
|
||||||
-c "set -e
|
|
||||||
cp /tmp/local.json /etc/onlyoffice/documentserver/local.json
|
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout onlyoffice.key -out onlyoffice.crt -sha256 -days 365 -batch -nodes
|
|
||||||
mkdir -p /var/www/onlyoffice/Data/certs
|
|
||||||
cp onlyoffice.key /var/www/onlyoffice/Data/certs/
|
|
||||||
cp onlyoffice.crt /var/www/onlyoffice/Data/certs/
|
|
||||||
chmod 400 /var/www/onlyoffice/Data/certs/onlyoffice.key
|
|
||||||
/app/ds/run-document-server.sh"
|
|
||||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:443/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "onlyoffice ready."
|
|
||||||
|
|
||||||
- name: Run e2e-${{ matrix.suite }}
|
|
||||||
run: E2E_ARGS="${{ matrix.args }}" python3 tests/acceptance/run-e2e.py
|
|
||||||
env:
|
|
||||||
TIKA_NEEDED: ${{ matrix.tika == true && 'true' || 'false' }}
|
|
||||||
KEYCLOAK_NEEDED: ${{ matrix.keycloak == true && 'true' || 'false' }}
|
|
||||||
MFA_NEEDED: ${{ matrix.mfa == true && 'true' || 'false' }}
|
|
||||||
OIDC_NEEDED: ${{ matrix.oidc == true && 'true' || 'false' }}
|
|
||||||
OIDC_IFRAME_NEEDED: ${{ matrix.oidc_iframe == true && 'true' || 'false' }}
|
|
||||||
COLLABORATION_NEEDED: ${{ matrix.collaboration == true && 'true' || 'false' }}
|
|
||||||
FEDERATED_NEEDED: ${{ matrix.federated == true && 'true' || 'false' }}
|
|
||||||
VAULT_STORAGE_NEEDED: ${{ matrix.vault_storage == true && 'true' || 'false' }}
|
|
||||||
|
|
||||||
- name: Upload tracing result
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: playwright-traces-${{ matrix.suite }}-${{ github.run_attempt }}
|
|
||||||
path: web/reports/e2e
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
- name: Upload a11y result
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: playwright-a11y-result-${{ matrix.suite }}-${{ github.run_attempt }}
|
|
||||||
path: web/reports/e2e/a11y-report.json
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
litmus:
|
|
||||||
name: litmus
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis
|
|
||||||
|
|
||||||
- name: Run litmus
|
|
||||||
run: python3 tests/acceptance/run-litmus.py
|
|
||||||
|
|
||||||
cs3api:
|
|
||||||
name: cs3api
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis
|
|
||||||
|
|
||||||
- name: Run cs3api validator
|
|
||||||
run: python3 tests/acceptance/run-cs3api.py
|
|
||||||
|
|
||||||
wopi-builtin:
|
|
||||||
name: wopi-builtin
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis
|
|
||||||
|
|
||||||
- name: Run WOPI validator (builtin)
|
|
||||||
run: python3 tests/acceptance/run-wopi.py --type builtin
|
|
||||||
|
|
||||||
wopi-cs3:
|
|
||||||
name: wopi-cs3
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Install libvips runtime
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -qq
|
|
||||||
# NEEDRESTART_MODE=a: auto-restart services silently; without this, needrestart can fail with exit code 6
|
|
||||||
sudo NEEDRESTART_MODE=a apt-get install -y libvips42t64
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-build-artifacts
|
|
||||||
|
|
||||||
- name: Restore binary permissions
|
|
||||||
run: chmod +x ocis/bin/ocis
|
|
||||||
|
|
||||||
- name: Run WOPI validator (cs3)
|
|
||||||
run: python3 tests/acceptance/run-wopi.py --type cs3
|
|
||||||
|
|
||||||
external-ldap-tests:
|
|
||||||
name: external-ldap-smoke
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: "24"
|
|
||||||
|
|
||||||
- name: Enable pnpm
|
|
||||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
|
||||||
|
|
||||||
# web/idp assets must be embedded for `ocis server` to come up (same as run-github.py)
|
|
||||||
- name: Generate assets
|
|
||||||
run: make ci-node-generate
|
|
||||||
|
|
||||||
- name: Build oCIS
|
|
||||||
run: make -C ocis build
|
|
||||||
|
|
||||||
# Boots an external osixia LDAP + oCIS (embedded idm excluded) and runs the
|
|
||||||
# smoke scope against the graph API — exercises the external-directory
|
|
||||||
# read-after-write / retry path (OCISDEV-1030/1032/1033) that the embedded-idm
|
|
||||||
# acceptance jobs never hit.
|
|
||||||
- name: Run external-LDAP smoke
|
|
||||||
run: tests/ldap-smoke/run.sh
|
|
||||||
|
|
||||||
external-ldap-distributed-tests:
|
|
||||||
name: external-ldap-distributed-smoke
|
|
||||||
needs: [build-and-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: "24"
|
|
||||||
|
|
||||||
- name: Enable pnpm
|
|
||||||
run: corepack enable && corepack prepare pnpm@10.28.1 --activate
|
|
||||||
|
|
||||||
# web/idp assets must be embedded for `ocis server` to come up (same as run-github.py)
|
|
||||||
- name: Generate assets
|
|
||||||
run: make ci-node-generate
|
|
||||||
|
|
||||||
- name: Build oCIS
|
|
||||||
run: make -C ocis build
|
|
||||||
|
|
||||||
# Distributed LDAP topology (proxy over an async syncrepl replica + write master);
|
|
||||||
# the replication lag exercises the retry / read-after-write path (OCISDEV-1030/1032/1033).
|
|
||||||
- name: Run external-LDAP distributed smoke
|
|
||||||
run: tests/ldap-smoke-distributed/run.sh
|
|
||||||
|
|
||||||
acceptance-coverage:
|
|
||||||
name: acceptance-coverage
|
|
||||||
needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests]
|
|
||||||
if: always() && github.event_name == 'pull_request' && needs.detect-changes.outputs.docs-only != 'true'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Download raw coverage data
|
|
||||||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
pattern: api-coverage-*
|
|
||||||
path: ${{ env.GOCOVERDIR }}
|
|
||||||
merge-multiple: true
|
|
||||||
|
|
||||||
- name: Convert coverage counters to profile
|
|
||||||
run: go tool covdata textfmt -i=${{ env.GOCOVERDIR }} -o=coverage.out
|
|
||||||
|
|
||||||
- name: Publish coverage summary
|
|
||||||
run: |
|
|
||||||
{
|
|
||||||
echo "## Acceptance test coverage"
|
|
||||||
echo '```'
|
|
||||||
go tool covdata percent -i=${{ env.GOCOVERDIR }}
|
|
||||||
echo '```'
|
|
||||||
echo
|
|
||||||
echo "<details>"
|
|
||||||
echo "<summary>Per-function coverage</summary>"
|
|
||||||
echo
|
|
||||||
echo '```'
|
|
||||||
go tool cover -func=coverage.out
|
|
||||||
echo '```'
|
|
||||||
echo "</details>"
|
|
||||||
} >> "$GITHUB_STEP_SUMMARY"
|
|
||||||
|
|
||||||
all-acceptance-tests:
|
|
||||||
needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests, litmus, cs3api, wopi-builtin, wopi-cs3, e2e-tests, external-ldap-tests, external-ldap-distributed-tests]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
if: always()
|
|
||||||
steps:
|
|
||||||
- name: Check all jobs passed
|
|
||||||
run: |
|
|
||||||
# If docs-only, all test jobs are expected to be skipped — that's a pass
|
|
||||||
if [[ "${{ needs.detect-changes.outputs.docs-only }}" == "true" ]]; then
|
|
||||||
echo "Docs-only change — skipping tests is expected."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
name: Check licenses
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches: [master, stable-*]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
license-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Install REUSE tool
|
|
||||||
run: pip install reuse
|
|
||||||
|
|
||||||
- name: Run REUSE lint
|
|
||||||
run: reuse lint
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
name: Validate commit message
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches: [master, stable-*]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
validate:
|
|
||||||
uses: owncloud/reusable-workflows/.github/workflows/semantic-git-message.yml@main
|
|
||||||
@@ -1,114 +0,0 @@
|
|||||||
name: Test Deployment Examples
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 1 * * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
name: ${{ matrix.example }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- example: ocis_full
|
|
||||||
urls: "https://ocis.owncloud.test https://collabora.owncloud.test"
|
|
||||||
ocisUrls: "https://ocis.owncloud.test"
|
|
||||||
# - example: ocis_hello
|
|
||||||
# urls: "https://ocis.owncloud.test"
|
|
||||||
- example: ocis_ldap
|
|
||||||
urls: "https://ocis.owncloud.test https://ldap.owncloud.test"
|
|
||||||
ocisUrls: "https://ocis.owncloud.test"
|
|
||||||
- example: ocis_multi
|
|
||||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://keycloak.owncloud.test https://ldap.owncloud.test"
|
|
||||||
- example: ocis_ocm
|
|
||||||
urls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://ocis.ocm.next.owncloud.test https://collabora.ocm.owncloud.test https://onlyoffice.owncloud.test"
|
|
||||||
composeFiles: "-f docker-compose.yml -f ocis.yml -f ocis-ocm.yml -f ocis-ocm-next.yml -f collabora-ocm.yml -f onlyoffice.yml"
|
|
||||||
ocisUrls: "https://ocis.owncloud.test https://ocis.ocm.owncloud.test https://ocis.ocm.next.owncloud.test"
|
|
||||||
- example: ocis_keycloak
|
|
||||||
urls: "https://ocis.owncloud.test https://keycloak.owncloud.test"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout ocis repo
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
|
||||||
repository: owncloud/ocis
|
|
||||||
|
|
||||||
- name: Prepare hosts entry
|
|
||||||
run: |
|
|
||||||
echo "127.0.0.1 ocis.owncloud.test collabora.owncloud.test keycloak.owncloud.test mail.owncloud.test minio.owncloud.test onlyoffice.owncloud.test tika ldap.owncloud.test ocis.ocm.owncloud.test ocis.ocm.next.owncloud.test collabora.ocm.owncloud.test" | sudo tee -a /etc/hosts
|
|
||||||
|
|
||||||
- name: Run compose stack
|
|
||||||
working-directory: deployments/examples/${{ matrix.example }}
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
echo "=== Running ${{ matrix.example }} ==="
|
|
||||||
|
|
||||||
if [ "${{ matrix.example }}" = "ocis_ocm" ]; then
|
|
||||||
export INSECURE=true
|
|
||||||
export COLLABORA_SSL_ENABLE=false
|
|
||||||
export COLLABORA_SSL_VERIFICATION=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${{ matrix.ocisUrls }}" ]; then
|
|
||||||
export PROXY_ENABLE_BASIC_AUTH=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker compose ${{ matrix.composeFiles }} up -d --wait --wait-timeout 120
|
|
||||||
|
|
||||||
- name: Wait for services
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
|
|
||||||
URLS="${{ matrix.urls }}"
|
|
||||||
|
|
||||||
for url in $URLS; do
|
|
||||||
echo "=== Waiting for $url ==="
|
|
||||||
|
|
||||||
end=$((SECONDS+150))
|
|
||||||
ready=false
|
|
||||||
|
|
||||||
while [ $SECONDS -lt $end ]; do
|
|
||||||
echo "Trying $url"
|
|
||||||
if curl -kfsS --max-time 5 "$url" > /dev/null; then
|
|
||||||
echo "✅ $url is ready"
|
|
||||||
ready=true
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
echo "⏳ Not ready yet, retrying in 5s..."
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ "$ready" = false ]; then
|
|
||||||
echo "❌ $url never became ready"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
- name: Basic upload/download test
|
|
||||||
if: matrix.ocisUrls
|
|
||||||
run: |
|
|
||||||
set -e
|
|
||||||
|
|
||||||
for URL in ${{ matrix.ocisUrls }}; do
|
|
||||||
FILE="upload-test-$RANDOM.txt"
|
|
||||||
echo "hello from deployment-test $(date +%s)" > "$FILE"
|
|
||||||
|
|
||||||
echo "=== Uploading $FILE to $URL ==="
|
|
||||||
curl -kfsS -u admin:admin -T "$FILE" "$URL/remote.php/dav/files/admin/$FILE"
|
|
||||||
|
|
||||||
echo "=== Downloading $FILE back from $URL ==="
|
|
||||||
curl -kfsS -u admin:admin "$URL/remote.php/dav/files/admin/$FILE" -o "downloaded-$FILE"
|
|
||||||
|
|
||||||
echo "=== Verifying downloaded content matches what was uploaded ==="
|
|
||||||
diff "$FILE" "downloaded-$FILE"
|
|
||||||
echo "upload/download succeeded for $URL"
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Tear down
|
|
||||||
if: always()
|
|
||||||
working-directory: deployments/examples/${{ matrix.example }}
|
|
||||||
run: docker compose ${{ matrix.composeFiles }} down -v
|
|
||||||
@@ -1,107 +0,0 @@
|
|||||||
name: k6 Load Test
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types: [opened, synchronize, reopened]
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
ocis_ref:
|
|
||||||
description: 'oCIS commit or branch to build on the target (must exist in owncloud/ocis)'
|
|
||||||
default: master
|
|
||||||
quick:
|
|
||||||
description: 'Short smoke run instead of the full ramping suite'
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: k6-load-test-server
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
k6-load-test:
|
|
||||||
name: k6-load-test
|
|
||||||
# The runner lives on the k6 driver itself, so there is no checkout, no
|
|
||||||
# container and no ssh into the driver — only the target is remote.
|
|
||||||
runs-on: [self-hosted, loadtest]
|
|
||||||
timeout-minutes: 360
|
|
||||||
if: >-
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
(github.event_name == 'pull_request' &&
|
|
||||||
contains(github.event.pull_request.title || '', 'k6-test'))
|
|
||||||
env:
|
|
||||||
OCIS_HOST: ${{ vars.LOADTEST_OCIS_HOST || 'loadtest-ocis.svc.owncloud.host' }}
|
|
||||||
OCIS_COMMIT_ID: ${{ inputs.ocis_ref || github.event.pull_request.head.sha || github.sha }}
|
|
||||||
# inputs.* is empty on pull_request, so the workflow_dispatch default does
|
|
||||||
# not apply here — the shell below falls back to a quick run.
|
|
||||||
QUICK: ${{ inputs.quick }}
|
|
||||||
SSH_OPTS: -o BatchMode=yes -o ServerAliveInterval=60 -o ServerAliveCountMax=10
|
|
||||||
steps:
|
|
||||||
- name: Show what will run
|
|
||||||
run: |
|
|
||||||
echo "driver : $(hostname -f)"
|
|
||||||
echo "target : $OCIS_HOST"
|
|
||||||
echo "oCIS : $OCIS_COMMIT_ID"
|
|
||||||
/usr/local/bin/k6 version
|
|
||||||
|
|
||||||
- name: Build and start oCIS on the target
|
|
||||||
id: start
|
|
||||||
run: |
|
|
||||||
ssh $SSH_OPTS "loadtest@$OCIS_HOST" \
|
|
||||||
"OCIS_COMMIT_ID='$OCIS_COMMIT_ID' /usr/local/bin/ocis.sh start"
|
|
||||||
|
|
||||||
- name: Show the oCIS build log
|
|
||||||
if: failure() && steps.start.outcome == 'failure'
|
|
||||||
run: ssh $SSH_OPTS "loadtest@$OCIS_HOST" 'tail -n 200 /srv/loadtest/ocis-build.log' || true
|
|
||||||
|
|
||||||
# ocis.sh proves readiness from the target's own shell. This proves it from
|
|
||||||
# the driver, which is a different question: firewalld, and whether the
|
|
||||||
# server outlived the ssh session that started it.
|
|
||||||
- name: Check that the target answers from the driver
|
|
||||||
run: |
|
|
||||||
if curl -sk -o /dev/null --max-time 10 \
|
|
||||||
"https://$OCIS_HOST:9200/.well-known/openid-configuration"; then
|
|
||||||
echo "oCIS answers at https://$OCIS_HOST:9200"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
echo "::error::oCIS is not answering on $OCIS_HOST:9200 from the driver"
|
|
||||||
ssh $SSH_OPTS "loadtest@$OCIS_HOST" \
|
|
||||||
'pgrep -af "bin/ocis server" || echo "no oCIS process on the target"'
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
# No !cancelled() here on purpose: k6 against a target that failed to start
|
|
||||||
# just buries the real error under a TypeScript stack trace.
|
|
||||||
- name: Run the k6 tests
|
|
||||||
run: |
|
|
||||||
if [ "${QUICK:-true}" = "true" ]; then
|
|
||||||
# Seed at least one user per VU: each VU logs in as the pool user
|
|
||||||
# matching its own VU number, so seeding fewer users than the 16 VUs
|
|
||||||
# started below leaves those extra VUs with accounts that were never
|
|
||||||
# created, and every request they make fails to authenticate.
|
|
||||||
export SEED_USERS_TOTAL=20
|
|
||||||
for id in 020 040 050 070 080 090 100 110; do
|
|
||||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_VUS=2
|
|
||||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_UP_DURATION=10s
|
|
||||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_PEAK_DURATION=30s
|
|
||||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_STAGES_DOWN_DURATION=10s
|
|
||||||
export TEST_KOKO_PLATFORM_${id}_RAMPING_SLEEP_AFTER_ITERATION=1s
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
/usr/local/bin/k6-tests.sh
|
|
||||||
|
|
||||||
- name: Retrieve the oCIS log
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
run: ssh $SSH_OPTS "loadtest@$OCIS_HOST" '/usr/local/bin/ocis.sh log' || true
|
|
||||||
|
|
||||||
# always(), not the old fire-and-forget tail call: a failing k6 run used to
|
|
||||||
# leave oCIS holding port 9200, and the next run then failed to start.
|
|
||||||
- name: Stop oCIS on the target
|
|
||||||
if: always()
|
|
||||||
run: ssh $SSH_OPTS "loadtest@$OCIS_HOST" '/usr/local/bin/ocis.sh stop'
|
|
||||||
|
|
||||||
- name: Show Grafana dashboard link
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
run: |
|
|
||||||
echo "Grafana: http://$(hostname -f):3000 (office/VPN only)"
|
|
||||||
@@ -1,727 +0,0 @@
|
|||||||
name: Acceptance Tests K8S
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 1 * * *"
|
|
||||||
|
|
||||||
env:
|
|
||||||
PHP_VERSION: "8.4"
|
|
||||||
K3D_VERSION: "v5.8.3"
|
|
||||||
HELM_VERSION: "v3.18.4"
|
|
||||||
TEST_SERVER_DOMAIN: ocis-server
|
|
||||||
FED_SERVER_DOMAIN: federation-ocis-server
|
|
||||||
TEST_SERVER_URL: https://ocis-server
|
|
||||||
FED_SERVER_URL: https://federation-ocis-server
|
|
||||||
STORAGE_DRIVER: ocis
|
|
||||||
OCIS_WRAPPER_URL: http://localhost:5200
|
|
||||||
K8S: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
api-tests:
|
|
||||||
name: ${{ matrix.suite }}-k8s
|
|
||||||
runs-on: ubuntu-26.04
|
|
||||||
timeout-minutes: 120
|
|
||||||
|
|
||||||
if: >-
|
|
||||||
github.event_name == 'schedule' ||
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
(github.event_name == 'pull_request' &&
|
|
||||||
contains(github.event.pull_request.title || '', 'k8s'))
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- suite: apiContract
|
|
||||||
- suite: apiLocks
|
|
||||||
- suite: apiSettings
|
|
||||||
- suite: apiNotification
|
|
||||||
- suite: apiCors
|
|
||||||
- suite: apiGraphUser
|
|
||||||
- suite: apiGraph
|
|
||||||
- suite: apiGraphGroup
|
|
||||||
- suite: apiSpaces
|
|
||||||
- suite: apiSpacesShares
|
|
||||||
- suite: apiSpacesDavOperation
|
|
||||||
- suite: apiDownloads
|
|
||||||
- suite: apiAsyncUpload
|
|
||||||
- suite: apiDepthInfinity
|
|
||||||
- suite: apiArchiver
|
|
||||||
- suite: apiActivities
|
|
||||||
- suite: apiSearch1
|
|
||||||
- suite: apiSearch2
|
|
||||||
- suite: apiSearchContent
|
|
||||||
- suite: apiSharingNgShares
|
|
||||||
- suite: apiReshare
|
|
||||||
- suite: apiSharingNgPermissions
|
|
||||||
- suite: apiSharingNgAdditionalShareRole
|
|
||||||
- suite: apiSharingNgDriveInvitation
|
|
||||||
- suite: apiSharingNgItemInvitation
|
|
||||||
- suite: apiSharingNgDriveLinkShare
|
|
||||||
- suite: apiSharingNgItemLinkShare
|
|
||||||
- suite: apiSharingNgLinkShareManagement
|
|
||||||
- suite: apiAuthApp
|
|
||||||
- suite: apiAntivirus
|
|
||||||
- suite: apiOcm
|
|
||||||
- suite: apiCollaboration
|
|
||||||
- suite: apiVault
|
|
||||||
- suite: "coreApiAuth,coreApiCapabilities,coreApiFavorites,coreApiMain,coreApiVersions"
|
|
||||||
- suite: "coreApiShareManagementBasicToShares,coreApiShareManagementToShares"
|
|
||||||
- suite: "coreApiSharees"
|
|
||||||
- suite: "coreApiSharePublicLink2"
|
|
||||||
- suite: "coreApiShareOperationsToShares1,coreApiShareOperationsToShares2,coreApiSharePublicLink1,coreApiShareCreateSpecialToShares1,coreApiShareCreateSpecialToShares2,coreApiShareUpdateToShares"
|
|
||||||
- suite: "coreApiTrashbin,coreApiTrashbinRestore,coreApiWebdavEtagPropagation1,coreApiWebdavEtagPropagation2"
|
|
||||||
- suite: "coreApiWebdavDelete,coreApiWebdavOperations,coreApiWebdavMove2"
|
|
||||||
- suite: "coreApiWebdavProperties"
|
|
||||||
- suite: "coreApiWebdavMove1,coreApiWebdavUpload,coreApiWebdavUploadTUS,coreApiWebdavPreviews"
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Setup PHP ${{ env.PHP_VERSION }}
|
|
||||||
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # v2.40.0
|
|
||||||
with:
|
|
||||||
php-version: ${{ env.PHP_VERSION }}
|
|
||||||
extensions: curl, xml, mbstring, zip, ldap, gd
|
|
||||||
tools: composer
|
|
||||||
|
|
||||||
- name: Download k3d
|
|
||||||
run: |
|
|
||||||
curl -L \
|
|
||||||
-o k3d \
|
|
||||||
https://github.com/k3d-io/k3d/releases/download/${{ env.K3D_VERSION }}/k3d-linux-amd64
|
|
||||||
echo "dbaa79a76ace7f4ca230a1ff41dc7d8a5036a8ad0309e9c54f9bf3836dbe853e k3d" | sha256sum --check
|
|
||||||
chmod +x k3d
|
|
||||||
sudo mv k3d /usr/local/bin/
|
|
||||||
k3d version
|
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
run: |
|
|
||||||
curl -fsSL -o helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz https://get.helm.sh/helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
||||||
tar -zxvf helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
||||||
sudo mv linux-amd64/helm /usr/local/bin/helm
|
|
||||||
helm version --short
|
|
||||||
|
|
||||||
- name: Prepare hosts
|
|
||||||
run: |
|
|
||||||
echo "127.0.0.1 $TEST_SERVER_DOMAIN clamav email collabora onlyoffice fakeoffice tika $FED_SERVER_DOMAIN keycloak" \
|
|
||||||
| sudo tee -a /etc/hosts
|
|
||||||
|
|
||||||
- name: Spin up K3d Cluster
|
|
||||||
run: make -C tests/config/k8s create-cluster
|
|
||||||
|
|
||||||
- name: Prepare Helm Charts
|
|
||||||
env:
|
|
||||||
ENABLE_ANTIVIRUS: ${{ matrix.suite == 'apiAntivirus' }}
|
|
||||||
ENABLE_EMAIL: ${{ matrix.suite == 'apiNotification' || matrix.suite == 'apiSettings' || matrix.suite == 'apiOcm' }}
|
|
||||||
ENABLE_TIKA: ${{ matrix.suite == 'apiSearchContent' || matrix.suite == 'apiVault' }}
|
|
||||||
ENABLE_WOPI: ${{ matrix.suite == 'apiCollaboration' }}
|
|
||||||
ENABLE_OCM: ${{ matrix.suite == 'apiOcm' }}
|
|
||||||
ENABLE_AUTH_APP: ${{ matrix.suite == 'apiAuthApp' }}
|
|
||||||
ENABLE_VAULT: ${{ matrix.suite == 'apiVault' }}
|
|
||||||
run: |
|
|
||||||
cd tests/config/k8s
|
|
||||||
make prepare-charts
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiOcm" ]]; then
|
|
||||||
OCM=true make prepare-charts
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Keycloak/postgres (and the other suite-specific backends) must be up and
|
|
||||||
# exposed to the cluster before oCIS is deployed: the proxy validates the
|
|
||||||
# OCIS_OIDC_ISSUER well-known endpoint against Keycloak at startup in vault mode,
|
|
||||||
# so `helm install --wait` would time out waiting for the proxy pod otherwise.
|
|
||||||
- name: Deploy Suite-Specific External Backends
|
|
||||||
run: |
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiNotification" || \
|
|
||||||
"${{ matrix.suite }}" == "apiSettings" || \
|
|
||||||
"${{ matrix.suite }}" == "apiOcm" ]]; then
|
|
||||||
docker run -d \
|
|
||||||
-p 1025:1025 \
|
|
||||||
-p 8025:8025 \
|
|
||||||
--name mailpit \
|
|
||||||
axllent/mailpit:v1.22.3
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh email:1025
|
|
||||||
fi
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiAntivirus" ]]; then
|
|
||||||
docker run -d \
|
|
||||||
-p 3310:3310 \
|
|
||||||
--name clamav \
|
|
||||||
owncloudci/clamavd
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh clamav:3310
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiSearchContent" || "${{ matrix.suite }}" == "apiVault" ]]; then
|
|
||||||
docker run -d \
|
|
||||||
-p 9998:9998 \
|
|
||||||
--name tika \
|
|
||||||
apache/tika:3.2.2.0-full
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh tika:9998
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiVault" ]]; then
|
|
||||||
# GitHub runners ship PostgreSQL pre-installed on 5432, but not always
|
|
||||||
# already running - reuse it for keycloak's DB instead of running our
|
|
||||||
# own container for it, once it's up.
|
|
||||||
sudo systemctl start postgresql
|
|
||||||
for i in {1..30}; do
|
|
||||||
sudo -u postgres pg_isready && break
|
|
||||||
echo "Waiting for postgres... ($i/30)"
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
sudo -u postgres psql -c "CREATE USER keycloak WITH PASSWORD 'keycloak';"
|
|
||||||
sudo -u postgres psql -c "CREATE DATABASE keycloak OWNER keycloak;"
|
|
||||||
|
|
||||||
mkdir -p keycloak-certs
|
|
||||||
openssl req -x509 -newkey rsa:2048 \
|
|
||||||
-keyout keycloak-certs/keycloakkey.pem \
|
|
||||||
-out keycloak-certs/keycloakcrt.pem \
|
|
||||||
-nodes -days 365 -subj "/CN=keycloak"
|
|
||||||
chmod 777 keycloak-certs/*
|
|
||||||
|
|
||||||
# patch the realm so the "web" client's redirect/origin URLs match
|
|
||||||
# the k8s ingress domain instead of the non-k8s "localhost:9200" one
|
|
||||||
sed "s|https://localhost:9200|${TEST_SERVER_URL}|g" \
|
|
||||||
tests/config/ci/ocis-mfa-ci-realm.dist.json > /tmp/ocis-realm.json
|
|
||||||
|
|
||||||
docker run -d --name keycloak --network host \
|
|
||||||
-e OCIS_DOMAIN="$TEST_SERVER_URL" \
|
|
||||||
-e KC_HOSTNAME=keycloak \
|
|
||||||
-e KC_PORT=8443 \
|
|
||||||
-e KC_DB=postgres \
|
|
||||||
-e KC_DB_URL=jdbc:postgresql://localhost:5432/keycloak \
|
|
||||||
-e KC_DB_USERNAME=keycloak \
|
|
||||||
-e KC_DB_PASSWORD=keycloak \
|
|
||||||
-e KC_FEATURES=impersonation \
|
|
||||||
-e KC_BOOTSTRAP_ADMIN_USERNAME=admin \
|
|
||||||
-e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
|
|
||||||
-e KC_HTTPS_CERTIFICATE_FILE=/keycloak-certs/keycloakcrt.pem \
|
|
||||||
-e KC_HTTPS_CERTIFICATE_KEY_FILE=/keycloak-certs/keycloakkey.pem \
|
|
||||||
-v "$(pwd)/keycloak-certs:/keycloak-certs:ro" \
|
|
||||||
-v /tmp/ocis-realm.json:/opt/keycloak/data/import/ocis-mfa-ci-realm.dist.json:ro \
|
|
||||||
quay.io/keycloak/keycloak:26.5.6 \
|
|
||||||
start-dev --proxy-headers xforwarded \
|
|
||||||
--spi-connections-http-client-default-disable-trust-manager=true \
|
|
||||||
--import-realm --health-enabled=true
|
|
||||||
|
|
||||||
for i in {1..60}; do
|
|
||||||
curl -skf https://localhost:9000/health/ready && break
|
|
||||||
echo "Waiting for keycloak... ($i/60)"
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh keycloak:8443
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiCollaboration" ]]; then
|
|
||||||
# Start Collabora
|
|
||||||
docker run -d \
|
|
||||||
--name collabora \
|
|
||||||
--network host \
|
|
||||||
--entrypoint bash \
|
|
||||||
-e DONT_GEN_SSL_CERT=set \
|
|
||||||
-e "extra_params=--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://127.0.0.1:9200" \
|
|
||||||
collabora/code:25.04.7.3.1 \
|
|
||||||
-c "coolconfig generate-proof-key && bash /start-collabora-online.sh"
|
|
||||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:9980/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "collabora ready."
|
|
||||||
|
|
||||||
# Start OnlyOffice
|
|
||||||
docker run -d \
|
|
||||||
--name onlyoffice \
|
|
||||||
-p 7443:443 \
|
|
||||||
-e WOPI_ENABLED=true \
|
|
||||||
-e USE_UNAUTHORIZED_STORAGE=true \
|
|
||||||
-v "$(pwd)/tests/config/ci/only-office.json:/tmp/local.json:ro" \
|
|
||||||
--entrypoint /bin/sh \
|
|
||||||
onlyoffice/documentserver:9.2.1 \
|
|
||||||
-c "set -e
|
|
||||||
cp /tmp/local.json /etc/onlyoffice/documentserver/local.json
|
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout onlyoffice.key -out onlyoffice.crt -sha256 -days 365 -batch -nodes
|
|
||||||
mkdir -p /var/www/onlyoffice/Data/certs
|
|
||||||
cp onlyoffice.key /var/www/onlyoffice/Data/certs/
|
|
||||||
cp onlyoffice.crt /var/www/onlyoffice/Data/certs/
|
|
||||||
chmod 400 /var/www/onlyoffice/Data/certs/onlyoffice.key
|
|
||||||
/app/ds/run-document-server.sh"
|
|
||||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:7443/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "onlyoffice ready."
|
|
||||||
|
|
||||||
#Start FakeOffice
|
|
||||||
docker run -d --name fakeoffice --network host \
|
|
||||||
-v "$(pwd):/ocis:ro" \
|
|
||||||
python:3-alpine \
|
|
||||||
python3 -c "
|
|
||||||
import http.server, pathlib
|
|
||||||
body = pathlib.Path('/ocis/tests/config/ci/hosting-discovery.xml').read_bytes()
|
|
||||||
class H(http.server.BaseHTTPRequestHandler):
|
|
||||||
def do_GET(self):
|
|
||||||
self.send_response(200)
|
|
||||||
self.send_header('Content-Type', 'text/xml')
|
|
||||||
self.end_headers()
|
|
||||||
self.wfile.write(body)
|
|
||||||
def log_message(self, *a): pass
|
|
||||||
http.server.HTTPServer(('', 8080), H).serve_forever()
|
|
||||||
"
|
|
||||||
timeout 60 bash -c 'until curl -fsSL http://localhost:8080/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "fakeoffice ready."
|
|
||||||
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh collabora:9980
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh onlyoffice:7443
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh fakeoffice:8080
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Deploy oCIS
|
|
||||||
run: |
|
|
||||||
cd tests/config/k8s
|
|
||||||
kubectl get pods -n "$TEST_SERVER_DOMAIN" -Aw &
|
|
||||||
make deploy-ocis
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiOcm" ]]; then
|
|
||||||
OCM=true make deploy-ocis
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Expose node ports
|
|
||||||
if: ${{ matrix.suite == 'apiCollaboration' }}
|
|
||||||
run: |
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-collabora 9300 30300
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9300 30301
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-onlyoffice 9300 30302
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9304 30304
|
|
||||||
|
|
||||||
- name: Wait for oCIS to be ready
|
|
||||||
env:
|
|
||||||
FILE_URL: ${{ env.TEST_SERVER_URL }}/remote.php/dav/files/admin/hello1.txt
|
|
||||||
run: |
|
|
||||||
kubectl wait \
|
|
||||||
--namespace "$TEST_SERVER_DOMAIN" \
|
|
||||||
--for=condition=Available \
|
|
||||||
deployment \
|
|
||||||
--all \
|
|
||||||
--timeout=10m
|
|
||||||
|
|
||||||
kubectl wait \
|
|
||||||
--namespace "$TEST_SERVER_DOMAIN" \
|
|
||||||
--for=condition=Ready \
|
|
||||||
pod \
|
|
||||||
--all \
|
|
||||||
--timeout=10m
|
|
||||||
|
|
||||||
kubectl get pods -n "$TEST_SERVER_DOMAIN"
|
|
||||||
|
|
||||||
retry() {
|
|
||||||
local label=$1
|
|
||||||
shift
|
|
||||||
for i in {1..30}; do
|
|
||||||
if "$@"; then
|
|
||||||
echo "$label succeeded"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
echo "$label attempt $i failed, retrying in 10s..."
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
echo "$label failed after 30 attempts"
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "${{ matrix.suite }}" == "apiVault" ]]; then
|
|
||||||
# In vault mode IDM_CREATE_DEMO_USERS=false, so there is no "admin"
|
|
||||||
# LDAP user to authenticate the basic-auth check below against.
|
|
||||||
# Poll the proxy's unauthenticated debug readyz endpoint instead,
|
|
||||||
# reached via port-forward since it isn't exposed by any Service.
|
|
||||||
# local port 19205 (not 9205): 9100-9399 is already bound on the
|
|
||||||
# host by the k3d loadbalancer's NodePort range, see create-cluster.
|
|
||||||
kubectl -n "$TEST_SERVER_DOMAIN" port-forward deployment/proxy 19205:9205 &
|
|
||||||
PORT_FORWARD_PID=$!
|
|
||||||
trap 'kill $PORT_FORWARD_PID 2>/dev/null' EXIT
|
|
||||||
|
|
||||||
proxy_ready() {
|
|
||||||
curl -sf http://localhost:19205/readyz > /dev/null
|
|
||||||
}
|
|
||||||
retry "proxy readyz" proxy_ready || exit 1
|
|
||||||
else
|
|
||||||
echo "Creating test file in oCIS..."
|
|
||||||
|
|
||||||
request() {
|
|
||||||
local method=$1
|
|
||||||
shift
|
|
||||||
curl -ks -o /dev/null -w "%{http_code}" \
|
|
||||||
-X "$method" \
|
|
||||||
-u admin:admin \
|
|
||||||
"$@" \
|
|
||||||
"$FILE_URL"
|
|
||||||
}
|
|
||||||
put_file() {
|
|
||||||
request PUT \
|
|
||||||
-H "Content-Type: text/plain" \
|
|
||||||
--data "Hello from GitHub Actions!"
|
|
||||||
}
|
|
||||||
delete_file() {
|
|
||||||
request DELETE
|
|
||||||
}
|
|
||||||
check_status() {
|
|
||||||
local expected=$1
|
|
||||||
shift
|
|
||||||
status=$("$@")
|
|
||||||
[ "$status" = "$expected" ]
|
|
||||||
}
|
|
||||||
echo "Creating test file..."
|
|
||||||
retry "create file (HTTP 201)" check_status 201 put_file || exit 1
|
|
||||||
echo "Deleting test file..."
|
|
||||||
retry "delete file (HTTP 204)" check_status 204 delete_file || exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Expose debug ports
|
|
||||||
run: bash tests/config/k8s/expose-debug-svc.sh
|
|
||||||
|
|
||||||
# unauthenticated /readyz endpoint after config-triggered restarts. Port 9205 is unavailable
|
|
||||||
# on the runner (k3d reserves 9100-9399), so expose it on 19205 for the rest of the job.
|
|
||||||
# Keep the forward running since env-config scenarios may restart oCIS. The reconnect loop
|
|
||||||
# recreates it after proxy pod restarts, unlike a one-off port-forward tied to a specific pod.
|
|
||||||
- name: Expose proxy readyz
|
|
||||||
if: matrix.suite == 'apiVault'
|
|
||||||
run: |
|
|
||||||
(
|
|
||||||
while true; do
|
|
||||||
kubectl -n "$TEST_SERVER_DOMAIN" port-forward deployment/proxy 19205:9205 >> /tmp/proxy-readyz-portforward.log 2>&1
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
) &
|
|
||||||
|
|
||||||
- name: Build ociswrapper
|
|
||||||
run: make -C tests/ociswrapper/
|
|
||||||
|
|
||||||
- name: Start ociswrapper
|
|
||||||
run: |
|
|
||||||
tests/ociswrapper/bin/ociswrapper serve \
|
|
||||||
--url ${{ env.TEST_SERVER_URL }} \
|
|
||||||
--admin-username admin \
|
|
||||||
--admin-password admin \
|
|
||||||
--skip-ocis-run \
|
|
||||||
-n "$TEST_SERVER_DOMAIN" &
|
|
||||||
|
|
||||||
- name: Prepare expected failures
|
|
||||||
if: startsWith( matrix.suite, 'core' )
|
|
||||||
env:
|
|
||||||
EXPECTED_FAILURES_FILE: tests/acceptance/expected-failures-API-on-OCIS-storage.md
|
|
||||||
WITH_REMOTE_PHP: "false"
|
|
||||||
run: |
|
|
||||||
if [[ "$WITH_REMOTE_PHP" != "true" ]]; then
|
|
||||||
cat tests/acceptance/expected-failures-without-remotephp.md >> \
|
|
||||||
"$EXPECTED_FAILURES_FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run API ${{ matrix.suite }} tests
|
|
||||||
if: startsWith( matrix.suite, 'api' )
|
|
||||||
env:
|
|
||||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
|
||||||
TEST_SERVER_FED_URL: ${{ env.FED_SERVER_URL }}
|
|
||||||
STORAGE_DRIVER: ${{ env.STORAGE_DRIVER }}
|
|
||||||
BEHAT_SUITES: ${{ matrix.suite }}
|
|
||||||
BEHAT_FILTER_TAGS: "~@skip&&~@skipOnGraph&&~@skipOnOcis-OCIS-Storage"
|
|
||||||
EXPECTED_FAILURES_FILE: tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md
|
|
||||||
OCIS_WRAPPER_URL: ${{ env.OCIS_WRAPPER_URL }}
|
|
||||||
COLLABORATION_SERVICE_URL: http://ocis-server:9304
|
|
||||||
K8S: ${{ env.K8S }}
|
|
||||||
KEYCLOAK: ${{ matrix.suite == 'apiVault' }}
|
|
||||||
KC_URL: https://keycloak:8443
|
|
||||||
PROXY_READYZ_URL: ${{ matrix.suite == 'apiVault' && 'http://localhost:19205/readyz' || '' }}
|
|
||||||
run: make test-acceptance-api
|
|
||||||
|
|
||||||
- name: Run Core ${{ matrix.suite }} tests
|
|
||||||
if: startsWith( matrix.suite, 'core' )
|
|
||||||
env:
|
|
||||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
|
||||||
OCIS_REVA_DATA_ROOT: ""
|
|
||||||
STORAGE_DRIVER: ocis
|
|
||||||
BEHAT_FILTER_TAGS: "~@skip&&~@skipOnGraph&&~@skipOnOcis-OCIS-Storage"
|
|
||||||
BEHAT_SUITES: ${{ matrix.suite }}
|
|
||||||
ACCEPTANCE_TEST_TYPE: core-api
|
|
||||||
EXPECTED_FAILURES_FILE: tests/acceptance/expected-failures-API-on-OCIS-storage.md
|
|
||||||
UPLOAD_DELETE_WAIT_TIME: "0"
|
|
||||||
OCIS_WRAPPER_URL: ${{ env.OCIS_WRAPPER_URL }}
|
|
||||||
WITH_REMOTE_PHP: "false"
|
|
||||||
K8S: ${{ env.K8S }}
|
|
||||||
run: make test-acceptance-api
|
|
||||||
|
|
||||||
e2e-tests:
|
|
||||||
name: e2e-${{ matrix.suite }}-k8s
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
|
|
||||||
if: >-
|
|
||||||
github.event_name == 'schedule' ||
|
|
||||||
github.event_name == 'workflow_dispatch' ||
|
|
||||||
(github.event_name == 'pull_request' &&
|
|
||||||
contains(github.event.pull_request.title || '', 'k8s'))
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
# - suite: part-1
|
|
||||||
# args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 1"
|
|
||||||
- suite: part-2
|
|
||||||
args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 2"
|
|
||||||
# - suite: part-3
|
|
||||||
# args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 3"
|
|
||||||
# - suite: part-4
|
|
||||||
# args: "--type playwright --total-parts 4 --xsuites search,app-provider,ocm,keycloak,mfa,oidc,vault-storage --run-part 4"
|
|
||||||
# - suite: search
|
|
||||||
# args: "--type playwright --suites search"
|
|
||||||
# tika: true
|
|
||||||
# - suite: keycloak
|
|
||||||
# args: "--type playwright --suites journeys,keycloak"
|
|
||||||
# keycloak: true
|
|
||||||
# - suite: mfa
|
|
||||||
# args: "--type playwright --suites mfa"
|
|
||||||
# mfa: true
|
|
||||||
# - suite: oidc
|
|
||||||
# args: "--type playwright specs/oidc/refreshToken.spec.ts"
|
|
||||||
# oidc: true
|
|
||||||
# - suite: oidc-iframe
|
|
||||||
# args: "--type playwright specs/oidc/iframeTokenRenewal.spec.ts"
|
|
||||||
# oidc_iframe: true
|
|
||||||
- suite: app-provider
|
|
||||||
args: "--type playwright --suites app-provider"
|
|
||||||
collaboration: true
|
|
||||||
- suite: ocm
|
|
||||||
args: "--type playwright --suites ocm"
|
|
||||||
federated: true
|
|
||||||
# - suite: vault-storage
|
|
||||||
# args: "--type playwright --suites vault-storage"
|
|
||||||
# vault_storage: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
# 24.16.0 breaks playwright install (yauzl zip extraction hangs); pin to last known good.
|
|
||||||
# https://github.com/microsoft/playwright/issues/40724
|
|
||||||
node-version: "24.15.0"
|
|
||||||
|
|
||||||
- name: Enable pnpm
|
|
||||||
run: |
|
|
||||||
corepack enable && corepack prepare pnpm@10.33.3 --activate
|
|
||||||
pnpm config set store-dir ./.pnpm-store
|
|
||||||
|
|
||||||
- name: Cache Playwright Chromium
|
|
||||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
||||||
with:
|
|
||||||
path: ~/.cache/ms-playwright
|
|
||||||
key: playwright-chromium-${{ hashFiles('web/pnpm-lock.yaml') }}
|
|
||||||
|
|
||||||
- name: Download k3d
|
|
||||||
run: |
|
|
||||||
curl -L \
|
|
||||||
-o k3d \
|
|
||||||
https://github.com/k3d-io/k3d/releases/download/${{ env.K3D_VERSION }}/k3d-linux-amd64
|
|
||||||
echo "dbaa79a76ace7f4ca230a1ff41dc7d8a5036a8ad0309e9c54f9bf3836dbe853e k3d" | sha256sum --check
|
|
||||||
chmod +x k3d
|
|
||||||
sudo mv k3d /usr/local/bin/
|
|
||||||
k3d version
|
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
run: |
|
|
||||||
curl -fsSL -o helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz https://get.helm.sh/helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
||||||
tar -zxvf helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
||||||
sudo mv linux-amd64/helm /usr/local/bin/helm
|
|
||||||
helm version --short
|
|
||||||
|
|
||||||
- name: Prepare hosts
|
|
||||||
run: |
|
|
||||||
echo "127.0.0.1 $TEST_SERVER_DOMAIN clamav email collabora onlyoffice fakeoffice tika $FED_SERVER_DOMAIN keycloak" \
|
|
||||||
| sudo tee -a /etc/hosts
|
|
||||||
|
|
||||||
- name: Spin up K3d Cluster
|
|
||||||
run: make -C tests/config/k8s create-cluster
|
|
||||||
|
|
||||||
- name: Prepare Helm Charts
|
|
||||||
env:
|
|
||||||
ENABLE_WOPI: ${{ matrix.suite == 'app-provider' }}
|
|
||||||
ENABLE_OCM: ${{ matrix.suite == 'ocm' }}
|
|
||||||
run: |
|
|
||||||
cd tests/config/k8s
|
|
||||||
make prepare-charts
|
|
||||||
if [[ "${{ matrix.suite }}" == "ocm" ]]; then
|
|
||||||
OCM=true make prepare-charts
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Deploy Suite-Specific External Backends
|
|
||||||
run: |
|
|
||||||
if [[ "${{ matrix.suite }}" == "app-provider" ]]; then
|
|
||||||
# Start Collabora
|
|
||||||
docker run -d \
|
|
||||||
--name collabora \
|
|
||||||
--network host \
|
|
||||||
--entrypoint bash \
|
|
||||||
-e DONT_GEN_SSL_CERT=set \
|
|
||||||
-e "extra_params=--o:ssl.enable=true --o:ssl.termination=true --o:welcome.enable=false --o:net.frame_ancestors=https://127.0.0.1:9200" \
|
|
||||||
collabora/code:25.04.7.3.1 \
|
|
||||||
-c "coolconfig generate-proof-key && bash /start-collabora-online.sh"
|
|
||||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:9980/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "collabora ready."
|
|
||||||
|
|
||||||
# Start OnlyOffice
|
|
||||||
docker run -d \
|
|
||||||
--name onlyoffice \
|
|
||||||
-p 7443:443 \
|
|
||||||
--add-host "$TEST_SERVER_DOMAIN:host-gateway" \
|
|
||||||
-e WOPI_ENABLED=true \
|
|
||||||
-e USE_UNAUTHORIZED_STORAGE=true \
|
|
||||||
-v "$(pwd)/tests/config/ci/only-office.json:/tmp/local.json:ro" \
|
|
||||||
--entrypoint /bin/sh \
|
|
||||||
onlyoffice/documentserver:9.2.1 \
|
|
||||||
-c "set -e
|
|
||||||
cp /tmp/local.json /etc/onlyoffice/documentserver/local.json
|
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout onlyoffice.key -out onlyoffice.crt -sha256 -days 365 -batch -nodes
|
|
||||||
mkdir -p /var/www/onlyoffice/Data/certs
|
|
||||||
cp onlyoffice.key /var/www/onlyoffice/Data/certs/
|
|
||||||
cp onlyoffice.crt /var/www/onlyoffice/Data/certs/
|
|
||||||
chmod 400 /var/www/onlyoffice/Data/certs/onlyoffice.key
|
|
||||||
/app/ds/run-document-server.sh"
|
|
||||||
timeout 150 bash -c 'until curl -kfsSL https://localhost:7443/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "onlyoffice ready."
|
|
||||||
|
|
||||||
#Start FakeOffice
|
|
||||||
docker run -d --name fakeoffice --network host \
|
|
||||||
-v "$(pwd):/ocis:ro" \
|
|
||||||
python:3-alpine \
|
|
||||||
python3 -c "
|
|
||||||
import http.server, pathlib
|
|
||||||
body = pathlib.Path('/ocis/tests/config/ci/hosting-discovery.xml').read_bytes()
|
|
||||||
class H(http.server.BaseHTTPRequestHandler):
|
|
||||||
def do_GET(self):
|
|
||||||
self.send_response(200)
|
|
||||||
self.send_header('Content-Type', 'text/xml')
|
|
||||||
self.end_headers()
|
|
||||||
self.wfile.write(body)
|
|
||||||
def log_message(self, *a): pass
|
|
||||||
http.server.HTTPServer(('', 8080), H).serve_forever()
|
|
||||||
"
|
|
||||||
timeout 60 bash -c 'until curl -fsSL http://localhost:8080/hosting/discovery > /dev/null; do sleep 5; done'
|
|
||||||
echo "fakeoffice ready."
|
|
||||||
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh collabora:9980
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh onlyoffice:7443
|
|
||||||
bash tests/config/k8s/expose-external-svc.sh fakeoffice:8080
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Deploy oCIS
|
|
||||||
run: |
|
|
||||||
cd tests/config/k8s
|
|
||||||
kubectl get pods -n "$TEST_SERVER_DOMAIN" -Aw &
|
|
||||||
make deploy-ocis
|
|
||||||
if [[ "${{ matrix.suite }}" == "ocm" ]]; then
|
|
||||||
OCM=true make deploy-ocis
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Expose node ports
|
|
||||||
if: ${{ matrix.suite == 'app-provider' }}
|
|
||||||
run: |
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-collabora 9300 30300
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9300 30301
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-onlyoffice 9300 30302
|
|
||||||
bash tests/config/k8s/expose-nodeports.sh collaboration-fakeoffice 9304 30304
|
|
||||||
|
|
||||||
- name: Wait for oCIS to be ready
|
|
||||||
env:
|
|
||||||
FILE_URL: ${{ env.TEST_SERVER_URL }}/remote.php/dav/files/admin/hello1.txt
|
|
||||||
run: |
|
|
||||||
kubectl wait \
|
|
||||||
--namespace "$TEST_SERVER_DOMAIN" \
|
|
||||||
--for=condition=Available \
|
|
||||||
deployment \
|
|
||||||
--all \
|
|
||||||
--timeout=10m
|
|
||||||
|
|
||||||
kubectl wait \
|
|
||||||
--namespace "$TEST_SERVER_DOMAIN" \
|
|
||||||
--for=condition=Ready \
|
|
||||||
pod \
|
|
||||||
--all \
|
|
||||||
--timeout=10m
|
|
||||||
|
|
||||||
kubectl get pods -n "$TEST_SERVER_DOMAIN"
|
|
||||||
|
|
||||||
retry() {
|
|
||||||
local label=$1
|
|
||||||
shift
|
|
||||||
for i in {1..30}; do
|
|
||||||
if "$@"; then
|
|
||||||
echo "$label succeeded"
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
echo "$label attempt $i failed, retrying in 10s..."
|
|
||||||
sleep 10
|
|
||||||
done
|
|
||||||
echo "$label failed after 30 attempts"
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "Creating test file in oCIS..."
|
|
||||||
|
|
||||||
request() {
|
|
||||||
local method=$1
|
|
||||||
shift
|
|
||||||
curl -ks -o /dev/null -w "%{http_code}" \
|
|
||||||
-X "$method" \
|
|
||||||
-u admin:admin \
|
|
||||||
"$@" \
|
|
||||||
"$FILE_URL"
|
|
||||||
}
|
|
||||||
put_file() {
|
|
||||||
request PUT \
|
|
||||||
-H "Content-Type: text/plain" \
|
|
||||||
--data "Hello from GitHub Actions!"
|
|
||||||
}
|
|
||||||
delete_file() {
|
|
||||||
request DELETE
|
|
||||||
}
|
|
||||||
check_status() {
|
|
||||||
local expected=$1
|
|
||||||
shift
|
|
||||||
status=$("$@")
|
|
||||||
[ "$status" = "$expected" ]
|
|
||||||
}
|
|
||||||
echo "Creating test file..."
|
|
||||||
retry "create file (HTTP 201)" check_status 201 put_file || exit 1
|
|
||||||
echo "Deleting test file..."
|
|
||||||
retry "delete file (HTTP 204)" check_status 204 delete_file || exit 1
|
|
||||||
|
|
||||||
- name: Run e2e ${{ matrix.suite }} tests
|
|
||||||
env:
|
|
||||||
E2E_ARGS: "${{ matrix.args }}"
|
|
||||||
K8S: ${{ env.K8S }}
|
|
||||||
TEST_SERVER_URL: ${{ env.TEST_SERVER_URL }}
|
|
||||||
COLLABORATION_NEEDED: ${{ matrix.collaboration == true && 'true' || 'false' }}
|
|
||||||
FED_SERVER_URL: ${{ env.FED_SERVER_URL }}
|
|
||||||
FEDERATED_NEEDED: ${{ matrix.federated == true && 'true' || 'false' }}
|
|
||||||
run: python3 tests/acceptance/run-e2e.py
|
|
||||||
|
|
||||||
- name: Upload Playwright traces
|
|
||||||
if: failure()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: playwright-traces-${{ matrix.suite }}-k8s-${{ github.run_attempt }}
|
|
||||||
path: web/reports/e2e
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
- name: Upload a11y result
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: playwright-a11y-result-${{ matrix.suite }}-k8s-${{ github.run_attempt }}
|
|
||||||
path: web/reports/e2e/a11y-report.json
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
- name: Upload oCIS logs
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: ocis-logs-${{ matrix.suite }}-k8s-${{ github.run_attempt }}
|
|
||||||
path: tests/config/k8s/logs
|
|
||||||
retention-days: 7
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
name: Release NPM packages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "babel-preset-v*"
|
|
||||||
- "design-system-v*"
|
|
||||||
- "eslint-config-v*"
|
|
||||||
- "extension-sdk-v*"
|
|
||||||
- "prettier-config-v*"
|
|
||||||
- "tsconfig-v*"
|
|
||||||
- "web-client-v*"
|
|
||||||
- "web-pkg-v*"
|
|
||||||
- "web-test-helpers-v*"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release-npm:
|
|
||||||
name: Publish NPM package
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: web
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: 24.15.0
|
|
||||||
registry-url: "https://registry.npmjs.org"
|
|
||||||
package-manager-cache: false
|
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
run: corepack enable && corepack prepare pnpm@10.33.3 --activate
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: Determine package
|
|
||||||
id: package
|
|
||||||
run: |
|
|
||||||
TAG="${{ github.ref_name }}"
|
|
||||||
PACKAGES="babel-preset design-system eslint-config extension-sdk prettier-config tsconfig web-client web-pkg web-test-helpers"
|
|
||||||
for pkg in $PACKAGES; do
|
|
||||||
if [[ "$TAG" == "${pkg}-v"* ]]; then
|
|
||||||
echo "name=$pkg" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "version=${TAG#${pkg}-v}" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "tag '$TAG' does not match any known package prefix: $PACKAGES"
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
- name: Verify package version
|
|
||||||
run: |
|
|
||||||
PKG="${{ steps.package.outputs.name }}"
|
|
||||||
VERSION="${{ steps.package.outputs.version }}"
|
|
||||||
ACTUAL_VERSION=$(jq -r '.version' < "packages/${PKG}/package.json")
|
|
||||||
echo "Build ${PKG} ${VERSION} package.json: ${ACTUAL_VERSION}"
|
|
||||||
if [ "${ACTUAL_VERSION}" != "${VERSION}" ]; then
|
|
||||||
echo "git tag does not match version in web/packages/${PKG}/package.json"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build tokens
|
|
||||||
run: pnpm build:tokens
|
|
||||||
|
|
||||||
- name: Build package
|
|
||||||
run: |
|
|
||||||
PKG="${{ steps.package.outputs.name }}"
|
|
||||||
case "$PKG" in
|
|
||||||
design-system|web-client|web-pkg|web-test-helpers)
|
|
||||||
pnpm --filter "@ownclouders/${PKG}" vite build
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
- name: Publish to NPM
|
|
||||||
run: |
|
|
||||||
pnpm publish \
|
|
||||||
--no-git-checks --filter "@ownclouders/${{ steps.package.outputs.name }}" \
|
|
||||||
--access public --tag latest
|
|
||||||
@@ -1,270 +0,0 @@
|
|||||||
name: Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
branches:
|
|
||||||
- 'feat/release-pipeline**'
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
version_override:
|
|
||||||
description: 'Version override (leave empty to auto-detect from latest tag)'
|
|
||||||
type: string
|
|
||||||
default: ''
|
|
||||||
|
|
||||||
env:
|
|
||||||
NODE_VERSION: '24'
|
|
||||||
PNPM_VERSION: '10.28.1'
|
|
||||||
GOLANG_BUILD_IMAGE: 'golang:1.26.8-alpine3.23@sha256:a8fa79c5bd40d880b52bd3b6d7669ecdcfd00e85facdd427d279efb5ddd79cb1'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
determine-release-type:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 10
|
|
||||||
outputs:
|
|
||||||
version: ${{ steps.info.outputs.version }}
|
|
||||||
is_prerelease: ${{ steps.info.outputs.is_prerelease }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
if: ${{ github.ref_type == 'branch' || (github.event_name == 'workflow_dispatch' && inputs.version_override == '') }}
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
fetch-tags: true
|
|
||||||
|
|
||||||
- id: info
|
|
||||||
env:
|
|
||||||
VERSION_OVERRIDE: ${{ inputs.version_override }}
|
|
||||||
run: |
|
|
||||||
next_dev() {
|
|
||||||
# If latest tag is already a pre-release (e.g. v8.0.2-dev.1), reuse its base
|
|
||||||
# version (8.0.2-dev.1) so repeated branch runs don't bump the patch counter.
|
|
||||||
# If latest tag is a production release (e.g. v8.0.1), increment patch (8.0.2-dev.1).
|
|
||||||
local tag=$(git tag --sort=-version:refname | grep -m1 '^v' || echo "v0.0.0")
|
|
||||||
local ver="${tag#v}"
|
|
||||||
if [[ "$ver" == *"-"* ]]; then
|
|
||||||
echo "${ver%%-*}-dev.1"
|
|
||||||
else
|
|
||||||
IFS='.' read -r M m p <<< "$ver"
|
|
||||||
echo "${M}.${m}.$((p + 1))-dev.1"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
|
||||||
VERSION="$VERSION_OVERRIDE"
|
|
||||||
[[ -z "$VERSION" ]] && VERSION=$(next_dev)
|
|
||||||
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
|
|
||||||
VERSION=$(next_dev)
|
|
||||||
else
|
|
||||||
VERSION="${GITHUB_REF#refs/tags/v}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# `version` below is read back by nine `run:` blocks in this file (thirteen
|
|
||||||
# interpolations) as ${{ needs.determine-release-type.outputs.version }}, and each
|
|
||||||
# of those is substituted into the script text before bash sees it. Refusing
|
|
||||||
# anything that is not a version token here is what keeps those nine safe, instead
|
|
||||||
# of nine more env: blocks -- and a release version that is not a version token is
|
|
||||||
# a bug in its own right.
|
|
||||||
if [[ ! "$VERSION" =~ ^[0-9A-Za-z][0-9A-Za-z.+-]*$ ]]; then
|
|
||||||
echo "::error title=Invalid release version::'$VERSION' is not a version string (expected ^[0-9A-Za-z][0-9A-Za-z.+-]*$)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
[[ "$VERSION" == *"-"* ]] && IS_PRERELEASE=true || IS_PRERELEASE=false
|
|
||||||
|
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
||||||
echo "is_prerelease=$IS_PRERELEASE" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
generate-code:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 60
|
|
||||||
needs: [determine-release-type]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
|
||||||
- run: npm install --silent -g yarn npx --force
|
|
||||||
- uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v4
|
|
||||||
with:
|
|
||||||
version: ${{ env.PNPM_VERSION }}
|
|
||||||
- run: pnpm config set store-dir ./.pnpm-store && make ci-node-generate
|
|
||||||
env:
|
|
||||||
CHROMEDRIVER_SKIP_DOWNLOAD: 'true'
|
|
||||||
- run: make ci-go-generate
|
|
||||||
env:
|
|
||||||
BUF_TOKEN: ${{ secrets.BUF_API_TOKEN }}
|
|
||||||
- name: bump LatestTag
|
|
||||||
run: |
|
|
||||||
VERSION="${{ needs.determine-release-type.outputs.version }}"
|
|
||||||
sed -i "s/LatestTag = \".*\"/LatestTag = \"$VERSION\"/" ocis-pkg/version/version.go
|
|
||||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: generated-code
|
|
||||||
path: |
|
|
||||||
.
|
|
||||||
!.git
|
|
||||||
!web
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
build-binaries:
|
|
||||||
name: build-binaries (${{ matrix.os }})
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 120
|
|
||||||
needs: [determine-release-type, generate-code]
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [linux, darwin]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: generated-code
|
|
||||||
path: .
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: |
|
|
||||||
make -C ocis release-${{ matrix.os }} OUTPUT=${{ needs.determine-release-type.outputs.version }}
|
|
||||||
make -C ocis release-finish
|
|
||||||
if [[ "${{ matrix.os }}" == "linux" ]]; then
|
|
||||||
cp assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf ocis/dist/release/
|
|
||||||
fi
|
|
||||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: binaries-${{ matrix.os }}
|
|
||||||
path: ocis/dist/release/*
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
security-scan-trivy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
|
|
||||||
with:
|
|
||||||
scan-type: fs
|
|
||||||
format: table
|
|
||||||
exit-code: 1
|
|
||||||
severity: CRITICAL,HIGH
|
|
||||||
trivy-config: .trivy.yaml
|
|
||||||
|
|
||||||
license-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 60
|
|
||||||
needs: [determine-release-type, generate-code]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: generated-code
|
|
||||||
path: .
|
|
||||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: npm install --silent -g yarn npx "pnpm@$PNPM_VERSION" --force
|
|
||||||
# web is excluded from the generated-code artifact (see generate-code) to
|
|
||||||
# avoid OOM on upload, so its node_modules — which provides the
|
|
||||||
# license-checker-rseidelsohn binary — must be reinstalled here.
|
|
||||||
- run: cd web && pnpm install
|
|
||||||
- run: make ci-node-check-licenses && make ci-node-save-licenses
|
|
||||||
- run: make ci-go-check-licenses && make ci-go-save-licenses
|
|
||||||
- run: tar -czf third-party-licenses.tar.gz -C third-party-licenses .
|
|
||||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: third-party-licenses
|
|
||||||
path: third-party-licenses.tar.gz
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
generate-changelog:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
needs: [determine-release-type]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: |
|
|
||||||
make changelog CHANGELOG_VERSION=$(echo "${{ needs.determine-release-type.outputs.version }}" | cut -d'-' -f1)
|
|
||||||
# calens produces empty output when no versioned changelog directory exists (e.g. dev builds).
|
|
||||||
# Fall back to a pointer to the unreleased entries.
|
|
||||||
if [[ $(wc -l < ocis/dist/CHANGELOG.md) -lt 5 ]]; then
|
|
||||||
echo "Development release — no release notes yet. See [unreleased changes](https://github.com/owncloud/ocis/tree/master/changelog/unreleased/)." > ocis/dist/CHANGELOG.md
|
|
||||||
fi
|
|
||||||
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
||||||
with:
|
|
||||||
name: changelog
|
|
||||||
path: ocis/dist/CHANGELOG.md
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
create-github-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
needs: [determine-release-type, build-binaries, license-check, generate-changelog, security-scan-trivy]
|
|
||||||
steps:
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: binaries-linux
|
|
||||||
path: release-assets
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: binaries-darwin
|
|
||||||
path: release-assets
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: third-party-licenses
|
|
||||||
path: release-assets
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: changelog
|
|
||||||
path: .
|
|
||||||
- uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
|
|
||||||
with:
|
|
||||||
tag_name: v${{ needs.determine-release-type.outputs.version }}
|
|
||||||
name: v${{ needs.determine-release-type.outputs.version }}
|
|
||||||
body_path: CHANGELOG.md
|
|
||||||
prerelease: ${{ needs.determine-release-type.outputs.is_prerelease == 'true' }}
|
|
||||||
files: release-assets/*
|
|
||||||
|
|
||||||
audit-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
needs:
|
|
||||||
- determine-release-type
|
|
||||||
- generate-code
|
|
||||||
- build-binaries
|
|
||||||
- security-scan-trivy
|
|
||||||
- license-check
|
|
||||||
- generate-changelog
|
|
||||||
- create-github-release
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: binaries-linux
|
|
||||||
path: release-assets
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: binaries-darwin
|
|
||||||
path: release-assets
|
|
||||||
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
||||||
with:
|
|
||||||
name: third-party-licenses
|
|
||||||
path: release-assets
|
|
||||||
- run: |
|
|
||||||
python3 scripts/audit-release.py \
|
|
||||||
--version "${{ needs.determine-release-type.outputs.version }}" \
|
|
||||||
--dir release-assets/ \
|
|
||||||
--github-release
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
name: Remove stale branches
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
dry-run:
|
|
||||||
description: 'Run in dry-run mode (no actual branch deletion)'
|
|
||||||
required: true
|
|
||||||
default: 'false'
|
|
||||||
type: boolean
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * *" # Everday at midnight
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
remove-stale-branches:
|
|
||||||
name: Remove Stale Branches
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 15
|
|
||||||
steps:
|
|
||||||
- uses: fpicalausa/remove-stale-branches@9b829bc2975ade0c61e64e9613def53ec0732440 # v2.6.1
|
|
||||||
with:
|
|
||||||
ignore-unknown-authors: true
|
|
||||||
default-recipient: "kobergj"
|
|
||||||
dry-run: ${{ inputs.dry-run || 'false' }} # fallback to dry-run
|
|
||||||
exempt-branches-regex: "^(main$|master$|stable-|release-|docs$|docs-stable-)"
|
|
||||||
exempt-protected-branches: true
|
|
||||||
operations-per-run: 30
|
|
||||||
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
name: Translation Sync
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 2 * * *'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
sync:
|
|
||||||
uses: owncloud/reusable-workflows/.github/workflows/translation-sync.yml@main
|
|
||||||
with:
|
|
||||||
mode: make
|
|
||||||
reviewers: kobergj,mmattel # individual users
|
|
||||||
# team_reviewers: owncloud/ocis-team # and/or a GitHub team slug if exists
|
|
||||||
sub_path: .
|
|
||||||
secrets:
|
|
||||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
|
||||||
TRANSLATION_APP_ID: ${{ secrets.TRANSLATION_APP_ID }}
|
|
||||||
TRANSLATION_APP_PRIVATE_KEY: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
# web/ is a pnpm workspace nested inside the repo, not covered by the
|
|
||||||
# root-level L10N_MODULES/sub_path: . sync above (that job has no
|
|
||||||
# package.json at the repo root, so a pnpm install there would be a
|
|
||||||
# no-op/fail). Run it as its own invocation scoped to sub_path: web,
|
|
||||||
# sequenced after `sync` since the reusable workflow always pushes to
|
|
||||||
# the same hardcoded chore/translations-update branch.
|
|
||||||
sync-web:
|
|
||||||
needs: sync
|
|
||||||
uses: owncloud/reusable-workflows/.github/workflows/translation-sync.yml@main
|
|
||||||
with:
|
|
||||||
mode: make
|
|
||||||
package_manager: pnpm
|
|
||||||
reviewers: kobergj,mmattel
|
|
||||||
sub_path: web
|
|
||||||
secrets:
|
|
||||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
|
||||||
TRANSLATION_APP_ID: ${{ secrets.TRANSLATION_APP_ID }}
|
|
||||||
TRANSLATION_APP_PRIVATE_KEY: ${{ secrets.TRANSLATION_APP_PRIVATE_KEY }}
|
|
||||||
@@ -1,139 +0,0 @@
|
|||||||
name: Web Tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
push:
|
|
||||||
branches: [master, stable-*]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
detect-web-changes:
|
|
||||||
name: detect-web-changes
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
outputs:
|
|
||||||
web-changed: ${{ steps.check.outputs.web-changed }}
|
|
||||||
full-run: ${{ steps.check.outputs.full-run }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Check if web/ changed
|
|
||||||
id: check
|
|
||||||
env:
|
|
||||||
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
||||||
run: |
|
|
||||||
# full-run: push to master/stable-* or an explicit [full-ci] request always run
|
|
||||||
# everything, unscoped - same as before Nx. A normal PR gets the affected-scoped
|
|
||||||
# path instead (see web-build-test), since only those two cases actually need every
|
|
||||||
# project checked.
|
|
||||||
if [[ "${{ github.event_name }}" == "push" ]]; then
|
|
||||||
echo "web-changed=true" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "full-run=true" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if echo "$PR_TITLE" | grep -qi "\[full-ci\]"; then
|
|
||||||
echo "web-changed=true" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "full-run=true" >> "$GITHUB_OUTPUT"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "full-run=false" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
CHANGED_FILES=$(git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" 2>/dev/null || git diff --name-only HEAD~1)
|
|
||||||
|
|
||||||
WEB_CHANGED=false
|
|
||||||
while IFS= read -r file; do
|
|
||||||
case "$file" in
|
|
||||||
web/*) WEB_CHANGED=true; break ;;
|
|
||||||
.github/workflows/web-tests.yml) WEB_CHANGED=true; break ;;
|
|
||||||
esac
|
|
||||||
done <<< "$CHANGED_FILES"
|
|
||||||
|
|
||||||
echo "web-changed=$WEB_CHANGED" >> "$GITHUB_OUTPUT"
|
|
||||||
echo "web/ changed: $WEB_CHANGED"
|
|
||||||
|
|
||||||
web-build-test:
|
|
||||||
name: web-build-test
|
|
||||||
needs: [detect-web-changes]
|
|
||||||
if: needs.detect-web-changes.outputs.web-changed == 'true'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 60
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: web
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
||||||
with:
|
|
||||||
# nx affected --base=<pr-base-sha> (used below) needs that commit present locally
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Setup pnpm
|
|
||||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
|
||||||
with:
|
|
||||||
version: 10.33.3
|
|
||||||
|
|
||||||
- name: Setup Node.js
|
|
||||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
||||||
with:
|
|
||||||
node-version: 24.15.0
|
|
||||||
cache: pnpm
|
|
||||||
cache-dependency-path: web/pnpm-lock.yaml
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: Check licenses
|
|
||||||
run: pnpm licenses:check
|
|
||||||
|
|
||||||
- name: Save licenses
|
|
||||||
run: pnpm licenses:csv && pnpm licenses:save
|
|
||||||
|
|
||||||
- name: Check types
|
|
||||||
# Whole-repo, unconditional: only 5/27 projects have a per-project typecheck target
|
|
||||||
# (nx/vite's typecheck inference needs a project's own vite.config.ts, which most
|
|
||||||
# web-app-* packages don't have), so `nx affected -t typecheck` can't safely stand
|
|
||||||
# in for this yet.
|
|
||||||
run: pnpm check:types
|
|
||||||
|
|
||||||
- name: Check format
|
|
||||||
run: pnpm check:format
|
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
env:
|
|
||||||
FULL_RUN: ${{ needs.detect-web-changes.outputs.full-run }}
|
|
||||||
run: |
|
|
||||||
if [[ "$FULL_RUN" == "true" ]]; then
|
|
||||||
pnpm lint
|
|
||||||
else
|
|
||||||
pnpm exec nx affected -t lint --base="${{ github.event.pull_request.base.sha }}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Run unit tests
|
|
||||||
env:
|
|
||||||
FULL_RUN: ${{ needs.detect-web-changes.outputs.full-run }}
|
|
||||||
run: |
|
|
||||||
if [[ "$FULL_RUN" == "true" ]]; then
|
|
||||||
pnpm test:unit --coverage
|
|
||||||
else
|
|
||||||
pnpm exec nx affected -t test --base="${{ github.event.pull_request.base.sha }}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: pnpm build
|
|
||||||
|
|
||||||
web-tests-passed:
|
|
||||||
name: web-tests-passed
|
|
||||||
needs: [detect-web-changes, web-build-test]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
if: always()
|
|
||||||
steps:
|
|
||||||
- name: Check web-build-test passed or was skipped
|
|
||||||
run: |
|
|
||||||
if [[ "${{ needs.web-build-test.result }}" == "failure" || "${{ needs.web-build-test.result }}" == "cancelled" ]]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
name: Weekly Pipeline Report
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- feat/ci-report-tool
|
|
||||||
schedule:
|
|
||||||
- cron: "0 8 * * 1" # Every Monday at 8:00 AM UTC
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
generate-report:
|
|
||||||
name: Generate Pipeline Report
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 30
|
|
||||||
container: golang:1.25-alpine
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v6
|
|
||||||
|
|
||||||
- name: Run CI Reporter
|
|
||||||
working-directory: tools/ci-reporter
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
GOWORK=off go run ./cmd/list-flaky-tests \
|
|
||||||
--github-token "$GITHUB_TOKEN" \
|
|
||||||
--workflow acceptance-tests.yml \
|
|
||||||
--since 4w
|
|
||||||
@@ -60,9 +60,6 @@ go.work
|
|||||||
go.work.sum
|
go.work.sum
|
||||||
.env
|
.env
|
||||||
.envrc
|
.envrc
|
||||||
|
|
||||||
# generated secrets for deployment examples (e.g. Collabora WOPI proof key)
|
|
||||||
deployments/examples/*/config/collabora/
|
|
||||||
CLAUDE.md
|
CLAUDE.md
|
||||||
.claude/
|
.claude/
|
||||||
GEMINI.md
|
GEMINI.md
|
||||||
|
|||||||
@@ -4,4 +4,3 @@
|
|||||||
|
|
||||||
CVE-2026-32284 # github.com/shamaton/msgpack/v2 v2.4.0 — no fix available upstream
|
CVE-2026-32284 # github.com/shamaton/msgpack/v2 v2.4.0 — no fix available upstream
|
||||||
vendor/github.com/crewjam/saml/xmlenc/fuzz.go # test RSA key used in fuzz corpus, not a real secret
|
vendor/github.com/crewjam/saml/xmlenc/fuzz.go # test RSA key used in fuzz corpus, not a real secret
|
||||||
CVE-2026-116587 # github.com/go-jose/go-jose/v3 v3.0.5 — no v3 fix exists, only a transitive dependency of libregraph/lico, which parses JWKs only from local files and from configured OIDC authorities; go-jose/v4 is fixed
|
|
||||||
+1094
-5
File diff suppressed because it is too large.
Load diff
@@ -96,6 +96,15 @@ help:
|
|||||||
@echo
|
@echo
|
||||||
@echo -e "${RED}You also should have a look at other available Makefiles:${RESET}"
|
@echo -e "${RED}You also should have a look at other available Makefiles:${RESET}"
|
||||||
@echo
|
@echo
|
||||||
|
@echo -e "${GREEN}oCIS:${RESET}\n"
|
||||||
|
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/ocis/build-docs/${RESET}\n"
|
||||||
|
@echo -e "\tsee ./ocis/Makefile"
|
||||||
|
@echo -e "\tor run ${YELLOW}make -C ocis help${RESET}"
|
||||||
|
@echo
|
||||||
|
@echo -e "${GREEN}Documentation:${RESET}\n"
|
||||||
|
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/build-docs/${RESET}\n"
|
||||||
|
@echo -e "\trun ${YELLOW}make list | grep docs-\t\t${BLUE}note: run all docs command via this makefile${RESET}"
|
||||||
|
@echo
|
||||||
@echo -e "${GREEN}Testing with test suite in docker:${RESET}\n"
|
@echo -e "${GREEN}Testing with test suite in docker:${RESET}\n"
|
||||||
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
|
@echo -e "${PURPLE}\tdocs: https://owncloud.dev/ocis/development/testing/#testing-with-test-suite-in-docker${RESET}\n"
|
||||||
@echo -e "\tsee ./tests/acceptance/docker/Makefile"
|
@echo -e "\tsee ./tests/acceptance/docker/Makefile"
|
||||||
@@ -158,6 +167,61 @@ clean:
|
|||||||
$(MAKE) --no-print-directory -C $$mod clean || exit 1; \
|
$(MAKE) --no-print-directory -C $$mod clean || exit 1; \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# generate the docs
|
||||||
|
# intents and comments are intentional...
|
||||||
|
.PHONY: docs-generate # 1. prepare docs
|
||||||
|
docs-generate:
|
||||||
|
@echo 'Empty folders first to only have those files that are generated without remnants.'
|
||||||
|
find docs/services/_includes/ -type f \( -name "*" ! -name ".git*" \) -delete || exit 1
|
||||||
|
|
||||||
|
@echo 'Generate content from services.'
|
||||||
|
@for mod in $(OCIS_MODULES); do \
|
||||||
|
$(MAKE) --no-print-directory -C $$mod docs-generate || exit 1; \
|
||||||
|
done
|
||||||
|
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-run-helpers || exit 1
|
||||||
|
|
||||||
|
# initialize the docs build environment
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-init
|
||||||
|
|
||||||
|
# copy required resources into hugo/content
|
||||||
|
.PHONY: docs-copy # 2. copy required doc resources
|
||||||
|
docs-copy:
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-copy
|
||||||
|
|
||||||
|
# the docs-build|serve commands requires that docs-init was run first for the required data to exists
|
||||||
|
# create a docs build
|
||||||
|
.PHONY: docs-build # 3. build prepared docs
|
||||||
|
docs-build:
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-build
|
||||||
|
|
||||||
|
# serve built docs with hugo
|
||||||
|
.PHONY: docs-serve # serve the docs build
|
||||||
|
docs-serve:
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-serve
|
||||||
|
|
||||||
|
# clean up doc build artifacts
|
||||||
|
.PHONY: docs-clean # clean all docs artifacts, must be run as sudo
|
||||||
|
docs-clean:
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-clean
|
||||||
|
|
||||||
|
# docs-local imitates the 3-step docs build pipeline (generate → copy → build)
|
||||||
|
# locally without pushing. docs-hugo-drone-prep creates the ../hugo symlink required by
|
||||||
|
# the Hugo Docker image (hugomods/hugo:base-0.129.0).
|
||||||
|
# imitate a full docs build run locally without pushing to the web.
|
||||||
|
# this can help identify uncaught issues when running `make docs-serve` only.
|
||||||
|
.PHONY: docs-local # run all steps as drone would do it (1, 2, 3)
|
||||||
|
docs-local:
|
||||||
|
@$(MAKE) --no-print-directory docs-generate
|
||||||
|
@$(MAKE) --no-print-directory docs-copy
|
||||||
|
@$(MAKE) --no-print-directory docs-build
|
||||||
|
|
||||||
|
# prepare a link from the root to the hugo folder because the image requires it
|
||||||
|
# note that on local building, the referenced container of inside the hugo/makefile is used
|
||||||
|
.PHONY: docs-hugo-drone-prep # only used for drone !
|
||||||
|
docs-hugo-drone-prep:
|
||||||
|
@$(MAKE) --no-print-directory -C docs docs-hugo-drone-prep
|
||||||
|
|
||||||
.PHONY: check-env-var-annotations
|
.PHONY: check-env-var-annotations
|
||||||
check-env-var-annotations:
|
check-env-var-annotations:
|
||||||
.make/check-env-var-annotations.sh
|
.make/check-env-var-annotations.sh
|
||||||
@@ -181,17 +245,6 @@ go-mod-tidy:
|
|||||||
$(MAKE) --no-print-directory -C $$mod go-mod-tidy || exit 1; \
|
$(MAKE) --no-print-directory -C $$mod go-mod-tidy || exit 1; \
|
||||||
done
|
done
|
||||||
|
|
||||||
# Opt in to vips-tagged sources: `ENABLE_VIPS=true
|
|
||||||
# make test` compiles files behind `//go:build enable_vips` (e.g. thumbnails).
|
|
||||||
TAGS ?=
|
|
||||||
ifdef ENABLE_VIPS
|
|
||||||
ifeq ($(strip $(TAGS)),)
|
|
||||||
TAGS := enable_vips
|
|
||||||
else
|
|
||||||
TAGS := $(TAGS),enable_vips
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@go test -v -tags '$(TAGS)' -coverprofile coverage.out ./...
|
@go test -v -tags '$(TAGS)' -coverprofile coverage.out ./...
|
||||||
|
|||||||
@@ -69,15 +69,13 @@ Use as URL `localhost:9200` and the user/password printed.
|
|||||||
|
|
||||||
Infinite Scale allows the following ownCloud clients:
|
Infinite Scale allows the following ownCloud clients:
|
||||||
|
|
||||||
* Web (bundled in this repository under [`web/`](web/)),
|
* [web](https://github.com/owncloud/web),
|
||||||
* [Android](https://github.com/owncloud/android),
|
* [Android](https://github.com/owncloud/android),
|
||||||
* [iOS](https://github.com/owncloud/ios-app) and
|
* [iOS](https://github.com/owncloud/ios-app) and
|
||||||
* [Desktop](https://github.com/owncloud/client/)
|
* [Desktop](https://github.com/owncloud/client/)
|
||||||
|
|
||||||
to synchronize and share file spaces with a scalable server backend based on [reva](https://reva.link/) using open and well-defined APIs like [WebDAV](http://www.webdav.org/) and [CS3](https://github.com/cs3org/cs3apis/).
|
to synchronize and share file spaces with a scalable server backend based on [reva](https://reva.link/) using open and well-defined APIs like [WebDAV](http://www.webdav.org/) and [CS3](https://github.com/cs3org/cs3apis/).
|
||||||
|
|
||||||
The Web client used to live in the separate [owncloud/web](https://github.com/owncloud/web) repository; it is now developed in-tree here under [`web/`](web/) as part of a single-repo product (backend + web frontend). `owncloud/web` is archived and kept only as the historical record up to its final release; file web-related issues and contributions in this repository instead.
|
|
||||||
|
|
||||||
### Web Office Applications
|
### Web Office Applications
|
||||||
|
|
||||||
Infinite Scale can integrate web office applications such as:
|
Infinite Scale can integrate web office applications such as:
|
||||||
@@ -104,7 +102,7 @@ Before starting to set up an instance, we **highly** recommend reading the [Prer
|
|||||||
|
|
||||||
### Use the Official Documentation
|
### Use the Official Documentation
|
||||||
|
|
||||||
See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/admin/depl-examples/ubuntu-compose/ubuntu-compose-prod.html) for a production ready deployment starting with a Raspberry Pi, a single server or VM.
|
See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/depl-examples/ubuntu-compose/ubuntu-compose-prod.html) for a production ready deployment starting with a Raspberry Pi, a single server or VM.
|
||||||
|
|
||||||
### Use the ocis Repo as Source
|
### Use the ocis Repo as Source
|
||||||
|
|
||||||
@@ -168,5 +166,5 @@ Some builds of stable ownCloud Infinite Scale releases provided by ownCloud GmbH
|
|||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
```console
|
```console
|
||||||
Copyright (c) 2020-2026 ownCloud GmbH <https://owncloud.com>
|
Copyright (c) 2020-2023 ownCloud GmbH <https://owncloud.com>
|
||||||
```
|
```
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Education user delete no longer 404s and leaves the LDAP entry behind
|
|
||||||
|
|
||||||
`DELETE /graph/v1.0/education/users/{id}` previously returned a 404 without
|
|
||||||
removing the user. The education user delete handler used `user.GetExternalID()` for the backend
|
|
||||||
DELETE, while the regular `/users` handler and the pre-v8.0 code path used
|
|
||||||
`user.GetId()`. With the default `RequireExternalID=false`, the LDAP backend
|
|
||||||
looked up the user by name-or-UUID, so the externalID never matched, the LDAP
|
|
||||||
entry was never removed, and the response was a 404. This is now fixed.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12395
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
Bugfix: Recover from permanently-closed NATS connections in the nats-js-kv store
|
|
||||||
|
|
||||||
The `nats-js-kv` go-micro store plugin's `hasConn()` only checked whether the
|
|
||||||
connection object was non-nil, not whether it was still alive. Once the
|
|
||||||
underlying NATS client exhausted its reconnect attempts (e.g. a NATS pod
|
|
||||||
restart longer than the client's reconnect window), the connection stayed
|
|
||||||
non-nil but permanently closed. Because connection initialization is gated on
|
|
||||||
`!hasConn()`, it never re-ran, so every subsequent KV operation failed with
|
|
||||||
`nats: connection closed` until the affected pod was restarted.
|
|
||||||
|
|
||||||
This surfaced as several user-visible failures backed by the NATS KV cache,
|
|
||||||
e.g. all spaces becoming invisible (`storage-users` `ListStorageSpaces`) and
|
|
||||||
download failures from missing signing keys (`ocs`).
|
|
||||||
|
|
||||||
The store plugin now treats a closed connection as no connection, so the next
|
|
||||||
operation transparently re-initializes it.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12401
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
Security: Bump Go to 1.25.11
|
|
||||||
|
|
||||||
Fixes CVE-2026-42504, a stdlib MIME header decoding vulnerability flagged by
|
|
||||||
the release image scan.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12446
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
Security: Upgrade libvips to 8.18.3
|
|
||||||
|
|
||||||
Bumped libvips to 8.18.3 in all Docker images. The previous pin (8.18.2-r0)
|
|
||||||
was dropped from the Alpine edge/community repository, which broke the image
|
|
||||||
build.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12446
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
Enhancement: Allow disabling the last sign-in timestamp update
|
|
||||||
|
|
||||||
The graph service maintains the 'oCLastSignInTimestamp' LDAP attribute of a user
|
|
||||||
on every sign-in (when the LDAP identity backend has write access). This can
|
|
||||||
cause a significant amount of LDAP write load, especially when the proxy's OIDC
|
|
||||||
userinfo cache has a short TTL and sign-in events are emitted frequently.
|
|
||||||
|
|
||||||
A new setting 'OCIS_LDAP_UPDATE_LAST_SIGNIN_DATE' / 'GRAPH_LDAP_UPDATE_LAST_SIGNIN_DATE'
|
|
||||||
(default 'true') allows disabling the update of the last sign-in timestamp
|
|
||||||
without having to disable all LDAP writes ('OCIS_LDAP_SERVER_WRITE_ENABLED') or
|
|
||||||
the graph events consumer. When set to 'false' the graph service no longer
|
|
||||||
listens for 'UserSignedIn' events and does not write the 'oCLastSignInTimestamp'
|
|
||||||
attribute.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12522
|
|
||||||
https://github.com/owncloud/ocis/issues/9942
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
Security: Upgrade Go to 1.25.12
|
|
||||||
|
|
||||||
Bumped the Go toolchain used to build the release binaries and Docker images
|
|
||||||
from 1.25.11 to 1.25.12. Go 1.25.11 is affected by CVE-2026-39822 (os.Root
|
|
||||||
symlink following allows directory traversal), which is fixed in 1.25.12 and
|
|
||||||
was blocking the release image security scan.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12602
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
Security: Upgrade libvips to 8.18.4
|
|
||||||
|
|
||||||
Bumped libvips to 8.18.4 in all Docker images. The previous pin (8.18.3-r0)
|
|
||||||
was dropped from the Alpine edge/community repository, which broke the image
|
|
||||||
build.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12596
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
Enhancement: Add an opt-in bounded LDAP connection pool
|
|
||||||
|
|
||||||
The auth-basic, users, groups and graph services can now be switched from a
|
|
||||||
single long-lived reconnecting LDAP connection to a bounded pool of connections,
|
|
||||||
so concurrent requests no longer serialize on one socket. Connections are dialed
|
|
||||||
and bound lazily on checkout, unhealthy connections are discarded and lazily
|
|
||||||
re-dialed rather than eagerly reconnected, and checkout blocks with a configurable
|
|
||||||
timeout once the pool is exhausted.
|
|
||||||
|
|
||||||
Pooling is off by default and fully backwards compatible. Enable it per service
|
|
||||||
via 'OCIS_LDAP_POOL_ENABLED' (or the service-specific '<SERVICE>_LDAP_POOL_ENABLED'
|
|
||||||
override), and tune it with 'OCIS_LDAP_POOL_SIZE' (default 5) and
|
|
||||||
'OCIS_LDAP_POOL_CHECKOUT_TIMEOUT' (default 30s).
|
|
||||||
|
|
||||||
The graph service's identity backend now shares the same LDAP client
|
|
||||||
implementation used by the reva auth/user/group managers instead of maintaining
|
|
||||||
its own separate reconnecting client.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12660
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
Enhancement: Eliminate redundant LDAP read-after-write on create and update
|
|
||||||
|
|
||||||
The graph LDAP backend no longer re-reads an entry immediately after writing it
|
|
||||||
just to recover the entry ID for the response. When oCIS generates the ID itself
|
|
||||||
(GRAPH_LDAP_SERVER_UUID disabled), the create response is now synthesized from the
|
|
||||||
data already sent to the directory, and update responses are built by folding the
|
|
||||||
applied modifications onto the entry that was read before the write. This avoids a
|
|
||||||
round-trip that, against a replicated directory reached through a proxy, could hit
|
|
||||||
a lagging replica and fail or return stale data.
|
|
||||||
|
|
||||||
When the directory assigns the ID (GRAPH_LDAP_SERVER_UUID enabled), creates keep
|
|
||||||
the existing read-back, since the generated ID cannot otherwise be recovered.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12618
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
Enhancement: Retry LDAP operations against a lagging replica
|
|
||||||
|
|
||||||
The graph LDAP backend can now retry operations against a replicated directory
|
|
||||||
where a write to the primary is followed by a read that lands on a replica which
|
|
||||||
has not yet caught up. This covers the read-back that recovers a directory-assigned
|
|
||||||
ID after a create (GRAPH_LDAP_SERVER_UUID enabled), which is retried until the entry
|
|
||||||
becomes visible. The retry count and backoff are tunable through
|
|
||||||
`GRAPH_LDAP_RETRY_MAX_COUNT`, `GRAPH_LDAP_RETRY_BASE_DELAY` and
|
|
||||||
`GRAPH_LDAP_RETRY_MAX_DELAY`; the defaults keep the previous behaviour (a single
|
|
||||||
immediate retry with no delay), so existing deployments are unaffected.
|
|
||||||
|
|
||||||
Retries now distinguish reads from writes: a write is no longer retried on a network
|
|
||||||
error, which can surface after the request was already sent and would otherwise apply
|
|
||||||
the mutation twice.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12672
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
Bugfix: Return correct issuerAssignedId on /me
|
|
||||||
|
|
||||||
The `/graph/v1.0/me` endpoint reported the internal user UUID as
|
|
||||||
`identities[].issuerAssignedId` instead of the issuer-assigned identity (the
|
|
||||||
OIDC `sub`). The endpoint took a fast path that built the user model from the
|
|
||||||
CS3 user in the request context, which does not carry the external identity, so
|
|
||||||
it fell back to the internal UUID. `/me` now always resolves the user through
|
|
||||||
the identity backend, which reads the stored external identity and returns the
|
|
||||||
correct value. Group memberships are still only expanded when
|
|
||||||
`$expand=memberOf` is requested.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12635
|
|
||||||
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
Bugfix: Log unmapped thumbnail errors and always report a sabredav exception
|
|
||||||
|
|
||||||
The webdav service logged failures of the thumbnails service at debug level only.
|
|
||||||
Errors which are not a property of the requested file, such as the thumbnails
|
|
||||||
service being unreachable, were therefore invisible at production log levels: a
|
|
||||||
complete preview outage produced HTTP 500 responses without a single log line
|
|
||||||
explaining them. Unmapped errors are now logged at error level, while expected
|
|
||||||
per-file outcomes such as an unsupported file type or a file still being
|
|
||||||
processed stay at debug level. Two of the four thumbnail handlers also logged
|
|
||||||
without the request context, so their messages carried no request id.
|
|
||||||
|
|
||||||
In addition, `codesEnum` only mapped four status codes, so error responses for
|
|
||||||
all other codes were rendered with an empty `<s:exception></s:exception>`
|
|
||||||
element. The missing entries for 403, 425 and 429 have been added and any
|
|
||||||
remaining unmapped code now falls back to a generic exception name, so clients
|
|
||||||
always receive a usable exception.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12663
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Bugfix: Fix the empty mount ID for reva config
|
|
||||||
|
|
||||||
We fixed the empty mount ID for storage-users
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12492
|
|
||||||
@@ -15,4 +15,4 @@ fail closed. The personal space is left untouched, and the graph appRoleAssignme
|
|||||||
additionally reverts the role assignment it just persisted so the user is not left in a
|
additionally reverts the role assignment it just persisted so the user is not left in a
|
||||||
half-applied state. The role transition is retried on the next login.
|
half-applied state. The role transition is retried on the next login.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/issues/12429
|
https://github.com/owncloud/ocis/issues/12499
|
||||||
@@ -6,5 +6,6 @@ https://github.com/owncloud/ocis/pull/12051
|
|||||||
https://github.com/owncloud/ocis/pull/12087
|
https://github.com/owncloud/ocis/pull/12087
|
||||||
https://github.com/owncloud/ocis/pull/12137
|
https://github.com/owncloud/ocis/pull/12137
|
||||||
https://github.com/owncloud/ocis/pull/12302
|
https://github.com/owncloud/ocis/pull/12302
|
||||||
https://github.com/owncloud/ocis/pull/12410
|
https://github.com/owncloud/ocis/pull/12439
|
||||||
https://github.com/owncloud/ocis/pull/12492
|
https://github.com/owncloud/ocis/pull/12266
|
||||||
|
https://github.com/owncloud/ocis/pull/12730
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
Enhancement: Deprecate the owncloudsql storage driver option
|
Change: Deprecate the owncloudsql storage driver option
|
||||||
|
|
||||||
The value `owncloudsql` in the `STORAGE_USERS_DRIVER` environment variable is no
|
The value `owncloudsql` in the `STORAGE_USERS_DRIVER` environment variable is no
|
||||||
longer a valid option and has been marked for deprecation.
|
longer a valid option and has been marked for deprecation.
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
Enhancement: Bump Web to 12.4.2
|
|
||||||
|
|
||||||
- Security [owncloud/web#13844](https://github.com/owncloud/web/issues/13844): Validate postMessage origin in embed mode modals
|
|
||||||
- Bugfix [owncloud/web#13822](https://github.com/owncloud/web/issues/13822): Add explicit size to space header image
|
|
||||||
- Bugfix [owncloud/web#13826](https://github.com/owncloud/web/pull/13826): Apply vault theme after OIDC callback
|
|
||||||
- Bugfix [owncloud/web#13827](https://github.com/owncloud/web/pull/13827): Gate MFA expiry dialog on vault capability
|
|
||||||
- Bugfix [owncloud/web#13834](https://github.com/owncloud/web/pull/13834): Logo not rendering in Firefox
|
|
||||||
- Bugfix [owncloud/web#13843](https://github.com/owncloud/web/pull/13843): Fix theme switching issues
|
|
||||||
- Bugfix [owncloud/web#13867](https://github.com/owncloud/web/pull/13867): Pass vault parameter to capabilities endpoint
|
|
||||||
- Bugfix [owncloud/web#13877](https://github.com/owncloud/web/pull/13877): Filter notifications by vault mode
|
|
||||||
- Bugfix [owncloud/web#13907](https://github.com/owncloud/web/pull/13907): Use authMfaRequiredLevelname from capabilities instead of hardcoded value
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12450
|
|
||||||
https://github.com/owncloud/web/releases/tag/v12.4.2
|
|
||||||
@@ -6,4 +6,4 @@ DELETE, while the regular `/users` handler and the pre-v8.0 code path used
|
|||||||
looked up the user by name-or-UUID, so the externalID never matched, the LDAP
|
looked up the user by name-or-UUID, so the externalID never matched, the LDAP
|
||||||
entry was never removed, and the response was a 404. This is now fixed.
|
entry was never removed, and the response was a 404. This is now fixed.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12400
|
https://github.com/owncloud/ocis/pull/12405
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: Return correct issuerAssignedId on /me
|
|
||||||
|
|
||||||
The `/graph/v1.0/me` endpoint reported the internal user UUID as
|
|
||||||
`identities[].issuerAssignedId` instead of the issuer-assigned identity (the
|
|
||||||
OIDC `sub`). The endpoint took a fast path that built the user model from the
|
|
||||||
CS3 user in the request context, which does not carry the external identity, so
|
|
||||||
it fell back to the internal UUID. `/me` now always resolves the user through
|
|
||||||
the identity backend, which reads the stored external identity and returns the
|
|
||||||
correct value. Group memberships are still only expanded when
|
|
||||||
`$expand=memberOf` is requested.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12411
|
|
||||||
@@ -15,4 +15,4 @@ download failures from missing signing keys (`ocs`).
|
|||||||
The store plugin now treats a closed connection as no connection, so the next
|
The store plugin now treats a closed connection as no connection, so the next
|
||||||
operation transparently re-initializes it.
|
operation transparently re-initializes it.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12402
|
https://github.com/owncloud/ocis/pull/12404
|
||||||
+1
-1
@@ -10,4 +10,4 @@ emitted with `"body": "marshaling error: json: unsupported type: func(int64)"`
|
|||||||
instead of the payload. Without the tracing middleware the field serialized to an
|
instead of the payload. Without the tracing middleware the field serialized to an
|
||||||
empty object. In both cases the intended payload was never logged.
|
empty object. In both cases the intended payload was never logged.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12915
|
https://github.com/owncloud/ocis/pull/12916
|
||||||
+2
@@ -8,3 +8,5 @@ users, saturating the LDAP connection pool and causing request timeouts. The
|
|||||||
LDAP identity backend now caches instance mapper lookups, including negative
|
LDAP identity backend now caches instance mapper lookups, including negative
|
||||||
(not-found) results, for a configurable TTL
|
(not-found) results, for a configurable TTL
|
||||||
(`OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL`, default 60s).
|
(`OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL`, default 60s).
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/12898
|
||||||
File renamed without changes.
@@ -0,0 +1,13 @@
|
|||||||
|
Bugfix: Accept an X-Purge alias for the space-delete Purge header
|
||||||
|
|
||||||
|
axios >=1.20.0 reserves "purge" as an internal per-HTTP-method header-bucket
|
||||||
|
name and strips any outgoing request header matching it case-insensitively.
|
||||||
|
The web client's permanent space-delete request set a header literally named
|
||||||
|
Purge, so it was silently dropped, and the server treated the request as a
|
||||||
|
disable instead of a permanent delete.
|
||||||
|
|
||||||
|
The graph service now also accepts an X-Purge header, and the web client
|
||||||
|
sends that instead. The original Purge header is still accepted for other
|
||||||
|
API clients.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/13049
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -7,4 +7,4 @@ so the connection stayed plaintext with no operator toggle to change it. The
|
|||||||
stat cache now honours `OCIS_CACHE_ENABLE_TLS`, `OCIS_CACHE_TLS_INSECURE` and
|
stat cache now honours `OCIS_CACHE_ENABLE_TLS`, `OCIS_CACHE_TLS_INSECURE` and
|
||||||
`OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE` like every other cache and store.
|
`OCIS_CACHE_TLS_ROOT_CA_CERTIFICATE` like every other cache and store.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12931
|
https://github.com/owncloud/ocis/pull/12932
|
||||||
File renamed without changes.
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
Bugfix: Correct introduction version for OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL
|
Bugfix: Correct introduction version for OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL
|
||||||
|
|
||||||
We changed the documented introduction version of the
|
We changed the documented introduction version of the
|
||||||
OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL from 8.0.0 to 8.3.0.
|
OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL from 8.0.0 to 8.2.1.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12948
|
https://github.com/owncloud/ocis/pull/12951
|
||||||
File renamed without changes.
@@ -0,0 +1,5 @@
|
|||||||
|
Security: Bump Go and deps
|
||||||
|
|
||||||
|
Fix the CVE vulnerabilities flagged by the release image scan.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/12902
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
Security: Bump vulnerable dependencies
|
||||||
|
|
||||||
|
Bumped google.golang.org/grpc to v1.83.2 and several web frontend dependencies
|
||||||
|
to their patched releases via pnpm overrides: @xmldom/xmldom to 0.8.15, js-yaml
|
||||||
|
to 4.3.2, vitest to 4.1.11, postcss to 8.5.23, qs to 6.16.0, dompurify to
|
||||||
|
3.4.13, esbuild to 0.28.1, colord to 2.9.4, browserslist to 4.28.7, fast-uri to
|
||||||
|
3.1.6 and baseline-browser-mapping to 2.11.0.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/12912
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
Security: Bump grpc-go dependency
|
||||||
|
|
||||||
|
We've updated the google.golang.org/grpc dependency to fix a reported
|
||||||
|
denial-of-service vulnerability related to gRPC server handling of requests
|
||||||
|
missing authority or Host headers. As no tagged release containing the fix was
|
||||||
|
available yet, we pulled in a pre-release snapshot of grpc-go that includes it,
|
||||||
|
which also required bumping the minimum Go version to 1.26.8.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/13020
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
Security: Bump golang.org/x/image to v0.45.0
|
||||||
|
|
||||||
|
Upgraded golang.org/x/image from v0.44.0 to v0.45.0 to address
|
||||||
|
GO-2026-6222: excessive memory allocation during VP8L decoding.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/12806
|
||||||
+1
-1
@@ -4,4 +4,4 @@ We've hardened the brute force protection for password protected public links so
|
|||||||
that failed password attempts are reliably counted and the rate limit is
|
that failed password attempts are reliably counted and the rate limit is
|
||||||
consistently enforced.
|
consistently enforced.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12944
|
https://github.com/owncloud/ocis/pull/12945
|
||||||
+1
-1
@@ -10,4 +10,4 @@ assigned, and that these requests keep getting rejected on deployments with
|
|||||||
multiple instances enabled, since neither carries tenant-membership
|
multiple instances enabled, since neither carries tenant-membership
|
||||||
information.
|
information.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13107
|
https://github.com/owncloud/ocis/pull/13078
|
||||||
File renamed without changes.
+1
-1
@@ -22,4 +22,4 @@ not only master-ID users. Each of these services now rejects startup when
|
|||||||
`OCIS_MULTI_INSTANCE_MASTER_ID` is set and its own user filter is empty.
|
`OCIS_MULTI_INSTANCE_MASTER_ID` is set and its own user filter is empty.
|
||||||
Set an explicit `OCIS_LDAP_USER_FILTER` for every multi-instance deployment.
|
Set an explicit `OCIS_LDAP_USER_FILTER` for every multi-instance deployment.
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13100
|
https://github.com/owncloud/ocis/pull/13096
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Enhancement: Allow ownCloud Marketplace in ocis_multi CSP
|
||||||
|
|
||||||
|
The `ocis_multi` deployment example's default Content-Security-Policy configuration
|
||||||
|
was updated to allow connections to the new ownCloud Marketplace domain, matching
|
||||||
|
the change already applied to the other deployment examples.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/13090
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
Security: Bump vulnerable dependencies
|
||||||
|
|
||||||
|
Bumped bump vue to 3.5.43
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/13080
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
Security: Bump vulnerable web dependencies
|
||||||
|
|
||||||
|
Bumped vite to 7.3.7, markdown-it to 14.3.3 and follow-redirects to 1.16.1 to
|
||||||
|
address CVE-2026-112942, CVE-2026-111758, CVE-2026-111759, CVE-2026-111755 and
|
||||||
|
CVE-2026-111756.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/13210
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: Truncate long user names in the admin settings users list
|
|
||||||
|
|
||||||
In the admin settings users list, a long user name or display name would
|
|
||||||
overflow its table column, pushing the columns after it, including the
|
|
||||||
action buttons, out of place or off screen.
|
|
||||||
|
|
||||||
Long values in the user name and display name columns are now truncated
|
|
||||||
with an ellipsis so the table layout stays intact regardless of value
|
|
||||||
length.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12816
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
Bugfix: Stop endless redirect loop when admin settings MFA step-up fails
|
|
||||||
|
|
||||||
The admin settings route guards required MFA via `requireAcr()`, which
|
|
||||||
redirected to the IdP whenever the token's `acr` did not match. IdPs like
|
|
||||||
Keycloak answer an `acr_values` request they can't satisfy with a lower `acr`
|
|
||||||
instead of an error, so a user without a second factor at hand was trapped in a
|
|
||||||
redirect loop. `requireAcr()` now uses the same protection as the vault: the
|
|
||||||
step-up carries its target as OIDC state, and if the IdP answers it without the
|
|
||||||
required `acr`, `requireAcr()` returns false. The admin settings then redirect
|
|
||||||
to the default view and show an error message.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/issues/13069
|
|
||||||
https://github.com/owncloud/ocis/pull/13070
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: Announce status messages to screen readers
|
|
||||||
|
|
||||||
Status messages such as "copied to clipboard" or "file restored successfully"
|
|
||||||
were not reliably read out by screen readers. The underlying announcement
|
|
||||||
area was never cleared between messages, so a repeated or rapid message
|
|
||||||
could be silently dropped, especially when combined with a focus change
|
|
||||||
elsewhere on the page.
|
|
||||||
|
|
||||||
The announcement area is now cleared before each new message and refilled
|
|
||||||
after a short delay, so status messages are announced consistently.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13024
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
Bugfix: Hide app menu items from anonymous public link visitors
|
|
||||||
|
|
||||||
The app drawer in the top bar offered "Activities" and "Library" to anonymous
|
|
||||||
visitors following a public link. Both apps registered their app menu item
|
|
||||||
unconditionally at bootstrap, before any authentication context exists, and the
|
|
||||||
extension registry is shared between the authenticated and the public link
|
|
||||||
context. Because the public link file view renders the full application layout,
|
|
||||||
the top bar and its app drawer came along with it - even though the sibling top
|
|
||||||
bar elements (notification bell, sidebar toggle, home link) already gate
|
|
||||||
themselves on the authentication context.
|
|
||||||
|
|
||||||
Following the leaked entries did not expose any data: both apps route with
|
|
||||||
`authContext: 'user'`, so the visitor was redirected to the login page. What
|
|
||||||
leaked was the fact that these apps are enabled on the instance.
|
|
||||||
|
|
||||||
Both apps now contribute their menu item only when a user is signed in, matching
|
|
||||||
what the files, text editor, app store, admin settings and ScienceMesh apps
|
|
||||||
already do. With no menu items left to show, the existing top bar condition
|
|
||||||
hides the app drawer on public links by itself.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12842
|
|
||||||
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
Bugfix: Record the acting user in the audit log's User field
|
|
||||||
|
|
||||||
The audit log's `User` field is documented as the UID of the user performing
|
|
||||||
the action, but the file and folder converters filled it from the event's
|
|
||||||
`Owner`, which reva does not set, so the field was empty on every upload,
|
|
||||||
download, move, delete, restore and version restore. Where an event did carry
|
|
||||||
an owner, `User` named the owner rather than the person acting, for example a
|
|
||||||
share recipient uploading into a shared folder. Space, user and group events
|
|
||||||
hard-coded the field to an empty string although every one of those events
|
|
||||||
carries the actor.
|
|
||||||
|
|
||||||
`User` is now taken from the event's `Executant` for all of these events. The
|
|
||||||
`Owner` field of file events is unchanged. The failed public-link access event
|
|
||||||
still has no actor and keeps an empty `User`.
|
|
||||||
|
|
||||||
While adding tests for the user and group events, the group member added and
|
|
||||||
removed messages turned out to pass the user and group ids in the wrong order,
|
|
||||||
naming the group as the user and the user as the group; that is fixed too.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/issues/4789
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
Bugfix: fixed missing accessible name on button loading spinner
|
|
||||||
|
|
||||||
`OcButton`'s loading spinner is a `role="img"` element, but it had no
|
|
||||||
accessible name. This tripped an axe `role-img-alt` violation on any
|
|
||||||
page whose e2e a11y check ran while a button was in its loading state,
|
|
||||||
such as the public link password page's "Continue" button.
|
|
||||||
|
|
||||||
The spinner now gets a real accessible name ("Loading") via
|
|
||||||
`OcSpinner`'s `ariaLabel` prop, marked `aria-live="polite"` so it is
|
|
||||||
actively announced to screen reader users instead of only being
|
|
||||||
described if focus happens to already be on the button.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13018
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Support Collabora Online 26.x in the ocis_full deployment example
|
|
||||||
|
|
||||||
collabora/code 26.x ships without a shell and without the `coolconfig` helper the
|
|
||||||
ocis_full example relied on to start the container and generate its WOPI proof
|
|
||||||
key, so the example failed to start and, once running, would reject every
|
|
||||||
document open with a 500. The example now uses the image's default entrypoint
|
|
||||||
and a one-shot init container that generates and persists the WOPI proof key
|
|
||||||
before Collabora starts.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12794
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Fix closing a shared document from the office editor
|
|
||||||
|
|
||||||
Closing a document or using "Open file location" in the office editor failed
|
|
||||||
with a private link error for users who had a single file shared with them.
|
|
||||||
The editor linked to the folder containing the file, which belongs to the
|
|
||||||
sharer and is not accessible to the sharee. The folder link is now only
|
|
||||||
provided if the user can access the folder, otherwise closing the editor
|
|
||||||
leads back to oCIS.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13198
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
Bugfix: Announce autocomplete comboboxes correctly to screen readers
|
|
||||||
|
|
||||||
Autocomplete fields such as the language and design selectors on the account
|
|
||||||
page did not announce themselves as comboboxes to assistive technology. The
|
|
||||||
combobox role and its related ARIA attributes were set on a wrapper element
|
|
||||||
that could not receive keyboard focus, while the actual focusable input
|
|
||||||
exposed a generic, hardcoded label instead of the field's own label.
|
|
||||||
|
|
||||||
The combobox role, its state attributes and the accessible name are now set
|
|
||||||
directly on the focusable input, so screen readers announce the field as a
|
|
||||||
combobox with the correct label.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13041
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: Do not allow credentials for wildcard CORS origins
|
|
||||||
|
|
||||||
CORS responses no longer send `Access-Control-Allow-Credentials: true` when the
|
|
||||||
configured origins permit any origin: an empty list, `*`, or a wildcard pattern
|
|
||||||
such as `https://*`. In those cases credentials are dropped and a warning is
|
|
||||||
logged. This applies across all CORS paths (the shared HTTP middleware, the reva
|
|
||||||
interceptor used by the frontend and ocm services, ocdav, and the tus upload
|
|
||||||
handler). Explicitly configured origins are unaffected and keep credentials, so
|
|
||||||
intended cross-origin setups continue to work.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12983
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: Show a clear error for deleted public links and files in app views
|
|
||||||
|
|
||||||
Opening a file via a public link in an app such as the preview, after the link
|
|
||||||
or the file had been deleted, showed the message "Unknown error". The server
|
|
||||||
answers with an empty 404, which the WebDAV client turns into a generic message,
|
|
||||||
and app views that failed while loading the folder passed only that message on.
|
|
||||||
These views now show "The resource could not be located, it may not exist
|
|
||||||
anymore.", as the other loading paths already did.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/issues/13138
|
|
||||||
https://github.com/owncloud/ocis/pull/13156
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
Bugfix: Show image preview for files with spaces in the name on public links
|
|
||||||
|
|
||||||
The preview in the details panel was not shown for files opened via a public
|
|
||||||
link when the file name contained spaces. The preview URL was used unquoted in a
|
|
||||||
CSS `url()`, so the browser dropped it and never requested the thumbnail. The
|
|
||||||
URL is now quoted.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/issues/13137
|
|
||||||
https://github.com/owncloud/ocis/pull/13150
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: fixed low color contrast on disabled danger buttons
|
|
||||||
|
|
||||||
Disabled buttons using the "danger" styling, such as the "Empty trash bin"
|
|
||||||
button when there is nothing to delete, showed their label text with very
|
|
||||||
low contrast against the button background, making the text hard to read.
|
|
||||||
|
|
||||||
The muted background color used for these buttons in a disabled state has
|
|
||||||
been darkened, and the fading effect applied to disabled buttons no longer
|
|
||||||
washes out the danger button background, restoring readable contrast
|
|
||||||
between the label and the background.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12992
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: Keep keyboard focus on the trigger when a dropdown closes
|
|
||||||
|
|
||||||
Dropdown and context menus that close on item click (e.g. the per-file "..."
|
|
||||||
menu) removed the clicked item from the page as they closed, so keyboard
|
|
||||||
focus fell back to the page body. Screen readers then re-announced the
|
|
||||||
whole page, drowning out any status message the action had just triggered.
|
|
||||||
|
|
||||||
The dropdown now returns focus to the button that opened it when it closes,
|
|
||||||
unless the clicked action already moved focus somewhere else on its own.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13025
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: fixed low color contrast on dropdown menu item hover text
|
|
||||||
|
|
||||||
Items in dropdown menus, such as the "New" file/folder menu, changed
|
|
||||||
their text to a color meant for use as a background rather than as
|
|
||||||
text when hovered. On top of the generic hover background used
|
|
||||||
across the app, this produced poor contrast in some themes.
|
|
||||||
|
|
||||||
Hovered menu items now keep the same text color already used before
|
|
||||||
hovering, which reads correctly against the hover background in
|
|
||||||
every theme.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12994
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: fixed low color contrast on file name in editor topbar
|
|
||||||
|
|
||||||
The file name and extension shown in the topbar when a file is open,
|
|
||||||
for example in an editor, were displayed in white on top of a light
|
|
||||||
brand-colored background in some theme variants, making the text
|
|
||||||
hard to read.
|
|
||||||
|
|
||||||
The text now uses a dark color instead, restoring readable contrast
|
|
||||||
against that background.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12997
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: fixed low color contrast on disabled danger button text
|
|
||||||
|
|
||||||
Disabled filled danger buttons, such as the "Empty trash bin" button
|
|
||||||
in the deleted files view, displayed their text and icon in a color
|
|
||||||
too close to the background fill, making them hard to read.
|
|
||||||
|
|
||||||
The disabled text and icon color is now forced to white, restoring
|
|
||||||
readable contrast against the button's background. The vault light
|
|
||||||
theme's muted danger color was also darkened, since it was too light
|
|
||||||
to meet contrast requirements against white text.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12998
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: fixed copy link failing in the EPUB library book details
|
|
||||||
|
|
||||||
Clicking "Copy link" in the details of a book in the EPUB library showed
|
|
||||||
a "The link could not be copied" error whenever the book had been found
|
|
||||||
through the server-side search, because those search results carry no
|
|
||||||
link to the file.
|
|
||||||
|
|
||||||
The link is now built from the id of the file when the search result does
|
|
||||||
not provide one, so copying the link works for all books.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13239
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Disable rubber-band overscroll of the page in file apps
|
|
||||||
|
|
||||||
Scrolling to the top or bottom of the content in a file app such as
|
|
||||||
OnlyOffice, Collabora or the text editor could make the whole page bounce
|
|
||||||
along with it, including the top bar and the app frame, briefly revealing the
|
|
||||||
blank page background behind them. The vertical elastic overscroll of the page
|
|
||||||
is now disabled while a file is open in one of these apps, so the surrounding
|
|
||||||
layout stays in place.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13140
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: Files no longer stay in processing after upload or copy
|
|
||||||
|
|
||||||
After uploading or copying files, some of them sometimes stayed greyed out as
|
|
||||||
"processing" until the page was reloaded. This happened when processing
|
|
||||||
finished while the file list was still being loaded: the update from the
|
|
||||||
server was ignored and the list then showed the file as still processing.
|
|
||||||
|
|
||||||
Files whose processing has finished are now refreshed automatically when they
|
|
||||||
show up in the file list as processing.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13134
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
Bugfix: Keep bind config in sync when resetting a service user password
|
|
||||||
|
|
||||||
Resetting an IDM service user password with `ocis idm resetpassword
|
|
||||||
--user-type service` only changed the entry in the IDM directory. Services such
|
|
||||||
as auth-basic, users and groups still bound to LDAP as the `reva` service user
|
|
||||||
using the old `bind_password` from their configuration, so after a restart
|
|
||||||
those binds failed and regular admin login started returning 401 Unauthorized.
|
|
||||||
|
|
||||||
The command now rewrites the matching `bind_password` and
|
|
||||||
`service_user_passwords` keys in `ocis.yaml` when it is present, and always
|
|
||||||
prints the environment variables that must carry the new password for env-var
|
|
||||||
and distributed deployments it cannot rewrite.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13176
|
|
||||||
https://github.com/owncloud/ocis/issues/12569
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Ignore write error after successful read
|
|
||||||
|
|
||||||
In the settings service, we're caching data in the NATSjs store. When reading
|
|
||||||
service information, that information is written in the cache. Previously,
|
|
||||||
failing to write that information in the cache caused an error, despite
|
|
||||||
correct information being retrieved from the service successfully. Now, if the
|
|
||||||
information isn't written in the cache, we log the failure, but return the
|
|
||||||
read information without error.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12772
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Return the created user in the invitation response
|
|
||||||
|
|
||||||
The invitations service created the guest account but returned the original request
|
|
||||||
body unchanged, so the `invitedUser` relation defined by the Graph invitation
|
|
||||||
response was always empty. Clients had no way to learn the identity of the user that
|
|
||||||
was just created. The service now populates `invitedUser` with the created user (id,
|
|
||||||
email address and user type), where the id is the OWNCLOUD_ID that oCIS uses once the
|
|
||||||
guest is provisioned locally.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12467
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: Search for usernames if memberUid is used for group membership
|
|
||||||
|
|
||||||
Ldap group membership usually use "member" or "uniqueMember" for groups,
|
|
||||||
which contains a DN as a value. For the case of "memberUid", the value isn't
|
|
||||||
a DN but just a username / uid. As such, getting the members of a group
|
|
||||||
didn't work because we expected the values to be DNs.
|
|
||||||
|
|
||||||
Using "memberUid" as group membership attribute is now supported, and it
|
|
||||||
will show the group members as expected.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12814
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
Bugfix: Disable confirm in the link password dialog until a password is entered
|
|
||||||
|
|
||||||
The "Add password" / "Edit password" dialog for links could be confirmed with
|
|
||||||
an empty field, which removed the password from the link. The confirm button
|
|
||||||
is now disabled until a valid password is entered.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13218
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
Bugfix: Recover the login page after the current user was deleted
|
|
||||||
|
|
||||||
When a user account was deleted while its session was still stored in the
|
|
||||||
browser, opening the web interface redirected to an authentication error page
|
|
||||||
and looped there. The identity provider kept accepting the stale logon session
|
|
||||||
but could no longer resolve the deleted user, so the sign-in flow ended up
|
|
||||||
re-issuing the authorization request without its parameters and the browser was
|
|
||||||
sent back to the same error over and over. The only way out was to clear the
|
|
||||||
browser data manually before a different user could sign in.
|
|
||||||
|
|
||||||
The identity provider now detects this stuck authorization loop, expires the
|
|
||||||
stale logon session on the server side and restarts a clean login, so the sign-in
|
|
||||||
form is shown again and a different user can sign in right away.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12851
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
Bugfix: Unify when the maintenance banner clears
|
|
||||||
|
|
||||||
The Web frontend showed the maintenance banner inconsistently depending on which
|
|
||||||
HTTP client happened to make the last request: the webdav client cleared the banner
|
|
||||||
on any error that was not a maintenance response, including a plain 404 or 500,
|
|
||||||
while the other client only cleared it on a genuine successful response. Whether the
|
|
||||||
banner disappeared during real maintenance could therefore depend on which request
|
|
||||||
happened to run last.
|
|
||||||
|
|
||||||
Both clients now agree: the maintenance banner is only raised by the explicit
|
|
||||||
maintenance response, and any other real response from the server clears it, since
|
|
||||||
that is not the same as general unhealthiness. Only a transport-level failure, where
|
|
||||||
no response is received at all, leaves the banner state untouched.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12966
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: fixed low color contrast on nav and primary button hover states
|
|
||||||
|
|
||||||
Non-active sidebar navigation items, as well as buttons using the
|
|
||||||
"primary" styling, showed their text and icons in black on top of a
|
|
||||||
dark hover background in some themes, making them hard to read while
|
|
||||||
hovering.
|
|
||||||
|
|
||||||
The hover state for these elements now switches to a light color
|
|
||||||
instead of always using black, restoring readable contrast between
|
|
||||||
the text and the background while hovering.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12993
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Stop logging every service re-registration
|
|
||||||
|
|
||||||
Services that publish themselves to the service registry re-register on a timer
|
|
||||||
to keep their TTL alive. Every one of those refreshes wrote a debug line
|
|
||||||
carrying the whole service record, so an idle deployment running at debug level
|
|
||||||
produced a steady stream of log entries with no user interaction at all. The
|
|
||||||
refresh is now silent unless it fails, which is the case that was worth a log.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/12833
|
|
||||||
https://github.com/owncloud/ocis/issues/8274
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
Bugfix: fixed low color contrast on notification bell badge
|
|
||||||
|
|
||||||
The unread notification count badge on the notification bell used a
|
|
||||||
hardcoded red background with white text, which fell below the
|
|
||||||
WCAG AA contrast requirement for text that size.
|
|
||||||
|
|
||||||
The badge now uses the design system's danger color tokens instead,
|
|
||||||
which are already tuned to keep sufficient contrast with their
|
|
||||||
paired text color across all theme variants.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13000
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: notification bell now announces the unread count
|
|
||||||
|
|
||||||
The notification bell's accessible name was a static "Notifications"
|
|
||||||
string regardless of how many unread notifications there were. Since
|
|
||||||
that label overrides all other content for assistive technology, screen
|
|
||||||
reader users never heard the unread count that sighted users see on the
|
|
||||||
bell's badge.
|
|
||||||
|
|
||||||
The bell's accessible name and tooltip now include the exact unread
|
|
||||||
count, with correct singular/plural wording.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13003
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
Bugfix: fixed arrow-key navigation in the notification dropdown
|
|
||||||
|
|
||||||
Opening the notification bell's dropdown did not move keyboard focus into
|
|
||||||
it. Arrow-key navigation only started working after an extra, unrelated
|
|
||||||
Tab press, and pressing an arrow key too early scrolled the page instead,
|
|
||||||
which looked like the dropdown had closed.
|
|
||||||
|
|
||||||
The dropdown now moves focus to its first item as soon as it opens, so
|
|
||||||
arrow keys work immediately, matching the behavior of other click-triggered
|
|
||||||
dropdowns in the application.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13002
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
Bugfix: Mark all notifications as read
|
|
||||||
|
|
||||||
Clicking "Mark all read" in the notifications menu only cleared the list
|
|
||||||
visually. The request sent to the server was malformed, so the notifications
|
|
||||||
were not deleted and reappeared after a page reload. This affected the regular
|
|
||||||
view as well as the Safe.
|
|
||||||
|
|
||||||
The request is now sent correctly and the notifications are removed for good.
|
|
||||||
|
|
||||||
https://github.com/owncloud/ocis/pull/13157
|
|
||||||
Loaded 100 of 2008 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user