cd workspaces/roadie-backstage-plugins
yarn install; yarn tsc:full && yarn build:all
...
Found 122 errors in 42 files.
cd workspaces/roadie-backstage-plugins
yarn install; yarn tsc:full && yarn build:all
...
Found 122 errors in 42 files.
| git fetch -a; \ | |
| for branch in $(git branch -a -r | grep -v rhdh-1 | sed -r -e "s|.+origin/||"); do \ | |
| echo $branch; git push origin :${branch}; git branch -D ${branch}; \ | |
| done; \ | |
| for branch in $(git branch -a -r | grep -E -v "origin/rhdh-1.*-rhel-9" | grep rhdh-1 | sed -r -e "s|.+origin/||"); do \ | |
| echo $branch; git push origin :${branch}; git branch -D ${branch}; \ | |
| done |
| Step 1: create a copy of ``dynamic-plugins.default.yaml` called `default.packages.yaml` | |
| This file will remove all the pluginConfig content and keep only the `plugins[].package` content. Those plugins should then be moved into two arrays, | |
| `packages.enabled[]` and `packages.disabled[], under which we will list the `package` values. | |
| Step 2: using the list of packages, sorted into enabled and disabled groups in the new `default.packages.yaml` file, we now need to convert those package path values to actual package references. | |
| For each `package` that refers to a path under `./dynamic-plugins/dist/`, | |
| compute the associated package name from the related path under `dynamic-plugins/wrappers/` to get |
| #!/bin/bash | |
| unpack () { | |
| local IMAGE="$1" | |
| DIR="/tmp/${IMAGE//:/_}"; rm -fr "$DIR"; mkdir -p "$DIR"; container_id=$(podman create "quay.io/rhdh/${IMAGE}") | |
| podman export $container_id -o /tmp/image.tar && tar xf /tmp/image.tar -C "${DIR}/"; podman rm $container_id; rm -f /tmp/image.tar | |
| echo "Unpacked $IMAGE into $DIR" | |
| cd $DIR; tree -d -L 3 -I "usr|root|buildinfo" | |
| } |
| $➔ ./build/scripts/kfuxRelease.sh --fbc :1.7.1 -v 1.7.1 --debug --stage | |
| Inspecting registry.redhat.io/rhdh/rhdh-operator-bundle:1.7.1 ... | |
| real 0m2.107s | |
| user 0m0.052s | |
| sys 0m0.057s | |
| Found snapshot(s): | |
| finish timestamp snapshot pipelinerun midstreamCommitSHA |
| plugins/catalog-backend-module-github/src/analyzers/GithubLocationAnalyzer.ts:25:25 - error TS7016: Could not find a declaration file for module 'git-url-parse'. '/home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog_17/workspaces/backstage/node_modules/git-url-parse/lib/index.js' implicitly has an 'any' type. | |
| Try `npm i --save-dev @types/git-url-parse` if it exists or add a new declaration (.d.ts) file containing `declare module 'git-url-parse';` | |
| 25 import parseGitUrl from 'git-url-parse'; | |
| ~~~~~~~~~~~~~~~ | |
| plugins/kubernetes-backend/src/auth/ServiceAccountStrategy.ts:24:16 - error TS7016: Could not find a declaration file for module 'fs-extra'. '/home/nboldt/RHDH/DH/4/4-rhdh-plugin-catalog_17/workspaces/backstage/node_modules/fs-extra/lib/index.js' implicitly has an 'any' type. | |
| Try `npm i --save-dev @types/fs-extra` if it exists or add a new declaration (.d.ts) file containing `declare module 'fs-extra';` | |
| 24 import fs from 'fs-extra'; |
| #!/bin/bash | |
| SCRIPT_DIR=$(cd "$(dirname "$0")" || exit; pwd) | |
| ROOT_DIR=$(cd "$SCRIPT_DIR"/../../ || exit; pwd) | |
| SHOW_FOUND=0 | |
| norm="\033[0;39m" | |
| green="\033[1;32m" | |
| blue="\033[1;34m" | |
| red="\033[1;31m" |
because js apps like to obfuscate things in .js files this will extract the info into useable json:
TAG=1.5-182
TAG=1.6-76
TAG=1.7-6
podman run -it --rm --entrypoint /bin/bash --user root -v .:/host-mount quay.io/rhdh/rhdh-hub-rhel9:$TAG -c \
'grep -H -R "RHDH Metadata" /opt/app-root/src/packages/app/dist/static/ | tr "," "\n" | grep Upstream -A2 -B2 | \
| # for a given merge_request, delete its comments (notes): | |
| # this will make reading the information in a MR much easier | |
| # as you won't have dozens of Kfux comments to scroll past and ignore | |
| GL_API_TOKEN="your token here" | |
| PROJECT="rhidp%2Frhdh" # or "rhidp%2Frhdh-plugin-catalog" | |
| MR=197 | |
| for page in 1 2 3 4; do | |
| for id in $(curl --request GET --header "PRIVATE-TOKEN: $GL_API_TOKEN" \ | |
| --url "https://gitlab.cee.redhat.com/api/v4/projects/${PROJECT}/merge_requests/${MR}/notes?sort=desc&page=$page" \ |
| podman run -it --rm --entrypoint /bin/bash --user root registry.access.redhat.com/ubi9/nodejs-20:9.5 | |
| # then | |
| dnf install -q -y --allowerasing --nobest \ | |
| acl alternatives attr audit-libs basesystem bash binutils binutils-gold brotli brotli-devel bsdtar bzip2-libs ca-certificates cmake containers-common coreutils-single cpp cracklib cracklib-dicts criu criu-libs crun crypto-policies crypto-policies-scripts curl-minimal cyrus-sasl-lib dbus dbus-broker dbus-common dbus-libs dejavu-sans-fonts dmidecode dnf dnf-data elfutils-debuginfod-client elfutils-default-yama-scope elfutils-libelf elfutils-libs emacs-filesystem environment-modules expat file-libs filesystem findutils fonts-filesystem fuse-common fuse-overlayfs fuse3 fuse3-libs gawk gcc gcc-c++ gdb-gdbserver gdbm-libs gettext gettext-libs git git-core git-core-doc glib2 glibc glibc-common glibc-devel glibc-headers glibc-langpack-en glibc-locale-source glibc-minimal-langpack gmp gnupg2 gnutls gobject-introspection gpgme grep groff-base gzip ima-evm-ut |