* fix(helm): update documentation to match helm chart
* fix(helm): update documentation should not update README in helm repository
* fix(helm): should ensure output schema conforms to prettier requirements
* feat(pre-commit): update helm documentation as part of pre-commit
* feat(circleci): update Helm README when publishing new Helm chart
* fix(pre-commit): need to npm install before using readme generator
* 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
* 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>
* 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.
* 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
* each log line is a json object
* structured logging allows logs to be ingested by machines and the logs to be indexed and queried addresses #1105
* structured logging allows arbitrary properties to be appended to each log line, and ingestion of logs to remain robust
* Structured logging provided by `pino` library
* Add `express-pino-logger` dependency
* Remove `debug`, `morgan`, and `morgan-debug` and replace with structured logging
* `console.log` & `console.error` replaced with structured logging in backend
* Remove `DEBUG` environment variable and replace with `LOG_LEVEL`
- Note that there is a test which reads from a logged line on `stdout`. This is not robust, it would be better to use the childProcess.pid to look up the port number.
* Log errors at points we explicitly send error to Sentry
* Amend indentation of a couple of log messages to align indentation with others
* feat(frontend): help message for disabled checkboxes on commit cards
* refactor: share-stream-dialog cleanup
* refactor: further share-stream-dialog prep for more usages
* feat(server): sharing directly from commit grid cards
* feat(server): sharing directly from commit list cards
* refactor: removing unnecessary dev tests
* Adds hadolint as pre-commit
* Addresses all hadolint comments
* Hadolint docker works when entrypoint explicitly provided
* Use noninteractive apt-get frontend and clean after install
* build(circleci): filters for pre-commit should be same as for test-server
* remove cache prefix as not currently necessary due to pre-commit-config.yaml changing
* build(circleci): enable remote docker for pre-commit
* build(circleci): use speckle pre-commit runner with built-in hadolint
* build(server): dockerfile RUN statements are consolidated
Each RUN statement in a Dockerfile creates a new layer. Hadolint rule DL3059 suggests they should
be consolidated.
* build(server): dockerfile RUN statements are consolidated
Each RUN statement in a Dockerfile creates a new layer. Hadolint rule DL3059 suggests they should
be consolidated.
* Improve husky bash script to catch errors
* Integrates pre-commit with husky
* pre-commit should now be run by husky on every commit
* pre-commit which requires additional installed dependencies is moved to separate file
* Update README for revised developer instructions
* Updates pre-commit yarn script
* refactor(pre-commit): make everyone happy with loosly integrating husky and pre-commit scripts
* chore(clean up pre-commit configs): clean some more pre-commit mess
* chore(pre-commit): run pre-commit in ci too
* fix(husky pre-commit): fix ci build husky invocation, the script is not commited to git
* fix(circleci config): install yarn packages for linting in pre-commit
* fix(pre-commit): fix shellcheck disable comment placement
* fix(pre-commit): add shellcheck ignore
* fix(pre-commit husyk): fix shellcheck ignore version
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
* Adds hadolint as pre-commit step
* Addresses all hadolint comments
* Use noninteractive apt-get frontend and clean after install
* dockerfile RUN statements are consolidated to prevent additional layers
* installed packages have pinned versions
* build(circleci): use speckle pre-commit runner with built-in hadolint
* Integrate pre-commit with husky bash script for git pre-commit hooks
* catches errors in bash
* if pre-commit is installed, it is run
* if optional additional binaries are installed, further pre-commit steps are run
* Update README with revised developer instructions
* Adds a pre-commit yarn script
* Add CircleCI job to run pre-commit on every commit
* Install pre-commit on cimg/python:node image
* caches installed packages and pre-commit hooks
* build(circleci): validate circleci configurations via yarn
* 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>