Commit Graph

29 Commits

Author SHA1 Message Date
Elio Bischof
579f921374 update main 2025-08-05 18:25:29 +02:00
Elio Bischof
df2ac9b189 fix acceptance tests 2025-08-05 16:36:28 +02:00
Elio Bischof
3ae58de738 chore: fix login acceptance tests 2025-08-05 11:45:15 +02:00
Elio Bischof
f5d98202c6 pull 2025-08-02 07:26:22 +02:00
Elio Bischof
b37eddb7e6 cache cypress binary 2025-08-02 06:37:25 +02:00
Elio Bischof
c066e7cd0d simplify 2025-08-02 05:35:33 +02:00
Elio Bischof
90dc64a2bb devx 2025-07-31 05:57:52 +02:00
Elio Bischof
b400b1b42c network_mode=service:mock-zitadel 2025-07-31 03:40:00 +02:00
Elio Bischof
61a2dbc66f merge main 2025-07-29 13:39:06 +02:00
Elio Bischof
b206a8ed87 chore: use github for docker build layer caches (#10346)
# Which Problems Are Solved

Building the login container in the pipeline without build layer caches
takes about 20 minutes.

# How the Problems Are Solved

We use cache-from and cache-to arguments to use the GitHub cache API.
Compare 1st and 2nd run [of this PRs
pipeline](https://github.com/zitadel/zitadel/actions/runs/16590808510/job/46927893304)

# Additional Context

- Follows up on #10343
2025-07-29 12:45:01 +02:00
Elio Bischof
1c559a316e fix login containers 2025-07-26 09:22:41 +02:00
Elio Bischof
cf1941f028 integration on localhost 2025-07-25 15:48:37 +02:00
Elio Bischof
8ca26d69a7 fix runs and contexts 2025-07-25 01:00:36 +02:00
Elio Bischof
eb8271a01d no pnpm cache 2025-07-24 22:29:17 +02:00
Elio Bischof
a581670ac9 root 2025-07-24 19:06:20 +02:00
Elio Bischof
7b8cc2934e cache target dir 2025-07-24 18:53:26 +02:00
Elio Bischof
2dab3eae49 devcontainer build ctx 2025-07-24 18:49:25 +02:00
Elio Bischof
30f22a0013 tmp store 2025-07-24 17:07:40 +02:00
Elio Bischof
b6346446ff npm store as build cache 2025-07-24 16:13:13 +02:00
Elio Bischof
33d3dac6e5 PNPM_HOME 2025-07-24 16:01:23 +02:00
Elio Bischof
b10455b51f chore: reproducible pipeline with dev containers (#10305)
# Which Problems Are Solved

- The previous monorepo in monorepo structure for the login app and its
related packages was fragmented, complicated and buggy.
- The process for building and testing the login container was
inconsistent between local development and CI.
- Lack of clear documentation as well as easy and reliable ways for
non-frontend developers to reproduce and fix failing PR checks locally.

# How the Problems Are Solved

- Consolidated the login app and its related npm packages by moving the
main package to `apps/login/apps/login` and merging
`apps/login/packages/integration` and `apps/login/packages/acceptance`
into the main `apps/login` package.
- Migrated from Docker Compose-based test setups to dev container-based
setups, adding support for multiple dev container configurations:
  - `.devcontainer/base`
  - `.devcontainer/turbo-lint-unit`
  - `.devcontainer/turbo-lint-unit-debug`
  - `.devcontainer/login-integration`
  - `.devcontainer/login-integration-debug`
- Added npm scripts to run the new dev container setups, enabling exact
reproduction of GitHub PR checks locally, and updated the pipeline to
use these containers.
- Cleaned up Dockerfiles and docker-bake.hcl files to only build the
production image for the login app.
- Cleaned up compose files to focus on dev environments in dev
containers.
- Updated `CONTRIBUTING.md` with guidance on running and debugging PR
checks locally using the new dev container approach.
- Introduced separate Dockerfiles for the login app to distinguish
between using published client packages and building clients from local
protos.
- Ensured the login container is always built in the pipeline for use in
integration and acceptance tests.
- Updated Makefile and GitHub Actions workflows to use
`--frozen-lockfile` for installing pnpm packages, ensuring reproducible
installs.
- Disabled GitHub release creation by the changeset action.
- Refactored the `/build` directory structure for clarity and
maintainability.
- Added a `clean` command to `docks/package.json`.
- Experimentally added `knip` to the `zitadel-client` package for
improved linting of dependencies and exports.

# Additional Changes

- Fixed Makefile commands for consistency and reliability.
- Improved the structure and clarity of the `/build` directory to
support seamless integration of the login build.
- Enhanced documentation and developer experience for running and
debugging CI checks locally.

# Additional Context

- See updated `CONTRIBUTING.md` for new local development and debugging
instructions.
- These changes are a prerequisite for further improvements to the CI
pipeline and local development workflow.
- Closes #10276
2025-07-24 14:22:32 +02:00
Elio Bischof
6ae1db50ad review 2025-07-24 11:20:35 +02:00
Elio Bischof
1cb277d36d fix paths 2025-07-23 19:09:52 +02:00
Elio Bischof
f2551a2c5d fix paths 2025-07-23 11:29:21 +02:00
Elio Bischof
8dc1b8f5f0 fix mock 2025-07-23 11:04:23 +02:00
Elio Bischof
912429f222 build login 2025-07-23 04:06:17 +02:00
Elio Bischof
17dca3105b fix commands 2025-07-22 17:46:26 +02:00
Elio Bischof
14ef5af29e debug and pipeline dev containers 2025-07-22 16:56:13 +02:00
Elio Bischof
41ab4c0c57 hot swappable dev services 2025-07-22 14:13:44 +02:00