Commit Graph

39 Commits

Author SHA1 Message Date
github-actions[bot]
2202bef32e chore(test): Update flake.lock
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2?narHash=sha256-Dt/wOWeW6Sqm11Yh%2B2%2Bt0dfEWxoMxGBvv3JpIocFl9E%3D' (2024-03-01)
  → 'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d?narHash=sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm%2BGpZNw%3D' (2024-04-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'github:NixOS/nixpkgs/1536926ef5621b09bba54035ae2bb6d806d72ac8?dir=lib&narHash=sha256-cy6ArO4k5qTx%2Bl5o%2B0mL9f5fa86tYUX3ozE1S%2BTxlds%3D' (2024-02-29)
  → 'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089?dir=lib&narHash=sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk%3D' (2024-03-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/e976fa8f49c35cf28496301a1ef2aa23ad576b56?narHash=sha256-PAfFp%2BYEKpkzwz6ruXQMvTa1puO4ySSu2G4Sp/jkCc8%3D' (2024-04-02)
  → 'github:nixos/nixpkgs/cf8cc1201be8bc71b7cbbbdaf349b22f4f99c7ae?narHash=sha256-yNAevSKF4krRWacmLUsLK7D7PlfuY3zF0lYnGYNi9vQ%3D' (2024-04-28)
• Updated input 'process-compose-flake':
    'github:Platonic-Systems/process-compose-flake/44d260ddba5a51570dee54d5cd4d8984edaf98c2?narHash=sha256-zZPheCD9JGg2EtK4A9BsIdyl8447egOow4fjIfHFHRg%3D' (2024-02-22)
  → 'github:Platonic-Systems/process-compose-flake/ee8cd505f08f6cd691930e70987a306b7726851b?narHash=sha256-pQIg3wrNBDdRiuhcVC8DFmTXK8GHtR%2BiV%2B5Gvsozx5s%3D' (2024-04-24)
• Updated input 'services-flake':
    'github:juspay/services-flake/fa079ed2a907c38403046404dbcd3a3b7892f0f0?narHash=sha256-oui6I0Sx/dw9t0XmT6dtmZr6lZ2yFmcwfVEQ9FAxMlw%3D' (2024-04-29)
  → 'github:juspay/services-flake/5229c9a2c32d2491fe6f8b9974421f2805f02267?narHash=sha256-Ae1Qpu6BsfTms5vnlYGtBGgSg9ZLZ0m3FMBWAllCJfA%3D' (2024-04-29)
2024-04-30 00:36:07 +05:30
shivaraj-bh
5229c9a2c3 chore(test): revert forcing the override for services-flake input
Forcing the override causes the update-flake-lock github action to fail
2024-04-29 23:57:41 +05:30
Shivaraj B H
eb4364c92a
fix(test): grafana on darwin is no longer broken in upstream (#161)
fixed here: https://github.com/NixOS/nixpkgs/pull/297968

Also, hydra-checks pass on all four platforms:

```sh
shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch aarch64-darwin
Build Status for grafana.aarch64-darwin on jobset nixpkgs/trunk
✔ grafana-10.4.1 from 2024-03-27 - https://hydra.nixos.org/build/254421303

shivaraj in 🌐 nixos in ~ took 45s
❯ nix run github:nix-community/hydra-check -- grafana --arch x86_64-darwin
Build Status for grafana.x86_64-darwin on jobset nixpkgs/trunk
✔ grafana-10.4.1 from 2024-03-27 - https://hydra.nixos.org/build/254422747

shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch x86_64-linux
Build Status for nixpkgs.grafana.x86_64-linux on jobset nixos/trunk-combined
✔ grafana-10.4.0 from 2024-03-27 - https://hydra.nixos.org/build/254385494

shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch aarch64-linux
Build Status for nixpkgs.grafana.aarch64-linux on jobset nixos/trunk-combined
✔ grafana-10.4.0 from 2024-03-27 - https://hydra.nixos.org/build/254392946
```
2024-04-04 11:14:35 +05:30
Shivaraj B H
f158353b59
fix(mysql)!: look for *.sql files in the top-level schema directory (#154)
* mysql service would assume that all the `*.sql` files in the directory, provided by `initialDatabases [{ schema = <directory>; … }]`, exists in a folder named [mysql-databases](291e7be83a/nix/mysql.nix (L239-L241)), after this change it would just look for all the `*.sql` files in the top-level schema directory.
* add tests
2024-03-18 22:32:08 +05:30
Sridhar Ratnakumar
3e849aa744 test: refactor, by factoring 'pkgs' in its own module
We don't need per-file package overlays, since we don't envision having too many of them. Whenever possible, get them from nixpkgs, to keep our tests nimble.
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
31151df8e4 test(grafana): Use older nixpkgs for grafana on macOS
This speeds up build, because we no longer have to compile grafana locally and wait for eternity.

cf. https://github.com/NixOS/nixpkgs/issues/273998
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
5a54b621ab test: Apply overlay only on darwin
Other platforms need not unnecessarily build these packages
2024-03-07 15:08:14 -05:00
Sridhar Ratnakumar
acf4e9ad6e test(grafana): Link to upstream issue
https://github.com/NixOS/nixpkgs/issues/273998
2024-03-07 13:07:17 -05:00
Sridhar Ratnakumar
bcf4a493f8
test(pgadmin): Link to upstream bug (#129)
https://github.com/NixOS/nixpkgs/issues/281214
2024-03-07 11:45:45 -05:00
Abhishek Singh
e0a1074f8a
bump: update flake lock (#117)
* fix: pgadmin-init

in pgadmin-8.2, the command to setup configuration db is `setup-db`

* fix: add grafana overlay
grafana 10.3.3 from upstream nixpkgs doesn’t work in darwin

* chore: free up space in ubuntu-latest

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-03-06 16:55:00 +05:30
Shivaraj B H
9cdee29122
refactor: overlays for packages in test flake (#120)
Avoid test flake clutter; separate overlay for each package.
2024-03-06 08:06:25 +05:30
Abhishek Singh
6aeb0eafe6
cassandra: init service (#116)
* cassandra: init service

* cassandra: add cassandra/conf files

* cassandra_test: change package to cassandra_4

* update readiness_probe

* update cassandra_test

* cassandra: add doc

* cassandra_4 doesn't require python-2

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-03-03 16:07:36 +05:30
Abhishek Singh
5e48c5a965
add pgAdmin service (#115) 2024-02-29 18:10:22 +05:30
Abhishek Singh
bdd6dde41a
add prometheus service (#114)
* prometheus: init service

* prometheus: add doc

* prometheus: update doc
2024-02-28 11:00:52 +05:30
Sridhar Ratnakumar
0787c48b02
Update process-compose-flake (#111)
To try the new JSON config, avoiding IFD.
2024-02-24 06:59:35 -05:00
Abhishek Singh
625f207034
add grafana service (#108) 2024-02-22 22:25:51 +05:30
Abhishek Singh
dafaeb048d
explicitly define project root in treefmt (#103)
* explicitly define project root in treefmt

* define `projectRootFile` in `treefmt`

* make `treefmt.projectRoot` as `inputs.services-flake`

* use github flake url

* flake.nix as projectRootFile

* add comment

* force override-input in test flake

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-02-20 11:06:02 +05:30
Sridhar Ratnakumar
e926d2d1d3 test: Fix impure access of parent paths 2024-02-11 03:58:59 -05:00
roman-bodavskiy
a0bde519ed
clickhouse init script (#91)
* clickhouse init script

* clickhouse schema test

* clickhouse folder

* docs: add initialDatabases to tips & tricks

* docs: use heading anchor

* add TODO to find an alternative to start clickhouse-server during init

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2024-02-07 22:03:06 +05:30
Shivaraj B H
af4af40169
Add Clickhouse service (#85) 2024-01-24 20:54:26 +05:30
Rohit Singh
22e121b246
Using psql command instead of postgres in initialScript (#66)
* Use psql instead of postgres, as a result, use `pg_ctl` to temporarily start the postgres server in `${name}-init` process.
* Avoid creating a custom `postgresPkg` with extensions by using `apply` attribute provided by `mkOption`
* Refactor setup script, use `writeShellApplication` and resolve shell-check errors

---------

Co-authored-by: shivaraj-bh <sbh69840@gmail.com>
2023-12-25 00:35:03 +05:30
Shivaraj B H
8cd80d7a16
nginx: service init (#69) 2023-12-22 16:42:51 +05:30
Shivaraj B H
c56d39116c
process-compose: 0.60.0 -> 0.65.1 (#58) 2023-10-07 23:56:28 +05:30
Shivaraj B H
b9ab7fb711
Namespaces (#57) 2023-10-04 22:50:59 +05:30
Shivaraj B H
072fb57419
Add MySQL service (#50) 2023-09-07 20:36:27 +05:30
Shivaraj B H
2c1bbc1258
[Update flake.lock; fix bugs] Test process overwrites other processes (#52) 2023-09-06 19:54:51 +05:30
Shivaraj B H
5fdd56f090
mkPackageFor in test flake (#44) 2023-08-31 13:00:06 +05:30
Shivaraj B H
b93a612aa7
Kafka and Zookeeper services (#42) 2023-08-29 17:04:04 +05:30
Shivaraj B H
6e7c208761
Add elasticsearch service (#37) 2023-08-23 23:07:18 +05:30
Shivaraj B H
76bad81d94
default port 0 set by the upstream (#43) 2023-08-23 23:06:11 +05:30
Shivaraj B H
72a3eaacc8
Process as test (VM -> Native test) (#38)
Co-authored-by: Sridhar Ratnakumar <3998+srid@users.noreply.github.com>
2023-08-23 22:47:20 +05:30
Shivaraj B H
88a259d48e
Add Redis cluster service (#35) 2023-08-02 09:58:19 +05:30
Shivaraj B H
8b8eea9230
Multiple services (#13) 2023-07-18 02:15:33 +05:30
Sridhar Ratnakumar
85a89560b6 Revert "dev flake: check example and tests"
This reverts commit 05345eaab7.
2023-07-10 19:36:14 -04:00
Sridhar Ratnakumar
05345eaab7 dev flake: check example and tests
It makes sense to consolidate all of this to in one place, the "dev flake".
2023-07-10 13:01:08 -04:00
Shivaraj B H
beaaca9f55
Add redis service (#8) 2023-07-10 20:44:26 +05:30
Sridhar Ratnakumar
b7c1a05eff test: Update process-compose-flake
Also wrap in startScript because 'command' no longer does that.
2023-06-21 10:01:14 -04:00
Sridhar Ratnakumar
599970cd8f Advance process-compose-flake 2023-06-19 18:01:04 -04:00
Sridhar Ratnakumar
f171932d13 Initial implementation: hello and postgres 2023-06-19 17:56:18 -04:00