Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024-10-09 - (expected chart version 5.6.0) #4288

Closed
wants to merge 108 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
7cee02b
Merge pull request #4136 from wireapp/master
akshaymankar Jul 9, 2024
345e1e5
Add spar integration test about empty scim search results. (#4132)
fisx Jul 9, 2024
71a30ab
allow subconversations for MLS 1-1 conversation (#4133)
stefanwire Jul 12, 2024
dab374b
Concurrently fetch user profiles from the DB (#4140)
akshaymankar Jul 15, 2024
feda42b
WPB-10058 delete phone column in brig's user table (#4130)
battermann Jul 15, 2024
006785a
Federation V1 test setup (#4125)
pcapriotti Jul 15, 2024
d4811cb
Pin http2 to suprress log. (#4147)
elland Jul 15, 2024
006852e
move ciphersuite updates into the commit lock (#4151)
stefanwire Jul 15, 2024
6afbea8
[fix] API version check comes before method check (#4152)
battermann Jul 16, 2024
2744d2b
WPB-10204 Add text status field to user (profile) data (#4155)
stefanwire Jul 16, 2024
3751d55
Use user ID hashes as SFT usernames (#4156)
pcapriotti Jul 17, 2024
1506ebf
WPB-10207 Match cipher suite tag in query parameters against key pack…
stefanwire Jul 17, 2024
9a1a176
Set test certificate lifetime to 10 years (#4162)
pcapriotti Jul 18, 2024
4787839
Stop leaking ES error info. (#4153)
elland Jul 19, 2024
8151fae
Test leaving one2one subconversations (#4160)
pcapriotti Jul 22, 2024
a9e8c5f
Introduce PropertySubsystem (#4148)
akshaymankar Jul 24, 2024
c3afa44
Add a forgotten schema change for PR #4155 (#4169)
mdimjasevic Jul 24, 2024
2259719
[WPB-8892] Add block list operations to the user subsystem (#4167)
battermann Jul 24, 2024
e60ad7b
Remove FUTUREWORK about openapi3/swagger. (#4171)
fisx Jul 25, 2024
d157ffb
[chore] Weed out dead code. (#4170)
elland Jul 25, 2024
96300a7
[WPB-8707] Remove phone functionality in the development client API v…
mdimjasevic Jul 29, 2024
34bfff6
[chore] Weed out dead code (part 2) (#4173)
elland Jul 29, 2024
49c21db
[chore] Remove dead code, update weeder.toml to ignore more deps. (#4…
elland Jul 31, 2024
53ed591
Remove debug statement (#4180)
pcapriotti Aug 2, 2024
1e97149
One to one SFT feature flag config (#4164)
pcapriotti Aug 5, 2024
44823f0
Finalise version 6 (#4179)
pcapriotti Aug 6, 2024
4f828c8
[feat] bump nixpkgs - allow cabal-install 3.12 (#4183)
MangoIV Aug 7, 2024
20f888c
coturn: Allow setting of K8s annotations at the Service (#4189)
supersven Aug 7, 2024
b91f9f8
Simplify user feature logic (#4178)
pcapriotti Aug 7, 2024
c84072c
[chore] Remove more dead code, restore LegalHold internal API swagge…
elland Aug 8, 2024
3c0854c
Small clarification in SAML/SCIM docs. (#4194)
fisx Aug 8, 2024
f1342a5
Re-introduce test case tags for BSI audit (revert #4041). (#4192)
fisx Aug 8, 2024
3f95261
[chore] Deleted dangling phone references in Brig (#4197)
elland Aug 12, 2024
a594d10
tools/{hlint,ormolu}.sh: Allow having different base for PR than orig…
akshaymankar Aug 12, 2024
cdeeb0b
Feature flag refactoring (part 1) (#4181)
pcapriotti Aug 12, 2024
04f0047
add the `todo` function and the `TODO` pattern (#4198)
MangoIV Aug 12, 2024
91755c5
[fix] update treefmt s.t. it doesn't segfault anymore (#4199)
MangoIV Aug 12, 2024
035a17d
Remove helm charts k8ssandra-test-cluster and smallstep-accomp (#4202)
smatting Aug 12, 2024
47eef9c
Revert "Remove helm charts k8ssandra-test-cluster and smallstep-accom…
smatting Aug 12, 2024
0edaac0
Remove smallstep-accomp helm chart (#4204)
smatting Aug 12, 2024
54f30dc
Feature flag refactoring (part 2) (#4193)
pcapriotti Aug 13, 2024
19e5f55
charts/{brig,galley}: Allow setting a preStop hook for the deploymen…
akshaymankar Aug 13, 2024
6fab2ff
remove postgres wrapper chart from wire-server (#4208)
amitsagtani97 Aug 13, 2024
f624ffa
move JWK encoding of removal keys to API v7 (#4207)
stefanwire Aug 13, 2024
fba266f
WPB-10581: Remove coturn helm chat (#4209)
smatting Aug 14, 2024
9481a88
WPB-1334 extend list of OAuth apps with active refresh token ids (#4211)
battermann Aug 16, 2024
080160f
correct swagger for APIv6 (#4215)
stefanwire Aug 16, 2024
d8f5a9e
Feature flag refactoring (part 3) (#4196)
pcapriotti Aug 19, 2024
7822727
Add format paramter to mls public key endpoint (#4216)
pcapriotti Aug 19, 2024
103b8fb
add warning when team/user creation is enabled over internet (#4212)
amitsagtani97 Aug 19, 2024
c273665
[fix] Export FEDERATION_DOMAIN_BASE vars for teardown.
elland Aug 19, 2024
774f39a
[chore] Simplify email types (#4206)
elland Aug 22, 2024
c5c3571
WPB-1333 OAuth endpoint to revoke single refresh tokens (#4213)
battermann Aug 22, 2024
0e57e6b
Read sftToken from secrets.yaml (#4214)
amitsagtani97 Aug 23, 2024
2227605
Wpb 10335 | Ensure pods are distributed evenly on each k8s node (#4222)
amitsagtani97 Sep 2, 2024
3700a14
Added data-migration to weed route, removed more dead code. (#4223)
elland Sep 3, 2024
03725ef
hack/bin/gen-certs.sh: Also gen certs for federation-v1 (#4225)
akshaymankar Sep 3, 2024
8a28e7d
Handle `emails` field in scim user record (#4221)
fisx Sep 5, 2024
c0b8cbc
Upgrade to latest stable RabbitMQ (#4227)
supersven Sep 5, 2024
dfab9a9
Return MLS public keys as part of getting a 1:1 conversation (#4224)
stefanwire Sep 9, 2024
e84d929
docs for dpop access token signing key config (#4234)
battermann Sep 11, 2024
51169a4
[fix docs] truncated key to prevent unintentional usage (#4235)
battermann Sep 11, 2024
e537040
Add rabbitmq gc to `make full-clean`. (#4238)
fisx Sep 12, 2024
b755a6d
Update generated swagger.json for client API v6 (#4232)
akshaymankar Sep 12, 2024
f1bc7b9
[WPB-8887] wire-subsystems: implement the GetBy* account queries, inc…
MangoIV Sep 12, 2024
64f156a
WPB-10658 invitation and acceptance of individual users to teams (#4229)
battermann Sep 17, 2024
089daca
Move test documentation tags from proteus to MLS (#4240)
pcapriotti Sep 17, 2024
3b191f0
Fix clrProxy field of MLSE2EId feature flag (#4233)
pcapriotti Sep 17, 2024
95ce0d8
WPB-10660 Enable and deploy background worker in non federation envir…
battermann Sep 17, 2024
ea4bfc1
[WPB-10092] open telemetry instrumentation (#3901)
MangoIV Sep 18, 2024
f046608
[WPB-10772] Make it impossible for a user under legalhold to join an …
MangoIV Sep 18, 2024
a72c70a
Work around legacy integration test resource leak. (#4244)
fisx Sep 18, 2024
094d6be
Fix FromJSON AmqpEndpoint error message (#4248)
supersven Sep 18, 2024
708c07a
[WPB-1228] Servantify gundeck internal api (#4246)
fisx Sep 18, 2024
dee9f3f
[WPB-10783] Prevent MLS-Legalhold interactions (#4245)
MangoIV Sep 18, 2024
7bad42c
Replace pattern synomyn with ADT. (#4252)
elland Sep 18, 2024
f184788
brig: Make `GET /services/tags` work again (#4250)
akshaymankar Sep 18, 2024
c04e583
Move search operations to UserSubsystem (#4188)
akshaymankar Sep 19, 2024
e28d6fb
WPB-11000 Test password reset with wrong key/code should fail (#4249)
battermann Sep 19, 2024
12f8e16
[chore] Removed implicit failures in favour of explicit error handlin…
elland Sep 19, 2024
0237696
[WPB-10708] personal account to own team (#4251)
fisx Sep 19, 2024
674b067
Send confirmation email after upgrade to team owner (#4253)
pcapriotti Sep 19, 2024
ef612ba
[WPB-11186] Translate flaky integration test to /integration. (#4258)
fisx Sep 19, 2024
7ef9d8f
NewTeam types refactoring (#4257)
pcapriotti Sep 20, 2024
beefca5
[WPB-11122] Disallow searching user by old email (#4260)
fisx Sep 23, 2024
83ed2a7
[chore] Expose record accessors for Brig.App.Env. (#4256)
elland Sep 23, 2024
264445c
[WPB-11163] Support for a consumable notifications capability (#4259)
mdimjasevic Sep 24, 2024
713a386
WPB-11101 remove invitation tables from brig (#4263)
battermann Sep 24, 2024
6c9ccec
Block services whitelist for teams with default protocol MLS (#4266)
stefanwire Sep 24, 2024
5754118
[chore] Continue to reduce lens usage and simplify Opt/Env code. (#4267)
elland Sep 25, 2024
235eb86
[chore] Reduce lens usage and clean up Env/Opts for Cargohold and Ste…
elland Sep 25, 2024
398a497
WPB-11217 Move accept team invitation to user subsystem (#4264)
battermann Sep 26, 2024
d65ae17
[WPB-10659] Test notifications for personal user to team user migrati…
fisx Sep 26, 2024
6c1c41e
Document self and copy fields of the Permissions type (#4276)
akshaymankar Sep 30, 2024
7f3ccf3
Fix feature flag defaults (#4265)
pcapriotti Sep 30, 2024
5ff7446
Refactor user types (#4275)
pcapriotti Sep 30, 2024
433cc0d
Initial MLS configuration for new teams (#4262)
pcapriotti Oct 1, 2024
4569bd3
[WPB-11301] db script for collecting last login times of all team mem…
battermann Oct 1, 2024
8cc863f
Gundeck internal API swagger (#4247)
pcapriotti Oct 1, 2024
ef67359
[WPB-11386] Introduce length-preserving function mapRange to replace …
fisx Oct 2, 2024
ae2879d
[WPB-11101] Refactor invitation store (#4280)
mdimjasevic Oct 2, 2024
3a240c7
[chore] Extract RabbitMQ queue clean-up step in Makefile (#4281)
elland Oct 3, 2024
4de3d3a
Misc(tm) (#4282)
fisx Oct 7, 2024
1f13ef2
[Brig] Move password verification to the AuthenticationSubsystem, mov…
elland Oct 9, 2024
1abad76
Removed redundant MonadReader constraint. (#4286)
elland Oct 9, 2024
bd423b2
Revert "Work around legacy integration test resource leak. (#4244)"
fisx Oct 9, 2024
1941f53
Revert "Revert "Work around legacy integration test resource leak. (#…
fisx Oct 9, 2024
4698dff
Add changelog for Release 2024-10-09
zebot Oct 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ stack-dev.yaml
# HIE db files (e.g. generated for stan)
*.hie

# dump timings
*.dump-timings

# generated files under .local
.local

Expand Down
233 changes: 233 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,236 @@
# [2024-10-09] (Chart Release 5.6.0)

## Release notes


* To remove phone keys from brig's `user_keys` table an ad hoc data-migration can be run. See PR https://github.com/wireapp/wire-server/pull/4146 which contains the implementation. (#4130)

* Because the `phone` column is deleted from Brig's `user` table in a schema
migration, temporarily there might be 5xx errors during deployment if Wire
server 5.4.0 was not deployed previously. To avoid these errors, please deploy
the Wire server 5.4.0 release first. (#4130)

* With this release it will be possible to invite personal users to teams. In `brig`'s config, `emailSMS.team.tExistingUserInvitationUrl` is required to be set to a value that points to the correct teams/account page.
If `emailSMS.team` is not defined at all in the current environment, the value of `externalUrls.teamSettings` (or, if not present, `externalUrls.nginz`) will be used to construct the correct url, and no configuration change is necessary. (#4229)

* charts/wire-server: There is a new config value called `background-worker.config.enableFederation` which defaults to `false`. This must be kept in sync with `tags.federation`. (#4243)

* If you are mapping an email address to the `externalId` field in the
scim schema, please check the following list for items that apply to
you and recommended steps before/during/after upgrade.

- **Situation:** the `emails` field of in your scim user records is
empty.

**What you need to do:** change your schema mapping to contain the
same address in `externalId` and (as a record with one element) in
`emails`.

- **Situation:** the `emails` field of your scim user records is
non-empty.

**What you need to do:** make sure `emails` contains exactly one
entry, which is the email from `externalId`. If there is a
discrepancy, the address from `emails` will become the new
(unvalidated) address of the user, and the user will receive an
email to validate it. If the email cannot be sent or is ignored
by the recipient, the *valid* address will not be changed. (#4221)

* A schema migration drops column 'phone' from Brig's 'team_invitation' table. Previous releases were still reading this column. As there is no Team Settings UI action to enter a phone number, this reading will not miss to read actual phone numbers. Therefore, during deployment this will lead to benign 5xx errors. (#4149)


## API changes


* A new endpoint `POST /teams/invitations/accept` allows a non-team user to accept an invitation to join a team (#4229)

* Services allowlist are blocked by 409 (mls-services-not-allowed) for teams with default protocol MLS. (#4266)

* The `POST /clients` and `PUT /clients/:cid` endpoints support a new capability "consume-notifications" (#4259)

* All the phone number-based functionality is removed from the client API v6 (#4149)

* The changes to the `capabilities` field of the `Client` structure, introduced in v6, have now been postponed to v7 (#4179)

* Finalise version 6 and introduce new development version 7 (#4179, #4179)

* From API version 7 the `GET /mls/public-key` and `GET /conversations/one2one/:domain/:uid` endpoints now take a `format` query parameter which can be either `raw` (default, for raw base64-encoded keys) or `jwk` (for JWK keys) (#4216, #4224)

* `GET /conversations/one2one/:domain/:uid` now returns `public_keys` along with the conversation containing all MLS public keys for the backend which will host this conversation (since v6). (#4224)

* Remove the ability to set the TTL of a feature flag. Existing TTLs are still retrieved and returned as before. Note that this only applies to the conferenceCalling feature, as none of the others supported TTL anyway. (#4164)

* Add useSFTForOneToOneCalls as a config option for the Conference Calling feature flag and make its lock status explicit. (#4164)

* Add endpoint to upgrade a personal user to a team owner (#4251)


## Features


* DB migration for dropping `phone` column from `user` table (#4130)

* A text status field was added to user and user profile (#4155)

* Allow an existing non-team user to migrate to a team (#4229, #4229)

* Makes it impossible for a user to join an MLS conversation while already under legalhold (at least pending)

This implies two things:
1. If a user is under legalhold they cannot ever join an MLS conversation, not even an MLS self conversation.
2. A user has to reject to be put under legalhold when they want to join an MLS conversation (ignoring the request to be put under legalhold is not enough). (#4242)

* Clients can declare to be supporting a capability for consuming notifications (#4259)

* New endpoint to revoke an OAuth session (#4213)

* Adds a field which contains a list of all active sessions to each OAuth application in the response of `GET /oauth/applications` (#4211)

* SCIM's emails field is now handled and the external ID is not restricted to being an email anymore (#4221)

* allow subconversations for MLS 1-1 conversations (#4133)

* Deny requests for a legalhold device for users who are part of any MLS conversations (#4245)

* Allow setting of Kubernetes annotations for the `coturn` Service. (#4189)

* Add `initialConfig` setting for the `mls` feature flag (#4262)

* added open telemetry instrumentation for brig, galley, gundeck and cannon (#3901)

* Send confirmation email after adding a personal user to a new team (#4253)

* The SFT and turn usernames returned by `/calls/config/v2` are now deterministically computed from the user ID (#4156)

* Use latest stable RabbitMQ version (`3.13.7`) and Helm chart (`14.6.9`). Please
note that this minor RabbitMQ version upgrade (`3.11.x` to `3.13.x`) may need
special treatment regarding existing RabbitMQ instances. See
https://www.rabbitmq.com/docs/upgrade#rabbitmq-version-upgradability . The major
Helm chart version upgrade may (depending on your setup/values) need attention
as well: https://github.com/bitnami/charts/tree/main/bitnami/rabbitmq#upgrading (#4227)


## Bug fixes and other updates


* Fixed API version check. It has now precedence over other checks like e.g. method check. (#4152)

* Fix handling of defaults of `mlsE2EID` feature config (#4233)

* Match cipher suite tag in query parameters against key packages on replacing key packages (#4158)

* Users with SAML-SSO are allowed to delete their email address on the rest api. If they do that, the search indices are not updated correctly, and finding the user by the removed email address is still possible. (#4260)

* Exclude exception message from error response (#4153)

* Return HTTP 400 instead of 500 when property key is not printable ASCII (#4148)

* move cipher suite updates into the commit lock (#4151)

* Fix feature flag default calculation for `mlsMigration` and `enforceFileDownloadLocation` (#4265)

* Allow setting existing properties even if we have max properties (#4148)

* removed spam from nginx (nginz) by using the new style http/2 directive (#3901)

* brig: Make `GET /services/tags` work again (#4250)


## Documentation


* Restored LegalHold internal API swagger as part of Brig. (#4191)

* Deleted proteus-specific test documentation tags and added some new tags to MLS tests (#4240)

* Re-introduce test case tags for BSI audit (revert #4041) (#4192)


## Internal changes


* Read sftTokenSecret from secrets.yaml and mount to /etc/wire/brig/secrets/sftTokenSecret by default (#4214)

* Added node based topology constraint to ensure pods are distributed uniformly on all nodes. (#4222)

* Move smallstep-accomp` helm charts to `wireapp/helm-charts` (#4204)

* Remove coturn helm chart. It is moved to `wireapp/coturn`. (#4209)

* Additional test for password reset, port tests to new integration test suite (#4249)

* Remove unused invitation tables from brig. (#4263)

* Improve abstraction in the invitation store and hide DB interaction-specific internal types from the application code. (#4280)

* Move some invitation handling from brig to wire-subsystems.

- introduce cyclically dependent effects: UserSubsystem, AuthenticationSubsystem (see Brig.CanonicalInterpreter).
- introduce TeamInvitationSubsystem with operations inviteUser, internalCreateInvitation.
- add verifyPassword to AuthenticationSubsystem.
- add sendInvitationMail, sendInvitationMailPersonalUser to EmailSubsystem.
- add getTeamSize to IndexedUserStore (this is morally internal to wire-subsystems, and making another ES subsystem would mean adding a lot of code everywhere).
- add updateUserTeam to UserStore.
- add acceptTeamInvitation, internalFindTeamInvitation to UserSubsystem.
- make a few small rest api handlers in brig polysemic (Handler -> Sem). (#4264)

* tools/db/team-info: collects last login times of all team members (#4274)

* Introduce length-preserving function mapRange to replace Functor instance for Range data type. (#4279)

* Servantify gundeck internal api (#4246)

* Removed `indexReindex` and `indexReindexIfSameOrNewer` from internal Brig/SearchIndex. (#4188)

* Introduced ElasticSearch effects related to user search. (#4188)

* Brig was refactored by pulling out email block-listing into a wire subsystems effect, and its actions are exposed via the user subsystem. (#4167)

* charts/wire-server: Deploy background-worker even when tags.federation is `false` (#4342, #4248)

* Refactor feature flags
- Improved naming slightly. Features types are now called `Feature`, `LockableFeature` and `LockableFeaturePatch`
- Turned `AllFeatures` into an extensible record type
- Removed `WithStatusBase` barbie.
- Deleted obsolete `computeFeatureConfigForTeamUser`
- Abstracted `getFeature` and `setFeature`
- Abstracted getAllTeamFeatures (#4181)

* Clean up and reorganise feature flag endpoints (#4193)

* Clean up feature default configuration code (#4196)

* Add federation-v1 environment for testing compatibility of the federation API with version 1 (#4125)

* Expose gundeck internal API on swagger. Mv some types and routes to wire-api. (#4247)

* Postgresql helm chart is removed from charts/ directory and migrated to wireapp/helm-charts repo (#4208)

* Simplify NewTeam and related types and remove lenses (#4257)

* Optimize getting a lot of users by concurrently getting target users (#4140)

* charts/{brig,galley}: Allow setting a preStop hook for the deployments (#4200)

* Introduce proeprty subsytem (#4148)

* Changed default password hashing from Scrypt to Argon2id. (#4271)

* Factored out our Email type in favour of EmailAddress from email-validate. (#4206)

* add the TODO pattern and the todo function to Imports (#4198)

* Refactor user feature logic (#4178)

* Remove `UserAccount` and `ExtendedUserAccount` and their fields to the `User` type (#4275)

* Started weeding out dead code. (#4170)

* New user subsystem operation `getAccountsBy` for complex account lookups. (#4218)

* Added warning when deploying wire-server helm chart with User/Team creation over internet enabled. (#4212)


# [2024-07-09] (Chart Release 5.5.0)

## Bug fixes and other updates
Expand Down
22 changes: 15 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DOCKER_TAG ?= $(USER)
# default helm chart version must be 0.0.42 for local development (because 42 is the answer to the universe and everything)
HELM_SEMVER ?= 0.0.42
# The list of helm charts needed on internal kubernetes testing environments
CHARTS_INTEGRATION := wire-server databases-ephemeral redis-cluster rabbitmq fake-aws ingress-nginx-controller nginx-ingress-controller nginx-ingress-services fluent-bit kibana restund coturn k8ssandra-test-cluster
CHARTS_INTEGRATION := wire-server databases-ephemeral redis-cluster rabbitmq fake-aws ingress-nginx-controller nginx-ingress-controller nginx-ingress-services fluent-bit kibana restund k8ssandra-test-cluster
# The list of helm charts to publish on S3
# FUTUREWORK: after we "inline local subcharts",
# (e.g. move charts/brig to charts/wire-server/brig)
Expand All @@ -17,8 +17,8 @@ CHARTS_RELEASE := wire-server redis-ephemeral redis-cluster rabbitmq rabbitmq-ex
fake-aws fake-aws-s3 fake-aws-sqs aws-ingress fluent-bit kibana backoffice \
calling-test demo-smtp elasticsearch-curator elasticsearch-external \
elasticsearch-ephemeral minio-external cassandra-external \
nginx-ingress-controller ingress-nginx-controller nginx-ingress-services reaper restund coturn \
k8ssandra-test-cluster postgresql ldap-scim-bridge smallstep-accomp
nginx-ingress-controller ingress-nginx-controller nginx-ingress-services reaper restund \
k8ssandra-test-cluster ldap-scim-bridge
KIND_CLUSTER_NAME := wire-server
HELM_PARALLELISM ?= 1 # 1 for sequential tests; 6 for all-parallel tests

Expand Down Expand Up @@ -49,12 +49,17 @@ install: init
./hack/bin/cabal-run-all-tests.sh
./hack/bin/cabal-install-artefacts.sh all

.PHONY: clean-rabbit
clean-rabbit:
rabbitmqadmin -f pretty_json list queues vhost name messages | jq -r '.[] | "rabbitmqadmin delete queue name=\(.name) --vhost=\(.vhost)"' | bash

# Clean
.PHONY: full-clean
full-clean: clean
rm -rf ~/.cache/hie-bios
rm -rf ./dist-newstyle ./.env
direnv reload
clean-rabbit
@echo -e "\n\n*** NOTE: you may want to also 'rm -rf ~/.cabal/store \$$CABAL_DIR/store', not sure.\n"

.PHONY: clean
Expand All @@ -77,7 +82,10 @@ cabal.project.local:

# Usage: make c package=brig test=1
.PHONY: c
c: treefmt
c: treefmt c-fast

.PHONY: c
c-fast:
cabal build $(WIRE_CABAL_BUILD_OPTIONS) $(package) || ( make clean-hint; false )
ifeq ($(test), 1)
./hack/bin/cabal-run-tests.sh $(package) $(testargs)
Expand Down Expand Up @@ -162,7 +170,7 @@ lint-all: formatc hlint-check-all lint-common
# The extra 'hlint-check-pr' has been witnessed to be necessary due to
# some bu in `hlint-inplace-pr`. Details got lost in history.
.PHONY: lint-all-shallow
lint-all-shallow: formatf hlint-inplace-pr hlint-check-pr lint-common
lint-all-shallow: lint-common formatf hlint-inplace-pr hlint-check-pr

.PHONY: lint-common
lint-common: check-local-nix-derivations treefmt-check # weeder (does not work on CI yet)
Expand Down Expand Up @@ -238,11 +246,11 @@ add-license:

.PHONY: treefmt
treefmt:
treefmt
treefmt -u debug

.PHONY: treefmt-check
treefmt-check:
treefmt --fail-on-change
treefmt --fail-on-change -u debug

#################################
## docker targets
Expand Down
4 changes: 3 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ packages:
, libs/dns-util/
, libs/deriving-swagger2/
, libs/galley-types/
, libs/gundeck-types/
, libs/hscim/
, libs/http2-manager/
, libs/imports/
Expand All @@ -29,6 +28,7 @@ packages:
, libs/wai-utilities/
, libs/wire-api/
, libs/wire-api-federation/
, libs/wire-otel/
, libs/wire-message-proto-lens/
, libs/wire-subsystems/
, libs/zauth/
Expand All @@ -49,6 +49,7 @@ packages:
, tools/db/move-team/
, tools/db/phone-users/
, tools/db/repair-handles/
, tools/db/team-info/
, tools/db/repair-brig-clients-table/
, tools/db/service-backfill/
, tools/fedcalls/
Expand All @@ -74,3 +75,4 @@ program-options
allow-newer:
, proto-lens-protoc:base
, proto-lens-protoc:ghc
, proto-lens-setup:Cabal
Loading
Loading