Commit Graph

48 Commits

Author SHA1 Message Date
Jakub Sokołowski 317c83dc1d
fix(ci): use --tags to match non-annotated tags (#2814)
Currently tags used in the project are a mix of annotated and
non-annotated/lightweight tags. Without `--tags` flag `git describe`
will not take into account annotated tags.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-06-19 17:54:19 +02:00
Darshan K 736ce1cbc6
feat: it's push newly released nwaku image with latest-release tag (#2732) 2024-05-27 16:22:48 +05:30
Jakub Sokołowski 55ff667478
chore(ci): use git describe for image version
This way we get both the full commit and the version, whether it's a
proper release or not.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-02-29 10:40:14 +01:00
Jakub Sokołowski b700d0464b
chore(ci): fix IMAGE_NAME to use harbor.status.im
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-02-19 11:31:34 +01:00
Jakub Sokołowski 1151d50f55
chore(ci): reuse discord send function from library
No need to keep an almost identical copy here.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-02-14 16:37:30 +01:00
Ivan FB 55d1b078b1
fix: bug fix in ci/Jenkinsfile.release: make -d:postgres part of NIMFLAGS (#2395) 2024-02-02 14:13:07 +01:00
Ivan FB 585755858c
ci/Jenkinsfile.release: enforce -d:postgres flag is always used (#2389) 2024-02-01 20:46:25 +01:00
Alexis Pentori 93dd5ae50d
feat: setting image deployment to harbor registry
Adding variable to push image to specific Registry
    Changing image owner name to `waku-org` to match Github Repository naming

Signed-off-by: Alexis Pentori <alexis@status.im>
2023-11-29 11:54:17 +01:00
Anton Iakimov 6dd2806359
fix: typo 2023-11-08 16:52:53 +01:00
Anton Iakimov ea6200dd0c
ci: fix runtime available log level (#2191)
Closes: https://github.com/waku-org/nwaku/issues/2107
2023-11-08 12:54:55 +00:00
Jakub Sokołowski 52759faa03
fix(ci): fix Docker tag for latest and release jobs
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-10-31 17:44:49 +01:00
Jakub Sokołowski aaf10e0871
fix(ci): fix name of discord notify method
Also use absolute path to load Groovy script.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-27 18:43:52 +02:00
Jakub Sokołowski 184479e385
ci: push GIT_REF if it looks like a version
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-27 10:33:12 +02:00
Jakub Sokołowski 6072fcbee6
ci: enforce default Docker image tags strictly
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-27 10:33:11 +02:00
Jakub Sokołowski 56feedc58a
ci: push images to new wakuorg/nwaku repo
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-27 10:33:10 +02:00
Jakub Sokołowski cb1d202458
ci: extract discordNotify to separate file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-09-27 10:27:57 +02:00
Ivan Folgueira Bande 7a376f59c8
chore: Adding -d:postgres flag when creating a Docker image for release and PRs (#2076) 2023-09-26 10:11:38 +02:00
Aaryamann Challani 645b034367
feat(rln-relay): removed rln from experimental 🚀 (#2001)
* feat(rln-relay): removed rln from experimental 🚀

* fix(waku_node): if rln-relay is nil, return true

* chore(tests): mark rest health as skipped
2023-09-11 12:02:31 +05:30
Hanno Cornelius b9d5d28af5
chore: remove references to v2 (#1898)
* chore: remove references to v2

* fix: lingering rln-relay import path
2023-08-09 18:11:50 +01:00
Hanno Cornelius ab344a9dec
chore: remove Waku v1 and wakubridge code (#1874)
* chore: remove v1 code

* chore: deprecate support for v1 compatibility from JSON-RPC API

* chore: remove v1 tests from JSON-RPC suite

* chore: remove wakubridge code

* chore: remove v1 compatibility functions

* chore: remove support for v1 payloads from chat2 app

* chore: remove v1 from CI processes

* fix: lingering references to private API functions

* fix: remove v1 compat from chat2

* fix: some more lingering references in tests
2023-08-07 15:11:46 +01:00
Jakub Sokołowski ae05f0a848
fix: sanity-check the docker image start
To avoid basic runtime failures due to missing libraries:
```
 > docker run --rm statusteam/nim-waku:deploy-wakuv2-test --version
could not load: libpq.so(.5|)
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-06-27 19:32:40 +02:00
Hanno Cornelius e9028618fd
fix: temporary fix to disable default experimental builds on fleets (#1810) 2023-06-19 17:14:50 +02:00
Vaclav Pavlin 39902dc2f2
chore(makefile): unify where chronicles_log_level is set (#1748) 2023-05-23 10:44:57 +02:00
Aaryamann Challani b148c305d7
fix(ci): make experimental default to true in fleet deployment (#1742) 2023-05-18 17:26:29 +05:30
Aaryamann Challani d822cdc599
fix(ci): remove target flag from docker command (#1725)
* fix(ci): remove target flag from docker command

* fix(ci): add additional debug flag to rollout debug images to fleets
2023-05-15 21:55:25 +05:30
G b77a4faa55
fix(jenkins): fix typo 2022-12-06 01:18:33 +01:00
Lorenzo Delgado 0f91f97a9a
ci(jenkins): split dockerfile into production and experimental stages 2022-12-01 12:45:06 +01:00
Lorenzo Delgado 35c89ed176
ci(jenkins): support experimental flag in the pr and release pipelines 2022-12-01 11:28:09 +01:00
Lorenzo Delgado efd1496e4e
ci(jenkins): use MAKEFLAGS and NIMFLAGS pipeline params in build and test stages 2022-10-25 16:58:52 +02:00
Lorenzo Delgado 339914bb73
ci: run ci test workflows selectively 2022-10-20 18:44:22 +02:00
Jakub Sokołowski 44e49a0235
ci: separate discord notification into a function
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-12 22:33:17 +02:00
Jakub Sokołowski b9a84af5c2
ci: add username and email to build notifications
Makes it easier to identify who to talk to about a deployment.

This depends on the following plugin being installed:
https://plugins.jenkins.io/build-user-vars-plugin/

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-12 22:33:16 +02:00
Jakub Sokołowski dd1fe16568
ci: build v1 and v2 if shell.nix is changed
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-04 18:29:13 +02:00
Jakub Sokołowski eba17319e8
ci: use Nix shell to provide build dependencies
Because we need Rust version newer than `1.62.0` and
Ubuntu 22.04 only comes with `1.61.0`:
https://packages.ubuntu.com/jammy/rustc

And locking dependencies using Nix would make it easier
for developers to track them and update them:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/rust/1_63.nix

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-03 18:45:29 +02:00
Jakub Sokołowski cc037cc749
ci: add diff link for previously deployed commit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-28 17:48:31 +02:00
Jakub Sokołowski 3b7d6f4a1b
ci: use docker tag names closer to fleet names
To avoid naming confiusion.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-28 17:12:33 +02:00
Jakub Sokołowski 207dc3a845
ci: build all when anything in ci folder changed
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-27 17:23:51 +02:00
Jakub Sokołowski c3a9c0aab8
ci: add Discord notification for successful builds
This way teams can track what deployments happen when.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-09-27 16:19:24 +02:00
Jakub Sokołowski b9434052ef
ci: disable Nim compiler colors
Because they make things unreadable.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-07-22 13:45:47 +02:00
Jakub Sokołowski 89868bc7cd ci: add timeouts to Jenkins pipelines
We've seen a few jobs running on MacOS hosts stuck for days:

* https://ci.status.im/job/nim-waku/job/prs/job/macos/job/PR-982/
* https://ci.status.im/job/nim-waku/job/prs/job/macos/job/PR-979/

Which is not acceptable.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-06-08 15:18:27 +02:00
Daniel Kaiser 42f48a6892
chore(docker): use NIMFLAGS instead of NIM_PARAMS (#961)
NIM_PARAMS is and internal variable.
NIMFLAGS should be used outside of nimbus build system.

includes:

* fix(docker): copy RLN parameters.key into the container
* chore(makefile): NIMFLAGS in docker img rule
2022-05-17 21:11:07 +02:00
G f59876caeb
fix(Jenkins): remove caching (#945)
* Update Jenkinsfile.prs
2022-04-19 12:51:27 +02:00
Jakub Sokołowski 263284978a ci: add commit as label to Docker image
Helps with debugging issues related to specific versions.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-02-21 18:25:14 +01:00
Jakub Sokołowski 438ad2328e ci: add architecture specification to agent label
Should fix errors like:
```
clang: error: the clang compiler does not support '-march=native'
```
Caused by hitting the Apple M1 `arm64` host.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-01-17 19:55:52 +01:00
Hanno Cornelius e226d0f852
Upped Jenkins make verbosity to 1 (#785) 2021-11-25 17:01:45 +01:00
Jakub Sokołowski 0d8f4becd0 ci: build and test only what changed
This is a pretty cure regex-based test, but should work.

For the diff to work this refspec needs to be added to the fetch
```
+refs/heads/master:refs/remotes/@{remote}/master
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-07-02 11:09:09 +02:00
Jakub Sokołowski 09876ae82b ci: cleanup workspaces after every build to save space
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-30 22:57:15 +02:00
Jakub Sokołowski f140a71d6d ci: add Jenkinsfile for Linux
Adding a single Jenkinsfile for PR builds that can run on all three
platforms supported by our Jenkins CI setup.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-06-29 17:36:52 +02:00