Installing @google-cloud & grpc fails via npm

What version of gRPC and what language are you using?
Trying to install google-cloud/pubsub, and it's dependent on gRPC. Using NPM 4.2 and Node.js 7.8
What operating system (Linux, Windows, …) and version?
Ubuntu 16.04, running in Docker
What runtime / compiler are you using (e.g. python version or version of gcc)
NPM
What did you do?
Simply running NPM install on @google-cloud/pubsub or grpc directly results in this error:
><EMAIL_ADDRESS>install /root/folder/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.2/node-v51-linux-x64-glibc.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v51 ABI, glibc) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack     at /usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:114:15)
gyp ERR! System Linux 4.4.0-101-generic
gyp ERR! command "/usr/local/nvm/versions/node/v7.8.0/bin/node" "/usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/root/folder/node_modules/grpc/src/node/extension_binary/node-v51-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/root/folder/node_modules/grpc/src/node/extension_binary/node-v51-linux-x64-glibc"
gyp ERR! cwd /root/folder/node_modules/grpc
gyp ERR! node -v v7.8.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/nvm/versions/node/v7.8.0/bin/node /usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/root/folder/node_modules/grpc/src/node/extension_binary/node-v51-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/root/folder/node_modules/grpc/src/node/extension_binary/node-v51-linux-x64-glibc' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/folder/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.0-101-generic
node-pre-gyp ERR! command "/usr/local/nvm/versions/node/v7.8.0/bin/node" "/root/folder/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /root/folder/node_modules/grpc
node-pre-gyp ERR! node -v v7.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/nvm/versions/node/v7.8.0/bin/node /usr/local/nvm/versions/node/v7.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/root/folder/node_modules/grpc/src/node/extension_binary/node-v51-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/root/folder/node_modules/grpc/src/node/extension_binary/node-v51-linux-x64-glibc' (1)

npm ERR! argv "/usr/local/nvm/versions/node/v7.8.0/bin/node" "/usr/local/nvm/versions/node/v7.8.0/bin/npm" "i"
npm ERR! node v7.8.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR<EMAIL_ADDRESS>install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build --library=static_library'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the grpc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs grpc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls grpc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/.npm/_logs/2017-12-07T08_52_12_285Z-debug.log
Exited with code 1

Anything else we should know about your project / environment?
Seeing the error in CircleCI when trying to deploy to Docker, but works fine locally in similar enviroment

This looks like a network failure. You can see near the top of that error output that it fails to download a file, and you can verify manually that that file does actually exist. The environment you are installing on may be causing some problems with outgoing network connections, maybe specifically to Google Cloud Storage.

@murgatroid99 Thanks for the response -- I don't think the issue is with the network/outgoing connections, as if I run wget https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.7.2/node-v51-linux-x64-glibc.tar.gz in the same environment, it downloads fine.
Any other ideas by chance?

Temporary solution for this is to upload the grpc npm package to our Github repo to use with Circleci, but would prefer not to do this.

Also having this issue. @StephanStokic - are any other steps required for beside including in the repo? Would really appreciate some tips

Experiencing this as well with a slightly different version combination, but otherwise all behaviour identical.
node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.8.0/node-v48-linux-x64-glibc.tar.gz

Checking in the node_modules/grpc directory did not make any difference in my case.

Bump. Same issue here. Oddly, npm install as a circleci build step seems to install just fine. When attempting to build my image, however, it fails as described.

Hi, I have the same issue. @kulinsj @kulinsj. but I switch the china mirror (https://registry.npm.taobao.org)
work for me.
PS D:\Git\www> cnpm install grpc √ Installed 1 packages √ Linked 36 latest versions node-pre-gyp http GET https://npm.taobao.org/mirrors/grpc/v1.8.0/node-v57-win32-x64-unknown.tar.gz node-pre-gyp http 200 https://npm.taobao.org/mirrors/grpc/v1.8.0/node-v57-win32-x64-unknown.tar.gz [grpc] Success: "D:\Git\www\node_modules\_grpc<EMAIL_ADDRESS>is installed via remote √ Run 1 scripts Recently updated (since 2017-12-14): 1 packages (detail see file D:\Git\www\node_modules\.recently_updates.txt) √ All packages installed (37 packages installed from npm registry, used 4s, speed 20.27kB/s, json 37(71.35kB), tarball 0B)

Hi @seamys, unfortunately, this didn't change the error for me. The download was fine (http 200), but again, unpacking the successfully downloaded files is what fails.
node-pre-gyp http GET https://npm.taobao.org/mirrors/grpc/v1.8.0/node-v48-linux-x64-glibc.tar.gz
node-pre-gyp http 200 https://npm.taobao.org/mirrors/grpc/v1.8.0/node-v48-linux-x64-glibc.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://npm.taobao.org/mirrors/grpc/v1.8.0/node-v48-linux-x64-glibc.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for<EMAIL_ADDRESS>and<EMAIL_ADDRESS>(node-v48 ABI, glibc) (falling back to source compile with node-gyp)

As a workaround, forcing the build to use grpc 1.6.6 seems to work for now.
// in package.json
"dependencies": {
  ...
  "grpc": "1.6.6",
  ...
}

Having these same problems with the install on Ubuntu. File downloads fine with wget, but install fails saying it can't get the file https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.9.1/node-v57-linux-x64-glibc.tar.gz

Run "npm install grpc --save" before npm install
OR
Delete node_modules folder and package-lock.json file then start with above line will fix the issue.

@arifsami03 This is not working, still same errors.


Append --cache to eslint invocation

For particularly large codebases, running the linter can take a lot of time.
This commit appends --cache to our lint task which adds a cache for eslint to read from if a file hasn't changed.
Right now HUD can serve as a proof of concept, but if it works there we should add this to the core scripts.
Issue in HUD https://github.com/iopipe/hud/pull/1407

Should be able to toggle this so CircleCI doesn't use the cache


[BUG] Upgrade stucks in Waiting for RKE2 to be upgraded, fleet-agent was scaled down, but failed to scale up

Describe the bug

apply-manifests finished , even with some error messages https://github.com/harvester/harvester/issues/4095#issuecomment-1599484467, but it did not stuck there
logs of apply-manifests
....
addon.harvesterhci.io/vm-import-controller patched
addon.harvesterhci.io/pcidevices-controller patched
upgrade addon rancher_monitoring
upgrade addon rancher_logging

Tue Jun 20 20:50:22 UTC 2023
NAMESPACE     NAME                                          BUNDLEDEPLOYMENTS-READY   STATUS
fleet-local   fleet-agent-local                             1/1
fleet-local   local-managed-system-agent                    1/1
fleet-local   mcc-harvester                                 1/1
fleet-local   mcc-harvester-crd                             1/1
fleet-local   mcc-local-managed-system-upgrade-controller   1/1
fleet-local   mcc-rancher-logging-crd                       1/1
fleet-local   mcc-rancher-monitoring-crd                    1/1
all bundles are ready
Tue Jun 20 20:57:48 UTC 2023

harv31:/home/rancher # kk get upgrade.harvesterhci.io -A
NAMESPACE          NAME                 AGE
harvester-system   hvst-upgrade-scnqb   35m
harv31:/home/rancher # kk get upgrade.harvesterhci.io -A -oyaml
apiVersion: v1
items:
- apiVersion: harvesterhci.io/v1beta1
  kind: Upgrade
  metadata:
    creationTimestamp: "2023-06-20T20:29:00Z"
    finalizers:
    - wrangler.cattle.io/harvester-upgrade-controller
    generateName: hvst-upgrade-
    generation: 14
    labels:
      harvesterhci.io/latestUpgrade: "true"
      harvesterhci.io/upgradeState: UpgradingNodes
    name: hvst-upgrade-scnqb
    namespace: harvester-system
    resourceVersion: "56088"
    uid: a36e81b9-898f-4e5a-ade1-918994277f2a
  spec:
    image: ""
    logEnabled: true
    version: v1.2.0
  status:
    conditions:
    - status: Unknown
      type: Completed
    - lastUpdateTime: "2023-06-20T20:29:17Z"
      status: "True"
      type: LogReady
    - lastUpdateTime: "2023-06-20T20:29:50Z"
      status: "True"
      type: ImageReady
    - lastUpdateTime: "2023-06-20T20:30:43Z"
      status: "True"
      type: RepoReady
    - lastUpdateTime: "2023-06-20T20:37:17Z"
      status: "True"
      type: NodesPrepared
    - lastUpdateTime: "2023-06-20T20:50:29Z"
      status: "True"
      type: SystemServicesUpgraded
    - status: Unknown
      type: NodesUpgraded
    imageID: harvester-system/harvester-iso-lnrn4
    nodeStatuses:
      harv31:
        state: Images preloaded
    previousVersion: v1.1.2
    repoInfo: |
      release:
          harvester: ab3fdceb
          harvesterChart: 0.0.0-fix4071-2-ab3fdceb
          os: Harvester 9702369-dirty
          kubernetes: v1.25.9+rke2r1
          rancher: v2.7.5-rc5
          monitoringChart: 102.0.0+up40.1.2
    singleNode: harv31
    upgradeLog: hvst-upgrade-scnqb-upgradelog
kind: List
metadata:
  resourceVersion: ""
harv31:/home/rancher #

log of single-node-upgrade
+ upgrade_rke2
++ mktemp -p /host/usr/local/upgrade_tmp
+ patch_file=/host/usr/local/upgrade_tmp/tmp.Yh3uoFcmaO
+ cat
+ kubectl patch clusters.provisioning.cattle.io local -n fleet-local --patch-file /host/usr/local/upgrade_tmp/tmp.Yh3uoFcmaO --type merge
cluster.provisioning.cattle.io/local patched
+ wait_rke2_upgrade
++ echo -n v1.25.9+rke2r1
++ sed 's/-rc[[:digit:]]*//g'
+ REPO_RKE2_VERSION_WITHOUT_RC=v1.25.9+rke2r1
++ get_node_rke2_version
++ kubectl get node harv31 -o yaml
++ yq -e e .status.nodeInfo.kubeletVersion -
Waiting for RKE2 to be upgraded...
+ '[' v1.24.11+rke2r1 = v1.25.9+rke2r1 ']'
+ echo 'Waiting for RKE2 to be upgraded...'
+ sleep 5

....

Waiting for RKE2 to be upgraded...
++ get_node_rke2_version
++ kubectl get node harv31 -o yaml
++ yq -e e .status.nodeInfo.kubeletVersion -
+ '[' v1.24.11+rke2r1 = v1.25.9+rke2r1 ']'
+ echo 'Waiting for RKE2 to be upgraded...'
+ sleep 5
Waiting for RKE2 to be upgraded...

harv31:~ # kk get node -A
NAME     STATUS   ROLES                              AGE   VERSION
harv31   Ready    control-plane,etcd,master,worker   32d   v1.24.11+rke2r1
harv31:~ #

harv31:~ # kk get clusters.provisioning.cattle.io -A -oyaml
apiVersion: v1
items:
- apiVersion: provisioning.cattle.io/v1
  kind: Cluster
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"provisioning.cattle.io/v1","kind":"Cluster","metadata":{"annotations":{},"name":"local","namespace":"fleet-local"},"spec":{"kubernetesVersion":"v1.24.11+rke2r1","rkeConfig":{"controlPlaneConfig":null}}}
...
  spec:
    kubernetesVersion: v1.25.9+rke2r1

local-managed-system-upgrade-controller is waiting for upgrade
harv31:~ # kk get bundle -A
NAMESPACE     NAME                                          BUNDLEDEPLOYMENTS-READY   STATUS
fleet-local   fleet-agent-local                             1/1
fleet-local   local-managed-system-agent                    1/1
fleet-local   mcc-harvester                                 1/1
fleet-local   mcc-harvester-crd                             1/1
fleet-local   mcc-local-managed-system-upgrade-controller   0/1                       WaitApplied(1) [Cluster fleet-local/local]
fleet-local   mcc-rancher-logging-crd                       1/1
fleet-local   mcc-rancher-monitoring-crd                    1/1
harv31:~ #

but fleet-agent pod is gone:
harv31:~ # kk get pods -A
NAMESPACE                  NAME                                                        READY   STATUS      RESTARTS      AGE
cattle-fleet-system        fleet-controller-56786984f4-lfhsf                           1/1     Running     0             50m
cattle-fleet-system        gitjob-845b9dcc47-kq967                                     1/1     Running     0             50m

fleet-controller has such error:

time="2023-06-20T20:51:23Z" level=info msg="While calculating status.ResourceKey, error running helm template for bundle mcc-local-managed-system-upgrade-controller with target options from : chart requires kubeVersion: >= 1.23.0-0 which is incompatible with Kubernetes v1.20.0"

ime="2023-06-20T20:49:55Z" level=info msg="waiting for service account token key to be populated for secret fleet-local/import-token-local-cd85db21-109c-4b93-b7b8-a6b64d75f80c-token"
time="2023-06-20T20:49:57Z" level=info msg="Deleted old agent for cluster (fleet-local/local) in namespace cattle-fleet-local-system"
time="2023-06-20T20:49:58Z" level=info msg="Cluster import for 'fleet-local/local'. Deployed new agent"
time="2023-06-20T20:49:58Z" level=info msg="Deleted old agent for cluster (fleet-local/local) in namespace cattle-fleet-local-system"
time="2023-06-20T20:49:58Z" level=info msg="Cluster import for 'fleet-local/local'. Deployed new agent"
time="2023-06-20T20:50:00Z" level=info msg="Cluster registration request 'fleet-local/request-2drgz', cluster 'fleet-local/local' granted [false], creating cluster and request service account"
time="2023-06-20T20:50:00Z" level=info msg="Cluster registration request 'fleet-local/request-mdphm', cluster 'fleet-local/local' granted [false], creating cluster and request service account"
time="2023-06-20T20:50:00Z" level=info msg="waiting for service account token key to be populated for secret cluster-fleet-local-local-1a3d67d0a899/request-2drgz-c9636d69-579d-470f-879d-bced1069b906-token"
time="2023-06-20T20:50:00Z" level=info msg="waiting for service account token key to be populated for secret cluster-fleet-local-local-1a3d67d0a899/request-mdphm-7fa9c607-c7db-4ae0-9b0f-9aad3338d517-token"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-2drgz', cluster 'fleet-local/local' granted [true], creating cluster and request service account"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-2drgz', cluster 'fleet-local/local' granted [true], creating cluster and request service account"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-mdphm', cluster 'fleet-local/local' granted [true], creating cluster and request service account"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-mdphm', cluster 'fleet-local/local' granted [true], creating cluster and request service account"

time="2023-06-20T20:51:23Z" level=info msg="While calculating status.ResourceKey, error running helm template for bundle mcc-local-managed-system-upgrade-controller with target options from : chart requires kubeVersion: >= 1.23.0-0 which is incompatible with Kubernetes v1.20.0"

time="2023-06-20T20:54:09Z" level=info msg="Deleting orphaned content[s-882a70e702bd9ff5f694d7fb38f1c2781c3a77d01784b84dcc2f825c8201b]"
time="2023-06-20T20:54:09Z" level=info msg="Deleting orphaned content[s-2071566478ea38e5c6370fc4989578af40acc316792e36b067916258e03a8]"
time="2023-06-20T20:54:09Z" level=info msg="Deleting orphaned content[s-1c31172e241c5cdb02be20688ba3660435c0ce1a3b3cc56a63c56ac20d43c]"
time="2023-06-20T20:54:09Z" level=info msg="Deleting orphaned content[s-607b07bc72a1fc5fef261e81b989a5b5f0863e51730ccf22e9af6e5498ff7]"
time="2023-06-20T21:30:02Z" level=info msg="Deleting expired registration secret cattle-fleet-clusters-system/c-c8ee7f7a93be60d7cb174a44ed98b769791771be29cbd3b539806c9e7f3eb"
time="2023-06-20T21:30:02Z" level=info msg="Deleting expired registration secret cattle-fleet-clusters-system/c-108b8d9e610af40b419164367639af861293eb035d63723e978065ade031a"

To Reproduce
Steps to reproduce the behavior:

v1.1.2 -> v1.2.0 master-head  single-node cluster upgrade

Expected behavior

upgrade is successful
Support bundle

Environment

Harvester ISO version:
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Additional context
Add any other context about the problem here.
Observed when testing https://github.com/harvester/harvester/pull/4117
Other related issues:
#4096
#4095

This error from fleet-controller may be critical

time="2023-06-20T20:51:23Z" level=info msg="While calculating status.ResourceKey, error running helm template for bundle mcc-local-managed-system-upgrade-controller with target options from : chart requires kubeVersion: >= 1.23.0-0 which is incompatible with Kubernetes v1.20.0"

fleet-agent POD is gone
harv31:~ # kk get pods -A | grep fleet
cattle-fleet-system        fleet-controller-56786984f4-lfhsf                           1/1     Running     0             68m
cattle-fleet-system        gitjob-845b9dcc47-kq967                                     1/1     Running     0             68m
harv31:~ #

harv31:~ # kk get bundle -A
NAMESPACE     NAME                                          BUNDLEDEPLOYMENTS-READY   STATUS
fleet-local   fleet-agent-local                             1/1
..
fleet-local   mcc-local-managed-system-upgrade-controller   0/1                       WaitApplied(1) [Cluster fleet-local/local]
..

harv31:~ # kk get bundledeployment -A
NAMESPACE                                NAME                                          DEPLOYED   MONITORED   STATUS
cluster-fleet-local-local-1a3d67d0a899   fleet-agent-local                             True       True
..
cluster-fleet-local-local-1a3d67d0a899   mcc-local-managed-system-upgrade-controller   True       True

The clusters.provisioning.cattle.io is pending from v1.24.11+rke2r1 -> v1.25.9+rke2r1
harv31:~ # kk get bundledeployment  -n cluster-fleet-local-local-1a3d67d0a899 fleet-agent-local -oyaml
apiVersion: fleet.cattle.io/v1alpha1
kind: BundleDeployment
metadata:
..
  name: fleet-agent-local
  namespace: cluster-fleet-local-local-1a3d67d0a899
  resourceVersion: "55726"
  uid: 85bd67dd-172f-459a-a85b-c66e389d1042
spec:
...
status:
  appliedDeploymentID: s-5a460ff0e462e12abaefdfc2f47fdedacf2330acb7a7d9d510b0dc5645f5c:32eb9f72e71f28d6a3ee815ddf77e461aa78ec0b6870afe4765c423d31bf6557
  conditions:
  - lastUpdateTime: "2023-05-19T09:13:41Z"
    status: "True"
    type: Installed
  - lastUpdateTime: "2023-06-20T20:50:06Z"
    status: "True"
    type: Deployed
  - lastUpdateTime: "2023-06-20T20:50:11Z"
    status: "True"
    type: Ready
  - lastUpdateTime: "2023-06-20T20:50:11Z"
    status: "True"
    type: Monitored
  display:
    deployed: "True"
    monitored: "True"
    state: Ready
  nonModified: true
  ready: true
  release: cattle-fleet-local-system/fleet-agent-local:12
  syncGeneration: 0
harv31:~ #

The old fleet-agent was scaled down to 0, and fleet-controller encounters error to deploy new fleet-agent.The upgrade hangs here.
harv31:/home/rancher # kk describe deployment -n cattle-fleet-local-system fleet-agent

Replicas:               0 desired | 0 updated | 0 total | 0 available | 0 unavailable

Events:
  Type    Reason             Age   From                   Message
  ----    ------             ----  ----                   -------
  Normal  ScalingReplicaSet  60m   deployment-controller  Scaled down replica set fleet-agent-7b6499b8d6 to 0

time="2023-06-20T20:49:55Z" level=info msg="waiting for service account token key to be populated for secret fleet-local/import-token-local-cd85db21-109c-4b93-b7b8-a6b64d75f80c-token"
time="2023-06-20T20:49:57Z" level=info msg="Deleted old agent for cluster (fleet-local/local) in namespace cattle-fleet-local-system"
time="2023-06-20T20:49:58Z" level=info msg="Cluster import for 'fleet-local/local'. Deployed new agent"
time="2023-06-20T20:49:58Z" level=info msg="Deleted old agent for cluster (fleet-local/local) in namespace cattle-fleet-local-system"

time="2023-06-20T20:49:58Z" level=info msg="Cluster import for 'fleet-local/local'. Deployed new agent"
time="2023-06-20T20:50:00Z" level=info msg="Cluster registration request 'fleet-local/request-2drgz', cluster 'fleet-local/local' granted [false], creating cluster and request service account"
time="2023-06-20T20:50:00Z" level=info msg="Cluster registration request 'fleet-local/request-mdphm', cluster 'fleet-local/local' granted [false], creating cluster and request service account"
time="2023-06-20T20:50:00Z" level=info msg="waiting for service account token key to be populated for secret cluster-fleet-local-local-1a3d67d0a899/request-2drgz-c9636d69-579d-470f-879d-bced1069b906-token"
time="2023-06-20T20:50:00Z" level=info msg="waiting for service account token key to be populated for secret cluster-fleet-local-local-1a3d67d0a899/request-mdphm-7fa9c607-c7db-4ae0-9b0f-9aad3338d517-token"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-2drgz', cluster 'fleet-local/local' granted [true], creating cluster and request service account"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-2drgz', cluster 'fleet-local/local' granted [true], creating cluster and request service account"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-mdphm', cluster 'fleet-local/local' granted [true], creating cluster and request service account"
time="2023-06-20T20:50:02Z" level=info msg="Cluster registration request 'fleet-local/request-mdphm', cluster 'fleet-local/local' granted [true], creating cluster and request service account"

time="2023-06-20T20:51:23Z" level=info msg="While calculating status.ResourceKey, error running helm template for bundle mcc-local-managed-system-upgrade-controller with target options from : chart requires kubeVersion: >= 1.23.0-0 which is incompatible with Kubernetes v1.20.0"

Verified fixed on v1.2.0-rc3. Close this issue.
Result

The upgrade did not stuck in the Waiting RKE2 to be upgraded

We can pass the updating system stage and finish the single node upgrade to v1.2.0-rc3

And also pass the updating system stage and finish the multi node upgrade to v1.2.0-rc3

Updating system jobs logs
 wait for rollout of logging and audit                                                                                │
│ deployment "rancher-logging" successfully rolled out                                                                                │
│ daemon set "rancher-logging-root-fluentbit" successfully rolled out                                                                                │
│ daemon set "rancher-logging-rke2-journald-aggregator" successfully rolled out                                                                                │
│ daemon set "rancher-logging-kube-audit-fluentbit" successfully rolled out                                                                                │
│ success to wait rollout logging audit                                                                                │
│ there are 10 pods in cattle-logging-system after upgrade                                                                                │
│ Logging Event Audit: finish converting                                                                                │
│ Applying extra manifests                                                                                │
│ No extra manifests in /usr/local/share/extra_manifests/v1.1.2 to apply                                                                                │
│ addon.harvesterhci.io/vm-import-controller patched                                                                                │
│ addon.harvesterhci.io/pcidevices-controller patched                                                                                │
│ Error from server (NotFound): addons.harvesterhci.io "harvester-seeder" not found                                                                                │
│ addon.harvesterhci.io/harvester-seeder created                                                                                │
│ upgrade addon rancher_monitoring                                                                                │
│ upgrade addon rancher_logging                                                                                │
│                                                                                │
│ Tue Jul 11 14:49:34 UTC 2023                                                                                │
│ NAMESPACE     NAME                                          BUNDLEDEPLOYMENTS-READY   STATUS                                                                                │
│ fleet-local   fleet-agent-local                             1/1                                                                                │
│ fleet-local   local-managed-system-agent                    1/1                                                                                │
│ fleet-local   mcc-harvester                                 1/1                                                                                │
│ fleet-local   mcc-harvester-crd                             1/1                                                                                │
│ fleet-local   mcc-local-managed-system-upgrade-controller   1/1                                                                                │
│ fleet-local   mcc-rancher-logging-crd                       1/1                                                                                │
│ fleet-local   mcc-rancher-monitoring-crd                    1/1                                                                                │
│ all bundles are ready                                                                                │
│ Stream closed EOF for harvester-system/hvst-upgrade-5vs5j-apply-manifests-kmc2g (apply)

Test Information

Test Environment: single and four nodes harvester on provo bare machine
Harvester version: v1.1.2 to v1.2.0-rc3

Verify Steps

Prepare a single or four nodes v1.1.2 Harvester cluster
Create vlan network and create a virtual machine
Upgrade to v1.2.0-rc3
Check the upgrade state


urdf_launch: 0.1.0-1 in 'rolling/distribution.yaml' [bloom]

Increasing version of package(s) in repository urdf_launch to 0.1.0-1:

upstream repository: https://github.com/MetroRobots/urdf_launch.git
release repository: https://github.com/ros2-gbp/urdf_launch-release.git
distro file: rolling/distribution.yaml
bloom version: 0.11.2
previous version for package: null

urdf_launch
* Initial Package
* Contributors: David V. Lu!!

Holding for an upcoming Rolling sync

Previously: https://github.com/ros/rosdistro/pull/37315


different result using iterative_salsa -vs- SALSA2

Hi
When I used the older https://github.com/machinegun/SALSA/tree/iterative_salsa and SALSA2 (with -m no), I think they should get the same result. But I got a very different result. And the iterative_salsa is much better. What is the different between them ?
Thanks.

We recommend using the latest version on the master branch. Iterative_salsa branch was used to develop new feature in SALSA2 and was experimental branch.


chore: Updated Mardownlint config

New MD047/single-trailing-newline that isn't passing
MD002 is deprecated

Hi @gewarren - Would you be able to review the proposed update? Thanks.


migrated from glide to dep

In this pull request I have migrated from glide to dep. #2997

@bacongobbler You may want to take a look at this since you were helping out with the first pass. @mattfarina I think it would be good for you to look at it too because you are an expert at this stuff

I will remove the examples once i get home!

@thomastaylor312 the examples have been removed.

Thanks! I'll take a look at this next week. We'll need to take a really close look with this one. :)

It would be great to see this in, since go-1.10 and glide cause this issue for me when trying to build helm from source: https://github.com/Masterminds/glide/issues/975

@robbert229 can you please update the PR with requested changes?

in case anyone wants to pick this up on the Helm 2 side, here's the Helm 3 PR: https://github.com/kubernetes/helm/pull/3945

closing due to inactivity. We've already implemented this for Helm 3. Thanks!


Is Cdn.steemjs.com Down Right Now? Ping failing and loading of script failing (was not the case several days ago)

Expected behavior
Cdn.steemjs.com loads
Actual behavior
'Loading failed for the  to a page
Load the page

Alt:

Open command prompt
Ping cdn.steemjs.com ( yields "Ping request could not find host steemjs.com. Please check the name and try again.")

Environment information
Windows 10
Node 10.16.0

Duplicate of #449.

Thanks for the update!


Using two sequences in the same table

I need to handle two sequences for the same table like this:
class Foo
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="SEQUENCE")
     * @SequenceGenerator(sequenceName="a_seq")
     */
    private $a;

    /**
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="SEQUENCE")
     * @SequenceGenerator(sequenceName="b_seq")
     */
    private $b;
}

But insert has failed with not null violation on "b".
A query looks like INSERT INTO foo (a, b) VALUES (42, null).
My DDL allow usingDEFAULT nextval('b_seq'::regclass);, but Doctrine pass null explicit and breaks query.
How can I avoid them?

This is not supported, as the ORM will only read a single insert identifier each time. It's a known limitation, and it also isn't possible to mix auto-incremental/sequence fields with assigned fields at the moment.

Maybe is there some hack with metadata or another 'hacky' way to use them?

@sc0rp10 no, the limitation is in the persisters

This should be possible in develop (maybe not just yet, but the code is ready for this) -- thus adding to 3.0 backlog and removing wontfix, and we shall see how this goes. :)


GCS URL signing takes longer for GCE instances not based in US

Environment details

google-cloud-java/google-cloud-clients/google-cloud-storage/ version(s): 1.62.0

Steps to reproduce

Create a signed URL from a GCE instance, using default service account,  in us-central1
Create a signed URL from a GCE instance, using default service account, in asia-east2 - Takes 4-5X longer
Create a signed URL from a GCE instance, using default service account, in europe-west1 - Takes 4-5X longer

Any additional information below

I suspect signblob1 API that this gcs java library is using is deprecated and is not deployed globally
When running on GCE and using default service account, the old API2 is being invoked

Thanks!

@frankyn, any ideas would be greatly appreciated.

Could we use IAMCredentials[1] from googleapis/google-api-java-client-services[2] or is it better to patch ComputeEngineCredentials[3] in googleapis/google-auth-library-java[4]?
[1] - https://github.com/googleapis/google-api-java-client-services/blob/master/clients/1.28.0/google-api-services-iamcredentials/v1/com/google/api/services/iamcredentials/v1/IAMCredentials.java#L40
[2] - https://github.com/googleapis/google-api-java-client-services
[3] - https://github.com/googleapis/google-auth-library-java/blob/master/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java#L69
[4] - https://github.com/googleapis/google-auth-library-java

@sduskis I'm not sure what may be happening here. I'll sent an email internally to the Cloud IAM team and will report back with any findings.

@zulkifal and @sduskis I synced with the IAM team over email. The IAM SignBlob API has the limitation raised by this bug, being that the service is only available in the "US". On the otherhand IAMCredentials SignBlob API doesn't have this limitation and should serve "asia-east2" and "europe-west1".
The recommendation is to use IAMCredentials. I think in this case it'd be better to update ComputeEngineCredentials in googleapis/google-auth-library-java.
The one concern is the IAMCredentials API is still in Beta. I'd like to get checkoff from the @googleapis/yoshi-java team before moving forward with that change or if it should wait until the API is GA.

Generally public docs mention if an API is in Beta. There seems to be no such warning in this instance: https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/signBlob

Hi @zulkifal,
I spoke with the @googleapis/yoshi-java team and they agreed to move forward with the change. I sent a PR for review which updates the endpoint.
We appreciate your patience!

Thanks for the update @frankyn. Appreciate the effort put into this.
Do we have any ETA around maven releases of google-cloud-java and google-auth-library-java?

Should now be fixed in the latest release, thank you @kolea2 and @JesseLovelace!


Proposal: L7 Policy

Hi,
This is a proposal. Last week I was testing policies, and I figure it out that if you have an L7 policy, you always need to specified port if not, it is not going to work.
I think that the L7 Policies should inherit the default port if it's not defined, this allows to end users a more straightforward way to create network policies.
The idea is:
{
  "Ingress": [
    {
      "FromEndpoints": [
        {}
      ],
      "ToPorts": [
        {
          "Ports": [
            {
              "port": "8080",
              "protocol": "TCP"
            }
          ],
          "Rules": {
            "http": [
              {
                "method": "GET",
                "path": "/private"
              }
            ]
          }
        }
      ]
    }
  ]
}

This should allow only /private/ and destination port 8080.
If you defined like this:
{
  "Ingress": [
    {
      "FromEndpoints": [
        {}
      ],
      "ToPorts": [
        {
          "Rules": {
            "http": [
              {
                "method": "GET",
                "path": "/private"
              }
            ]
          }
        }
      ]
    }
  ]
}

This should inherit port 80 and 443, so policy will be easy to read/write (same for Kafka or others L7 rules).
Regards

One brief comment: The latter example specifies "http", not "https" so should it really open 443 as well?

@joestringer good point, I'm not sure TBH.


Add Mesos/Marathon platform support

Hi everyone,
I was thinking about adding Mesos/Marathon support, but there is a technical limitation on the tooling side - they don't support "docker exec" yet from their CLI - for doing things like "getting the pid."
It looks like Docker Swarm has the same issue (@crackerplace) - there are third party tools like
this but nothing bundled with the official tool.
Here are a couple ideas I had for how to achieve that functionality, but none of them are ideal so I'd love your thoughts. I can also jump on slack to discuss further.
Goal is to achieve this:
	req := &kubeapi.ExecSyncRequest{
		ContainerId: containerid,
		Cmd:         []string{"ls", "-l", "/proc/self/ns/"},
		Timeout:     1,
	}

	ctx, cancel := context.WithTimeout(origctx, time.Second)
	result, err := cli.ExecSync(ctx, req)

Use a "docker in docker" approach e.g. like this. This works because you already have to run the squash client in privileged mode so it doesn't add any new security requirements. So you'd be doing some thing like from inside the container:
docker exec -it $containerid ls -l /proc/self/ns/

This also has the benefit of making squash more generic in terms of how it handles the container-to-container interactions - in other words every platform could use the same code to get the pid and only have to integrate at the "find the container host" level.
The big downside is that a lot of people will already be anxious about the security implications of deploying a third-party tool in privileged mode and this will probably make them worse.

Another option would be to provide "partial support" for platforms like Mesos/Swarm/etc. In this case you would provide the integration to "find the container host" and them output an ssh command for the user to execute themselves to get the pid - so something like:
ssh user@mesos-cluster docker exec -it $containerid ls -l /proc/self/ns/

Again - you're just printing a helper because you wouldn't have access to their ssh keys.
You could also skip the helper and just allow an optional pid when you call
squash debug-container --pid <PID> ...
(end users for example could opt to just print their pid to their application logs and get it that way)
What are your thoughts?

Not sure there is a generic solution here - The underlying assumption that docker is the container runtime may not be always true. ExecSyncRequest will work with any kube compliant CRI (cri-o, rkt,...).
Docker in docker sounds like a good solution for docker swarm - where we know for certain the docker is used.
As for mesos, they have their own container runtime as well. Do you know if mesos\marathon use the docker binary in their runtime, or just docker images?
What other metadata can we get from the mesos tools during runtime? Perhaps we can find another way to extract the relevant pid?

Good point about different containers. Looks like Mesos is pushing people toward what they call their Universal Container Runtime which will support Docker and their original container solution (and have CLI support) but it's not released yet. Maybe it makes sense to wait for 1.9 before adding to Squash.

@cdennison
Yes,using privileged mode to get a containers pid might not be comfortable for people using the third party client.Within the existing docker setup,I don't see many alternatives as such.
Some of the existing monitoring providers resort to the same option of mounting the dockers socket(/var/run/docker.sock) into the container to access the docker host daemon.
@yuval-k  I think for kubernetes squash client,you are using CRI and for which you are mounting the /var/run/cri.sock and also enabling securitycontext as privileged.Looks like this is same as dockers privileged mode ?

I don't think it's different - if you mount the kubelet socket you don't have to install the Kubernates CLI inside your container - you can use the one on the node see here.
It's similar to the idea of running docker in docker or docker outside of docker see. In one case you have to install everything inside vs. using what's already on the node. There's pros/cons to each.
https://applatix.com/case-docker-docker-kubernetes-part/
http://container-solutions.com/running-docker-in-jenkins-in-docker/

Thanks,Will check the references.
The current squash client for kubernetes platform mounts the /var/run/cri.sock inside the pod.This is not to access kubernetes cli inside the pod but more to get access to invoke the kubernetes CRI api from the pod.
This is similar to how you mount the docker socket into a container for docker in docker use cases.
The CRI interface is only helping in uniform access to list pods or get container ids for a given pod.etc.But to get the actual pid,in the existing squash client for kubernetes,the hosts pid namespace is being used.(hostPID:true).So,what I am trying to point is that even with CRI for kubernetes,the pod or container needs host privileges to actually get the containers pid on host.

Here’s my current analysis of how feasible it is to use squash on Mesos. TLDR; there are a lot of differences with Kubernetes that make it a much more difficult integration.
Proposed Limitations: assume no DCOS security and only allow 1 debugger to run at a time.

The hardest challenge is probably port forwarding the debugger port.

Mesos doesn’t have a utility like kubectl port-forward https://kubernetes-v1-4.github.io/docs/user-guide/kubectl/kubectl_port-forward/
Normally you get to ports using a proxy like Nginx/HAProxy that uses MesosDNS for name resolution
If you don’t know the port’s in advance you can forward a range like 5000-6000 on HAProxy.
There is an issue with port collisions if 2 debuggers start on the same port even on different machines because MesosDNS will try to round robin load balance between them.

So even if you have HOST1:5555 and HOST2:5555 if the DNS name for both is example.marathon.mesos then calling example.marathon.mesos:5555 will randomly give you one of the other.
Solution - for initial proof of concept I would just hard code the debugger port and only allow 1 container at a time to be debugged. That port can then easily be forwarded in (no matter what host) using MesosDNS+proxy or SSH.

Container runtime required: UCR not Docker

The Mesos/DCOS CLI cannot do an “exec” on non-UCR containers (Universal Container Runtime - there own version). https://dcos.io/docs/1.9/monitoring/debugging/task-exec/ The issue here is that UCR is still very new and I suspect most people aren’t using it yet (and it doesn't even support runtimes beyond Docker yet so it's not very "universal."

To further confuse things UCR does not support privileged mode

Mesos currently support running containers in privileged mode and adding arbitrary arguments such as --pid=”host” which lets you see other containers processes.
Mesos does not support this for their own container runtime (UCR) only Docker - so the squash client has to be using Docker runtime.
https://jira.mesosphere.com/browse/MARATHON-7752

CLI requires auth token

There is no way to use the CLI to talk to Mesos agents directly (the process running on each node) and bypass security like you can in Kubernetes by doing “mountPath: /var/run/cri.sock.” To deal with security you would have to let users pass in a security token when calling the squash server.
The security is very annoying because it’s OAuth2 Auth Flow (which is hard to automate because it requires HTTP redirects) and the token expires after only a few days. In my experience most people disable the OAuth security (because they’re behind a firewall anyways) and just use Basic Auth over SSL.
Proposed Solution: for initial implementation assume no security.
https://github.com/dcos/dcos-cli/issues/588
https://medium.com/@richardgirges/authenticating-open-source-dc-os-with-third-party-services-125fa33a5add
I researched ways of getting around this - and it’s true that by default most of the authentication is off from inside the data center, but there’s no guarantees.
http://mesos.apache.org/documentation/latest/authentication/

Hi @cdennison,
Thanks so much for tackling it. sounds like you have a great plan.
maybe it make sense to add @benh to the thread and ask for his help - maybe they can help us with  add features that missing for seamless integration.
Cheers,
Idit


fix: nvidia kernel.conf reflects reality

This wasn't causing a functional problem but it did cause potential confusion.
Fixes: #284

The build failures on F39 merge groups were random failure to download repo metadata. Merging as this is good now.


[SB] Fix Message Completion on Management Link

Fixes an issue in azure amqp where messages received on one receiver could not be settled on another receiver. Typically this is not possible but using the management link as a fall back it is supported.
The fix is done by keeping track of the delivery tags that arrive over a link and then check if the message to be settled was received over the link. If not, try the management link.
fixes #35304

API change check
API changes are not detected in this pull request.

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - eventhub - tests

/azp run python - servicebus - tests

/azp run python - eventhub - tests

/azp run python - servicebus - tests

/azp run python - eventhub - tests

/azp run python - eventhub - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests

/azp run python - servicebus - tests


move config testcases into yaml testdata files

Description:
https://github.com/envoyproxy/gateway/blob/main/internal/envoygateway/config/config_test.go#L27 is starting to get a little unwieldy.
Let's split them into yaml testdata files similar to what we do with other tests

+1 to YAML 🧑🌾 ing

/assign

@haq204 are you still working on this?

@zirain I haven't looked at this in a while. unassigning myself

@shawnh2 https://github.com/envoyproxy/gateway/blob/main/internal/envoygateway/config/config.go
In this code, is there a function to decode the yml configuration? I didn't find it. Can you help me? I saw the function in Decoder to decode EnvoyGateway configuration.

hi @yuluo-yx, it seems this issue has been solved via #2024. so close this one now.
thanks for looking into it, you can try other issues that with good-first-issue or help-wanted.

hi @yuluo-yx, since #2024 has been merged, it seems we don't face this issue anymore. so close this one now.
thanks for looking into this, you can try other issues that with good-first-issue or help-wanted tag.

got it.


Run black, isort, fix some flake8 issues

This is really all just cosmetic, but want to make sure you're on board with it before merging @mattlisiv.  Glad to revert whatever if you have strong opinions on anything code-style related.


How do I view thread stacks?

Can you provide a way to view thread stacks?By default, there is no entry on the page.How do you configure these?Looking at the official website and github project, I didn't find the explanation (I probably didn't find it myself).Can you provide help or documentation for this?

Hi @whscfan
https://github.com/naver/pinpoint/wiki/FAQ#how-do-i-get-to-the-call-stack-view

Thanks


Missmatch docs and build

Building runwasi I get (shown for wasmtime for simplicity):
containerd-shim-wasmtime-v1
containerd-shim-wasmtime-v1.d

The docs talk about:
- containerd-shim-[ wasmedge | wasmtime | wasmer ]-v1
- containerd-shim-[ wasmedge | wasmtime | wasmer ]d-v1
- containerd-[ wasmedge | wasmtime | wasmer ]d

So there is a suffix missmatch  (v1.d vs. d-v1)
I also miss how to build the **d and how to run it

Thanks for raising this issue, yes the docs and the built artifacts are mismatched because we have integrated all the binaries into one binary. the containerd-shim-wasmtime-v1 binary uses argv[0] to decide to run as

containerd-shim-wasmtime-v1
containerd-shim-wasmtimed-v1
containerd-wasmtimed

https://github.com/containerd/runwasi/blob/main/crates/containerd-shim-wasm/src/sandbox/cli.rs#L66-L78

Ok, maybe I should have installed it. Building on for remote machines I intentionally missed that step thx.
Is there an example how to run containerd-wasmtimed?


Mirror x11 ISO_LEFT_TAB detection on wayland and release version 0.8.3

ref #308

We need this for alacritty so I added a version bump.

Why not, I guess.


Rendering Issue

GitHub apparently doesn't take width and height attributes into account when rendering on their page

:+1:


You'd need to file a github ticket; this repo has nothing to do with that.

          You'd need to file a github ticket; this repo has nothing to do with that.

Originally posted by @ljharb in https://github.com/community/OSPO/issues/126#issuecomment-1959914492

      You'd need to file a github ticket; this repo has nothing to do with that.

Uploading 3081f8f4-69f6-4513-a813-9150b9d602c1.pdf…


feat: Security issue in Pydantic, #436

upgrade pydantic to 1.8.2
see issue at #436

Codecov Report

Merging #437 (c1e392e) into develop (d9c0217) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #437   +/-   ##
========================================
  Coverage    99.90%   99.90%
========================================
  Files          102      102
  Lines         4124     4124
  Branches       205      205
========================================
  Hits          4120     4120
  Misses           1        1
  Partials         3        3

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 d9c0217...c1e392e. Read the comment docs.


not working in Julia version 0.5.0-rc3+0

Following error when trying to install on version 0.5:
INFO: Building AudioIO
===================================================[ ERROR: AudioIO ]===================================================

LoadError: syntax: { } vector syntax is discontinued
while loading /Users/ianmarshall/.julia/v0.5/AudioIO/deps/build.jl, in expression starting on line 11

========================================================================================================================

====================================================[ BUILD ERRORS ]====================================================

WARNING: AudioIO had build errors.

 - packages with build errors remain installed in /Users/ianmarshall/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("AudioIO")`
 - build a single package by running its `deps/build.jl` script

========================================================================================================================

I'm not really maintaining AudioIO any more, and have moved development efforts into the JuliaAudio packages. For basic file and soundcard I/O those packages are the way to go. I should put out a new release of AudioIO with an upper-bound of Julia 0.4 in the REQUIRE file, so i'll leave this issue open until then.
Thanks for trying it out, and let me know if there's stuff that you need in the JuliaAudio packages that's currently not supported.

Thanks for your help! I managed to get the JuliaAudio packages to do what I need.


setValue() and v-model cannot change number control value

How to repro:

set number control value by setValue or data binding with js code, for example 80, you will see that it shows 80
get number control value by getValue or data binding with js code, you will find the value is 0
change value on web page, for example +1, then get value again, now the result is right, 81
It's so strange that number control shows 80 at first since the value I can get is 0

Hi friend,
<EMAIL_ADDRESS>has been released. Check it out.
P/s: I closed this issue because it's not related to<EMAIL_ADDRESS>Thanks.


Adding a software licence

@bhaskatripathi Your repo has 508 forks - so far all of them are illegal. :) Please provide some licence, to allow forking.

@michaelfeil - Never thought about it as I was relying on Github's T&C. However, now I read carefully and added the license file and related text. Better late than never :)
thank you


bugfix:get_workflow_detail接口文档修改

Codecov Report

Merging #320 (7879ce0) into v2.6.x_develop (57fe576) will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           v2.6.x_develop     #320   +/-   ##
===============================================
  Coverage           60.93%   60.93%
===============================================
  Files                 441      441
  Lines               26843    26843
===============================================
  Hits                16357    16357
  Misses              10486    10486

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 57fe576...7879ce0. Read the comment docs.


Allow twitter publish agent to dry run

Nice!

I think publish_tweet() should be skipped when dry-running.

I think publish_tweet() should be skipped when dry-running.

I added dry-run support for TwitterPublishAgent to quickly test tweet publish functionality. Skipping publish_tweet when dry-running would make dry-run TwitterPublishAgent useless.

That is a normal run and can be accomplished with ManualEventAgent.  We use the term dry-run as "to run an agent without causing any side effect."

We use the term dry-run as "to run an agent without causing any side effect."

Looks like only “pure” agents can be dry-runed. https://github.com/huginn/huginn/pull/1101 Do you consider running a child process ”causing side effect”?

That is a normal run and can be accomplished with ManualEventAgent.

I just want to do some debugging with my TwitterPublishAgent setup. Creating a ManualEventAgent then deleting it seems a bit overwhelming.

A shell command can of course do anything, so it could be just fetch some data or do destructive things, so in the latter case maybe not.
My take is on dry-running is in general it should avoid write access but could perform read access, and most importantly it should be idempotent in that you can repeat dry-running and the series of trials do not affect the next real run.
My concern is that TwitterPublishAgent performs write access, and posting a tweet could affect the next real run because of Twitter API's duplicate tweet blocking, and I'm afraid users could be surprised if they didn't know that.  A safe option I had in my mind is to just log API parameters which could be submitted.
But if that's only me and it is OK for the majority, we could just go with this.  Adding a caution in the agent description wouldn't hurt, though.

A safe option I had in my mind is to just log API parameters which could be submitted.

I had some hard times trying to make TwitterPublishAgent publishing tweet with pic -- I don't think logging API parameters is helpful in my case. Besides, it's weird to have inconsistent behavior between dry running and normal running.

My take on dry-running is in general it should avoid write access but could perform read access
Adding a caution in the agent description wouldn't hurt, though.

I can't infer ”dry run should avoid write access” from the current UI. I'd love to add caution in TwitterPublishAgent’s description; or maybe we should add some generic description on the dry run modal, since other agents’ dry running maybe unpure too.

ImapFolderAgent is one of the earliest agents that implemented dry-run, and it does not mark mails as read when in dry-run mode.  I wrote the dry-run feature with the --dry-run/-n option of rsync, git, aws (CLI), etc. in mind, where a dry-run is an emulation, does not actually do but only tells what it would do.
With that being said, I can understand your need for actually posting a tweet because Twitter API is tricky and complicated, so it's OK with me if you add a caution about actually making a request.
By the way, ManualEventAgent does not need to be created and deleted every time you test an agent.  You just need to have one persistent ManualEventAgent, to be attached to or detached from the Sources of any agent to test.


Use less memory

Font glyphs are loaded on demand. This enables consuming less heap memory. Especially opentype.js can save memory very much with CJK fonts.
Motivation and Context
When opentype.js load cjk fonts it uses memory 8~10 times more than font file size in worst case. It depends on number of glyphs. If I try to load NotoSansCJKkr.otf(file size : 16MB) it uses 220Mb heap memory.
How Has This Been Tested?
npm tested.
Test cases for low memory mode are added.
Screenshots
Belows are the heap snapshots of Glyph Inspector page with  NotoSansCJKkr.otf(file size : 16MB).
Please look at the size of glyphs object under Font object.
Before

After

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I did npm run test and all tests passed green (including code styling checks).
[x] I have added tests to cover my changes.
[x] My change requires a change to the documentation.
[ ] I have updated the README accordingly.
[x] I have read the CONTRIBUTING document.

Hi @debussy2k
Nice improvement! I will check that in detail soon!
In the meantime it looks like the Travis build has some errors like:
/home/travis/build/nodebox/opentype.js/src/opentype.js:169
function parseBuffer(buffer, opt={}) {
                                ^
SyntaxError: Unexpected token =

It's probably because your code is not compatible with Node.js v4.
The best would be to install the latest version 4 with nvm for example and fix all the errors you can find 😉
Thanks for the tests btw!

@Jolg42 , I fixed problem not to use default parameter value for node.js 4.
Thanks,

Sorry for the delay 🙏
Link to Noto Sans CJK Regular
https://github.com/googlei18n/noto-cjk/blob/master/NotoSansCJKkr-Regular.otf
Everything looks fine for me, the gain in performance is indeed huge, good job!
Did you change anything in the implementation since your PR?

No changes have been made.
I have been testing many since my PR using my commercial products in the browser and node.js.
Anyway, happy to hear from you.

Perfect!
I tried your PR and it works well indeed! Good job 👍
I'll merge and publish it asap 😉

If you have any problem with merging, please let me help you.


Preserve jar order in ScalaInstance.otherJars

To validate this pull request against other sbt modules, please visit this link.

To validate this pull request against other sbt modules, please visit this link.

Good addition.


Please bump to NPM 3

NPM 3 allows directory flattening, and support in Visual Studio 2015 Update 1 is horrible (the inbuilt support doesn't always flatten directories). Can we bump to NPM 3?
I don't think we'll ever need a later version.

You can use NPM 3 with VS, you simply need to change your options.
Go to Tools > Options > Projects and Solutions > External Web Tools
Change the directory order.
I am not planning on updating this package anymore, now that we have 2015. It is redundant and unnecessary now. It is what it is.

I am well aware that it is possible to change the directory order. We just don't want to ask 14 developers to do that every time they set up their development environment. I work for a major corporation where stuff like this matters.
What if I made a pull request to upgrade?

If you work for a large corporation it is even easier. It is a registry thing, just push it through the corporate domain to everyone into a certain profile and you are done. This is something I already did with some clients.
But if you send a PR I can integrate it. This is still much more inferior than what we got in the box at the moment, I do not recommend it.

I will do my best and submit a pull request today.

I have created #14 now. Please review and merge if it looks good.

Also, in regards to your latest comment. It is not easy to get that kind of stuff done in a larger corporation. I don't think they would allow pollution in their scripts or domain policies like that.

Oh, and merry christmas. I appreciate that you are willing to look into this.


nixos/netdata: add configDir option

Motivation for this change
Resurrect https://github.com/NixOS/nixpkgs/pull/50048 with slightly modified logic (values in configDir are paths instead of lines).
Things done

Built on platform(s)

[X] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

If netdata service will write to this folder, then need to add parametr serviceConfig.ReadWritePaths.

If netdata service will write to this folder, then need to add parametr serviceConfig.ReadWritePaths.

Iit's readonly configuration directory, the only difference is we build our own instead of using ${pkgs.netdata}/lib/netdata/conf.d.

Is it possible to add a symlink to a folder /etc/netdata ?

Is it possible to add a symlink to a folder /etc/netdata ?

Done.

Needed add pgrep command to PATH:
/nix/store/7p35219vghilw3zp5v0zd2j1anyj5qyj-netdata-1.31.0/libexec/netdata/plugins.d/system-info.sh: line 373: pgrep: command not found
2021-11-30 14:55:53: netdata INFO  : MAIN : NETDATA_CONTAINER_OS_NAME=none

Needed add pgrep command to PATH:

Added procps to PATH.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/419

looks ok to me, there's only one netdata so it doesn't hurt that it symlinks in /etc and it's nice for debugging/tweaking before updating the configuration. :+1:

Let's just merge this? Seems safe?

Yup this looks great - any objections to me merging right now?


'perses' project is hardcoded in the frontend

Follow the TODO(Célian) 😄

closing this issue as angular app disappear and defacto all hardcoded things :joy:


In Edit Load Balancer, looks like i can delete all targets but none actually delete

v0.28.0-rc1
Steps:

Create a service Load Balancer with at least 2 targets
Edit the Load balancer and delete all targets and click on Save

Results:  The save completes and it looks like I saved with no targets.  But if you go to edit you will see that nothing happened and all targets are still there.
Expected:
If you remove all targets you should get an error message that says you have to have at least one target.  It should not allow you to save and just keep whatever you deleted previously.

can't reproduce it on the latest. Could you retry, Tani, and reopen if you see it again

Couldn't reproduce with v0.30.0-rc2 (Tried with a LB that was inactive and active).


Use npm package name instead of relative path

Thanks for the PR!
I realize that using the relative path instead of the npm package name like I was doing is a total hack - but unfortunately this change doesn't work right now =(.
The problem is that I want the contour_plot code bundled into fmin_vis.js  - and I don't yet have rollup configured properly to handle this .
So generating the bundle right now with your change gives this error:
$ npm test

><EMAIL_ADDRESS>pretest /Users/ben/code/fmin
> rm -rf build && mkdir build && json2module package.json > build/package.js && rollup -f umd -n fmin -o build/fmin.js -- index.js && rollup -f umd -n fmin_vis -o build/fmin_vis.js -- index_vis.js

Treating 'contour_plot' as external dependency
No name was provided for external module 'contour_plot' in options.globals – guessing 'contour_plot'

And then the examples won't load:

It should be pretty straightforward to configure rollup to bundle these things - (guide here https://code.lengstorf.com/learn-rollup-js/#add-a-node-module-as-a-dependency). If you want to update the rollup config to handle this that would be awesome!

Thank you for your reply!
I have updated the rollup config and which should correct the build error.

awesome! Thanks for doing this,

Thank you for your reply!
I have updated the rollup config and which should correct the build error.

I got this problem too, can you say how to fix this problem? thanks.


Page Orientaion will not print as in actual pdf file using chrome browser

i have a pdf wich contains scaned documents with different page size and orientation and i want to print it as it is. But the chrome or any browser does not support it. They print pdf as default setting in chrome preview or default Printer.

if i open a pdf file in Chrome directly and takes it print. then chrome prints it correcly as same as in actual pdf with mixed orientation(landscape or portrait ) or page size (hand bill, A4, letter pad, visiting card size)

Probably #6103 will help.

My pdf file having both landscape and portrait scanned pages in it.
in that case all the pages are printed on A4 portrait pages and Landscape pages get streached verticaly and get compressed horizontally to map Portrait page.
but when i print same file from chrome or adobe reader all the pages printed as per their orintation.

Hi timvandermeij
thanks for helping me to resolve this issue.


huawei emui 4.01 android 6.01 not working

Hi folks, I was really hoping for such an xposed module so thanks for the effort so far. I run "Button Saviour" and loads of apps I use/install always want me to disable it it due to it overlaying stuff .. I hoped to get rid of all those requests and stop having to toggle it off/on all the time .. but it doesn't do the trick. Anything I missed .. is this not what it was intended for? Cheers

As you can see into in the code, this app only hooks packageinstaller.
    private static final String[] INSTALLER_PACKAGE_NAMES = {         "com.android.packageinstaller",        // Pre-Marshmallow         "com.google.android.packageinstaller", // Marshmallow         "com.mokee.packageinstaller"           // MoKee
You can add your own package name and compile it yourself.

Regrettably I am not a programmer. A version which generally disables that mechanism would be very appealing.

I know nothing about programming either, but I think what I have to do is hook all packages, that seems easy as the code reads like natural language. I have built a version myself and if @apsun permits, I can send you.

Glad to try :-)

@aviraxp Of course, it's MIT licensed after all ;-)
@daniel-lo The hooking method does work with any app, so you can remove the package check in the beginning of onHandleLoadPackage and overlay detection will be disabled in every app. I intentionally only included the package installer apps, since those are the ones responsible for APK installation and permission request dialogs.
Maybe you would like this to be blacklist and not whitelist based? As in, disable overlay detection in everything except e.g. SuperSU (which would be dangerous)

I just noticed that. According to you, I think the way I refractor the code is right.
https://github.com/aviraxp/NoOverlayWarning/raw/patch-2/release.apk
Tested on my Oneplus2 with Paranoid Android 6.0.2.

Generally I think the way Google has implemented this security check is inverse to how it should be (at least the way I experience it in my Huawei). Instead of having to guess which app might be the one that has to be turned off (this is a hassle) it should request the user if the app - asking for permission - is allowed to be overlayed. I hope Google changes this at some point in time. Until then I will gladly live without this security because I step into this regularly and I really like using my overlaying tools.
@aviraxp I will test now :-)

At first I though it wouldn't work but I obviously didn't wait long enough after I rebooted. And then - like magic - the overlay reqest was gone :-) Wow .. will see how it goes the next days and report back .. but for now .. THANKS A LOT!
Will you make another branch for this patch .. or will it bekome an option? Otherwise I think there may be some confusion for users.

I just installed Duo and overlay message stops me from giving it camera access permission. So regrettably it's not solved yet.

@daniel-lo Care to post your Xposed logs? It seems this module is failing on quite a few devices and I can't figure out why (or rather, nobody has been willing to post logs)

I don't like to make logs public but I would email you a link .. but my logs are empty (no idea why) .. at least in the xposed logs window. Would a catlog do?

Just sent a logcat via email .. hope it helps

If this moudle works, we can see in location like
08-21 00:06:48.052 I/NoOverlayWarning(6542): NoOverlayWarning successfully initialized! 08-21 00:08:17.954 I/NoOverlayWarning(6887): Cleared FLAG_WINDOW_IS_OBSCURED flag

@aviraxp  just sent the logfile to you too :-)

@daniel-lo Have you tried getting the overlay detected dialog to display? Everything in the logs looks normal.

That's exactly what I did. I started loggin then I started Duo which complained that camera has no rights .. I then went to toggle camera rights on and I get the overlay detected dialog.

There is no Cleared FLAG_WINDOW_IS_OBSCURED flag. That means the flag=0
.
What app do you use to overlay?

Button Saviour Pro

I see there is an update for xposed .. I'll flash that and see if that helps

Works on my device. Strange.

This looks suspicious.
https://android.googlesource.com/platform/frameworks/native/+/03a53d1c7765eeb3af0bc34c3dff02ada1953fbf^!/
I suspect this has changed in the com.google.android.packageinstaller package but has not been pushed publicly.

New Xposed didn't help.

Try this build: NoOverlayWarning-1.2.apk.zip

Is this the general hack .. or jst for the appinstaller?

The package installer is responsible for the "Install APK file" window and the permission request dialog in all apps. Do you need this module to work anywhere else?

aviraxp provided me a version that was supposed to remove the security feature for good.
I constantly need it .. because I have so many apps that make me disable the overlay before I can set credentials. I moved to a new phone and of my many apps not all have been started yet.
Aktually .. Installation of APK files is not my issue at all .. this always works. The frst app run is the issue .. when the apps ask for permissions .. at least that's how I perceive it.
DUO for example installed fine .. but on first run tells me that camera needs permissions. Maybe because there was an overlay at install time .. don't know.

This time it worked .. maybe the "Install APK file" is the one that is run every time an app asks for permissions. Quite confusing to me .. since I don't understand exactly what's going on anyway.

I will make another version for you. But since I am going out  for a few days you have to wait.

@aviraxp  at the moment it looks to me like I was mistaken. Version 1.2 did exactly what I wanted it to do .. so I assume each permission call goes rhrough the APK Installer. In that case I would be perfectly fine. I expected that the fix is required for each app that needs credentials.

I hold the same view.

Try this @daniel-lo https://github.com/aviraxp/NoOverlayWarning/blob/patch-2/app-release.apk

@aviraxp Just a heads up, your version will also disable overlay detection in e.g. SuperSU. I suggest adding this check inside of handleLoadPackage, for security purposes:
if ("eu.chainfire.supersu".equals(lpparam.packageName)) {
    return;
}

OK. I will add it in anothe branch as someone needs to bypass supersu.

Hah .. now that I don't get the error anymore (due to your module) .. I don't know how to test it .. but if I get it the next time .. I will gladly interrupt and try this one ;-)


Windows update add Copilot

Windows 10 Version 22H2 (OS Build 19045.5131)
UnattendedWinstall v1.0.0 Standard

Hello, thank you for the script.
I was using Standard version of the UnattendedWinstall script around 3 months ago to install Windows 10, not the latest unified one. Windows updated today and added Copilot.
It's not listed in the Programs list, anyone know how can we remove it? Searching the internet only show how to disable, not removed completely.
Thanks!
Screenshot.

Which one is Copilot?

Which one is Copilot?
Also:

To remove the LCU after installing the combined SSU and LCU package, use the DISM /Remove-Package command line option with the LCU package name as the argument. You can find the package name by using this command: DISM /online /get-packages.

Thanks! I'll try that.
Most like the top or 3rd from the top updates that added the Copilot.

Thanks! I'll try that.
Most like the top or 3rd from the top updates that added the Copilot.


Add network diagrams and positions

What Issue Are You Seeing or What Feature Needs To Be Added?
We want the ability to share information about the network structure.
Question to address: When do we present the network and with what information?

proposal 1: we only show it in the beginning of a game with the students position highlighted with the color provided.
~- proposal 2: we show it the whole game but without any color information (you are here -- and we label each player you can see with their name or make this a mouse-over type thing.)~

Proposal 1 wins. We'll show it at the beginning of some fraction of games.
Frontend:

[x] Write code to add graph programmatically into beginning of first round  -- if it's a graph round. (Use external template from round)
[ ] Add explanation of graph before the graph is shown on the start_of_round page.

Backend:

[ ] Update db and game creation sequence to account for this (new row in game table called "is_network_visible")
[x] Write route that fetches network information (or include this in round??)

Are There Any Links That Would Be Helpful?
https://www.d3indepth.com/

Ideas from D3 Selection.
First make an SVG in the html (still working on lines ...)
<svg width="760" height="240">
<g transform="translate(70, 70)">
	<circle id="me" r="40" cx="120"/>
	<circle r="40" cx="120" cy="60"/>
	<circle r="40" cx="120" cy="120" />
	<circle r="40" cx="240" />
	<circle r="40" cx="240" cy="60"/>
        <circle r="40" cx="240" cy="120" />
</g>
</svg>

javascript with d3
d3.selectAll('circle')
  .filter(function(d, i) {
    return this.id === "me";
  })
  .style('fill', 'red');

in css
circle {
	fill: #ddd;
}

@pepipandi  Here's the current state of the network diagram. I'm trying to make the names show up only when the person mouses over and then put it inside a box so there is no interference.  We want language that explains what's going on.
I think it might also be useful to have a little legend "green circle = You" "grey circle = Other player"  "white line = players who can see each others guesses"

Ok, here's my take on the language.
Diagram Explanation
This diagram shows who can see whom in this game. Each circle is a player: you are the green circle, and other players are the gray circles. Players who connected by a line can see each other's guesses.

@FedericoDM I'd like you to try to finish this issue. If you pull in my branch, you should see the start of games session now has a network diagram using d3.
We want this diagram to appears sometimes. You'll change this line to turn the diagram on or off: https://github.com/prijatelilab/PrijateliTree/blob/77e918f7037ceb581844937d39e0b3a0408829b5/prijateli_tree/app/templates/start_of_game.html#L23
To complete this do the two unchecked check boxes at the top of the issue.

For now, let's show the network randomly 20 percent of the time--we will not show the network in self-selected games
(since they won't have a network yet!). Let me know if you have any questions.

@pepipandi
"This diagram shows who can see who in this game.
Each circle is a player: you are the green circle.
Players connected by a line can see each other's guesses."
A little simpler. I'm worried about saying green circle in case we want to change the viz at some point.  But I think it's okay like this. Please make each line be it's own row in the excel spreadsheet and then @FedericoDM can incorporate the new text.

@pepipandi  See above! We need some language updates.

Closed with #151


Fix compiler warning

Fix The annotation for nullable reference types should only be used in code within a '#nullable' annotations context..

All annotations are gone 😎


Update all the entry points (services, scripts) to use /etc/st2/st2.conf as a default config file location

This pull request updates code to use /etc/st2/st2.conf as a default config file location for all the services and script entry points.
This will save users some typing and provide a better default user-experience.
Previously, if user ran some script (e.g. st2-apply-rbac-definitions -v) without providing --config-file CLI argument, a weird and non-user friendly exception was thrown. It meant user always needed to run scripts with that option (e.g. st2-apply-rbac-definitions --config-file /etc/st2/st2.conf).
This change is fully backward compatible since since it just uses this location as a default value and user can still override the location and use a config from a different path using --config-file CLI argument.
In addition to that, we should still try to explicitly provide --config-file argument everywhere where possible since that makes debugging easier and it's more explicit (we already do that in service manager setup files, wsgi entry points, etc.).
Resolves #3203.
TODO

[x] Tests

Now i have to remember not to pass in --config-file /etc/st2/st2.conf (joking).
Nice change! :+1:


pass team name as argument

@bullybutcher , I'm just gonna merge this since it's been 6 days since I approved it


中文应该怎么改变默认的格式

moment.locale('zh-cn');
view minute '凌晨1点10分'
能不能改成
view ninute "1:10"
我该如何设置format "yyyy-MM-dd HH:mm:ss"

Change moment.js locale - http://momentjs.com/docs/#/i18n/

Cannot read property 'locale' of undefined 我的项目中报这个错   是没有设置语言吗？

可能是配置问题。

@275287902 I think you dun need to worry about the locale. This is what I did in my project:
$scope.formattedDate = newDate.format('M[月]D[日]H[時]m[分]')
You need to make sure that newDate is a moment object in order to call the format. Or else you can do something like moment(newDate).format(...)


when i run the code ,there were some errors?

In the model.py  line5 ：TypeError: init() missing 1 required positional argument: 'nb_col'，Is this keras's version not match??

me also i have this error
299/300 [============================>.] - ETA: 0s - loss: 0.1959 - acc: 0.9215Epoch 00001: loss improved from inf to 0.19559, saving mod300/300 [==============================] - 87s 290ms/step - loss: 0.1956 - acc: 0.9216
13/30 [============>.................] - ETA: 1sTraceback (most recent call last):
File "main.py", line 21, in
results = model.predict_generator(testGene,30,verbose=1)
File "/home/hala/anaconda3/envs/py35gpu/lib/python3.5/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/home/hala/anaconda3/envs/py35gpu/lib/python3.5/site-packages/keras/engine/training.py", line 2407, in predict_generator
generator_output = next(output_generator)
File "/home/hala/anaconda3/envs/py35gpu/lib/python3.5/site-packages/keras/utils/data_utils.py", line 727, in get
raise StopIteration()
StopIteration


Implement np.gradient

Feature request
Implement np.gradient, it mainly depends on np.diff.

A simplest overload:
@numba.extending.overload(np.gradient)
def np_gradient(f):
    def np_gradient_impl(f):
        out = np.empty_like(f, np.float64)
        out[1:-1] = (f[2:] - f[:-2]) / 2.0
        out[0] = f[1] - f[0]
        out[-1] = f[-1] - f[-2]
        return out

    return np_gradient_impl

@holymonson thanks for submitting this request to the Numba issue tracker. This is a duplicate of: https://github.com/numba/numba/issues/4074 so I will be closing this in favor of that PR.


Span should include line information

Currently, Span  only uses a single usize to indicate a position in the input. With the genericizing of the Token type, the meaning of that usize is not actually specified (previously it indicated a byte offset into the input, which may have been useful for indexing into a &str, but isn't particularly helpful for diagnostics).
Regardless of what that usize specifies, it's not sufficient to handle the common use-case of including line information in positions.
Possibilities:

Make a Position struct that includes a line number (and any other information we want to include). The downside here is that it continues to hard-code decisions about which information we care about, and it puts more onus for tracking this information on every tokenizer implementer.
Have Span take a generic Position type. The downside here is introducing more generics into an already generic-heavy library.
Make the user maintain their own mapping of usize -> whatever position information they care about. The downside here is that they would need to destructure all the error types and provide their own error messages that use their position type.

What if we made Span generic, but with a default of usize, and then provided functions on Span and error types using Span to map to a different position type, so that users wouldn't have to manually destructure and rewrite errors


[Feature request] ! as switcher to global channel

Can you make local channel as default, and when people type ! at the beginning of the message it switch to global?
For example, i type like normal in chat. It only seen people near me (local mode)
But when I type "!hello" the whole server sees this

Currently you can't, as the global channel isn't really a channel - but rather more like a hardcoded default chat (as this is how messages are normally sent in the game). Until now I've mostly just seen advancedchat channels as a rather simple way to reduce visibility of messages, all depending on the choices of the player (like there is also no way to force users to use one specific channel).
I might look at it in the future but this will probably need quite a large refactor.

How long? @Wesley1808

Apologies for taking so long but I haven't really found any reason or motivation to work on this.
I'll try to take a look at in the coming few weeks but I can't really promise anything.

Hi, any updates? i think it can be expanded to "add way to give every channel short alies", so, for example, if i type "#hi guys" it will send message into "world" channel


Question: how to use multiple variables in tags?

I have something like this:
---
book: text
genre: text
status: dropdown(, finished, unfinished)
template_tags: books, {{genre}},{{status}}

---

That is, I want to have one tag fixed, one as free text, and one from a dropdown. This works as long as I enter all of them; but if I leave for example the genre empty, just the first tag gets added.
Maybe it is because it ends up as books, , finished and the comma throws it off?
I have tried using {{#if}} in that line, but got nowhere. Is this possible? How?

Will soon release a fix for this.

Released in v2.2.1.


Organization page migration

Description
This PR  migrates the organization pages in order to decouple the dashboard from Editor.
✅ Regenerate API Keys
✅ Avatar selector
✅ Organization settings
✅ Icon picker
✅ Delete organization
✅ Delete organization user
✅ Auth settings
✅ Users list (https://github.com/CartoDB/cartodb/pull/13761)
✅ Groups
✅ Notifications
Files migrated
You can check the list of migrated files here.
Acceptance steps

Organization profile

[ ] Organization logo uploader works
[ ] Icon picker works
[ ] Updating the form and saving works
[ ] Regenerate API keys dialog works (both actios)
[ ] Delete organization works (both actions)

Auth settings

[ ] Whitelisted domains works (fancy tags)
[ ] Updating the form and saving works

Users list

[ ] The list displays the correct users
[ ] Search works
[ ] Builder/Viewer counters are correct
[ ] Add user dropdown works
[ ] Create user button works
[ ] Invite user dialog works
[ ] Clicking on a user redirects to it
[ ] Editing a user works
[ ] Deleting a user works

Groups
TBD

Notifications

[ ] Form works
[ ] Resend button modifies the form with the correct data
[ ] Remove for all users works (both actions)

Related to https://github.com/CartoDB/cartodb/issues/13499

retest this please

retest this please

Groups are broken it seems
@jesusbotella @rubenmoya The billing tab does not need migration? It's still cartodb.js 3.0


Enhancement: SWC_DEBUG environment variable

Currently, if the Rust swc library aborts in a release build, there is no information given to the user about what caused it. I would like to propose that an environment variable SWC_DEBUG set to 1, or some other sentinel string, would cause swc to print out the name of the file that it is about to try to transform. Currently, when you want to track down the source of an abort, you need to modify the source to include this extra logging. It would be very convenient if this information was presented to the user without too much extra effort.

Or the env_logger crate could be used to control this behavior as well

I updated node-swc to emit the file name when SWC_DEBUG is 1 or true.


add "Known Issues" to the README

Here's some initial text:
For secondary targets in SV1, the targeting catalog filenames recorded in the
fiberassign header are inconsistent with the contents of the corresponding
fibermap catalog for a given TILEID.

This was added in PR #6.


Improve the schema configuration and documentation

We should make it clear in the configuration (values) and documentation (readme) what is supported for each test loaders (nosqlbench and gemini).
┆Issue is synchronized with this Asana task by Unito

Closing this issue as it's now consumed by newer issues related to the same topics.

Closing this issue as it's now consumed by newer issues related to the same topics.


Docking QOL improvements

Adds a bit more verbose logging to docking script to help with debugging.
@JenkeScheen any more suggestions welcome.

Codecov Report

Merging #233 (c2197c7) into main (1150a7a) will decrease coverage by 0.21%.
The diff coverage is n/a.

:exclamation: Current head c2197c7 differs from pull request most recent head ccf2495. Consider uploading reports for the commit ccf2495 to get more accurate results

Mostly a few minor changes! Love the improvements you're making. Obviously some redundancy with #213 but we can live with that I think.
One thing I don't understand is that now when I run a test on my computer with >1 core requested, these arguments get printed to stdout in addition to getting written to the log file. Not at all a blocker, just wondering if you're intentionally doing some magic to make this happen.
(ad-3.9) √ /Users/alexpayne/Scientific_Projects/covid-moonshot-ml/asapdiscovery-docking/asapdiscovery/docking/tests % /bin/bash /Users/alexpayne/Scientific_Projects/covid-moonshot-ml/asapdiscovery-docking/asapdiscovery/docking/tests/test_retro_docking.sh
INFO:run_docking_oe:CPUs: 12
INFO:run_docking_oe:N Processes: 5
INFO:run_docking_oe:N Cores: 2
INFO:run_docking_oe:Running 5 docking runs over 2 cores.
INFO:run_docking_oe:
Docking complete!

INFO:run_docking_oe:Writing results

Not doing any magic, must just be a function of the way logging works inside an MP pool? Anyway thanks all for the suggestions everyone!


partner: Pinecone - Update Poetry requirements for pinecone-client >=3.2.2

This change updates the requirements in libs/partners/pinecone/pyproject.toml to allow all versions of pinecone-client greater than or equal to 3.2.2.
This change resolves issue 21955.

Nits look, accepted both.

@baskaryan I think the issues are small, can you check? Anything I can do?

@baskaryan sorry for bothering you once more :)


Converting t5-3b plus size model to tensorrt

Description
Hello,

Everything works as expected for t5-large, but t5-3b ooms while building the engine. (using the code in the readme)

The network itself only consumes: 6448MiB / 15109MiB

I tried setting the workspace size really low and freeing the memory from the original plugins, but it didn't seem to help. Any advice would be appreciated.

Reproduced Steps
docker image: 22.05-py3

python ../examples/tensorrt/t5/extractT5ModelToBIN.py # get T5Model weight for test (need Internet)

CUDA_VISIBLE_DEVICES=0 python ../examples/tensorrt/t5/testT5Plugin.py \
        --batch_size 1 \
        --beam_width 4 \
        --max_seq_len 16 \
        --data_type fp16 \
        --sampling_topk 1 \
        --model t5-3b

I see you set data_type to fp32, which requires 12 GB to store the model. In such case, bs 32 + beam width 4 + sequence length 128 may be too large.

Sorry that was pasted from the readme I did use fp16

This is caused by loading the weights in the plugin constructor. Because TensorRT will clone multiple plugins during building engines, we load the weights multiple times now.
We will fix this bug in next release.

Appreciate the update.
Also can't thank you enough for this repo, it's already added so much value for us.

Appreciate the update.
Also can't thank you enough for this repo, it's already added so much value for us.

@chessgecko  The issue is fixed in latest release. Thank you for the feedback.

Close this bug because it is inactivated. Feel free to re-open this issue if you still have any problem.


Navbar fix

Hi there,
Absolutely love the opensource.guide website!
However, I noticed a very small inconsistency when navigating the website.
The position of the second item in the navbar was a little off, which was clearly visible when hovering over the Contribute link. Please see the embedded image below.
Setting all li elements in the navbar to float to the left seemed to fix the issue on all viewports. This change required me to also add an extra class .border-left to the first nav item About. (28cb5f506f3c97fb5c661cc814e84edb87ec9490)
However, this messed up the border of the navbar. Another way to address the issue is by setting a negative margin of -4px on the left side of each (except the first) nav li item. This makes the added class .border-left obsolete. (7a64c3fb603837e050d121604745994ca03be5ad)
To reduce duplicate code I’ve moved the navbar <nav> code block to _includes/nav.html.
To comply with the small tweak to the navbar for the article layout, a small Jekyll if-clause and a new page variable for the article layout were required. (f0bf9677ecb281256ca0f24965aab847611cc91b, 9b2db35fb883fc87af51805bd4a5289d5295ade9)

All changes were fully tested with a local Jekyll server, as described in contributing.md.
I did my best to satisfy with the contributing guidelines. This is my first contribution to a github.com/github repository, so please be gentle 😄. I am open to any and all constructive feedback, and am happy to discuss the proposed changes.

@lesander you did a good job, thanks for the through description. Someone else came up with a much simpler solution in #263 so closing this, but feel free to open further pull requests if you notice anything still amiss. Thanks!


Test: Copy/Paste in Web

Refs https://github.com/microsoft/vscode/issues/108349

[ ] :runner: macOS @kieferrm Safari
[x] Win @devinvalenciano /Linux, any browser
[x] Linux @bpasero

Complexity: 3
Create Issue

We improved the Copy/Paste experience on Web this iteration to appeal to the security restrictions of Clipboard API. Those security restrictions vary a lot on different platforms so we need to get them well tested.
Please open VS Code in Web and test at least following scenarios:

cmd/ctrl+c / cmd/ctrl+v in the monaco editor

type in the find widget, then cmd/ctrl+c/x from the it and then cmd/ctrl+v in the editor, and vise versa

cmd/ctrl+c from somewhere else and the cmd/ctrl+v in the terminal

cmd/ctrl+f in the terminal, type in the find widget and then select all text then cut, lastly, cmd+v in the terminal

open a GitHub issue notebook file, run a query, get more than one result

cmd/ctrl+c from the rich output
click the icon on the left of the outputs container, switch to text/markdown renderer, select some text from the rendered output and perform cmd+c
test cmd+v

open the extension page, select some text and then cmd+c and then test cmd+v pastes the right content

Please note that Context Menu -> Paste might lead to issues on some platforms due to limitations listed in https://github.com/microsoft/vscode/issues/108349#issuecomment-708728384 . Other than that, you should get a seamless cmd+c/v experience in vs code components.

@rebornix I tested on Linux inside a CS and it seems to large work fine. But the integrated terminal does not accpet my Ctrl+V when I paste into the prompt. I see this appear:
^V^V
Does it work for you?

@bpasero I pushed a change to fix this yesterday, CS doesn't pick this up yet.

Everything works great on Windows (new Edge), except the terminal paste issue Ben mentions (pic below). Copy from terminal and paste to editor works, though.

removed the runner emoji which caaused the testplan item to become invalid

@devinvalenciano can you share the commit of VS Code used in your CS? I verified that it's already working locally in Web.

Version: 1.51.0-insider
Commit: 16f4a29aa0ac05d3cba222b1f347b7404626c680
Date: 2020-10-26T05:37:52.074Z
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.51
This was the commit info from my test this morning.  I opened a new Codespace on a different repo now, and I got the same build.

Thanks @devinvalenciano it's one build behind so the fix is not in yet.


changing segment_items to improve performance

I believe this will speed up reruns when segmenting items.  Basically instead of loading every file, I just look at the sample rate in the config and then move the loading to inside the if that checks if the file is already there.

Good find. I think that originally we were using the the loaded sr from the file to calculate the cache file uri but now that is configured in the config._sr we don't need to load it.


Cannot compile main

I'm using main (223deea) for the swiftui client and main (84e9368) for live form an getting compilation errors:

I have tried clearing my package cache with no luck

I have the same issue, I can't run the app

Fixed a while bakc


Simplify default alignment even more

Currently the SenderPipes are aligned in a separate column and when (Sender)Pipes are moved manually the other (Sender)Pipes get new implicit x,y values leaving no extra space between the (Sender)Pipes:

When both SenderPipes and other Pipes are placed in the same column the flow of the pipeline will be more accurate displayed (SenderPipes already have a different color to distinguish them visually from other pipes). When leaving room between pipes when they get explicit x,y values this will give the user more space for custom flow.

On the other hand, maybe having all (Sender)Pipes in the same column will already give enough space:

Maybe it would be nice to make all options configurable but in case that takes too much time it's better to choose one good default for the MVP and make it configurable later. Don't hesitate to contact me so we can look at it together / make a decision.

Leaving open space when a pipe is moved makes it also possible for a user to put the pipe back in it's place. Currently the space is removed and when you graphically move it back no space is created automatically (a user would need to remove the x and y from the config manually):

So for simplicity I think leaving space would be a good idea.

Fixed in<PHONE_NUMBER>a39c82acedc6a2b94a74b076135e19 and 2cffde007d4e3ee630d4e1e51c7ae72d0e9737d1


Protfolio

Project title
A portfolio site
Project Description
This will be a basic colorful self demo or portfolio site.
Stack:
And in order to tick the check box just but x inside them for example - [x] like this. Please delete options that are not relevant.

[x] Html
[x] CSS
[x] JavaScript

@khushi-purwar please assign me this issue

Hey @khushi-purwar, I want to work on this issue. Please assign this issue to me under GSSoC'22. I will try my best to resolve the issue.

@Shatakshi-Choudhary assign to u

@gurjeetsinghvirdee Thank You! I will try my Best

@Mrjoy832 I have spent a lot of time on this project. Please merge my PR. My exams were going that's why created PR today. Please review it.

And the announcement was made today at 12:30 pm only. Please consider my PR this time. I will surely take care of it next time. Please!! It's a humble request from my side.