Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,19 @@ jobs:
if-no-files-found: error
retention-days: 1

# Symbols of the stripped core binaries in the .deb (function names
# only, core is built without -g), for perf or heaptrack on the
# nightly and release images. The binaries match by build id. On tags
# publish-euro-office-release also attaches them to the release.
- name: Upload debug symbols as artifact
if: matrix.brand.name == 'euro-office' && (inputs.nightly || github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/'))
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dbgsym-${{ matrix.arch }}
path: build/deploy/packages/*.ddeb
if-no-files-found: warn
retention-days: ${{ startsWith(github.ref, 'refs/tags/') && 90 || 14 }}

# Lets a release/v* PR or a manual dispatch be tried out before tagging;
# on tags publish-euro-office-release attaches them to the release.
- name: Upload packages as artifact (euro-office)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ jobs:
path: dist
merge-multiple: true

- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: 'dbgsym-*'
path: dist
merge-multiple: true

- name: Write release notes
run: |
# The CHANGELOG.md section of this tag, written by Euro-Office/release.
Expand Down
3 changes: 2 additions & 1 deletion build/.docker/packages.bake.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ FROM ubuntu:24.04 AS package

RUN mkdir -p /packages && \
find /document-server-package/deb -name "*.deb" -exec cp -v {} /packages/ \; && \
find /document-server-package/deb -name "*.ddeb" -exec cp -v {} /packages/ \; && \
find /document-server-package/rpm/builddir -name "*.rpm" -exec cp -v {} /packages/ \;

#### PACKAGES OUTPUT ####
# Scratch stage so `docker build --target packages -o <dir>` extracts only
# the finished .deb and .rpm files.
# the finished .deb and .rpm files, plus the .ddeb with the core symbols.
FROM scratch AS packages
COPY --from=package /packages/ /
12 changes: 12 additions & 0 deletions develop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ The Docker image and dev Makefile handle ARM64 automatically:

A multi-arch `:latest-dev` image (amd64 + arm64) is published to GHCR nightly, built from `main` with all submodules at their latest commit, so ARM64 users can `make pull` like everyone else — `make build` is only needed for offline work or to rebuild the image itself.

#### Profiling core binaries

The core binaries in the image are stripped. Nightly, tag and manually dispatched builds upload their symbols (function names, no line numbers) as the `dbgsym-<arch>` artifact, kept for 14 days. Take it from the run that built your image, e.g. the `chore/nightly-submodule-bump` run for `:nightly`:

```sh
gh run download <run-id> -R Euro-Office/DocumentServer -n dbgsym-amd64
docker cp euro-office-documentserver-dbgsym_*.ddeb eo:/tmp/dbgsym.ddeb
docker compose exec -T eo dpkg -i /tmp/dbgsym.ddeb
```

Install perf, gdb or heaptrack in the container with `apt-get`, they then resolve x2t frames. After `make core` the symbols no longer match. The `.rpm` is not stripped and needs no extra package.

#### Error reporting (GlitchTip or Sentry)

`docker compose --profile sentry up -d glitchtip glitchtip-db` starts a local [GlitchTip](https://glitchtip.com/) at http://localhost:8083. Register, create an organization and project, then put its DSN with the host replaced by `glitchtip:8000` into `develop/.env` as `EO_SENTRY_DSN=http://<key>@glitchtip:8000/<id>` and run `docker compose up -d eo`. The server reads it as `SENTRY_DSN` (stage 2 of #392); empty means disabled. For Sentry, set the DSN of a [sentry.io](https://sentry.io) Node.js project as `EO_SENTRY_DSN` instead and skip the profile; events then leave your machine.
Expand Down
Loading