hyperdx/Makefile
github-actions[bot] a8f18bae2e
chore(release): bump HyperDX app/package versions (beta) (#684)
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v2, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`v2` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `v2`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @hyperdx/common-utils@0.2.0-beta.2

### Minor Changes

-   a9dfa14: Added support to CTE rendering where you can now specify a CTE using a full chart config object instance. This CTE capability is then used to avoid the URI too long error for delta event queries.
-   e002c2f: Support querying a sum metric as a value instead of a rate

### Patch Changes

-   50ce38f: Histogram metric query test cases
-   2e350e2: feat: implement logs > metrics correlation flow + introduce convertV1ChartConfigToV2
-   a6fd5e3: feat: introduce k8s preset dashboard
-   b9f7d32: Refactored renderWith to simplify logic and ship more tests with the changes.
-   eaa6bfa: fix: transform partition_key to be the same format as others
-   bd9dc18: perf: reuse existing queries promises to avoid duplicate requests
-   5db2767: Fixed CI linting and UI release task.
-   414ff92: feat: export 'Connection' type
-   e884d85: fix: metrics > logs correlation flow
-   e5a210a: feat: support search on multi implicit fields (BETA)

## @hyperdx/app@2.0.0-beta.13

### Minor Changes

-   9579251: Stores the collapse vs expand status of the side navigation in local storage so it's carried across browser windows/sessions.

### Patch Changes

-   3be7f4d: fix: input does not overlap with language select button anymore
-   2e350e2: feat: implement logs > metrics correlation flow + introduce convertV1ChartConfigToV2
-   a6fd5e3: feat: introduce k8s preset dashboard
-   a9dfa14: Added support to CTE rendering where you can now specify a CTE using a full chart config object instance. This CTE capability is then used to avoid the URI too long error for delta event queries.
-   5a10ae1: fix: delete huge z-value for tooltip
-   6864836: fix: don't show ellipses on search when query is in-flight
-   b99236d: fix: autocomplete options for dashboard page
-   5db2767: Fixed CI linting and UI release task.
-   2580ddd: chore: bump next to v13.5.10
-   5044083: Session Replay tab for traces is disabled unless the source is configured with a sessionId
-   6dafb87: fix: View Events not shown for multiple series; grabs where clause when single series
-   decd622: fix: k8s dashboard uptime metrics + warning k8s event body
-   e884d85: fix: metrics > logs correlation flow
-   e5a210a: feat: support search on multi implicit fields (BETA)
-   Updated dependencies [50ce38f]
-   Updated dependencies [2e350e2]
-   Updated dependencies [a6fd5e3]
-   Updated dependencies [a9dfa14]
-   Updated dependencies [e002c2f]
-   Updated dependencies [b9f7d32]
-   Updated dependencies [eaa6bfa]
-   Updated dependencies [bd9dc18]
-   Updated dependencies [5db2767]
-   Updated dependencies [414ff92]
-   Updated dependencies [e884d85]
-   Updated dependencies [e5a210a]
    -   @hyperdx/common-utils@0.2.0-beta.2

## @hyperdx/api@2.0.0-beta.13

### Patch Changes

-   50ce38f: Histogram metric query test cases
-   2e350e2: feat: implement logs > metrics correlation flow + introduce convertV1ChartConfigToV2
-   b9f7d32: Refactored renderWith to simplify logic and ship more tests with the changes.
-   5db2767: Fixed CI linting and UI release task.
-   d326610: feat: introduce RUN_SCHEDULED_TASKS_EXTERNALLY + enable in-app task
-   414ff92: perf + fix: single clickhouse proxy middleware instance
-   Updated dependencies [50ce38f]
-   Updated dependencies [2e350e2]
-   Updated dependencies [a6fd5e3]
-   Updated dependencies [a9dfa14]
-   Updated dependencies [e002c2f]
-   Updated dependencies [b9f7d32]
-   Updated dependencies [eaa6bfa]
-   Updated dependencies [bd9dc18]
-   Updated dependencies [5db2767]
-   Updated dependencies [414ff92]
-   Updated dependencies [e884d85]
-   Updated dependencies [e5a210a]
    -   @hyperdx/common-utils@0.2.0-beta.2


Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
2025-04-02 02:33:29 +00:00

145 lines
4.1 KiB
Makefile

LATEST_VERSION := $$(sed -n 's/.*"version": "\([^"]*\)".*/\1/p' package.json)
BUILD_PLATFORMS = linux/arm64,linux/amd64
include .env
.PHONY: all
all: install-tools
.PHONY: install-tools
install-tools:
yarn install
@echo "All tools installed"
.PHONY: dev-build
dev-build:
docker compose -f docker-compose.dev.yml build
.PHONY: dev-up
dev-up:
npm run dev
.PHONY: dev-down
dev-down:
docker compose -f docker-compose.dev.yml down
.PHONY: dev-lint
dev-lint:
npx nx run-many -t lint:fix
.PHONY: ci-build
ci-build:
npx nx run-many -t ci:build
.PHONY: ci-lint
ci-lint:
npx nx run-many -t ci:lint
.PHONY: dev-int-build
dev-int-build:
docker compose -p int -f ./docker-compose.ci.yml build
.PHONY: dev-int
dev-int:
docker compose -p int -f ./docker-compose.ci.yml up -d
npx nx run @hyperdx/api:dev:int $(FILE)
docker compose -p int -f ./docker-compose.ci.yml down
.PHONY: ci-int
ci-int:
docker compose -p int -f ./docker-compose.ci.yml up -d
npx nx run @hyperdx/api:ci:int
docker compose -p int -f ./docker-compose.ci.yml down
.PHONY: dev-unit
dev-unit:
npx nx run-many -t dev:unit
.PHONY: ci-unit
ci-unit:
npx nx run-many -t ci:unit
# TODO: check db connections before running the migration CLIs
.PHONY: dev-migrate-db
dev-migrate-db:
@echo "Migrating Mongo db...\n"
npx nx run @hyperdx/api:dev:migrate-db
@echo "Migrating ClickHouse db...\n"
npx nx run @hyperdx/api:dev:migrate-ch
.PHONY: version
version:
sh ./version.sh
.PHONY: release-local
release-local:
docker buildx build --squash . -f ./docker/local/Dockerfile \
--build-context clickhouse=./docker/clickhouse \
--build-context otel-collector=./docker/otel-collector \
--build-context local=./docker/local \
--build-context api=./packages/api \
--build-context app=./packages/app \
--platform ${BUILD_PLATFORMS} \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION} \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_VERSION} \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-local-ui
release-local-ui:
docker buildx build . -f ./packages/app/Dockerfile \
--build-arg IS_LOCAL_MODE=true \
--build-arg PORT=${HYPERDX_APP_PORT} \
--target prod \
--platform ${BUILD_PLATFORMS} \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG}-ui \
-t ${LOCAL_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}-ui \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG}-ui \
-t ${LOCAL_IMAGE_NAME}:${IMAGE_VERSION}-ui \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-otel-collector
release-otel-collector:
docker buildx build --platform ${BUILD_PLATFORMS} ./docker/otel-collector \
-t ${OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${OTEL_COLLECTOR_IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION} \
-t ${OTEL_COLLECTOR_IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${OTEL_COLLECTOR_IMAGE_NAME}:${IMAGE_VERSION} \
--target prod \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-app
release-app:
docker buildx build --squash . -f ./docker/fullstack/Dockerfile \
--build-context fullstack=./docker/fullstack \
--build-context api=./packages/api \
--build-context app=./packages/app \
--platform ${BUILD_PLATFORMS} \
-t ${IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${IMAGE_NAME_DOCKERHUB}:${IMAGE_VERSION} \
-t ${IMAGE_NAME}:${IMAGE_VERSION}${IMAGE_VERSION_SUB_TAG} \
-t ${IMAGE_NAME}:${IMAGE_VERSION} \
--target prod \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max
.PHONY: release-extended-app
release-extended-app:
docker buildx build --squash . -f ./docker/fullstack/Dockerfile \
--build-context fullstack=./docker/fullstack \
--build-context api=./packages/api \
--build-context app=./packages/app \
--platform ${BUILD_PLATFORMS} \
-t ${IMAGE_NAME_DOCKERHUB}:latest
--target prod-extended \
--push \
--cache-from=type=gha \
--cache-to=type=gha,mode=max