Compare commits

...
16 changed files with 22 additions and 10 deletions

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
services/settings/ @lukashirt
services/web/ @lukashirt
# TODO: [DRONE-REMOVAL] remove .drone.star CODEOWNERS entry
.drone.star @kobergj @phil-davis @individual-it
assets/End-User-License-Agreement-for-ownCloud-Infinite-Scale.pdf @kobergj @hodyroff
+1
View File
@@ -8,6 +8,7 @@
* [ ] 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
<!-- TODO: [DRONE-REMOVAL] remove .drone.star release step -->
* [ ] DEV: specify if it is a production release in [.drone.star](https://github.com/owncloud/ocis/blob/b4cf38fa1ba180c58519026dfe762b7c45695466/.drone.star#L8) (if needed)
* [ ] DEV: bump ocis version in necessary files
* [ ] DEV: `changelog/CHANGELOG.tmpl`
+1
View File
@@ -388,6 +388,7 @@ jobs:
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: ~/.cache/ms-playwright
# TODO: [DRONE-REMOVAL] replace .drone.env hash with a stable cache key
key: playwright-chromium-${{ hashFiles('.drone.env') }}
# --- Tika (search suite only) ---
+1 -1
View File
@@ -45,7 +45,7 @@ vendor-php
# QA activity reports
tests/qa-activity-report/reports/
# drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
# TODO: [DRONE-REMOVAL] drone CI is in .drone.star, do not let someone accidentally commit a local .drone.yml
.drone.yml
**/l10n/template.pot
+2 -1
View File
@@ -20,7 +20,7 @@ L10N_MODULES := \
services/userlog \
services/settings
# if you add a module here please also add it to the .drone.star file
# TODO: [DRONE-REMOVAL] if you add a module here please also add it to the .drone.star file
OCIS_MODULES = \
services/activitylog \
services/antivirus \
@@ -367,6 +367,7 @@ l10n-write:
.PHONY: ci-format
ci-format: $(BUILDIFIER)
# TODO: [DRONE-REMOVAL] remove ci-format target when .drone.star is removed
$(BUILDIFIER) --mode=fix .drone.star
.PHONY: test-php-style
@@ -13,6 +13,7 @@ oCIS uses [DRONE](https://www.drone.io/) as CI system. You can find the pipeline
## Concepts
<!-- TODO: [DRONE-REMOVAL] rewrite this section when Drone CI is removed -->
The pipeline is defined in [Starlark](https://github.com/bazelbuild/starlark) and transformed to YAML upon pipeline run. This enables us to do a highly dynamic and non repeating pipeline configuration. We enforce Starlark format guidelines with Bazel Buildifier. You can format the .drone.star file by running `make ci-format`.
Upon running the pipeline, your branch gets merged to the master branch. This ensures that we always test your changeset if as it was applied to the master of oCIS. Please note that this does not apply to the pipeline definition (`.drone.star`).
@@ -39,6 +40,7 @@ You may add flags to your commit message or PR title in order to speed up pipeli
- My pipeline fails because some CI related files or commands are missing.
<!-- TODO: [DRONE-REMOVAL] update this KB entry -->
Please make sure to rebase your branch onto the latest master of oCIS. It could be that the pipeline definition (`.drone.star`) was changed on the master branch. This is the only file, that will not be auto merged to master upon pipeline run. So things could be out of sync.
- How can I see the YAML drone pipeline definition?
@@ -108,6 +108,7 @@ https://owncloud.dev/ocis/releasing_guide/
* [ ] Create orphan branch: `git checkout --orphan docs-stable-7.2`
* [ ] Initial commit: `git commit --allow-empty -m "initial commit"`
* [ ] Push it: `git push`
<!-- TODO: [DRONE-REMOVAL] remove .drone.star steps below -->
* [ ] Adjust the `.drone.star` file to write to `docs-stable-7.2`
* [ ] Find target_branch value in the docs section and change it to `docs-stable-7.2`
* [ ] Example: https://github.com/owncloud/ocis/blame/56f7645f0b11c9112e15ce46f6effd2fea01d6be/.drone.star#L2249
@@ -36,7 +36,7 @@ Use this checklist with copy/paste in your PR - right from the beginning. It ren
- Add the service config to `ocis-pkg/config/defaultconfig.go`
- [ ] If the service is using service accounts, add it to `ocis/pkg/init/init.go`
- [ ] Check that the service properly responds to `ocis <service-name> health` and has `/healthz` and `/readyz` endpoints
- [ ] Add the service to `.drone.star` to enable CI.
- [ ] Add the service to `.drone.star` to enable CI. <!-- TODO: [DRONE-REMOVAL] update this checklist item -->
- [ ] Inform doc team in an *early stage* to review the readme AND the environment variables created.
- The description must reflect the behaviour AND usually has a positive code quality impact.
- [ ] Create proper description strings for envvars - see other services for examples, especially when it comes to multiple values. This must include:
+1 -1
View File
@@ -32,6 +32,6 @@ and take note of its release tag name.
2. Change into web package folder via `cd web`
3. Inside `web/`, update the `Makefile` so that the WEB_ASSETS_VERSION variable references the currently released version of https://github.com/owncloud/web
4. Move to the changelog (`cd ../changelog/`) and add a changelog file to the `unreleased/` folder (You can copy an old web release changelog item as a template)
5. Move to the repo root (`cd ..`)and update the WEB_COMMITID in the `/.drone.env` file to the commit id from the released version (unless the existing commit id is already newer)
5. <!-- TODO: [DRONE-REMOVAL] update this step when .drone.env is removed -->Move to the repo root (`cd ..`)and update the WEB_COMMITID in the `/.drone.env` file to the commit id from the released version (unless the existing commit id is already newer)
6. **Optional:** Test the changes locally by running `cd ocis && go run cmd/ocis/main.go server`, visiting [https://localhost:9200](https://localhost:9200) and confirming everything renders correctly
7. Commit your changes, push them and [create a PR](https://github.com/owncloud/ocis/pulls)
+1 -1
View File
@@ -17,7 +17,7 @@ services:
EMAIL_HOST: email
EMAIL_PORT: 8025
env_file:
- ../../../../.drone.env
- ../../../../.drone.env # TODO: [DRONE-REMOVAL] inline or replace this env_file source
volumes:
- ./run-tests.sh:/test/run-tests.sh
- ../../../../:/drone/src
+2 -1
View File
@@ -3,6 +3,7 @@
Run CS3 API validator tests locally and in GitHub Actions CI.
Config sourced from .drone.star cs3ApiTests() — single source of truth.
TODO: [DRONE-REMOVAL] decouple from .drone.star constants when Drone CI is removed.
Usage: python3 tests/acceptance/run-cs3api.py
"""
@@ -15,7 +16,7 @@ import time
from pathlib import Path
# ---------------------------------------------------------------------------
# Constants (mirroring .drone.star)
# Constants (mirroring .drone.star) # TODO: [DRONE-REMOVAL]
# ---------------------------------------------------------------------------
# HTTPS — matching drone: ocis init generates a self-signed cert; proxy uses TLS by default.
+1 -1
View File
@@ -74,7 +74,7 @@ def main() -> int:
# clone + install web only if not already provided (e.g. via artifact)
if not web_dir.exists():
drone_env = {}
drone_env_file = repo_root / ".drone.env"
drone_env_file = repo_root / ".drone.env" # TODO: [DRONE-REMOVAL] read WEB_COMMITID/WEB_BRANCH from a different source
if drone_env_file.exists():
for line in drone_env_file.read_text().splitlines():
if "=" in line and not line.startswith("#"):
+2 -1
View File
@@ -3,6 +3,7 @@
Run ocis acceptance tests locally and in GitHub Actions CI.
Config sourced from .drone.star localApiTests — single source of truth.
TODO: [DRONE-REMOVAL] decouple from .drone.star constants when Drone CI is removed.
Usage: BEHAT_SUITES=apiGraph python3 tests/acceptance/run-github.py
"""
@@ -17,7 +18,7 @@ import shutil
from pathlib import Path
# ---------------------------------------------------------------------------
# Config sourced from .drone.star
# Config sourced from .drone.star # TODO: [DRONE-REMOVAL]
# NOTE: EMAIL_SMTP_HOST is "email" (container name) in drone, "localhost" here
# ---------------------------------------------------------------------------
+2 -1
View File
@@ -3,6 +3,7 @@
Run litmus WebDAV compliance tests locally and in GitHub Actions CI.
Config sourced from .drone.star litmus() / setupForLitmus() — single source of truth.
TODO: [DRONE-REMOVAL] decouple from .drone.star constants when Drone CI is removed.
Usage: python3 tests/acceptance/run-litmus.py
"""
@@ -17,7 +18,7 @@ import time
from pathlib import Path
# ---------------------------------------------------------------------------
# Constants (mirroring .drone.star)
# Constants (mirroring .drone.star) # TODO: [DRONE-REMOVAL]
# ---------------------------------------------------------------------------
# HTTPS — matching drone: ocis init generates a self-signed cert; proxy uses TLS by default.
+2 -1
View File
@@ -3,6 +3,7 @@
Run WOPI validator tests locally and in GitHub Actions CI.
Config sourced from .drone.star wopiValidatorTests() — single source of truth.
TODO: [DRONE-REMOVAL] decouple from .drone.star constants when Drone CI is removed.
Usage: python3 tests/acceptance/run-wopi.py --type builtin
python3 tests/acceptance/run-wopi.py --type cs3
"""
@@ -21,7 +22,7 @@ import urllib.parse
from pathlib import Path
# ---------------------------------------------------------------------------
# Constants (mirroring .drone.star)
# Constants (mirroring .drone.star) # TODO: [DRONE-REMOVAL]
# ---------------------------------------------------------------------------
# HTTPS — matching drone; host-side curl calls use -k.
+1
View File
@@ -1,4 +1,5 @@
#!/bin/bash
# TODO: [DRONE-REMOVAL] this entire script depends on .drone.env and Drone S3 cache
source .drone.env
# if no $1 is supplied end the script