Skip to content

Commit

Permalink
Merge branch 'main' into 584-update-webpack
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Romero <rmerqg@amazon.com>
  • Loading branch information
joshuarrrr committed Sep 13, 2023
2 parents ed5773e + 2cfa77d commit 22fb706
Show file tree
Hide file tree
Showing 102 changed files with 2,254 additions and 373 deletions.
249 changes: 247 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ on:
paths-ignore:
- '**/*.md'

env:
CI: 1
GCS_UPLOAD_PREFIX: fake
NODE_OPTIONS: "--max-old-space-size=6144 --dns-result-order=ipv4first"

jobs:
build-lint-test:
lint-test:
name: Lint and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Build and Verify
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
Expand All @@ -39,3 +44,243 @@ jobs:

- name: Run unit tests
run: yarn test-unit

build:
name: Build on ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10
yarn install --frozen-lockfile
- name: Build
run: yarn build

- name: Package artifacts
run: yarn pack --filename oui.tgz

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: oui.tgz

build-docs:
name: Build Docs on ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10
yarn install --frozen-lockfile
- name: Build Docs
run: yarn build-docs

- name: Upload doc artifacts
uses: actions/upload-artifact@v3
with:
name: docs
path: docs/

osd-unit:
name: OSD Jest test (ciGroup${{ matrix.group }})
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
group: [1, 2, 3, 4]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: opensearch-project/OpenSearch-Dashboards

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10
- name: Download build
id: download
uses: actions/download-artifact@v3
with:
name: build

- name: Get Escaped Download Path
run: |
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/oui.tgz"
OUI_PATH=$(echo $RAW_OUI_PATH | sed 's/\//\\\//g')
echo "OUI_PATH=$OUI_PATH" >> "$GITHUB_ENV"
- name: Update OUI version in OSD
run: |
find . -type f -name package.json -exec sed -i 's/"@elastic\/eui": ".*"/"@elastic\/eui": "file:${{ env.OUI_PATH }}"/g' {} \;
- name: Bootstrap OSD
run: yarn osd bootstrap

- name: Run Jest Tests
run: yarn test:jest:ci --ci-group=${{ matrix.group }}

osd-integration:
name: OSD Integration test
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: opensearch-project/OpenSearch-Dashboards

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10
- name: Download build
id: download
uses: actions/download-artifact@v3
with:
name: build

- name: Get Escaped Download Path
run: |
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/oui.tgz"
OUI_PATH=$(echo $RAW_OUI_PATH | sed 's/\//\\\//g')
echo "OUI_PATH=$OUI_PATH" >> "$GITHUB_ENV"
- name: Update OUI version in OSD
run: |
find . -type f -name package.json -exec sed -i 's/"@elastic\/eui": ".*"/"@elastic\/eui": "file:${{ env.OUI_PATH }}"/g' {} \;
- name: Bootstrap OSD
run: yarn osd bootstrap

- name: Run Integration Tests
run: yarn test:jest_integration:ci

osd-build:
name: OSD Build on ${{ matrix.name }}
strategy:
matrix:
include:
- os: ubuntu-latest
name: Linux x64
ext: tar.gz
suffix: linux-x64
script: build-platform --linux --skip-os-packages
- os: ubuntu-latest
name: Linux ARM64
ext: tar.gz
suffix: linux-arm64
script: build-platform --linux-arm --skip-os-packages
runs-on: ${{ matrix.os }}
needs: build
defaults:
run:
working-directory: ./artifacts
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: ./artifacts
repository: opensearch-project/OpenSearch-Dashboards

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: './artifacts/.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Configure Yarn Cache (Linux)
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV

- name: Initialize Yarn Cache
uses: actions/cache@v3
with:
path: ${{ env.YARN_CACHE_LOCATION }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-
- name: Setup Yarn
run: |
npm uninstall -g yarn
npm i -g yarn@1.22.10
- name: Download build
id: download
uses: actions/download-artifact@v3
with:
name: build

- name: Get Escaped Download Path
run: |
RAW_OUI_PATH="${{ steps.download.outputs.download-path }}/oui.tgz"
OUI_PATH=$(echo $RAW_OUI_PATH | sed 's/\//\\\//g')
echo "OUI_PATH=$OUI_PATH" >> "$GITHUB_ENV"
- name: Update OUI version in OSD
run: |
find . -type f -name package.json -exec sed -i 's/"@elastic\/eui": ".*"/"@elastic\/eui": "file:${{ env.OUI_PATH }}"/g' {} \;
- name: Get package version
run: |
echo "VERSION=$(yarn --silent pkg-version)" >> $GITHUB_ENV
- name: Get artifact build name
run: |
echo "ARTIFACT_BUILD_NAME=opensearch-dashboards-${{ env.VERSION }}-${{ matrix.suffix }}.${{ matrix.ext }}" >> $GITHUB_ENV
- name: Run bootstrap
run: yarn osd bootstrap

- name: Build `${{ matrix.name }}`
run: yarn ${{ matrix.script }} --release

- uses: actions/upload-artifact@v3
if: success()
with:
name: ${{ matrix.suffix }}-${{ env.VERSION }}
path: ./artifacts/target/${{ env.ARTIFACT_BUILD_NAME }}
retention-days: 7
2 changes: 1 addition & 1 deletion .github/workflows/changelog_verifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:

- uses: dangoslen/changelog-enforcer@v3
with:
skipLabels: "skip-changelog"
skipLabels: "autocut, skip-changelog"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.20.0
18.16.0
57 changes: 54 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,76 @@
### 🛡 Security

### 📈 Features/Enhancements
- Rename the aliased theme files ([#863](https://github.com/opensearch-project/oui/pull/863))

- Update ouiTextSubduedColor in `next` dark theme ([#973](https://github.com/opensearch-project/oui/pull/973))

### 🐛 Bug Fixes

- Add exit code to compile-scss script on failure ([#1024](https://github.com/opensearch-project/oui/pull/1024))

### 🚞 Infrastructure

- Add integration test with OSD workflows ([#1017](https://github.com/opensearch-project/oui/pull/1017))

### 📝 Documentation

- Update default docsite theme to Next Dark ([#1029](https://github.com/opensearch-project/oui/pull/1029))
- Fix next light color guidelines ([#1030](https://github.com/opensearch-project/oui/pull/1030))

### 🛠 Maintenance
- Bump webpack to v5

### 🪛 Refactoring

### 🔩 Tests

## [`1.3.0`](https://github.com/opensearch-project/oui/tree/1.3.0)

### 📈 Features/Enhancements

- Rename the aliased theme files ([#863](https://github.com/opensearch-project/oui/pull/863))
- Fix `autofill` text color in dark themes ([#871](https://github.com/opensearch-project/oui/pull/871))
- [Header] Update background color in next theme ([#936](https://github.com/opensearch-project/oui/pull/936))
- Set link to use semi bold font weight ([#961](https://github.com/opensearch-project/oui/pull/961))
- Adds `SchemaItem` as an experimental component ([#974](https://github.com/opensearch-project/oui/pull/974))
- Make `CollapsibleNav` and `CollapsibleNavGroup` background colors theme-able ([#968](https://github.com/opensearch-project/oui/pull/968), [#1016](https://github.com/opensearch-project/oui/pull/1016))
- Update next light theme primary color to #07827E ([#981](https://github.com/opensearch-project/oui/pull/981))
- Add dismissible prop to OuiCallOut ([#985](https://github.com/opensearch-project/oui/pull/985))
- Adjust $ouiFormInputGroupLabelBackground color in dark `next` theme ([#1005](https://github.com/opensearch-project/oui/pull/1005))
- Adjust background color of OuiToolTip in `next` theme ([#1004](https://github.com/opensearch-project/oui/pull/1004))
- Add new `middle-out` order prop option to `OuiPaletteColorBlind` ([#856](https://github.com/opensearch-project/oui/pull/856))
- Add new icons for OpenSearch Dashboards v2.10.0 ([#1014](https://github.com/opensearch-project/oui/pull/1014))

### 🐛 Bug Fixes

- Fix blurry text in breadcrumbs by avoiding skewing text ([#959](https://github.com/opensearch-project/oui/pull/959))
- Remove `calc` usage from SchemaItem styles ([#990](https://github.com/opensearch-project/oui/pull/990))
- Add support for null types when deriving JSON from Sass variables ([#1019](https://github.com/opensearch-project/oui/pull/1019))
- Fix alignment of left icon for OuiListGroupItem with multiline text ([#1027](https://github.com/opensearch-project/oui/pull/1027))

### 🚞 Infrastructure

- Add release workflows ([#134](https://github.com/opensearch-project/oui/pull/133))
- Change PR template and add changelog workflow ([#642](https://github.com/opensearch-project/oui/pull/642))
- Upgrade the backport workflow ([#862](https://github.com/opensearch-project/oui/pull/862))
- Add build steps to CI workflow ([#665](https://github.com/opensearch-project/oui/pull/665))

### 📝 Documentation

- Replace Avatar in favor of Icon in OuiFacetButtons example ([#987](https://github.com/opensearch-project/oui/pull/987))
- Add dark prop toggles ([#910](https://github.com/opensearch-project/oui/pull/910))
- Remove language from the form validation documentation that doesn't align with the updated guidelines ([#986](https://github.com/opensearch-project/oui/pull/986))

### 🛠 Maintenance
- Bump webpack to v5

- [CVE-2023-26136] Add resolution for tough-cookie to ^4.1.3 ([#889](https://github.com/opensearch-project/oui/pull/889))
- [CVE-2023-26115] Bump word-wrap from 1.2.3 to 1.2.4 ([#891](https://github.com/opensearch-project/oui/pull/891))
- Bump Node version to 18.16.0 ([#900](https://github.com/opensearch-project/oui/pull/900))
- Bump `node-sass` to a patched version based on `libsass@3.6.5` ([#977](https://github.com/opensearch-project/oui/pull/977)); see [patch commit](https://github.com/AMoo-Miki/node-sass/commit/43c74c0966b05c1e21a1e5e20a0c467ec8e669b4) for details.

### 🪛 Refactoring

### 🔩 Tests
- Clean up focus background implementation ([#962](https://github.com/opensearch-project/oui/pull/962))

## [`1.1.1`](https://github.com/opensearch-project/oui/tree/1.1.1)

Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
"enzyme/cheerio/cheerio-select-tmp/css-select/css-what": "^6.1.0",
"enzyme/cheerio/cheerio-select-tmp/css-what": "^6.1.0",
"jest-cli/**/ansi-regex": "^5.0.1",
"jest-cli/**/tough-cookie": "^4.1.3",
"jest/**/node-notifier": "^10.0.1",
"jest/**/tough-cookie": "^4.1.3",
"react-view/**/ansi-regex": "^5.0.1",
"react-view/**/minimist": "^1.2.6",
"react-view/@miksu/prettier/minimatch": "^3.0.8",
Expand Down Expand Up @@ -187,7 +189,7 @@
"moment": "^2.29.4",
"moment-timezone": "^0.5.41",
"node-polyfill-webpack-plugin": "^2.0.1",
"node-sass": "^8.0.0",
"node-sass": "npm:@amoo-miki/node-sass@9.0.0-libsass-3.6.5",
"pegjs": "^0.10.0",
"postcss": "^8.4.23",
"postcss-cli": "^10.1.0",
Expand All @@ -212,13 +214,14 @@
"sass-extract": "^2.1.0",
"sass-lint": "^1.13.1",
"sass-lint-auto-fix": "^0.21.2",
"sass-loader": "^13.2.2",
"sass-loader": "npm:@bsfishy/sass-loader@node-sass-9",
"sass-vars-to-js-loader": "^2.1.1",
"shelljs": "^0.8.5",
"start-server-and-test": "^2.0.0",
"style-loader": "^3.3.2",
"terser-webpack-plugin": "^5.3.9",
"typescript": "4.1.6",
"url-loader": "^4.1.0",
"webpack": "^5.83.1",
"webpack-cli": "^5.1.1",
"webpack-dev-server": "^4.15.0",
Expand Down

0 comments on commit 22fb706

Please sign in to comment.