Commit Graph

43 Commits

Author SHA1 Message Date
Iain Sproat aaaf75d151 Merge branch 'main' into iain/dockerfile-node18-node22 2025-02-05 12:16:04 +00:00
Iain Sproat da6dbb94a6 fix(knex): bump knex from 2.4.1 to 2.5.1 to resolve leaking db connections (#3751) 2025-01-06 11:11:49 +00:00
Gergő Jedlicska 9e383f83b1 fix(workers): add zod and znv (#3484) 2024-11-11 17:10:59 +00:00
Iain Sproat cd3ef0e951 chore(node): bump from 18 to 22 2024-08-16 08:49:34 +01:00
Kristaps Fabians Geikins 83d8035dc2 chore: upgrade to eslint 9 (#2348)
* root + server

* frontend

* frontend-2

* dui3

* dui3

* tailwind theme

* ui-components

* preview service

* viewer

* viewer-sandbox

* fileimport-service

* webhook service

* objectloader

* shared

* ui-components-nuxt

* WIP full config

* WIP full linter

* eslint projectwide util

* minor fix

* removing redundant ci

* clean up test errors

* fixed prettier formatting

* CI improvements

* TSC lint fix

* 'buildBatch' needs to be async since some batch types (like Text) require it. Removed a disabled liniting rule from ObjLoader

* removed unnecessary void

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-06-12 14:38:02 +03:00
Iain Sproat 3db83e50be chore(deps): bump node from 18.18.2 to 18.19.0 (#1921)
* chore(deps): bump node from 18.18.2 to 18.19.0

* Additional dependencies
2023-12-15 11:30:07 +01:00
Iain Sproat 438c6bbf0d chore(deps): bump node from 18.17.1 to 18.18.2 (#1844) 2023-10-31 18:08:25 +00:00
Iain Sproat 080e8197f9 chore(deps): bump node from 18.17.0 to 18.17.1 (#1771) 2023-08-24 10:55:43 +01:00
Iain Sproat ea941b3b81 chore(deps): bump node to 18.17.0 (#1722) 2023-07-26 12:38:50 +01:00
Kristaps Fabians Geikins 3999372b68 fix: pino dep missing 2023-07-12 11:55:48 +03:00
Iain Sproat ffc3c5186f chore(node): bump to 18.16.1 (#1675) 2023-07-07 16:54:18 +01:00
Iain Sproat 4eab7d9dcd chore(deps): bump node to 18.16.0 (#1564) 2023-05-05 12:43:39 +01:00
Iain Sproat 87e8d08e64 chore(deps): bump node to 18.15.0 (#1446) 2023-03-10 11:01:30 +00:00
Iain Sproat d8b7123ed0 chore(deps): bump node from 18.14.0 to 18.14.2 (#1426) 2023-03-01 12:16:55 +00:00
Iain Sproat af98e9bfd9 fix(webhook): do not log problems connecting to external webhook environment as error severity (#1397)
* fix(webhook): do not log problems connecting to external webhook environment as error severity
- these are user controlled variables and do not necessarily indicate problems with our system
2023-02-21 09:37:24 +00:00
Iain Sproat a6fba9ebd3 chore(node): bump node version to 18.14.0 (#1365) 2023-02-10 11:44:44 +00:00
dependabot[bot] f7e71c76b8 chore(deps): bump knex from 2.0.0 to 2.4.1 (#1306)
* chore(deps): bump knex from 2.0.0 to 2.4.0

Bumps [knex](https://github.com/knex/knex) from 2.0.0 to 2.4.0.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/compare/2.0.0...2.4.0)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): bump knex from 2.0.0 to 2.4.1

Addresses dependabot issue 165

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2023-01-18 11:40:17 +00:00
Iain Sproat 96bed71022 fix(logging): Improves error logging and pretty-prints logs during dev & test (#1255)
* Improves error logging
- use pino error logger correctly by passing in error as first argument

* monitor deployment: Filter logging at INFO level and above
* Use structured logging to create parameters for monitoring results
* Add structured logging to obj fileimport service
* Fileimport service, fix and improve logging
    - use child logger with additional context where possible
    - select appropriate logging level
- fix duplicated context in log statement
* REST endpoints, add context to structured logging and remove same context from message
* Webhook service provides context to bound logger to properly use structured logging
    - Pass bound logger containing context to `makeNetworkRequest`
    - do not log url, as it may contain a secret (like Discord's webhook urls), instead log the webhook Id
     - log error message when network call fails
* upload: make better use of structured logging when recording data
* pino-pretty when in dev or test mode
    - pino-pretty configured to send to stderr
* LOG_PRETTY env var
* Silence structured logging during testing
     - can not rely on determining the port number by reading from stdout/stderr
     - instead we determine which port is free, then create our server on that port
     - we then poll that port until the server is ready before commencing tests
* Allow puppeteer to install chromium
* Do not need to install chromium separately
2022-12-13 09:18:28 +00:00
Iain Sproat ee50b32b59 chore(node): upgrades to node 18 (#1189)
* chore(node): upgrades to node 18

Node 16 was out of support (but not security upgrades), so bumping to next stable version.

https://github.com/specklesystems/speckle-server/issues/1187

* Update server liveness and readiness probes for node 18
* Bump web-ifc to 0.0.36
* Apply `--no-experimental-fetch` flag to fileimport-service to prevent issues in web-ifc (via emscripten) with node 18
2022-12-06 12:57:48 +00:00
Iain Sproat 4d01e13a84 feat(structured logging) (#1242)
* Revert "Revert structured logging 2 (#1240)"
This reverts commit 78ecaeffcb.
* Logging should not be bundled into core shared directory
* making sure observability stuff isnt bundled into frontend


Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
2022-12-06 11:51:18 +00:00
Iain Sproat 78ecaeffcb Revert structured logging 2 (#1240)
* Revert "'@' shortcut must come after it is configured in bootstrap (#1239)"

This reverts commit 967329473f.

* Revert "Structured logging (attempt 2) (#1234)"

This reverts commit 444d2ca7dd.
2022-12-05 15:46:09 +00:00
Iain Sproat 444d2ca7dd Structured logging (attempt 2) (#1234)
* Revert "Revert "feat(structured logging): implements structured logging for backend (#1217)" (#1227)"

This reverts commit 63e6581162.

* Use pino-http instead of express pino logger
* Use correct reference to knex and do not instantiate HttpLogger prematurely
* Adds missing dependency for pino to webhook-service
* Do not instantiate middleware when passed to express
* Refactor to move logging into shared
* Copy shared packages into dockerfiles
* Build shared workspace in docker build-stage for fileimport & webhook
2022-12-05 14:49:52 +00:00
Gergő Jedlicska 1d8ffac57a update knex dependency chain (#776)
* chore(root): update packages

* chore(server + preview service): add pg-query-stream peer dependency

* build(dockerfiles): unify and update docker base layer to latest node lts
2022-06-01 10:25:09 +02:00
Gergő Jedlicska 638969cd01 gergo/yarn (#753)
* yarn first go

* fix frontend build cache loader

* yarn workspaces built server Docker

* build(yarn): add workspaces plugin config

* chore(package defs): clean package*.json -s

* chore(gitignore): ignore yarn error log

* build(yarn): update yarn lock

* build(preview-service webpack): add extra resolved path to preview service webpack config

because of yarn package hoisting, there are no package level node_modules folder anymore.

* build(docker): update dockerignore with yarn specific configs

* build(docker): update Dockerfiles for yarn workspaces utilization

* ci(circleci): update server test job to yarn

* ci(circle): disable cache restore

* ci(circleci): trying the node orb yarn-run

* ci(circleci): yarn-run again

* ci(circleci): disable node orb

* ci(circleci): change base node image for tests

* ci(circleci): add yarn cache

* ci(circleci): remove node install step

* ci(circleci): add server specific cache archives

* ci(circleci): test build and publish

* ci(circleci): change npm auth method to suit yarn

* ci(circleci): trying new builder image

* ci(circleci): another base image, maybe this works

* ci(circleci): force a specific docker engine version

* ci(circleci): add yarn version plugin and its changes

* ci(circleci): cleanup and remove temp branch config

* chore(package defs): moving from npm run to yarn

* explicitly specifying webpack4 as a frontend dep

* chore(package defs): replace npm with yarn everywhere

* docs(root readme): update with some yarn specific docs

* chore(root workspace): update dev scripts and package lock

* ci(circleci): enable package publish step with yarn

Co-authored-by: Fabians <fabis94@live.com>
2022-05-19 19:53:07 +02:00
cristi8 0a0fe3cb77 monitoring microservices; new container for overall monitoring of a deployment; helm update; helm local testing 2022-05-05 02:01:00 +03:00
AlexandruPopovici 48e085ceaf Revert "chore(release): publish to npm. Done by mistake with lerna"
This reverts commit 8b974d0db5.
2022-04-30 17:48:02 +03:00
AlexandruPopovici 8b974d0db5 chore(release): publish to npm
[skip ci]

 - @speckle/fileimport-service@2.3.17
 - @speckle/frontend@2.3.17
 - @speckle/objectloader@2.4.3
 - @speckle/preview-service@2.4.3
 - @speckle/server@2.3.17
 - @speckle/viewer-sandbox@1.0.1
 - @speckle/viewer@2.4.3
 - @speckle/webhook-service@2.3.17
2022-04-29 12:54:26 +03:00
CI f5573dd59b chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2889
 - @speckle/frontend@2.3.17-alpha.2889
 - @speckle/objectloader@2.3.17-alpha.2889
 - @speckle/preview-service@2.3.17-alpha.2889
 - @speckle/server@2.3.17-alpha.2889
 - @speckle/viewer@2.3.17-alpha.2889
 - @speckle/webhook-service@2.3.17-alpha.2889
2022-04-07 18:36:41 +00:00
CI ae1bae65de chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2878
 - @speckle/frontend@2.3.17-alpha.2878
 - @speckle/objectloader@2.3.17-alpha.2878
 - @speckle/preview-service@2.3.17-alpha.2878
 - @speckle/server@2.3.17-alpha.2878
 - @speckle/viewer@2.3.17-alpha.2878
 - @speckle/webhook-service@2.3.17-alpha.2878
2022-04-07 18:22:45 +00:00
CI 826d4546ec chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2867
 - @speckle/frontend@2.3.17-alpha.2867
 - @speckle/objectloader@2.3.17-alpha.2867
 - @speckle/preview-service@2.3.17-alpha.2867
 - @speckle/server@2.3.17-alpha.2867
 - @speckle/viewer@2.3.17-alpha.2867
 - @speckle/webhook-service@2.3.17-alpha.2867
2022-04-07 18:11:38 +00:00
CI 7e06f4b96c chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2856
 - @speckle/frontend@2.3.17-alpha.2856
 - @speckle/objectloader@2.3.17-alpha.2856
 - @speckle/preview-service@2.3.17-alpha.2856
 - @speckle/server@2.3.17-alpha.2856
 - @speckle/viewer@2.3.17-alpha.2856
 - @speckle/webhook-service@2.3.17-alpha.2856
2022-04-07 17:53:00 +00:00
CI 963750e64a chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2844
 - @speckle/frontend@2.3.17-alpha.2844
 - @speckle/objectloader@2.3.17-alpha.2844
 - @speckle/preview-service@2.3.17-alpha.2844
 - @speckle/server@2.3.17-alpha.2844
 - @speckle/viewer@2.3.17-alpha.2844
 - @speckle/webhook-service@2.3.17-alpha.2844
2022-04-07 16:14:33 +00:00
Gergő Jedlicska 55f658b04e Merge branch 'main' of github.com:specklesystems/speckle-server into CI/lernaPublish 2022-04-07 18:12:27 +02:00
CI cb03a52104 chore(release): publish %v [skip ci]
- @speckle/fileimport-service@2.3.17-alpha.2830
 - @speckle/frontend@2.3.17-alpha.2830
 - @speckle/objectloader@2.3.17-alpha.2830
 - @speckle/preview-service@2.3.17-alpha.2830
 - @speckle/server@2.3.17-alpha.2830
 - @speckle/viewer@2.3.17-alpha.2830
 - @speckle/webhook-service@2.3.17-alpha.2830
2022-04-07 15:58:04 +00:00
Gergő Jedlicska 0206307a7c chore: make packages private again 2022-04-07 13:43:49 +02:00
Fabians 084cf1585e chore: adding node version checks + migrating server lock back to new format 2022-04-07 13:05:25 +03:00
Kristaps Fabians Geikins b157a98901 feat(server): simplified test running & IDE integrations 2022-03-16 17:31:53 +02:00
Kristaps Fabians Geikins 8010bf3c4c feat: Standardized & cleaned up formatting & linting across repo #617 (#618)
* feat: Standardized & cleaned up formatting & linting across repo

Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2022-03-16 10:10:30 +02:00
Cristian Balas 68908525c0 depndency upgrades (#598) 2022-02-17 21:34:53 +02:00
Cristian Balas 9329265708 Upgrade dependencies (#577) 2022-02-07 14:04:26 +02:00
Cristian Balas ecf908c4c3 webhook limiting (#492) 2021-12-06 14:43:57 +02:00
cristi8 46565605fd webhook events should be presented as a list of strings 2021-07-13 10:25:00 +03:00
cristi8 ddc86eb157 Webhooks - microservice + hooks into activityStreams 2021-07-12 11:32:54 +03:00