forked from opendatahub-io/model-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request opendatahub-io#85 from tarilabs/tarilabs-20240701-…
…sync periodic sync upstream KF to midstream ODH
- Loading branch information
Showing
44 changed files
with
20,971 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: UI - Frontend - Test and Build | ||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
paths-ignore: | ||
- 'LICENSE*' | ||
- 'DOCKERFILE*' | ||
- '**.gitignore' | ||
jobs: | ||
test-and-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
working-directory: clients/ui/frontend | ||
run: npm install | ||
|
||
- name: Run tests | ||
working-directory: clients/ui/frontend | ||
run: npm run test:coverage | ||
|
||
- name: Clean | ||
working-directory: clients/ui/frontend | ||
run: npm run clean | ||
|
||
- name: Build | ||
working-directory: clients/ui/frontend | ||
run: npm run build | ||
|
||
- name: Check if there are uncommitted file changes | ||
working-directory: clients/ui/frontend | ||
run: | | ||
clean=$(git status --porcelain) | ||
if [[ -z "$clean" ]]; then | ||
echo "Empty git status --porcelain: $clean" | ||
else | ||
echo "Uncommitted file changes detected: $clean" | ||
git diff | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,6 @@ include/ | |
readme.txt | ||
|
||
# do not send certs | ||
certs/ | ||
certs/ | ||
#OSX files | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Read the Docs configuration file for Sphinx projects | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the OS, Python version and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.9" | ||
# You can also specify other tool versions: | ||
# nodejs: "20" | ||
# rust: "1.70" | ||
# golang: "1.20" | ||
jobs: | ||
post_create_environment: | ||
# Install poetry | ||
# https://python-poetry.org/docs/#installing-manually | ||
- python -m pip install poetry | ||
post_install: | ||
# Install dependencies with 'docs' dependency group | ||
# https://python-poetry.org/docs/managing-dependencies/#dependency-groups | ||
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry -C clients/python install --with docs | ||
|
||
# Build documentation in the "docs/" directory with Sphinx | ||
sphinx: | ||
configuration: clients/python/docs/conf.py | ||
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs | ||
# builder: "dirhtml" | ||
# Fail on all warnings to avoid broken references | ||
# fail_on_warning: true | ||
# Optionally build your docs in additional formats such as PDF and ePub | ||
# formats: | ||
# - epub | ||
|
||
# Optional but recommended, declare the Python requirements required | ||
# to build your documentation | ||
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
# python: | ||
# install: | ||
# - requirements: clients/python/docs/requirements.txt | ||
# - method: pip | ||
# path: clients/python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
**/node_modules | ||
dist | ||
yarn-error.log | ||
yarn.lock | ||
stats.json | ||
coverage | ||
.idea | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Kubeflow Model Registry UI | ||
|
||
The Kubeflow Model Registry UI is a standalone web app for Kubeflow Model Registry. | ||
|
||
## Pre-requisites: | ||
|
||
TBD | ||
|
||
## Development | ||
|
||
```sh | ||
# Install development/build dependencies | ||
npm install | ||
|
||
# Start the development server | ||
npm run start:dev | ||
|
||
# Run a production build (outputs to "dist" dir) | ||
npm run build | ||
|
||
# Run the test suite | ||
npm run test | ||
|
||
# Run the test suite with coverage | ||
npm run test:coverage | ||
|
||
# Run the linter | ||
npm run lint | ||
|
||
# Run the code formatter | ||
npm run format | ||
|
||
# Launch a tool to inspect the bundle size | ||
npm run bundle-profile:analyze | ||
|
||
# Start the express server (run a production build first) | ||
npm run start | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// For a detailed explanation regarding each configuration property, visit: | ||
// https://jestjs.io/docs/en/configuration.html | ||
|
||
module.exports = { | ||
// Automatically clear mock calls and instances between every test | ||
clearMocks: true, | ||
|
||
// Indicates whether the coverage information should be collected while executing the test | ||
collectCoverage: false, | ||
|
||
// The directory where Jest should output its coverage files | ||
coverageDirectory: 'coverage', | ||
|
||
// An array of directory names to be searched recursively up from the requiring module's location | ||
moduleDirectories: [ | ||
'node_modules', | ||
'<rootDir>/src' | ||
], | ||
|
||
// A map from regular expressions to module names that allow to stub out resources with a single module | ||
moduleNameMapper: { | ||
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js', | ||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js', | ||
'@app/(.*)': '<rootDir>/src/app/$1' | ||
}, | ||
|
||
// A preset that is used as a base for Jest's configuration | ||
preset: 'ts-jest/presets/js-with-ts', | ||
|
||
// The test environment that will be used for testing. | ||
testEnvironment: 'jsdom' | ||
}; |
Oops, something went wrong.