Skip to content

Commit

Permalink
feat: DevWorkspace generator
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha committed Jun 12, 2024
0 parents commit dc1560d
Show file tree
Hide file tree
Showing 83 changed files with 21,532 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .deps/EXCLUDED/dev.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This file contains a manual contribution to .deps/dev.md and it's needed because eclipse/dash-licenses does not deal with work-with CQs (more see https://github.com/eclipse/dash-licenses/issues/13)

| Packages | Resolved CQs |
| --- | --- |
| `eslint-visitor-keys@3.0.0` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/eslint-visitor-keys/3.0.0) |
| `fs-monkey@1.0.3` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fs-monkey/1.0.3) |
| `fsevents@2.3.2` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/fsevents/2.3.2) |
5 changes: 5 additions & 0 deletions .deps/EXCLUDED/prod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This file lists dependencies that do not need CQs or auto-detection does not work due to a bug in https://github.com/eclipse/dash-licenses

| Packages | Resolved CQs |
| --- | --- |
| `@devfile/api@2.2.1-alpha-1667236163` | N/A |
335 changes: 335 additions & 0 deletions .deps/dev.md

Large diffs are not rendered by default.

121 changes: 121 additions & 0 deletions .deps/prod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# Production dependencies

| Packages | License | Resolved CQs |
| --- | --- | --- |
| [`@devfile/api@2.2.1-alpha-1667236163`](https://github.com/devfile/api.git) | Apache-2.0 | N/A |
| [`@types/bluebird@3.5.21`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/caseless@0.12.2`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/node@16.11.1`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/request@2.48.7`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`@types/tough-cookie@4.0.1`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | clearlydefined |
| [`ajv@6.12.6`](https://github.com/ajv-validator/ajv.git) | MIT | #979 |
| [`ansi-regex@2.1.1`](https://github.com/chalk/ansi-regex.git) | MIT | #5896 |
| [`ansi-styles@2.2.1`](https://github.com/chalk/ansi-styles.git) | MIT | clearlydefined |
| [`argparse@2.0.1`](https://github.com/nodeca/argparse.git) | Python-2.0 | [CQ22954](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=22954) |
| [`asn1@0.2.4`](git://github.com/joyent/node-asn1.git) | MIT | clearlydefined |
| [`assert-plus@1.0.0`](https://github.com/mcavage/node-assert-plus.git) | MIT | clearlydefined |
| [`asynckit@0.4.0`](git+https://github.com/alexindigo/asynckit.git) | MIT | clearlydefined |
| [`aws-sign2@0.7.0`](https://github.com/mikeal/aws-sign) | Apache-2.0 | clearlydefined |
| [`aws4@1.11.0`](https://github.com/mhart/aws4.git) | MIT | clearlydefined |
| [`axios@0.21.2`](https://github.com/axios/axios.git) | MIT | [CQ23019](https://dev.eclipse.org/ipzilla/show_bug.cgi?id=23019) |
| [`babel-code-frame@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-code-frame) | MIT | clearlydefined |
| [`babel-core@6.26.3`](https://github.com/babel/babel/tree/master/packages/babel-core) | MIT | clearlydefined |
| [`babel-generator@6.26.1`](https://github.com/babel/babel/tree/master/packages/babel-generator) | MIT | clearlydefined |
| [`babel-helpers@6.24.1`](https://github.com/babel/babel/tree/master/packages/babel-helpers) | MIT | clearlydefined |
| [`babel-messages@6.23.0`](https://github.com/babel/babel/tree/master/packages/babel-messages) | MIT | clearlydefined |
| [`babel-plugin-transform-es2015-block-scoping@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-block-scoping) | MIT | clearlydefined |
| [`babel-register@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-register) | MIT | clearlydefined |
| [`babel-runtime@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-runtime) | MIT | #943 |
| [`babel-template@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-template) | MIT | clearlydefined |
| [`babel-traverse@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-traverse) | MIT | clearlydefined |
| [`babel-types@6.26.0`](https://github.com/babel/babel/tree/master/packages/babel-types) | MIT | clearlydefined |
| [`babylon@6.18.0`](https://github.com/babel/babylon) | MIT | #1052 |
| [`balanced-match@1.0.2`](git://github.com/juliangruber/balanced-match.git) | MIT | clearlydefined |
| [`bcrypt-pbkdf@1.0.2`](git://github.com/joyent/node-bcrypt-pbkdf.git) | BSD-3-Clause | #2725 |
| [`bluebird@3.7.2`](git://github.com/petkaantonov/bluebird.git) | MIT | clearlydefined |
| [`brace-expansion@1.1.11`](git://github.com/juliangruber/brace-expansion.git) | MIT | clearlydefined |
| [`caseless@0.12.0`](https://github.com/mikeal/caseless) | Apache-2.0 | clearlydefined |
| [`chalk@1.1.3`](https://github.com/chalk/chalk.git) | MIT | clearlydefined |
| [`combined-stream@1.0.8`](git://github.com/felixge/node-combined-stream.git) | MIT | clearlydefined |
| [`concat-map@0.0.1`](git://github.com/substack/node-concat-map.git) | MIT | clearlydefined |
| [`convert-source-map@1.8.0`](git://github.com/thlorenz/convert-source-map.git) | MIT | clearlydefined |
| [`core-js@2.6.12`](https://github.com/zloirock/core-js.git) | MIT | #2912 |
| [`core-util-is@1.0.2`](git://github.com/isaacs/core-util-is) | MIT | #5898 |
| [`dashdash@1.14.1`](git://github.com/trentm/node-dashdash.git) | MIT | clearlydefined |
| [`debug@2.6.9`](git://github.com/visionmedia/debug.git) | MIT | clearlydefined |
| [`delayed-stream@1.0.0`](git://github.com/felixge/node-delayed-stream.git) | MIT | clearlydefined |
| [`detect-indent@4.0.0`](https://github.com/sindresorhus/detect-indent.git) | MIT | clearlydefined |
| [`ecc-jsbn@0.1.2`](https://github.com/quartzjer/ecc-jsbn.git) | MIT | clearlydefined |
| [`escape-string-regexp@1.0.5`](https://github.com/sindresorhus/escape-string-regexp.git) | MIT | clearlydefined |
| [`esutils@2.0.3`](http://github.com/estools/esutils.git) | BSD-2-Clause | #120 |
| [`extend@3.0.2`](https://github.com/justmoon/node-extend.git) | MIT | clearlydefined |
| [`extsprintf@1.3.0`](git://github.com/davepacheco/node-extsprintf.git) | MIT | #1813 |
| [`fast-deep-equal@3.1.3`](git+https://github.com/epoberezkin/fast-deep-equal.git) | MIT | clearlydefined |
| [`fast-json-stable-stringify@2.1.0`](git://github.com/epoberezkin/fast-json-stable-stringify.git) | MIT | clearlydefined |
| [`follow-redirects@1.15.2`](git@github.com:follow-redirects/follow-redirects.git) | MIT | clearlydefined |
| [`forever-agent@0.6.1`](https://github.com/mikeal/forever-agent) | Apache-2.0 | clearlydefined |
| [`form-data@2.5.1`](git://github.com/form-data/form-data.git) | MIT | clearlydefined |
| [`fs-extra@10.0.0`](https://github.com/jprichardson/node-fs-extra) | MIT | clearlydefined |
| [`getpass@0.1.7`](https://github.com/arekinath/node-getpass.git) | MIT | clearlydefined |
| [`globals@9.18.0`](https://github.com/sindresorhus/globals.git) | MIT | clearlydefined |
| [`graceful-fs@4.2.8`](https://github.com/isaacs/node-graceful-fs) | ISC | clearlydefined |
| [`har-schema@2.0.0`](https://github.com/ahmadnassri/har-schema.git) | ISC | clearlydefined |
| [`har-validator@5.1.5`](https://github.com/ahmadnassri/node-har-validator.git) | MIT | clearlydefined |
| [`has-ansi@2.0.0`](https://github.com/sindresorhus/has-ansi.git) | MIT | clearlydefined |
| [`home-or-tmp@2.0.0`](https://github.com/sindresorhus/home-or-tmp.git) | MIT | clearlydefined |
| [`http-signature@1.2.0`](git://github.com/joyent/node-http-signature.git) | MIT | #2732 |
| [`invariant@2.2.4`](https://github.com/zertosh/invariant) | MIT | #1034 |
| [`inversify@5.1.1`](https://github.com/inversify/InversifyJS.git) | MIT | clearlydefined |
| [`is-finite@1.1.0`](https://github.com/sindresorhus/is-finite.git) | MIT | clearlydefined |
| [`is-typedarray@1.0.0`](git://github.com/hughsk/is-typedarray.git) | MIT | #2531 |
| [`isstream@0.1.2`](https://github.com/rvagg/isstream.git) | MIT | clearlydefined |
| [`js-tokens@3.0.2`](https://github.com/lydell/js-tokens.git) | MIT | #2181 |
| [`js-yaml@4.1.0`](https://github.com/nodeca/js-yaml.git) | MIT | clearlydefined |
| [`jsbn@0.1.1`](https://github.com/andyperlitch/jsbn.git) | MIT | clearlydefined |
| [`jsesc@1.3.0`](https://github.com/mathiasbynens/jsesc.git) | MIT | clearlydefined |
| [`json-schema-traverse@0.4.1`](git+https://github.com/epoberezkin/json-schema-traverse.git) | MIT | clearlydefined |
| [`json-schema@0.2.3`](http://github.com/kriszyp/json-schema) | BSD* | #1046 |
| [`json-stringify-safe@5.0.1`](git://github.com/isaacs/json-stringify-safe) | ISC | clearlydefined |
| [`json5@0.5.1`](https://github.com/aseemk/json5.git) | MIT | #1040 |
| [`jsonc-parser@3.0.0`](https://github.com/microsoft/node-jsonc-parser) | MIT | clearlydefined |
| [`jsonfile@6.1.0`](git@github.com:jprichardson/node-jsonfile.git) | MIT | clearlydefined |
| [`jsprim@1.4.1`](git://github.com/joyent/node-jsprim.git) | MIT | clearlydefined |
| [`lodash@4.17.21`](https://github.com/lodash/lodash.git) | MIT | #2096 |
| [`loose-envify@1.4.0`](git://github.com/zertosh/loose-envify.git) | MIT | clearlydefined |
| [`mime-db@1.50.0`](https://github.com/jshttp/mime-db.git) | MIT | clearlydefined |
| [`mime-types@2.1.33`](https://github.com/jshttp/mime-types.git) | MIT | clearlydefined |
| [`minimatch@3.1.2`](git://github.com/isaacs/minimatch.git) | ISC | clearlydefined |
| [`minimist@1.2.7`](git://github.com/minimistjs/minimist.git) | MIT | #5886 |
| [`mkdirp@0.5.5`](https://github.com/substack/node-mkdirp.git) | MIT | clearlydefined |
| [`ms@2.0.0`](https://github.com/zeit/ms.git) | MIT | clearlydefined |
| [`oauth-sign@0.9.0`](https://github.com/mikeal/oauth-sign) | Apache-2.0 | clearlydefined |
| [`os-homedir@1.0.2`](https://github.com/sindresorhus/os-homedir.git) | MIT | clearlydefined |
| [`os-tmpdir@1.0.2`](https://github.com/sindresorhus/os-tmpdir.git) | MIT | clearlydefined |
| [`path-is-absolute@1.0.1`](https://github.com/sindresorhus/path-is-absolute.git) | MIT | clearlydefined |
| [`performance-now@2.1.0`](git://github.com/braveg1rl/performance-now.git) | MIT | clearlydefined |
| [`private@0.1.8`](git://github.com/benjamn/private.git) | MIT | clearlydefined |
| [`psl@1.8.0`](git@github.com:lupomontero/psl.git) | MIT | clearlydefined |
| [`punycode@2.1.1`](https://github.com/bestiejs/punycode.js.git) | MIT | clearlydefined |
| [`qs@6.5.3`](https://github.com/ljharb/qs.git) | BSD-3-Clause | clearlydefined |
| [`reflect-metadata@0.1.13`](https://github.com/rbuckton/reflect-metadata.git) | Apache-2.0 | clearlydefined |
| [`regenerator-runtime@0.11.1`](https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime) | MIT | clearlydefined |
| [`repeating@2.0.1`](https://github.com/sindresorhus/repeating.git) | MIT | clearlydefined |
| [`request@2.88.2`](https://github.com/request/request.git) | Apache-2.0 | #997 |
| [`rewire@3.0.2`](git://github.com/jhnns/rewire.git) | MIT | clearlydefined |
| [`safe-buffer@5.2.1`](git://github.com/feross/safe-buffer.git) | MIT | clearlydefined |
| [`safer-buffer@2.1.2`](git+https://github.com/ChALkeR/safer-buffer.git) | MIT | clearlydefined |
| [`slash@1.0.0`](https://github.com/sindresorhus/slash.git) | MIT | clearlydefined |
| [`source-map-support@0.4.18`](https://github.com/evanw/node-source-map-support) | MIT | clearlydefined |
| [`source-map@0.5.7`](http://github.com/mozilla/source-map.git) | BSD-3-Clause | #2400 |
| [`sshpk@1.16.1`](git+https://github.com/joyent/node-sshpk.git) | MIT | clearlydefined |
| [`strip-ansi@3.0.1`](https://github.com/chalk/strip-ansi.git) | MIT | clearlydefined |
| [`supports-color@2.0.0`](https://github.com/chalk/supports-color.git) | MIT | clearlydefined |
| [`to-fast-properties@1.0.3`](https://github.com/sindresorhus/to-fast-properties.git) | MIT | clearlydefined |
| [`tough-cookie@2.5.0`](git://github.com/salesforce/tough-cookie.git) | BSD-3-Clause | clearlydefined |
| [`trim-right@1.0.1`](https://github.com/sindresorhus/trim-right.git) | MIT | clearlydefined |
| [`tunnel-agent@0.6.0`](https://github.com/mikeal/tunnel-agent) | Apache-2.0 | clearlydefined |
| [`tweetnacl@0.14.5`](https://github.com/dchest/tweetnacl-js.git) | Unlicense | #1035 |
| [`universalify@2.0.0`](git+https://github.com/RyanZim/universalify.git) | MIT | clearlydefined |
| [`uri-js@4.4.1`](http://github.com/garycourt/uri-js) | BSD-2-Clause | #1086 |
| [`uuid@3.4.0`](https://github.com/uuidjs/uuid.git) | MIT | #2733 |
| [`verror@1.10.0`](git://github.com/davepacheco/node-verror.git) | MIT | clearlydefined |
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Global Owners
* @svor @tolusha @ibuziuk
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

### Description
<!-- A clear and concise description of what the bug is. -->

### How To Reproduce
<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->

### Expected behavior
<!-- A clear and concise description of what you expected to happen. -->

### Additional context
<!-- Add any other context about the problem here. -->
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

### Description
<!-- A clear and concise description of what the problem is. Include proposals for how to approach adding the feature, etc. -->

### Additional context
<!-- Add any other context or screenshots about the feature request here. -->
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Other
about: Anything that isn't a bug or feature
title: ''
labels: ''
assignees: ''

---


9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### What does this PR do?


### What issues does this PR fix or reference?


### Is it tested? How?
<!-- Please provide instructions here how reviewer can test your changes if applicable -->

9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Set update schedule for GitHub Actions

version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 20
56 changes: 56 additions & 0 deletions .github/workflows/devworkspace-generator-publish-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# Copyright (c) 2022-2024
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

name: Release Che DevWorkspace Generator next version

on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-node@v4
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
scope: '@eclipse-che'
- name: Clone source code
uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-
- name: publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
if [[ ${GITHUB_REF##*/} == "7."**".x" ]]; then
echo "[INFO] using ${GITHUB_REF##*/} tag"
DIST_TAG="next-${GITHUB_REF##*/}"
else
echo "[INFO] using "next" tag"
DIST_TAG=next
fi
yarn
yarn compile
SHORT_SHA1=$(git rev-parse --short=7 HEAD)
CURRENT_VERSION=$(jq -r '.version' package.json)
NEW_VERSION="${CURRENT_VERSION}-${SHORT_SHA1}"
echo New version is ${NEW_VERSION}
sed -i -r -e "s/(\"version\": )(\".*\")/\1\"$NEW_VERSION\"/" package.json
npm publish --tag $DIST_TAG
74 changes: 74 additions & 0 deletions .github/workflows/devworkspace-generator-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#
# Copyright (c) 2022-2024
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

name: Release Che DevWorkspace Generator stable version

on:
workflow_dispatch:
inputs:
version:
description: 'release version in format 7.y.z'
required: true
forceRecreateTags:
description: If true, tags will be recreated. Use with caution
required: false
default: 'false'

jobs:
build:
name: Create Che Devfile Registry Release
runs-on: ubuntu-22.04
steps:
-
uses: actions/setup-node@v4
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
scope: '@eclipse-che'
-
name: "Checkout source code"
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Check existing tags
if: github.event.inputs.performRelease == 'true'
run: |
set +e
RECREATE_TAGS=${{ github.event.inputs.forceRecreateTags }}
VERSION=${{ github.event.inputs.version }}
EXISTING_TAG=$(git ls-remote --exit-code origin refs/tags/${VERSION})
if [[ -n ${EXISTING_TAG} ]]; then
if [[ ${RECREATE_TAGS} == "true" ]]; then
echo "[INFO] Removing tag for ${VERSION} version. New tag will be recreated during release."
git push origin :$VERSION
else
echo "[ERROR] Cannot proceed with release - tag ${EXISTING_TAG} already exists."
exit 1
fi
else
echo "[INFO] No existing tags detected for $VERSION"
fi
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('yarn.lock') }}
restore-keys: yarn-
- name: publish DevWorkspace Generator
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
sed -i -r -e "s/(\"version\": )(\".*\")/\1\"${{ github.event.inputs.version }}\"/" package.json
yarn
yarn compile
npm publish --tag latest
35 changes: 35 additions & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Copyright (c) 2022-2024
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#

name: PR Checks

on:
pull_request:
branches:
- main

jobs:
unit-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 18.18.0
- name: Install yarn deps
run: yarn install
- name: Run eslint
run: yarn lint
- name: Run unit tests
run: yarn test
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules/
.eslintcache
coverage
lib
output

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
# not zero-install mode
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
Loading

0 comments on commit dc1560d

Please sign in to comment.