Skip to content

Commit

Permalink
Fix file extension in data mate and minio in scripts (#3737)
Browse files Browse the repository at this point in the history
This PR makes the following changes:

- Reverts a fix that allowed the default minio version
`RELEASE.2022-06-11T19-55-32Z` to work
- This was related to an issue with minio that was later fixed in
`RELEASE.2022-09-22T18-57-27Z`
  - minio/minio#15733
  - #3708
- Updates default minio to `RELEASE.2022-09-22T18-57-27Z`
- Fixes file extension in `data-mate`
- Bumps the following packages:
  - **@terascope/scripts** from `v1.0.1` to `v1.0.2`
  - **@terascope/data-mate** from `v1.0.3` to `v1.0.4`
  - **elasticsearch-store** from `v1.0.3` to `v1.0.4` 
  - **terafoundation** from `v1.2.3` to `v1.2.4`
  - **ts-transforms** from `v1.0.3` to `v1.0.4`
  • Loading branch information
sotojn authored Aug 30, 2024
1 parent ff0485d commit 00ec945
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 26 deletions.
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"devDependencies": {
"@terascope/types": "^1.0.0",
"bunyan": "^1.8.15",
"elasticsearch-store": "^1.0.3",
"elasticsearch-store": "^1.0.4",
"fs-extra": "^11.2.0",
"ms": "^2.1.3",
"nanoid": "^3.3.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/data-mate/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@terascope/data-mate",
"displayName": "Data-Mate",
"version": "1.0.3",
"version": "1.0.4",
"description": "Library of data validations/transformations",
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/data-mate#readme",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/data-mate/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const RecordTransform = {
RecordTransform.repository.transformRecord = transformRecordConfig;
RecordTransform.transformRecord = transformRecord;

declare module './aggregation-frame/AggregationFrame' {
declare module './aggregation-frame/AggregationFrame.d.ts' {
interface AggregationFrame<T extends Record<string, any>> {
/**
* Run aggregations and flatten the grouped data into a DataFrame
Expand Down
2 changes: 1 addition & 1 deletion packages/elasticsearch-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@opensearch-project/opensearch": "^1.2.0",
"@types/elasticsearch": "^5.0.43",
"elasticsearch": "^15.4.1",
"elasticsearch-store": "^1.0.3",
"elasticsearch-store": "^1.0.4",
"elasticsearch6": "npm:@elastic/elasticsearch@^6.7.0",
"elasticsearch7": "npm:@elastic/elasticsearch@^7.0.0",
"elasticsearch8": "npm:@elastic/elasticsearch@^8.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/elasticsearch-store/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "elasticsearch-store",
"displayName": "Elasticsearch Store",
"version": "1.0.3",
"version": "1.0.4",
"description": "An API for managing an elasticsearch index, with versioning and migration support.",
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/elasticsearch-store#readme",
"bugs": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"test:watch": "ts-scripts test --watch . --"
},
"dependencies": {
"@terascope/data-mate": "^1.0.3",
"@terascope/data-mate": "^1.0.4",
"@terascope/data-types": "^1.0.0",
"@terascope/types": "^1.0.0",
"@terascope/utils": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@terascope/scripts",
"displayName": "Scripts",
"version": "1.0.1",
"version": "1.0.2",
"description": "A collection of terascope monorepo scripts",
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/scripts#readme",
"bugs": {
Expand Down
6 changes: 1 addition & 5 deletions packages/scripts/src/helpers/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import ipPkg from 'ip';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import {
toBoolean, toSafeString, isCI, toIntegerOrThrow
} from '@terascope/utils';
Expand Down Expand Up @@ -71,11 +68,10 @@ export const MINIO_HOSTNAME = process.env.MINIO_HOSTNAME || HOST_IP;
export const MINIO_PORT = process.env.MINIO_PORT || '49000';
export const ENCRYPT_MINIO = toBoolean(process.env.ENCRYPT_MINIO ?? false);
export const MINIO_HOST = `http${ENCRYPT_MINIO ? 's' : ''}://${MINIO_HOSTNAME}:${MINIO_PORT}`;
export const MINIO_VERSION = process.env.MINIO_VERSION || 'RELEASE.2022-06-11T19-55-32Z';
export const MINIO_VERSION = process.env.MINIO_VERSION || 'RELEASE.2022-09-22T18-57-27Z';
export const MINIO_DOCKER_IMAGE = process.env.MINIO_DOCKER_IMAGE || 'minio/minio';
export const MINIO_ACCESS_KEY = process.env.MINIO_ACCESS_KEY || 'minioadmin';
export const MINIO_SECRET_KEY = process.env.MINIO_SECRET_KEY || 'minioadmin';
export const MINIO_VOLUME = fs.mkdtempSync(path.join(os.tmpdir(), 'ts-minio'));

export const RABBITMQ_VERSION = process.env.RABBITMQ_VERSION || '3.8.16-management-alpine';
export const RABBITMQ_DOCKER_IMAGE = process.env.RABBITMQ_DOCKER_IMAGE || 'rabbitmq';
Expand Down
14 changes: 5 additions & 9 deletions packages/scripts/src/helpers/test-runner/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,13 @@ const services: Readonly<Record<Service, Readonly<DockerRunOptions>>> = {
[Service.Minio]: {
image: config.MINIO_DOCKER_IMAGE,
name: `${config.TEST_NAMESPACE}_${config.MINIO_NAME}`,
/// We will be able to go back and use this on a later version of minio
/// Minio issue ref: https://github.com/minio/minio/issues/15733
// tmpfs: config.SERVICES_USE_TMPFS
// ? ['/data']
// : undefined,
tmpfs: config.SERVICES_USE_TMPFS
? ['/data']
: undefined,
ports: [`${config.MINIO_PORT}:${config.MINIO_PORT}`],
mount: config.ENCRYPT_MINIO
? [`type=bind,source=${path.join(getRootDir(), '/e2e/test/certs')},target=/opt/certs`,
`type=bind,source=${config.MINIO_VOLUME},target=/data`
]
: [`type=bind,source=${config.MINIO_VOLUME},target=/data`],
? [`type=bind,source=${path.join(getRootDir(), '/e2e/test/certs')},target=/opt/certs`]
: [],
env: {
MINIO_ACCESS_KEY: config.MINIO_ACCESS_KEY,
MINIO_SECRET_KEY: config.MINIO_SECRET_KEY,
Expand Down
4 changes: 2 additions & 2 deletions packages/terafoundation/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "terafoundation",
"displayName": "Terafoundation",
"version": "1.2.3",
"version": "1.2.4",
"description": "A Clustering and Foundation tool for Terascope Tools",
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/terafoundation#readme",
"bugs": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"convict-format-with-moment": "^6.2.0",
"convict-format-with-validator": "^6.2.0",
"elasticsearch": "^15.4.1",
"elasticsearch-store": "^1.0.3",
"elasticsearch-store": "^1.0.4",
"express": "^4.19.2",
"js-yaml": "^4.1.0",
"nanoid": "^3.3.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/teraslice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"semver": "^7.6.3",
"socket.io": "^1.7.4",
"socket.io-client": "^1.7.4",
"terafoundation": "^1.2.3",
"terafoundation": "^1.2.4",
"uuid": "^9.0.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/ts-transforms/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-transforms",
"displayName": "TS Transforms",
"version": "1.0.3",
"version": "1.0.4",
"description": "An ETL framework built upon xlucene-evaluator",
"homepage": "https://github.com/terascope/teraslice/tree/master/packages/ts-transforms#readme",
"bugs": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"test:watch": "ts-scripts test --watch . --"
},
"dependencies": {
"@terascope/data-mate": "^1.0.3",
"@terascope/data-mate": "^1.0.4",
"@terascope/types": "^1.0.0",
"@terascope/utils": "^1.0.0",
"awesome-phonenumber": "^2.70.0",
Expand Down

0 comments on commit 00ec945

Please sign in to comment.