Unable to craco build in Heroku or netlify

I'm using craco with tailwindcss and trying to deploy to heroku and/or netlify and both are failing build. It gives me no problems locally but on deployment, it just will not build.
Netlify error:
2:33:14 PM: Build ready to start
2:33:16 PM: build-image version: 081db65c3e4ce8423fedb40e7689a87de6f84667
2:33:16 PM: build-image tag: v4.3.1
2:33:16 PM: buildbot version: 1523fa12d6de79e532ed0aff71973c5fbb8e58aa
2:33:16 PM: Fetching cached dependencies
2:33:16 PM: Failed to fetch cache, continuing with build
2:33:16 PM: Starting to prepare the repo for build
2:33:16 PM: No cached dependencies found. Cloning fresh repo
2:33:18 PM: Preparing Git Reference refs/heads/main
2:33:19 PM: Parsing package.json dependencies
2:33:19 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'frontend' versus '/' in the Netlify UI
2:33:19 PM: Starting build script
2:33:19 PM: Installing dependencies
2:33:19 PM: Python version set to 2.7
2:33:20 PM: Downloading and installing node v16.10.0...
2:33:20 PM: Downloading https://nodejs.org/dist/v16.10.0/node-v16.10.0-linux-x64.tar.xz...
2:33:21 PM: Computing checksum with sha256sum
2:33:21 PM: Checksums matched!
2:33:24 PM: Now using node v16.10.0 (npm v7.24.0)
2:33:24 PM: Started restoring cached build plugins
2:33:24 PM: Finished restoring cached build plugins
2:33:24 PM: Attempting ruby version 2.7.2, read from environment
2:33:25 PM: Using ruby version 2.7.2
2:33:25 PM: Using PHP version 8.0
2:33:25 PM: Started restoring cached node modules
2:33:25 PM: Finished restoring cached node modules
2:33:26 PM: Installing NPM modules using NPM version 7.24.0
2:33:28 PM: npm WARN old lockfile
2:33:28 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
2:33:28 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
2:33:28 PM: npm WARN old lockfile
2:33:28 PM: npm WARN old lockfile This is a one-time fix-up, please be patient...
2:33:28 PM: npm WARN old lockfile
2:33:41 PM: npm WARN old lockfile Error: Integrity checksum failed when using sha512: wanted sha512-k+f6DL1KxG0d2dEUILxytWpHRBPMagQ8wUdH5bJUzbmv7TPd3yriR+nSOXy2Hcvt79cP3Lgc5J6oPjO4PNyRLg== but got sha512-EireCtpQyyJ4Xz8NYzHafBoy4baCOO96flM0+HgtsFcIQ9KFy/YBK3GEtlnD+rXen0e4xm8t3WiUcKBJmN6yjg==.
2:33:41 PM: npm WARN old lockfile     at /opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:145:39
2:33:41 PM: npm WARN old lockfile     at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:717:9)
2:33:41 PM: npm WARN old lockfile  Could not fetch metadata for<EMAIL_ADDRESS>Error: Integrity checksum failed when using sha512: wanted sha512-k+f6DL1KxG0d2dEUILxytWpHRBPMagQ8wUdH5bJUzbmv7TPd3yriR+nSOXy2Hcvt79cP3Lgc5J6oPjO4PNyRLg== but got sha512-EireCtpQyyJ4Xz8NYzHafBoy4baCOO96flM0+HgtsFcIQ9KFy/YBK3GEtlnD+rXen0e4xm8t3WiUcKBJmN6yjg==.
2:33:41 PM: npm WARN old lockfile     at /opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:145:39
2:33:41 PM: npm WARN old lockfile     at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v16.10.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:717:9) {
2:33:41 PM: npm WARN old lockfile   code: 'EINTEGRITY'
2:33:41 PM: npm WARN old lockfile }
2:33:54 PM: npm WARN deprecated<EMAIL_ADDRESS>flatten is deprecated in favor of utility frameworks such as lodash.
2:33:55 PM: npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
2:33:55 PM: npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
2:33:56 PM: npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2:33:56 PM: npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2:33:58 PM: npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
2:33:58 PM: npm WARN deprecated<EMAIL_ADDRESS>This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
2:33:59 PM: npm WARN deprecated<EMAIL_ADDRESS>some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
2:34:05 PM: npm WARN deprecated<EMAIL_ADDRESS>babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
2:34:07 PM: npm WARN deprecated<EMAIL_ADDRESS>This version has been deprecated and is no longer supported or maintained
2:34:07 PM: npm WARN deprecated<EMAIL_ADDRESS>This version has been deprecated and is no longer supported or maintained
2:34:08 PM: npm WARN deprecated<EMAIL_ADDRESS>Moved to 'npm install @sideway/address'
2:34:09 PM: npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
2:34:09 PM: npm WARN deprecated<EMAIL_ADDRESS>This version has been deprecated and is no longer supported or maintained
2:34:10 PM: npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
2:34:10 PM: npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
2:34:12 PM: npm WARN deprecated<EMAIL_ADDRESS>Switch to 'npm install joi'
2:34:17 PM: npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
2:34:19 PM: added 2038 packages, and audited 2039 packages in 52s
2:34:19 PM: 154 packages are looking for funding
2:34:19 PM:   run `npm fund` for details
2:34:19 PM: 11 moderate severity vulnerabilities
2:34:19 PM: To address all issues (including breaking changes), run:
2:34:19 PM:   npm audit fix --force
2:34:19 PM: Run `npm audit` for details.
2:34:19 PM: NPM modules installed
2:34:19 PM: Started restoring cached go cache
2:34:19 PM: Finished restoring cached go cache
2:34:19 PM: go version go1.16.5 linux/amd64
2:34:19 PM: go version go1.16.5 linux/amd64
2:34:19 PM: Installing missing commands
2:34:19 PM: Verify run directory
2:34:21 PM:
2:34:21 PM: ────────────────────────────────────────────────────────────────
2:34:21 PM:   Netlify Build
2:34:21 PM: ────────────────────────────────────────────────────────────────
2:34:21 PM:
2:34:21 PM: ❯ Version
2:34:21 PM:   @netlify/build 18.13.6
2:34:21 PM:
2:34:21 PM: ❯ Flags
2:34:21 PM:   baseRelDir: true
2:34:21 PM:   buildId: 6157627a67eea9281106405a
2:34:21 PM:   deployId: 6157627a67eea9281106405c
2:34:21 PM:
2:34:21 PM: ❯ Current directory
2:34:21 PM:   /opt/build/repo/frontend
2:34:21 PM:
2:34:21 PM: ❯ Config file
2:34:21 PM:   No config file was defined: using default values.
2:34:21 PM:
2:34:21 PM: ❯ Context
2:34:21 PM:   production
2:34:21 PM:
2:34:21 PM: ────────────────────────────────────────────────────────────────
2:34:21 PM:   1. Build command from Netlify app
2:34:21 PM: ────────────────────────────────────────────────────────────────
2:34:21 PM:
2:34:21 PM: $ npm run build
2:34:21 PM: ><EMAIL_ADDRESS>build
2:34:21 PM: > craco build --verbose
2:34:21 PM: craco:  Project root path resolved to:  /opt/build/repo/frontend
2:34:21 PM: craco:  Config file path resolved to:  /opt/build/repo/frontend/craco.config.js
2:34:21 PM: craco:  Override started with arguments:  [
2:34:21 PM:   '/opt/buildhome/.nvm/versions/node/v16.10.0/bin/node',
2:34:21 PM<EMAIL_ADDRESS>2:34:21 PM:   '--verbose'
2:34:21 PM: ]
2:34:21 PM: craco:  For environment:  production
2:34:21 PM: craco:  Found craco config file at:  /opt/build/repo/frontend/craco.config.js
2:34:22 PM: craco:  Applied craco config plugins.
2:34:22 PM: craco:  Found Webpack prod config at:  /opt/build/repo/frontend/node_modules/react-scripts/config/webpack.config.js
2:34:23 PM: craco:  Overrided ESLint config to enable an ignore file.
2:34:24 PM: craco:  Added PostCSS plugins.
2:34:24 PM: craco:  Overrided PostCSS loader.
2:34:24 PM: craco:  Added PostCSS plugins.
2:34:24 PM: craco:  Overrided PostCSS loader.
2:34:24 PM: craco:  Added PostCSS plugins.
2:34:24 PM: craco:  Overrided PostCSS loader.
2:34:24 PM: craco:  Added PostCSS plugins.
2:34:24 PM: craco:  Overrided PostCSS loader.
2:34:24 PM: craco:  Applied webpack config plugins.
2:34:24 PM: craco:  Overrided require cache for module: /opt/build/repo/frontend/node_modules/react-scripts/config/webpack.config.js
2:34:24 PM: craco:  Overrided Webpack prod config.
2:34:24 PM: craco:  Building CRA at:  /opt/build/repo/frontend/node_modules/react-scripts/scripts/build.js
2:34:24 PM: Creating an optimized production build...
2:34:28 PM: Failed to compile.
2:34:28 PM:
2:34:28 PM: ./src/App.js
2:34:28 PM: Cannot find file './screens/CartScreen' in './src'.
2:34:28 PM:
2:34:28 PM: ────────────────────────────────────────────────────────────────
2:34:28 PM:   "build.command" failed
2:34:28 PM: ────────────────────────────────────────────────────────────────
2:34:28 PM:
2:34:28 PM:   Error message
2:34:28 PM:   Command failed with exit code 1: npm run build
2:34:28 PM:
2:34:28 PM:   Error location
2:34:28 PM:   In Build command from Netlify app:
2:34:28 PM:   npm run build
2:34:28 PM:
2:34:28 PM:   Resolved config
2:34:28 PM:   build:
2:34:28 PM:     base: /opt/build/repo/frontend
2:34:28 PM:     command: npm run build
2:34:28 PM:     commandOrigin: ui
2:34:28 PM:     publish: /opt/build/repo/frontend
2:34:28 PM:     publishOrigin: ui
2:34:28 PM: Caching artifacts
2:34:28 PM: Started saving node modules
2:34:28 PM: Finished saving node modules
2:34:28 PM: Started saving build plugins
2:34:28 PM: Finished saving build plugins
2:34:28 PM: Started saving pip cache
2:34:28 PM: Finished saving pip cache
2:34:28 PM: Started saving emacs cask dependencies
2:34:28 PM: Finished saving emacs cask dependencies
2:34:28 PM: Started saving maven dependencies
2:34:28 PM: Finished saving maven dependencies
2:34:28 PM: Started saving boot dependencies
2:34:29 PM: Finished saving boot dependencies
2:34:29 PM: Started saving rust rustup cache
2:34:29 PM: Finished saving rust rustup cache
2:34:29 PM: Started saving go dependencies
2:34:29 PM: Finished saving go dependencies
2:34:31 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:34:31 PM: Creating deploy upload records
2:34:31 PM: Failing build: Failed to build site
2:34:31 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
2:34:31 PM: Finished processing build request in 1m15.059036695s

Heroku build log:

-----> Building on the Heroku-20 stack

-----> Using buildpack: mars/create-react-app

-----> React.js (create-react-app) multi app detected

=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git

=====> Detected Framework: Multipack

=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git

=====> Detected Framework: Node.js

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error

       NODE_VERBOSE=false

       NODE_ENV=production

       NODE_MODULES_CACHE=true

-----> Installing binaries

       engines.node (package.json):  14.17.5

       engines.npm (package.json):   unspecified (use default)

       Resolving node version 14.17.5...

       Downloading and installing node 14.17.5...

       Using default npm version: 6.14.14

-----> Restoring cache

       - node_modules

-----> Installing dependencies

       Installing node modules

       ><EMAIL_ADDRESS>postinstall /tmp/build_c9292af6/node_modules/nodemon

       > node bin/postinstall || exit 0

       Love nodemon? You can now support the project via the open collective:

        > https://opencollective.com/nodemon/donate

       added 366 packages in 14.439s

-----> Build

       Running heroku-postbuild

       ><EMAIL_ADDRESS>heroku-postbuild /tmp/build_c9292af6

       > NPM_CONFIG_PRODUCTION=false npm install --prefix frontend && npm run build --prefix frontend

       ><EMAIL_ADDRESS>postinstall /tmp/build_c9292af6/frontend/node_modules/babel-runtime/node_modules/core-js

       > node -e "try{require('./postinstall')}catch(e){}"

       ><EMAIL_ADDRESS>postinstall /tmp/build_c9292af6/frontend/node_modules/core-js

       > node -e "try{require('./postinstall')}catch(e){}"

       ><EMAIL_ADDRESS>postinstall /tmp/build_c9292af6/frontend/node_modules/core-js-pure

       > node -e "try{require('./postinstall')}catch(e){}"

       ><EMAIL_ADDRESS>postinstall /tmp/build_c9292af6/frontend/node_modules/ejs

       > node ./postinstall.js

       added 1991 packages from 811 contributors in 54.26s

       150 packages are looking for funding

         run `npm fund` for details

       ><EMAIL_ADDRESS>build /tmp/build_c9292af6/frontend

       > craco build

       Creating an optimized production build...

       Failed to compile.

       ./src/App.js

       Cannot find file './screens/CartScreen' in './src'.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR<EMAIL_ADDRESS>build: `craco build`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the<EMAIL_ADDRESS>build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  Exit status 1

npm ERR!

npm ERR! Failed at the<EMAIL_ADDRESS>heroku-postbuild script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR!     /tmp/npmcache.t46Vn/_logs/2021-10-01T18_15_55_728Z-debug.log

-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:

       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       If you're stuck, please submit a ticket so we can help:

       https://help.heroku.com/

       Love,

       Heroku

 !     Push rejected, failed to compile React.js (create-react-app) multi app.

 !     Push failed

Package.json
{
  "name": "frontend",
  "proxy": "http://<IP_ADDRESS>:5000",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@craco/craco": "^6.2.0",
    "@testing-library/jest-dom": "^5.14.1",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "axios": "^0.21.1",
    "react": "^17.0.2",
    "react-bootstrap": "^1.6.1",
    "react-dom": "^17.0.2",
    "react-paypal-button-v2": "^2.6.3",
    "react-redux": "^7.2.5",
    "react-router-dom": "^5.2.1",
    "react-scripts": "4.0.3",
    "redux": "^4.1.1",
    "redux-devtools-extension": "^2.13.9",
    "redux-thunk": "^2.3.0",
    "web-vitals": "^1.1.2"
  },
  "scripts": {
    "start": "craco start --verbose",
    "build": "craco build --verbose",
    "test": "craco test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "autoprefixer": "^9.8.7",
    "postcss": "^7.0.38",
    "tailwindcss": "npm<EMAIL_ADDRESS>  }
}

I've tried moving tailwindcss to dependencies and still does not work.
Stumped! Can anyone help?

I need to add that while it says "Cannot find file './screens/CartScreen' in './src' " that's not the problem it seems as that file is there and it works perfectly fine locally. The app is finished. Deployment is doing something funky and I'm not sure what the problem is here that both Heroku and Netlify have issues with craco build.
If I move tailwindcss install around sometimes it will give me different error called "module not found:tailwindcss". I found another thread that had that problem but for me it didn't fix it.
I've tried uninstalling reinstalling tailwind packages, been dealing with this for 3 days now..

Hi, I am facing the same issues. Were you able to resolve it?

@DavidSalemLee Hi, were you able to solve the issue? I would like to know the fix as well.

@stalha97 I had two concurrent problems which was why it was tricky to fix. 1, tailwind package has to be moved out of dev dependency into regular dependency along with postcss, etc.
Then I got cartScreen.js not found which was a glitch in my github file. For some reason cartScreen was not changed to CartScreen.js through my changes on github and I had to manually edit the filename in github and once I did that heroku was able to build successfully

Try this

Go to your app settings.

Add this url https://github.com/mars/create-react-app-buildpack to your bildpack.


kubernetes: use local registry in presubmit for base images

We had this hack in place to handle the go-runner and kube-proxy base images which are also built via this repo.  Now that we know how to use a local registry in presubmit, I think this will be a cleaner approac.
Prow PR: https://github.com/aws/eks-distro-prow-jobs/pull/227
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jaxesn
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jaxesn]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/test all

@jaxesn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

kubernetes-1-19-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-19-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jaxesn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

kubernetes-1-19-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-19-presubmit

kubernetes-1-18-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-18-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jaxesn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

kubernetes-1-19-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-19-presubmit

kubernetes-1-18-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-18-presubmit

kubernetes-1-20-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-20-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jaxesn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

kubernetes-1-18-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-18-presubmit

kubernetes-1-20-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-20-presubmit

kubernetes-1-19-presubmit
625245c2231a77bb16578cc0715730a7fa363745
link
/test kubernetes-1-19-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jaxesn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

kubernetes-1-20-presubmit
a5b31c022ebdf68b68dad97d4c66d5c7d1bd1888
link
/test kubernetes-1-20-presubmit

kubernetes-1-19-presubmit
625245c2231a77bb16578cc0715730a7fa363745
link
/test kubernetes-1-19-presubmit

kubernetes-1-18-presubmit
625245c2231a77bb16578cc0715730a7fa363745
link
/test kubernetes-1-18-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@jaxesn: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

kubernetes-1-19-presubmit
625245c2231a77bb16578cc0715730a7fa363745
link
/test kubernetes-1-19-presubmit

kubernetes-1-18-presubmit
625245c2231a77bb16578cc0715730a7fa363745
link
/test kubernetes-1-18-presubmit

kubernetes-1-20-presubmit
625245c2231a77bb16578cc0715730a7fa363745
link
/test kubernetes-1-20-presubmit

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


Race Condition between certificaterequests-issuer-acme and orders deletes order

Bugs should be filed for issues encountered whilst operating cert-manager.
You should first attempt to resolve your issues through the community support
channels, e.g. Slack, in order to rule out individual configuration errors.
Please provide as much detail as possible.

Describe the bug:
A unknown cause (which i have a hypothesis for) causes a race condition between the CertificateRequests/acme Controller and the Orders Controller causing the acmeorder-Resource to be deleted and recreated endlessly. This results in a certificatrequest never completing.
I0306 15:58:21.961664       1 sync.go:99] cert-manager/controller/orders "msg"="Order is in a Valid state but the Certificate data is empty, fetching existing Certificate" "resource_kind"="Order" "resource_name"="acme-dev-tls-2992080029-2521239647" "resource_namespace"="default"
I0306 15:58:21.961731       1 sync.go:227] cert-manager/controller/orders "msg"="Fetching Order metadata from ACME server" "resource_kind"="Order" "resource_name"="acme-dev-tls-2992080029-2521239647" "resource_namespace"="default"
I0306 15:58:21.961747       1 logger.go:45] Calling GetOrder
E0306 15:58:21.961780       1 acme.go:177] cert-manager/controller/certificaterequests-issuer-acme/sign "msg"="failed to decode x509 certificate data on Order resource" "error"="error decoding cert PEM block" "related_resource_kind"="Order" "related_resource_name"="acme-dev-tls-2992080029-2521239647" "related_resource_namespace"="default" "resource_kind"="CertificateRequest" "resource_name"="acme-dev-tls-2992080029" "resource_namespace"="default"
I0306 15:58:21.995572       1 logger.go:50] Calling GetCertificate
I0306 15:58:22.030920       1 sync.go:56] cert-manager/controller/orders "msg"="updating Order resource status" "resource_kind"="Order" "resource_name"="acme-dev-tls-2992080029-2521239647" "resource_namespace"="default"
I0306 15:58:22.157036       1 controller.go:135] cert-manager/controller/certificaterequests-issuer-acme "msg"="finished processing work item" "key"="default/acme-dev-tls-2992080029"
I0306 15:58:22.157245       1 controller.go:129] cert-manager/controller/certificaterequests-issuer-acme "msg"="syncing item" "key"="default/acme-dev-tls-2992080029"
E0306 15:58:22.169349       1 util.go:71] cert-manager/controller/orders/handleOwnedResource "msg"="error getting order referenced by resource" "error"="order.acme.cert-manager.io \"acme-dev-tls-2992080029-2521239647\" not found" "related_resource_kind"="Order" "related_resource_name"="acme-dev-tls-2992080029-2521239647" "related_resource_namespace"="default" "resource_kind"="Challenge" "resource_name"="acme-dev-tls-2992080029-2521239647-3824434304" "resource_namespace"="default"

As you can be seen this is a race condition - the orders-controller notes that the certificate field on the valid order is missing, triggering a download. At the same time the certificaterequests-isser-acme Sign-Method sees a valid order and attempts to populate the Certificate resouce object.
My theory is that this bug is caused by nontraditional (but not RFC-forbidden) behaviour: New Orders which are owned by an ACME-Account that already has valid authorizations for all identifiers are created in the ready state instead of the pending state. This already causes a lot of confusion on the acme-challenges controller (which does not matter) - but i think it is also the cause of this bug.
I think after this line: https://github.com/jetstack/cert-manager/blob/07104ac43b47a03a3c424fd643870255e0afe79e/pkg/controller/certificaterequests/acme/acme.go#L174
A check should be added of the form
if order.Status.Certificate == nil || len(order.Status.Certificate)==0 {
  //log something useful
  return nil, nil
}

Expected behaviour:
Certificate Issuance with ACME
Steps to reproduce the bug:
We're using an internal (inner source) implementation of an ACME Server. So you can't replicate i think 😞
Anything else we need to know?:
I may or may not answer during the weekend, please be patient :)
Environment details::

Kubernetes version : v0.15.5
Cloud-provider/provisioner: It's called Pivotal Kubernetes Services (PKS)
cert-manager version  0.13.1
Install method (e.g. helm or static manifests): static manifests

/kind bug

I think the certificaterequests-acme controller should gracefully handle the situation where an Order exists but its status.certificate field is empty - in these cases, we should log a message and wait for it to be populated.
The only downside to this, is in the case where a bug occurs that means the Order's certificate field never gets populated, we will hang forever and never be able to complete the CertificateRequest. This may be best handled using some kind of timeout in the CertificateRequest controller in which we eventually mark the CertificateRequest as 'failed' (after say, 1h)
/priority important-soon
/area acme

Ok I solved my specifi Issue. The solution was to have the ACME Server return a retry-after header field to the finalize-order request. (which returned status processing). This causes the certificaterequests-acme controller to sleep until the orders-controller retrieves the order (then status valid) and the certificate.

/milestone Next

Hey everyone!
I'm experiencing the same issue here. Any developments on resolving this issue?

Does updating cert-manager make the error go away?

Tried installing v1.1.0-alpha.0 to no avail. Still having to downgrade to v0.15.2

Issue might be related to forgetting to upgrade apiVersion on cluster issuer:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer


Support for Django 5.1

Will you soon be supporting Django 5.1?

Yes, the soonest next week
On Tue, Aug 13, 2024, 3:22 AM Peter Kronenberg @.***>
wrote:

Will you soon be supporting Django 5.1?
—
Reply to this email directly, view it on GitHub
https://github.com/zsoldosp/django-currentuser/issues/75, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAP3W5ZGEPURTKDBJLFNYTZRFNUFAVCNFSM6AAAAABMNG6KKOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DEMJXGU3TSNY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

any progress?

I just released the new version to pypi.
Note the introduction of DJANGO_CURRENTUSER_USE_UNSUPPORTED_DJANGO to make future app upgrades smoother. For more details, see the README's install section.


clever init error

I have checked through all issues and I don't think I've found a similar problem.
I am using Windows 8.1 x64, Node 0.12 and the latest cleverstack-cli. I've read the issue related to Node 0.12 but this does not seem to relate to my error.
All the init is going fine until the protractor part, which is failing at the following stage ...
<EMAIL_ADDRESS>setup-protractor: 'grunt webdriver:update'.
Any ideas why this is failing for me?
Many thanks.
Debug log is as follows (with my name replaced with 'username')....
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files (x86)\nodejs\\node.exe',
1 verbose cli   'C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli   'run-script',
1 verbose cli   'setup-protractor' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose node symlink C:\Program Files (x86)\nodejs\node.exe
5 verbose run-script [ 'presetup-protractor',
5 verbose run-script   'setup-protractor',
5 verbose run-script   'postsetup-protractor' ]
6 info presetup-protractor<EMAIL_ADDRESS>7 info setup-protractor<EMAIL_ADDRESS>8 verbose unsafe-perm in lifecycle true
9 info<EMAIL_ADDRESS>Failed to exec setup-protractor script
10 verbose stack Error<EMAIL_ADDRESS>setup-protractor: grunt webdriver:update
10 verbose stack Exit status 3
10 verbose stack     at EventEmitter. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16)
10 verbose stack     at EventEmitter.emit (events.js:110:17)
10 verbose stack     at ChildProcess. (C:\Program Files (x86)\nodejs\node_modules\npm\lib\utils\spawn.js:14:12)
10 verbose stack     at ChildProcess.emit (events.js:110:17)
10 verbose stack     at maybeClose (child_process.js:1015:16)
10 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
11 verbose pkgid<EMAIL_ADDRESS>12 verbose cwd c:\Users\username\Documents\clevertest\frontend
13 error Windows_NT 6.3.9600
14 error argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run-script" "setup-protractor"
15 error node v0.12.2
16 error npm  v2.7.4
17 error code ELIFECYCLE
18 error<EMAIL_ADDRESS>setup-protractor: grunt webdriver:update
18 error Exit status 3
19 error Failed at the<EMAIL_ADDRESS>setup-protractor script 'grunt webdriver:update'.
19 error This is most likely a problem with the angular-seed package,
19 error not with npm itself.
19 error Tell the author that this fails on your system:
19 error     grunt webdriver:update
19 error You can get their info via:
19 error     npm owner ls angular-seed
19 error There is likely additional logging output above.
20 verbose exit [ 1, true ]
And this didn't seem to be included in the log if it helps?
npm ERR! Please include the following file with any support request:
npm ERR!     c:\Users\username\Documents\clevertest\frontend\npm-debug.log
at ChildProcess.exithandler (child_process.js:751:12)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Socket.<anonymous> (child_process.js:1183:11)
at Socket.emit (events.js:107:17)
at Pipe.close (net.js:485:12)

From previous event:
at C:\Users\username\AppData\Roaming\npm\node_modules\cleverstack-cli\bin\cle
ver-init:356:18
at processImmediate [as _immediateCallback] (timers.js:358:17)
From previous event:
at C:\Users\username\AppData\Roaming\npm\node_modules\cleverstack-cli\bin\cle
ver-init:353:10
at C:\Users\username\AppData\Roaming\npm\node_modules\cleverstack-cli\node_mo
dules\mkdirp\index.js:30:20
at FSReqWrap.oncomplete (fs.js:95:15)
Have also tried to downgrade to Node 0.10 but still the same error.

Please take a look at https://github.com/CleverStack/cleverstack-cli/issues/76#issuecomment-121777570 for the fix for this issue.


#13095: Refactor moreh_nll_loss operations

Ticket
Link to Github Issue: #13095
What's changed
Update moreh.py to to bind ttnn.moreh_op to ttnn.operations.moreh.op
Checklist

[x] Post commit CI passes
[x] Blackhole Post commit (if applicable)
[x] Model regression CI testing passes (if applicable)
[x] Device performance regression CI testing passes (if applicable)
[x] New/Existing tests provide coverage for changes

Lacks:

assert device.num_program_cache_entries() == ?

Added.


create the template forr private channel router

Description
I just build a template  for endpoint private channel for tow user
Fixes # (issue)
I did not edit any functionality to it
How to test?
Please provide a short summary how your changes can be tested?
Checklist

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] This PR is ready to be merged and not breaking any other functionality

You have forgotten to link the story.
What is this functionality? We talked about making an end point where you can check if some users are in a channel.
Is that related to private channels?


Can not find VCRUNTIME140.dll on windows 7

Hello, i'm building a desktop application with flutter on windows 11, all my test in windows 11 are OK. But when i build the release of my application and i moved all the files to windows 7:
Folder data.
File: flutter_windows.dll, windows_size_plugin.dll
exe: myapplication.
When i tested it in windows 7 i got this message:
Can not find VCRUNTIME140.dll

how can i fix this problem ? and i tested my application on 2 difrents machines with windows 7 and i got the same problem.
For your information i see that all Microsoft Visual C++ are installed on windows 7

flutter doctor on windows 11:

Thank you

You are responsible for ensuring that the restributables are part of what you distribute, either via an installer, or locally packaged. See the desktop documentation, and if you are copying files directly rather than using an installer, this section in particular.
Closing, as this is not a bug.


Adds Ludwig filter #126

Fixed PR to only edit data/scss files!
Comparison:

Awesome, thank you!!
Can you do me one more favor? Run git pull --rebase origin master and fix the merge conflict in cssgram.scss. It should look like:
@import 'aden';
@import 'inkwell';
@import 'perpetua';
@import 'reyes';
@import 'gingham';
@import 'toaster';
@import 'walden';
@import 'hudson';
@import 'earlybird';
@import 'mayfair';
@import 'lofi';
@import '1977';
@import 'brooklyn';
@import 'xpro2';
@import 'nashville';
@import 'lark';
@import 'moon';
@import 'clarendon';
@import 'willow';
@import 'rise';
@import 'slumber';
@import 'brannan';
@import 'valencia';
@import 'kelvin';
@import 'ludwig';

@una Could you explain a bit more what you mean? I ran git pull --rebase origin master, but didn't see any merge conflicts in cssgram.scss. My file looks like yours, except the @imports are in a slightly different order...

Right the order would cause a merge conflict. Is it not?

The branch has merge conflicts still -- did you get those resolved? I'm happy to walk you through it if you need!


Catch unhandled ScanditSDK calls and log them

If a call to a function in a plugin does not exist, an error will
be displayed. This disrupts the application flow. Therefore we
implement the known calls and just log them as a warning to the
console of the browser.
I've also send an ICLA this day.

Hey @lepokle - just wanted to let you know I haven't forgotten about this PR :smile: - just haven't had a chance to validate it yet. Will get to that in the next few days.

I've added another useful functionality to prevent the scanner from being started twice.


ValidatorMain fails on feeds with no calendar_dates

the first of two bugs I've found.
If you try and load a feed without calendar_dates, ValidatorMain will throw an NPE.
I've made a fix  on my branch, but the branch has diverged quite a lot (upgraded to Java8) from this one.

fixed with merge #22


Append a link to an online meetings page if there are no results listed

Our online area has requested a feature whereby a link can be sent to our online meetings page if there are no valid search results for a particular area.
Describe the solution you'd like
We would like to be able to preconfigure a setting for a webpage if no search results are available.
Describe alternatives you've considered
An alternative we've considered is to append every results SMS with a link to our online meetings landing page in addition to the usual search results.

Can you give an example of the area where there are no search results available?

Hi Danny,
the example given was Gladstone QLD where there are only one or two meetings a week.  Depending on the day you message you wont' get any results.
There are many other locations which fall into this bracket.
The alternative we've considered is to add a link to our online meetings page for all search result responses.
EG:
Can't find a local meeting? Meet online at https://www.na.org.au/multi/online-meetings/
Online Meetings - Narcotics Anonymous Australiahttps://www.na.org.au/multi/online-meetings/
Online meetings are available for people who are unable to attend a physical meeting. Non-Location Centric Meetings. These Online or Virtual Meetings are generally not associated with geographical locations.
www.na.org.au

From: Danny Gershman @.>
Sent: Friday, 23 December 2022 1:43 PM
To: bmlt-enabled/yap @.>
Cc: brustar64 @.>; Author @.>
Subject: Re: [bmlt-enabled/yap] Append a link to an online meetings page if there are no results listed (Issue #707)
Can you give an example of the area where there are no search results available?
—
Reply to this email directly, view it on GitHubhttps://github.com/bmlt-enabled/yap/issues/707#issuecomment-1363582286, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG5KHL5ZWJXLW2UFMBSC5ODWOUNWZANCNFSM6AAAAAATF6J6WY.
You are receiving this because you authored the thread.Message ID: @.***>

You can include virtual meetings in the results if you'd like.  https://yap.bmlt.app/meeting-search/venue-options/#virtual-meetings


Fix 404 link to HIG

Link to /docs/human-interface-guidelines instead of /docs/human-interface de guidelines

Reading a bit more about translation this probably has to be fixed in Transifex. As I don't get Transifex someone else should do that ;)


Is this project active?

Hi all.
I want to help, but I want to know if this project is active. Is this project active?

Hello,
yes, the project is active (and used), there are just no active issues
requiring immediate attention at the moment.
Any help is appreciated.
pi 30. 12. 2022 o 3:49 Code Hangen @.***> napísal(a):

Hi all.
I want to help, but I want to know if this project is active. Is this
project active?
—
Reply to this email directly, view it on GitHub
https://github.com/seznam/szn-select/issues/44, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAS5D2ZRK7YUDWPIGA5KRS3WPZEUDANCNFSM6AAAAAATMRZLXI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Next release date ?

The last release was in september last year. I am wondering, is there a new release version in sight?

Hi. I don't have an official schedule put together, unfortunately. I tend to make a release when there have been significant updates. We will likely do another one soon. I was hoping to make a couple changes myself before that point, but haven't had the time. We'll keep at it. Feel free to remind me again. ;)

I'm kind of curious about this as well. There's been 83 commits since the last release which shows a lot has been updated.
Are there currently any blockers that need to be addressed before the release?


Use .editorconfig for file formats like spaces vs tabs 💭

When you run rome init it adds an .editorconfig
Some projects and companies have policies where you are required to use spaces over tabs.
It would be nice to know I can change my editorconfig to spaces.
Running rome check would then use the spaces over tabs.

I understand Rome is supposed to be very opinionated but there are a few things that would be nice to customize.

There was a discussion here https://github.com/romefrontend/rome/issues/425

That looks like it's just a discussion of forcing Tabs over original spaces. But never about allowing the user of Rome to decide what they want to use with some sort of config.

I definitely understand the initial desire to configure various lint rules within Rome to match existing code styles.
The rules that Rome has chosen to enforce have been approached objectively, and have been added to the toolchain specifically to push consumers towards best practices that tangibly offer objective advantages. For example, if any consumer - company or otherwise - has chosen to adopt spaces over tabs, they're probably doing so at the cost of usability for many developers. I would argue that such consumers should try to understand the reasoning behind the decision within Rome and to change their practices accordingly. In my mind, that's the very purpose of an opinionated toolchain, and a key differentiator of Rome from past projects.

Rome being opinionated doesn't necessarily mean we don't need to have configuration. However, for this specifically, I don't expect us to have any way to configure formatting options.
If you're going to adopt the Rome formatter then it's likely going to cause an extreme amount of formatting churn anyway since we do not aim to match Prettier, which is the predominant code formatter and likely what you might already be using. Since that's the case, switching to tabs isn't actually anymore difficult.
Changing code style is something that is actually relatively easy to technically do, but requires an extremely high amount of social buy-in. I hope that using Rome can be a forcing function to encourage more inclusive formatting standards.
I'm not sure if this has been said explicitly, but the idea is for Rome to be so useful and advantageous in so many other ways, that people with strong opinions and constraints will be willing to change them to use it.

I'm not sure if this has been said explicitly, but the idea is for Rome to be so useful and advantageous in so many other ways, that people with strong opinions and constraints will be willing to change them to use it.

Off topic, but I think this should be fixed somewhere, or at least be highlighted in Philosophy.
It's like "explain it like I'm 5".

I'm open to including it in the intro. The "Rome has strong conventions and aims to have minimal configuration" paragraph would be good to clarify. If anyone is opening to making the change, then you can make it to README.md, and then run ./rome run scripts/generate-all-files which will also update the website homepage markdown.

Asking every other editor to follow .editorconfig, while Rome won't do the same is hypocrisy.  There should be a way to configure to  whatever style users want to use, regardless of the default superior objective opinion. Opinions shouldn't be forced.

Regardless of what Rome decides to allow to be configured, it does seem like Rome should error when an editorconfig exists that it's not going to comply with - iow, Rome should either obey an editorconfig, or should force the editorconfig to match "what Rome does".

@Blocked You aren't being somehow oppressed by this decision. The inability to customize something doesn't make it hypocritical to enforce other tools/editors to follow the same convention. There are many configuration options we could theoretically have, and their omission isn't some grandiose statement. Delete the .editorconfig if you want, nobody is forcing you to use it. We create it during rome init so people have a more consistent experience. Most people will not even notice they're using hard tabs.
We will likely be publicly pressured into supporting additional configuration for formatting and disabling lint rules, largely to increase commercial adoption. Unless you're going to commit to working on Rome and maintaining the things you're aggressively proposing, trying being kinder vocalizing your criticism, especially when the rationale has been explicitly stated and we're all working on this for free in our spare time.

For what it's worth, anecdotes are the most useful here, since organizational blockers that would prevent adoption are the most serious issue. I am less likely to engage in hysterics and it just causes work in these areas to be deferred since I'd rather work on things that don't make people pissed off and post overtly negative comments.

I understand the decisions you guys made.
You want to follow best practices and make sure everyone else is too.
The argument where tabs are the better choice because it allows every user to change the "size" of their tabs without affecting the code base is valid. I guess I just stick to spaces because that is required for python and it keeps me from having to switch between projects. I know that isn't the best excuse because you can use the .editorconfig to automate all that for you.

We are most likely going to add indentation options but the default will stay as a hard tab. I expect this to happen when we add a bunch of other options (such as disabling lint rules etc).

The options have been added. We can close.


Update index.ts

Added a new opportunity to get a badge for people who have completed a campaign on Galxe from Humanode.

Your group will be updated in ~20 minutes :)


Deploying a model

Dear friends,
I trained a model earlier with the
model_builders:

allegro.model.Allegro

the typical model builders from nequip can still be used:

PerSpeciesRescale
ForceOutput
RescaleEnergyEtc

After deploying it for lammps MD simulation i encountered the problem:
Exception: Argument passed to at() was not in the map
I followed the suggestion in this link for a fix:
https://github.com/mir-group/nequip/issues/69#issuecomment-1129273665
The new problem i am encountering  now  is:
Traceback (most recent call last):
File "/leonardo/home/userexternal/sogenyi0/NEQUIP1/myenv/bin/nequip-deploy", line 8, in
sys.exit(main())
File "/leonardo/home/userexternal/sogenyi0/NEQUIP1/myenv/lib/python3.10/site-packages/nequip/scripts/deploy.py", line 219, in main
model = model_from_config(config, deploy=True)
File "/leonardo/home/userexternal/sogenyi0/NEQUIP1/myenv/lib/python3.10/site-packages/nequip/model/_build.py", line 96, in model_from_config
model = builder(**params)
File "/leonardo/home/userexternal/sogenyi0/NEQUIP1/myenv/lib/python3.10/site-packages/allegro/model/_allegro.py", line 32, in Allegro
builder_utils.add_avg_num_neighbors(
File "/leonardo/home/userexternal/sogenyi0/NEQUIP1/myenv/lib/python3.10/site-packages/nequip/model/builder_utils.py", line 35, in add_avg_num_neighbors
raise ValueError("avg_num_neighbors = auto but initialize is False")
ValueError: avg_num_neighbors = auto but initialize is False
Please i can anyone help me out?

You need StressForceOutput instead of ForceOutput as pair_allegro expects the virial to be computed.
Please check that you are using the latest main branches of nequip and pair_allegro as well.

Thank for the response. I have checked

You need StressForceOutput instead of ForceOutput as pair_allegro expects the virial to be computed.
Please check that you are using the latest main branches of nequip and pair_allegro as well.

I am using a latest main branch of nequip and in the config file for the redeployment i effected the necessary changes needed.
However, the default_dtype: float32 was used in my training session. An attempt to change it to float64 kept giving error of inconsistency.

Hello friends,
I finally had to do fresh installation of most recent versions of the packages and do a retrain this
time with right settings in my config yaml file. It worked when i deployed it. Just a tip to all, try to do a test run first with loose parameters and deploy for MD simulation to a certain that your installations is correct.


ICON (MassifPress) v0.4.4 minor combat qol update

Submission Checklist
Required

[x] The pull request title clearly contains the name of the sheet I am editing.
[x] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[x] The pull request makes changes to files in only one sub-folder.
[x] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description

re-arranged the order of abilities and relics sections in combat tab
made combat ability textareas bigger by default
fixed broken github link so users can now report additional issues directly

Character Sheet Info Roll20 Internal Use only.


[BUG]  CPU memory usage keeps increasing

是否已有关于该错误的issue或讨论？ | Is there an existing issue / discussion for this?

[X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答？ | Is there an existing answer for this in FAQ?

[X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior
I have a flask app wrapped around the minicpm-2.5 model. The app is being run using pm2. The cpu memory footprint of the process keeps increasing by 50-100 Mb on every request until it eventually crashes.
Below is the code -
app = Flask("loggable")

model_id = "openbmb/MiniCPM-Llama3-V-2_5"
model = AutoModel.from_pretrained(model_id, trust_remote_code=True, torch_dtype=torch.float16)
model = model.to(device='cuda')
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)

def generate_response(image_url, messages):
    try:
        image = Image.open(requests.get(image_url, stream=True).raw)

        with torch.no_grad():
            res = model.chat(
                image=image,
                msgs=messages,
                tokenizer=tokenizer,
                sampling=True, # if sampling=False, beam_search will be used by default
                temperature=0.7,
                max_tokens=150,
                max_new_tokens=150,
                max_length=150,
                # system_prompt='' # pass system_prompt if needed
            )
        image.close()
        torch.cuda.empty_cache()
        return res
    except Exception as e:
        print(f"Error in generate_response: {e}")

@app.route("/answer", methods=['POST'])
def answer():
    image_url = data.get('image_url')
    messages = data.get('messages')
    response = generate_response(image_url, messages)
    return jsonify({'response': response}), 200

if __name__ == "__main__":
    app.run(host='<IP_ADDRESS>', port=5000)

期望行为 | Expected Behavior
CPU memory should not increase on every request
复现方法 | Steps To Reproduce
No response
运行环境 | Environment
- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):

备注 | Anything else?
No response

Please test  running model in loop other than in flask，to see whether the CPU memory usage keeps increasing


The use of os.replace(...) does not work in Python 2

It has been reported in here and there that the os.replace(...) used by cachelib is not supported in Python 2. Do we consider to have a fallback implementation for Python 2? Something like this? I can provide a PR if necessary.
try:
    os.replace(tmp, filename)
except AttributeError:  # Python 2 workaround
    try:
        os.remove(filename)
    except:
        pass
    os.rename(tmp, filename)

Python 2 is no longer supported.

Just for the record, that Azure web app sample does NOT need any upgrade to be used with Python 3. It is already written in a way that it does not use any Python3-or-Python2-only syntax. I was merely shifting the conversation from that issue into its root cause here, to let you decide whether you want to satisfy your customer.


chore: speed up recovery by batching and streaming

This is effectively undoing some parts of
21da63533cf34722cff1e5afb9e8e06cd02a5eeb
hopefully to improve the real life recovery performance, which people are reporting as very slow.
The WIP recovery refactoring should render this irrelevant, but might be a good bandaid for 0.2.

I have this functionality ready in a new refactor, so I don't want to bother with merging this. Will backport manually.

This (along with some requests for tweaks) is in https://github.com/fedimint/fedimint/pull/4042 (only better, because the stream doesn't need to get recreated).


Spin up Ec2 instance with existing security group

Hello,
I'm in a less than ideal situation where my VPC is provided to me with a set of security groups. Is it possible to spin up an EC2 instance using an existing security group name e.g.
Lets say I've created a security group named 'foo' and already have this in my VPC:
I then add this to my manifest:
ec2_instance { 'sample-instance':
  ensure            =>  present,
  region            => 'us-east-1',
  image_id          => 'some_ami_number,
  security_groups   => 'foo',
  subnet            => 'my_subnet'

}

For me this throws

/Stage[main]/Main/Ec2_instance[sample-instance]/ensure: change from absent to present failed: Security groups 'foo' not found in VPCs 'some_vpc_number'

However, it's quite possible I'm doing something that this module isn't designed to do. Any advice would be great.
Thanks a lot

Apologies, the problem was that my subnet name was wrong.


cache: Introduce device cache support

The cache API currently shipped in Zephyr is assuming that the cache controller is always on-core thus managed at the arch level. This is not always the case because many SoCs rely on external cache controllers as a peripheral external to the core (for example PL310 cache controller and the L2Cxxx family).
Move the cache code into the drivers directory and extend the API to support device-based cache controllers.
This is the outcome of the discussion carried out in #33122 and this solution should tick all the boxes and requirements. The actual changes are overall minimal, just some ifdef to hook up eventual cache devices and a new Kconfig to switch between ARCH and DEVICE cache controllers.

What about s/device_/external_/ ?

As usual I'm not strongly opinionated on naming, but FWIW external sounds fine to me.

(Hm... just thought of this one after looking at the code.)
How about a cache controller API with prefix cache_*? We can still implement arch-specific functions under arch/, and keep external controller under drivers/cache (for example). Then we can have something like CONFIG_ARCH_HAS_CACHE_CONTROL implying CONFIG_CACHE_USE_ARCH (for lack of better naming) where the arch level code is enclosed in this config under #ifdef. This can be disabled downstream in SoC or board configs. Additional cache controller can implement the APIs as-is (without the api->* redirection) with their own kconfig. It's similar to how timer drivers implement all the sys_clock_* functions.

Is this code motion really going to be helpful?

This is not only a code motion, the point of this PR is also adding the possibility to have an external cache controller. This is done because external cache controllers exist indeed and as such they should be treated as regular devices. PL310 is indeed just an example, but it's a pretty valid one because it has a DT entry, MMIO registers, PM controls, etc... why should be that a special case of a device without a proper driver?

Apps need to know the hardware in use if they want to do this.

Sure, if they need something out of the ordinary they can implement whatever they need, but the current cache API is really only covering the basics and that's it.

What value does having a generic controller API tailored to an ARM cache controller bring to, say, a RISC-V platform with entirely different semantics?

What do you see in the API that is tailored to the ARM cache controller? The API is pretty generic (basically flushing and invalidating) and that should be standard all across the architectures. Also you are assuming that external cache controllers are always arch-specific but that's not always the case.

I'm just concerned about a future where we have a "generic" cache layer in the "driver" directory that turns out to be ARM specific and all the SOCs continue to support their own internal APIs for the complicated stuff, gaining us nothing but confusion.
The point being: this doesn't look like a generic solution to me at all, really.  It looks like you're moving an ARM-specific cache controller into the driver layer, which isn't wrong by itself, I just don't think this is actually solving anything interesting vs. just having an API indirection under arch/arm or soc/arm or wherever.

I'm just concerned about a future where we have a "generic" cache layer in the "driver" directory that turns out to be ARM specific

I'm probably not familiar enough with other architectures  but what do you see about the current API that turns out to be ARM specific?

and all the SOCs continue to support their own internal APIs for the complicated stuff, gaining us nothing but confusion.

Right now all the architectures in Zephyr with a cache implementation (ARM64, X86, ARC but not Xtensa) are already using the cache API (or at least they have hooks for that) so not sure what you are referring to here. And also Xtensa cache functions are basically the same as the ones in this API.

The point being: this doesn't look like a generic solution to me at all, really. It looks like you're moving an ARM-specific cache controller into the driver layer, which isn't wrong by itself, I just don't think this is actually solving anything interesting vs. just having an API indirection under arch/arm or soc/arm or wherever.

What I'm trying to solve here is basically having a way to use an external cache controller independent from a specific arch.

What I'm trying to solve here is basically having a way to use an external cache controller independent from a specific arch.

Please pardon my lack of a wider knowledge (I'm surely more knowledgeable about just one particular architecture) still, does that thing (I mean "cache controller independent from a specific arch") really exist?
I guess aforementioned PL310 controller is rarely if at all being used with any other processors except ARM. Or is it?
In ARC (and I guess all other modern CPU arches) we also have more interesting cache controllers in addition to the L1 instruction/data caches. Like shared L2 or L3 caches with their own controllers which might have tons of features, configuration registers and what not.
That said if that "generic-ness" of the cache controller is only applicable to a particular architecture, maybe keep it in the corresponding arch folder?

Please pardon my lack of a wider knowledge (I'm surely more knowledgeable about just one particular architecture) still, does that thing (I mean "cache controller independent from a specific arch") really exist?

Yes, there is an ongoing effort to have SoC with a shared external cache controller shared by different cores with different architectures. It will be upstreamed in the near future.

I guess aforementioned PL310 controller is rarely if at all being used with any other processors except ARM. Or is it?

Correct. But the PL310 example was just to prove the need to support external cache controllers.

That said if that "generic-ness" of the cache controller is only applicable to a particular architecture, maybe keep it in the corresponding arch folder?

That's not possible because the cache controller I'll be working on later will be used by different architectures at the same time.
So this work is going to address two needs:

Support arch-specific external cache controllers (like PL310 and probably others)
Support external cache controllers shared by multiple architectures, sometimes at the same time

How about a cache controller API with prefix cache_*?
...
Additional cache controller can implement the APIs as-is (without the api->* redirection) with their own kconfig.

You mean having a __subsystem struct to define a cache controller API? I think that's not going to work because you do not really want to have a device object to hook up the struct to. In general I think we should aim to have a "system-wide" cache API so that we can do something like dcache_all(K_CACHE_WB) without having to specify the actual cache device we want to act on.

We can still implement arch-specific functions under arch/, and keep external controller under drivers/cache (for example). Then we can have something like CONFIG_ARCH_HAS_CACHE_CONTROL implying CONFIG_CACHE_USE_ARCH (for lack of better naming) where the arch level code is enclosed in this config under #ifdef. This can be disabled downstream in SoC or board configs.

Uhm, I fail to see how that is different from the case proposed in this PR. Basically CONFIG_ARCH_HAS_CACHE_CONTROL == CONFIG_CACHE_MANAGEMENT and CONFIG_CACHE_USE_ARCH == CONFIG_HAS_ARCH_CACHE, but for the rest I think we are on the same page.

It's similar to how timer drivers implement all the sys_clock_* functions.

sys_clock_* is using weak functions that we decided to not use, besides that I think I got your point.
@dcpleung I'm going to push a new revision with a better separation between arch and device layer, maybe you will like that more :wink:

Thanks. This looks a lot cleaner.
Though I still think we should prefix everything with cache_ so it would be easier for code completion in IDEs.
As for sys_clock_*, that is just an example. What I am thinking is that there would be no weak functions. The cache control functions will be provided by files under arch/ if kconfig selects arch cache code. Same with cache controller drivers. Though, with this scheme, you can only have one active cache controller, and won't be able to do multi-layer. (not sure if it is ever needed)

Though I still think we should prefix everything with cache_ so it would be easier for code completion in IDEs.

Good point. I still think that cache_{d,i}cache_* is a bit of an odd naming. I'll revise this after getting more comments on the current PR.

As for sys_clock_*, that is just an example. What I am thinking is that there would be no weak functions. The cache control functions will be provided by files under arch/ if kconfig selects arch cache code. Same with cache controller drivers. Though, with this scheme, you can only have one active cache controller, and won't be able to do multi-layer. (not sure if it is ever needed)

We are not interested at the moment in multi-layer. The current assumption is that you can have one single external cache controller at time. I think that the current state of this PR should allow already to do what you have in mind.

Good point. I still think that cache_{d,i}cache_* is a bit of an odd naming.

Better have dcache_* and icache_*.

Maybe cache_data_* and cache_instr_*?


fix(Anchor): dedupe ids on menus for axe tests + forward role to Anchors

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.37-alpha.64d470.0@codecademy/gamut-labs@28.5.2-alpha.64d470.0@codecademy/gamut@42.2.2-alpha.64d470.0@codecademy/monaco@0.5.28-alpha.64d470.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c0db6c08ade244d13875b8--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.37-alpha.703a19.0@codecademy/gamut-labs@28.5.2-alpha.703a19.0@codecademy/gamut@42.2.2-alpha.703a19.0@codecademy/monaco@0.5.28-alpha.703a19.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c0df1d22ba4d457ea623ec--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://61c0e548d832f950490ebae1--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.37-alpha.ecd61b.0@codecademy/gamut-labs@28.5.2-alpha.ecd61b.0@codecademy/gamut@42.2.2-alpha.ecd61b.0@codecademy/monaco@0.5.28-alpha.ecd61b.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c0ecacbdd83161f7f610f8--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.38-alpha.162677.0@codecademy/gamut-labs@28.6.1-alpha.162677.0@codecademy/gamut@42.2.2-alpha.162677.0@codecademy/monaco@0.5.28-alpha.162677.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c0f24d8794a55ff04e2a0f--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.38-alpha.3e3565.0@codecademy/gamut-labs@28.6.1-alpha.3e3565.0@codecademy/gamut@42.2.2-alpha.3e3565.0@codecademy/monaco@0.5.28-alpha.3e3565.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c0fb5dbcbea3696c1d334e--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.38-alpha.746b36.0@codecademy/gamut-labs@28.6.1-alpha.746b36.0@codecademy/gamut@42.2.2-alpha.746b36.0@codecademy/monaco@0.5.28-alpha.746b36.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c1000782ada06c93d376a0--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.38-alpha.ad1c46.0@codecademy/gamut-labs@28.6.1-alpha.ad1c46.0@codecademy/gamut@42.2.2-alpha.ad1c46.0@codecademy/monaco@0.5.28-alpha.ad1c46.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://61c123a3631e569306200c74--gamut-preview.netlify.appDeploy Logs


Check CI offset

Codecov Report

Merging #97 (b89de3a) into main (99b2fc8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #97   +/-   ##
=======================================
  Coverage   75.24%   75.24%
=======================================
  Files          28       28
  Lines        1422     1422
  Branches      189      189
=======================================
  Hits         1070     1070
  Misses        275      275
  Partials       77       77

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99b2fc8...b89de3a. Read the comment docs.


New Recipes

Create an issue for each of the recipes

Algorithms

[ ] Sort a vector

with custom ordering
with a custom key

[ ] Generate a hash of a value

for a custom type

CLI

[ ] color (ANSI)

Compression

[ ] Decompress gzipped web content

Concurrency

[ ] Sharing Data between threads

shared ownership with Arc
shared stack with crossbeam
mutable data with Mutex
passing messages with mspc

Crypto

[ ] Using TLS

… client side
… server side

[ ] Calculate a cryptographic hash using MD5

Database interfaces

[ ] Postgres

… querying
… updating
… transactions
… prepared statements

[ ] sqlite

… querying
… updating
… prepared statements

[ ] diesel example and link?

Data structures

[ ] Vec
[ ] HashMap/Set
[ ] BTreeMap
[ ] VecDeque
[ ] petgraph

Memory management

[ ] mmap
[ ] Rc
[ ] allocator APIs in std?

custom global allocator

[ ] arenas?

Network programming

[ ] std::net
[ ] show examples (or cross-ref) doing common tasks

SSL
Gzip
http

Operating systems

[ ] Command API
[ ] std::env
[ ] Reference: winapi, libc

Parsing

[ ] nom
[ ] lalrpop

Science aka numerics

[ ] ndarray

Text processing

[ ] std string apis — pattern APIs

Rust patterns

[ ] RefCell
[ ] Cell

These were taken from https://paper.dropbox.com/doc/Cookbook-new-recipe-list--AHhY6tZWu74Ju8uewuP5J87BAg-oRJe83bTkNE4Gk2Qmvu5V

@budziq can you review this list?  This is from when @withoutboats and @aturon were planning new recipes.  I'm happy to create the issues, but before officially adopting them, I'm hoping for your input.  There are also opportunities in here to expand our adopted crates so cc https://github.com/rust-lang-nursery/ecosystem-wg/issues/22

can you review this list

@AndyGauge  Sure! It looks very cool on the first glance, but I'll need some time to give any reasonable feadback. Some assorted musings:

As you mentioned, the first thing that we would need to establish is a list of crates to include in the next iteration of examples. In my experience it is very helpful to add such information to every example ticket. It greatly helps contributors in the initial steps.
database interaction/ORM was on my target  from day one. But do we show diesel, rusqlite, postgres or all?
custom allocators. These are already explained at length in TRPL. Should we overlap? cc @steveklabnik (To some extent also Rc, RefCell, Cell`)
I'm all for inclusion of nom using its API was a pleasure, can't really speak for lalrpop. But I'm guessing that the approaches are different enough to warrant showing both, although pest seams to be quite popular too.
not sure about ndarray as there are quite a few [more popular crates for matrix operations(https://crates.io/keywords/matrix) including nalgebra. I still do all my data sciency stuff in python so I cannot really tell anything about the quality of these libs. Maybe @aturon can give us some insight why ndarray was originally chosen?
I'd love to finaly see some XML examples but last time I checked there was no clear crate winner. But xml-rs seams to have [gained popularity] (https://crates.io/keywords/xml)
It would be cool to to see uuid-rs and num (possibly bigint) examples
I can't really say I follow the idea of representing libc and winapi correctly as I understand these as low level and not immediately usable to any effect that cannot be better shown by usage of std or higher level crate (even if this is something like nix). But maybe just showing that there are such interfaces will be educational enough?
in regard of mutex,mpsc, and basic datastructures it is unclear to what granularity we would like to overlap with std docs. I guess that I'd prefer for the examples to show some self contained usable code. More towards the extreme of "generate thumbnails in parallel" than "pass a value between threads".

I like the idea of putting the crate, and I think adding the category would also benefit contributors.  Now that there is an order, maintaining the order is important.
I think we should show raw SQL adapters, and have a recipe for diesel then link to their guides.  I don't want to make ORM a major part of the cookbook, but would like to see a simple recipe to spark interest in visiting the diesel page.  It takes a lot of setup to get it to work, but I think a migration for one model and a query would suffice.  I think rusqlite, postgres, diesel would be a good scope.
allocators: I'd love to see a recipe that uses Box in a meaningful way, but it would need to be something that many developers could benefit from.  Implementing Deref would be great, but I think having a structured recipe that does something useful is the challenge.  Here's a common musing: https://users.rust-lang.org/t/when-should-i-use-box-t/4411/2 and it leads to a meaningful usecase: "for performance if T is large and is being moved around a lot, using a Box instead will avoid doing big memcpys".  I wonder if getting into the Rc, RefCell, and Cell land after that is too narrow use cases for the Cookbook.
mdbook depends on handlebars depends on pest.  That seems to be where 75% of pest's usage comes from.  You are right though about it being used more.  I can't make a claim about PEG vs LALR vs combinators.  If I knew what developers were actually interested in it would make crate inclusion easier.  I think we can start with nom and consider additional parsers later.
I'm not sure why num isn't showcased.  I also don't know if science is really needed by a wide audience.  We should probably just drop this and pursue https://github.com/rust-lang-nursery/rust-cookbook/issues/362
+1 xml-rs and maybe an xmltree example
+1 num  I think uuid-rs has a small usage case and already good documentation.  I figure if you need to generate a UUID, you just google uuid in rust and find the plain api.  +1 Bigint
I move to table the libc and winapi until more categories are fleshed out.
I agree with usable code rather than just implementing the datastructures.  I also agree that crossbeam_channel over std::sync::mspc::channel in the Cookbook.  We already highlight crossbeam.

@AndyGauge :+1: Sorry for taking so long. Imho all of these are valid points. Lets go with these recipes!


feat: Consistent code snippet theme and dark mode readability improvements

:tada: This PR is included in version 0.10.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Rename to background-sync

Fixes #176.
I'll rename the repo itself once this is merged.
@foolip, does this look right to you?

I've skimmed the changes and that's the change of URL I had in mind. It'll require renaming the repo itself, of course.

@foolip done, and renamed the repo


Make sure compliance-trestle demos are running correctly - Task Examples

Describe the bug
Compliance trestle demos repo is outdated and needs refreshment and review.
It is needed to go through the Task Examples review it runs correctly as the documentation specifies concretely for this one.
Compliance-trestle version used for the generation of the demos is too outdated now vs the current one, so as part of the revision, it should be ideal to run the demo with the latest version and see if anything has changed or needs refreshment.
If there is anything needed to be done there by the demo, please submit a PR against the repo to be reviewed and tracked.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots / Logs.
If applicable, add screenshots to help explain your problem.
Environment

OS: [e.g. iOS]
Python version:
Installed packages:

Two task demos work fine with the current version of the trestle. Updates are not needed.

Thanks @Ma1h01 . Closing it


fix the broken links

Resolves #1370

I ran the black formatter, but does not reproduce the error.
The format issue is irrelevant to this PR.


Services not the same over multiple devices (same account)

Describe the bug
Services seen on screen are empty on laptop, while they are filled on the pc. Is this proxy related?
To Reproduce

Login to pc at home
Screen is loaded with services.
Login with laptop at work
Nothing is shown.

Adding new services results in nothing.
When looking with "view" -> "Development tools", I get the following error

Expected behavior
See my services and continue with them.
Screenshots
Desktop (please complete the following information):

OS: Win 10 1903 18362.418
Browser n/a
Version

Additional context

It looks like Ferdi isn't able to install new recipes on your system. Could you please try to update to v5.4.0?

Update fixed it


Support Kernel files as input to dart2native

dart2native only supports Dart files as inputs, it can't create executables based on .dill files.
I'm currently working on a custom frontend generating Kernel from another language and I would like to create native executables for those Kernel files. It would be great if dart2native could apply AOT transformations and DCE on custom files Kernel files and then generate an executable from that.

At this point we largely consider Kernel format an implementation detail of the SDK rather than an input format that SDK tools use internally. (contrast with Java class files which are a distribution format). dart2native is an end-user tool - so given this interpretation it does not really make sense for it to consume Kernel format.


Improve qscript merging of Reduce.

Fixes #2186

@drostron hold of on merging this until I give the go ahead. We might need to PR this against backport instead of master.

@drostron ok, talked with @zeeiyerWork and this slated for 4.2.2 so master is the correct target for merge.


Use FROM docs/base:latest again

Signed-off-by: Sven Dowideit<EMAIL_ADDRESS>

LGTM

LGTM


Slow play back fix (#134)

Preview playback has few problems.

It uses System.Windows.Forms.Timer which has resolution about 16 ms and its multiples.
Processing time of bitmap and displaying it on UI was not taken into account.

First means that if frame delay is 20 ms it will be shown not earlier than after 32 ms. Second means that loading image, attaching it to UI control and refreshing whole interface is effectively pausing timer interval.
I have implemented two changes.

Got rid of System.Windows.Forms.Timer and replaced it with dedicated task executed by thread from domain thread pool when play command is invoked.
Added option to skip frames while during preview if behind schedule.

On example project with 96 frames in 720p and 10 ms of delay per every frame average time (for 10 passes) of play from first to last frame for original code was 5,2s. After changing timer to dedicated thread time dropped to 3,3s. After checking option to drop frames behind I have got 0,98s for 96 * 10 ms = 960 ms as target time.
I did add this option to editor settings

but now I see that there is probably more appropriate place here

Awesome!
I'm going to test it during the following days.
About the placement and text of the CheckBox:

We could put in the playback options too.
What do you think of the following sentences?

Description: "Drop frames when necessary."
Tooltip: "Skip a frame if the previewer is not able to display it in time."
The term "drop" looks like it's more in use for this kind of action (ignoring some frames during playback).

We could put in the playback options too.

You mean that the option should be available in both places?

What do you think of the following sentences?

I do not mind. Will change and send in next commit.

@NickeManarin If there will be found any problem with this commit feel free to assign it to me directly.

Thank you for your support! :)


[FEATURE REQUEST] Separate repository machine

We need it because we no longer have guaranteed that there will be kubernetes master machine.
Is your feature request related to a problem? Please describe.

AKS/EKS offline deployment

Describe the solution you'd like

Create repository machine
Configure repository machine
Validate networking/connections/apps if we need anything more.
Adjust epiphany scripts, so they can be used for our deployments.
Test and validate various deployment scenarios

Describe alternatives you've considered

We can go to cloud ECR/OCI but it will require internet connection, and complicate things

Additional context
Add any other context or screenshots about the feature request here.

@toszo we need your confirmation here.

I'm fine with detaching repository role from K8s Master machine.

Please take a look at configuration example that can be used https://github.com/epiphany-platform/epiphany/issues/1349#issuecomment-649405873 :+1:

Put it in SG of kubernetes master node.

looks good, no additional configuration was required

Helm needs to be included in local container with tunnelling

Tunnell tested manually and it works. Switch to review.

Tested:

single machine
multi master

on:

Ubuntu/RHEL x AWS/Azure

Requires additional testing with Vault enabled after bugfix for #1729 which @ar3ndt  is working on (due to planned changes in the repository/helm roles).

Bugfix #1729 fixed.
I installed the vault on kubernetes master when the flag k8s_as_cloud_service was false without any errors.
Vault works fine with the seperated repository and I tested the vault using the following scenario: link
All necessary binaries/files were downloaded properly from separated repository to the master machine.
Moreover I also tested the repository from local container in order to install filebeat (#1670) and node exporter (#1673) as daemonset and it works fine.

Default disk size for repository machine is increased. 64gb by default for both aws and azure.

Blocked by: [BUG] Only 32 GB mounted on the root directory when the disk size of the repository machine is 64 GB.

Azure/RedHat: available 32 GB - investigated in #1776
Azure/Ubuntu: available 62 GB
AWS/RedHat: available 64 GB
AWS/Ubuntu: available 62 GB


[Event request] Adding OnBeforeGetPurchLines integration event

Hi Microsoft AL Development Team,
Could you please add this integration event here to codeunit 444 "Purchase-Post Prepayments"?
    [IntegrationEvent(false, false)]
    local procedure OnBeforeGetPurchLines(PurchHeader: Record "Purchase Header"; DocumentType: Option Invoice,"Credit Memo",Statistic; var ToPurchLine: Record "Purchase Line"; var IsHandled: Boolean)
    begin
    end;

The GetSalesLines function has already has a similar event in codeunit 442 "Sales-Post Prepayments".
Thank you.
Kind regards,
Tuan Nguyen

Can you add the request title please?

Can you add the request title please?

I have added the title

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 16627.


Add a dark mode to docs

Thoughts? This change came to mind while working on #347.
Code comes from here:
https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/

Ooh, pretty


test: Fix for gsheet failures

Description

Fix for gsheet failures
Renamed "gsheet" datasource to "gsheet-all"  to make it unique

Type of change

Cypress change

Testing

How Has This Been Tested?

[x] Cypress

Checklist:
QA activity:

[ ] Added Test Plan Approved label after Cypress tests were reviewed

Summary by CodeRabbit

Refactor

Updated the data source reference for improved integration with Google Sheets.

@sarojsarab - Can you please attach the passing run links?

@sarojsarab - Can you please attach the passing run links?
https://github.com/appsmithorg/appsmith/actions/runs/7501162935


Bookmarklet: "Close" button scrolls back the page to the top

From<EMAIL_ADDRESS>on August 02, 2011 15:38:00
What steps will reproduce the problem? 1. Install the bookmarklet
2. Scroll down the page
3. Click the "Close" button in the h5o frame. What is the expected output? What do you see instead? The h5o frame should disappear and leave the page at the current scroll level What version of the product are you using? On what operating system? h5O v.<IP_ADDRESS> on Mac OS X 10.6.7 with Chrome 12.0.742.122, Safari 5.0.5 and Firefox 4.0.1. Please provide any additional information below. Changing the line near the end where
c.href="#"

for
c.href=null

Solves the issue on Chrome and Safari, but not in Firefox.
Original issue: http://code.google.com/p/h5o/issues/detail?id=9

Fixed in https://github.com/h5o/h5o-js/commit/e191a1c41bc46cf0ae5f70ddb070028220b8e7c8


Z-wave not installing on Windows

Home Assistant release with the issue:
0.8.2
Last working Home Assistant release (if known):
/ (I've not used HA until now)
Operating environment (Hass.io/Docker/Windows/etc.):
64-bit Windows 10 (build 1803)
Component/platform:
https://www.home-assistant.io/components/zwave/
Description of problem:
Z-wave installation does not seem to work on windows at all.
I installed Home Assistant from steps in here https://www.home-assistant.io/docs/installation/windows/ and tried enabling Z-Wave integration in HA web gui. That failed with following stack trace:
2018-11-17 16:19:49 ERROR (SyncWorker_11) [homeassistant.util.package] Unable to install package homeassistant-pyozw==0.1.1: Command "python setup.py egg_info" failed with error code 1 in C:\Users\Matej\AppData\Local\Temp\pip-install-3vkq7qyp\homeassistant-pyozw\
2018-11-17 16:19:49 ERROR (MainThread) [homeassistant.requirements] Not initializing <class 'homeassistant.components.zwave.config_flow.ZwaveFlowHandler'> because could not install requirement homeassistant-pyozw==0.1.1
2018-11-17 16:19:49 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\aiohttp\web_protocol.py", line 390, in start
    resp = await self._request_handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\aiohttp\web_app.py", line 366, in _handle
    resp = await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\aiohttp\web_middlewares.py", line 106, in impl
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\static.py", line 66, in staticresource_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\ban.py", line 66, in ban_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\auth.py", line 97, in auth_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\real_ip.py", line 34, in real_ip_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\ban.py", line 66, in ban_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\auth.py", line 97, in auth_middleware
    return await handler(request)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\view.py", line 113, in handle
    result = await result
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\components\http\data_validator.py", line 47, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\helpers\data_entry_flow.py", line 57, in post
    handler, context={'source': config_entries.SOURCE_USER})
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\data_entry_flow.py", line 57, in async_init
    handler, context=context, data=data)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\config_entries.py", line 514, in _async_create_flow
    self.hass, self._hass_config, handler, component)
  File "C:\Users\Matej\AppData\Local\Programs\Python\Python37-32\lib\site-packages\homeassistant\setup.py", line 248, in async_process_deps_reqs
    raise HomeAssistantError("Could not install all requirements.")
homeassistant.exceptions.HomeAssistantError: Could not install all requirements.

So, automatic install of z wave package failed. Then I tried to install it manually. I followed this guide: https://github.com/home-assistant/python-openzwave/blob/master/INSTALL_WIN.rst (except that I replaced the OpenZWave git links with home assistant forks. I also used hass branch instead of master when cloning both openzwave and python-openzwave repos).
Compilation failed with this exception:
OpenZWave.lib(CommandClasses.obj) : error LNK2001: unresolved external symbol "private: __thiscall OpenZWave::BarrierOperator::BarrierOperator(unsigned int,unsigned char)" (??0BarrierOperator@OpenZWave@@AAE@IE@Z)
build\lib.win32-3.7\libopenzwave.cp37-win32.pyd : fatal error LNK1120: 1 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.12.25827\\bin\\HostX86\\x86\\link.exe' failed with exit status 1120

Is this a bug or am I doing something wrong?
(I know windows is not the target platform here, but I do not have everything ready for the real deal yet, so I want to play around with Z-wave through my main PC until I get the hang of things).

Dang. I actually fixed this issue after tinkering in python-openzwave for a couple weeks. It looks like they are back as I updated to 0.84.2 from the fork, and my z-wave devices are down.
Here are the pull requests where I fixed this. If I get some time over the next couple weeks, I'll try to dig in to it again here with the forked version.
https://github.com/OpenZWave/python-openzwave/pull/131
https://github.com/OpenZWave/python-openzwave/pull/133

If you can't build homeassistant-pyozw on a local development machine yourself, I have a workaround any Windows user should be able to follow without needing a working development envrionment.

Create a personal fork of https://github.com/home-assistant/python-openzwave
Setup your personal fork of home-assistant/python-openzwave to be built at AppVeyor. You need to set the "hass" branch as the default branch to build.
Kick off a build in AppVeyor of the "hass" branch. It takes around an hour for all the different configurations to be built so go grab a cup of coffee.
When the build is done, you should see a job for each configuration like the image below. Click on the one for your environment, I used Python36-x64.
From the job detail page click on the Artifacts tab and then click on the .whl file link to download it locally.
Place the file on your HA machine and do a pip install path/to/yourfile.whl
You'll need to keep your personal fork of homeassistant-pyozw in sync with homeassistant-pyozw for future updates to HA.

I hope this helps others running on Windows to get zwave back online in the current version of HA. I'm researching how we get these .whl files in the pip package for python-openzwave and then get that merged in to the homeassistant-pyozw fork.

I finished some work on OpenZWave/python-openzwave that will resolve this for users deploying HA to Windows. It will now use a whl to deploy a pre-built version of package.
OpenZWave/python-openzwave PR # 150
The home-assistant/python-openzwave fork needs synced up with OpenZWave/python-openzwave.
I'm not sure if someone also needs to do something to https://pypi.org/project/homeassistant-pyozw/ to make sure the .whl's are uploaded. I don't think there is and it should just work when the AppVeyor build is kicked off.
For example, see:
[https://files.pythonhosted.org/packages/20/8b/ba305cc078c4d8367528e3d929533b64b35a7ee971b140bee6191d410a1b/python_openzwave-0.4.18-cp27-cp27m-win_amd64.whl
](https://files.pythonhosted.org/packages/20/8b/ba305cc078c4d8367528e3d929533b64b35a7ee971b140bee6191d410a1b/python_openzwave-0.4.18-cp27-cp27m-win_amd64.whl
l)

Was this resolved with the merge?

The upstream  OpenZWave/python-openzwave master still hasn't been merged. I have to do the above work around every time I updated HA and they bump the version of the forked ozw repo.

I don't use Z wave with Windows anymore, so I cannot comment on whether this issue has been resolved or not.


Fully remove eth_sign

Explanation
Months ago, because of phishing risk, we disabled the eth_sign API method by default (users could manually enable it with a preference toggle). Now because of additional risk associated with potentially malicious EIP-3074 invokers we are fully removing support for this method.
References

Fixes https://github.com/MetaMask/MetaMask-planning/issues/2371

Changelog
@metamask/signature-controller

REMOVED: Methods related to eth_sign signatures - unapprovedMsgCount, messages, newUnsignedMessage - have been removed.
REMOVED: constructor argument isEthSignEnabled  is no longer expected

@metamask/preferences-controller

REMOVED: disabledRpcMethodPreferences removed from state
REMOVED: setDisabledRpcMethodPreference removed

Checklist

[ ] I've updated the test suite for new or updated code as appropriate
[ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
[ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate

Only question I had was whether we actually want to remove the disabledRpcMethodPreferences state in the PreferencesController in case we want to add different methods later on? Or perhaps that would be unnecessary and confusing


typo in tooltip for grid gallery

tooltip text reads 'This Web Pat' - should be 'This Web Part'

Hey i add Grid Gallery but at settings i cant add data the library of the images.  I am doing something wrong? Below you will find a screenshot. Thanks for your help. Stelios


Setup CI

Setup Travis CI for automated building and testing

At first need to solve Code Signing https://github.com/skyylex/SKEPParser/issues/2

Code signing issue is fixed.

Reopen due to the need of automatic tests

Fixed


algorithm

I want all the algorithm in C. The root directory is algo_c and the file name should be the name of the algorithm.

can i contribute to this repo. I wanna give it a chance


"Init" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.

I'm trying to add the @nxtend/capacitor plugin to an existing nx workspace but after installing the plugin with nx add @nxtend/capacitor, when I run nx generate @nxtend/capacitor:init I get the following error:
"Init" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.

Hi, thanks! Yeah I'm aware of this issue, I think something was changed in Nx 12 that made it no longer compatible with my plugin. I have been working hard the last few months to rewrite these plugins for Nx 12 compatibility among other things. I'm hoping I can start rolling out updates within the next couple weeks.


XMLHttpRequest: Handles "progress" event on omni-value response body

GitHub

Fixes https://github.com/mswjs/msw/issues/487

Changes

The progress event of XMLHttpRequest now fires only when the mocked response body was set (there's a body to load), and the coerced response body according to responseType is present (coercion was successful, the mocked response body is valid against the specified responseType).
The progress event now converts the raw mocked response body (string) into a Buffer, to handle various body types (string, JSON, ArrayBuffer, Blob) and determine their length.
Adds a test to assert missing/invalid response body handling of an XMLHttpRequest with responseType = 'json'. Actual XHR behavior was taken for the reference.

XMLHttpRequest events re-ordering issue created: https://github.com/mswjs/node-request-interceptor/issues/76


Bug Report: Link Text Color Not Changing on Visit[Bug]:

Contact Details
No response
What happened?
Description
When we visit the "MIT License" and "GitHub" links in the footer (© 2024 Digitomize. MIT Licensed. Contribute on GitHub), the text color does not change to indicate that the links have been visited. This behavior is not consistent with typical user experience expectations for visited links.
Steps to Reproduce

Open the webpage containing the footer with the text "© 2024 Digitomize. MIT Licensed. Contribute on GitHub."
Click on the "MIT Licensed" link.
Return to the original page.
Observe that the color of the "MIT Licensed" link has not changed.
Repeat steps 2-4 for the "GitHub" link.

Expected Behavior
The color of the links should change to indicate that they have been visited. This is typically controlled by the CSS pseudo-class :visited.
Actual Behavior
The color of the links does not change after being visited.
Possible Solution
Ensure that the CSS includes styling for the :visited pseudo-class for these links.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Are you interested in contributing?

[X] I'd like to work on this issue

Code of Conduct

[X] I have used the search function to check if an issue already exists
[X] I agree to follow this project's Code of Conduct

Which program are you contributing in?
ssoc

can i work on this under gssoc24?

Not required


[enhance][kibana]manage internal and external certificate in the same way

Let's deployment controller handle the pod restart instead to manage it on tls controller.

It's ok


Add license

Without a license, the code in this repo is basically all rights reserved so please consider adding a license for this project :P
https://choosealicense.com is a good website to see which license fit you.

solved, thanks, closed


Hiding Kibana Apps Based on Given Permission

I think it would be nice to add the ability to control whether the Management, Monitoring, etc tabs can be shown to a user based on the given permission to that user.

This will be part of a bigger feature set for the Kibana plugin. However, it will take a while until everything is finished. But we are already working on it.

Hi Team,
Any update on this feature?
Best,
Yash

The implementation is finished and the feature is in QA at the moment. So expect it anytime within the next 4 weeks for SG7.

@jochenkressin,
Thanks for the update. Looking forward of this feature.
Best,
Yash

@jochenkressin any update on which version of SG7?

The feature is in QA at the moment and will be the next thing we release with SG 37.0.0. It will be made available for all ES 7.x versions.

Will this feature be part of the community version or enterprise one?

Thanks!

This will be released as a Community feature :)

Awesome, thank you!


irmin-graphql: Schema fetching broken with Graphiql

Currently if you start the examples/custom_graphql.exe example the GraphiQL interface returns an error and the schema exploration is not possible:
Error: Introspection must provide input type for arguments.
    at invariant (http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:25811:11)
    at getInputType (http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:33531:67)
    at buildInputValue (http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:33675:16)
    at http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:25955:31
    at Array.reduce (<anonymous>)
    at keyValMap (http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:25954:15)
    at buildInputValueDefMap (http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:33669:36)
    at http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:33663:15
    at http://cdn.jsdelivr.net/npm/graphiql@0.12.0/graphiql.js:25955:31
    at Array.reduce (<anonymous>)

It seems the interface still works, but having the schema documentation to hand is very useful for testing and learning. It seems reverting the following two changes makes it work again (i.e. it needs to be ContentsKeyValue and NodeKeyValue).
https://github.com/mirage/irmin/pull/1750/files#diff-75527fd1166eaf7260ee082ee27f3241098048ce7ce592c1a605efb98026da70R445

Thanks! Where did that error message come from?
I'm getting a different error message in the graphiql interface even if I change ContentsKey and NodeKey to ContentsKeyValue and NodeKeyValue - I will investigate a little more.

Nevermind, your suggested fix works - I just made a PR and will merge it today :smile: