Skip to content

Commit

Permalink
chore: test the current code, not the already published SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Zorkaltsev committed Jun 6, 2024
1 parent 72011ec commit eb0977c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions slo-workload/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
FROM node:19.3.0
FROM node:current

# build actual SDK
WORKDIR /workload
COPY package* ./
COPY ./package* ./
RUN npm install
COPY . .
COPY ./ .
RUN NODE_ENV=production npm run build

ENTRYPOINT ["npm", "run", "start", "--"]
# build slo-workload
# SLO test is built after SDK because it depends on it
WORKDIR /workload/slo-workload
RUN npm install
RUN NODE_ENV=production npm run build

# run slo-workload
ENTRYPOINT ["npm", "run", "start", "--"]
2 changes: 1 addition & 1 deletion slo-workload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"commander": "^9.4.1",
"nanotimer": "^0.3.15",
"prom-client": "^14.1.0",
"ydb-sdk": "^5.2.0"
"ydb-sdk": "file:.."
}
}
2 changes: 1 addition & 1 deletion slo-workload/src/utils/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Driver, Session } from 'ydb-sdk'
import { packages } from '../../package-lock.json'
import { QueryBuilder } from './QueryBuilder'

const sdkVersion = packages['node_modules/ydb-sdk'].version
const sdkVersion = require('../../../package.json').version

const percentiles = [0.5, 0.9, 0.95, 0.99, 0.999]

Expand Down

0 comments on commit eb0977c

Please sign in to comment.