CP4D: 4.6.4, openshift: 4.12.9 - storageclasses.storage.k8s.io "gp2" not found.

Describe the bug
storageclasses.storage.k8s.io "gp2" not found.
To Reproduce
Steps to reproduce the behavior:

we are trying to install CP4D 4.6.4 with Openshift 4.12.9 using cp-deployer. Installation went into the error saying that  "storageclasses.storage.k8s.io "gp2" not found.". Please find the last error message as below,

Expected behavior
`TASK [get-openshift-storage : Check if file storage class efs-nfs-client exists in OpenShift] ***
Friday 31 March 2023  11:54:43 +0000 (0:00:00.037)       0:28:40.142 **********
TASK [get-openshift-storage : Check if block storage class gp2 exists in OpenShift] ***
Friday 31 March 2023  11:54:43 +0000 (0:00:00.339)       0:28:40.482 **********
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "oc get sc gp2", "delta": "0:00:00.097054", "end": "2023-03-31 11:54:44.017378", "msg": "non-zero return code", "rc": 1, "start": "2023-03-31 11:54:43.920324", "stderr": "Error from server (NotFound): storageclasses.storage.k8s.io "gp2" not found", "stderr_lines": ["Error from server (NotFound): storageclasses.storage.k8s.io "gp2" not found"], "stdout": "", "stdout_lines": []}
PLAY RECAP *********************************************************************
localhost                  : ok=640  changed=100  unreachable=0    failed=1    skipped=276  rescued=0    ignored=0
Friday 31 March 2023  11:54:44 +0000 (0:00:00.332)       0:28:40.815 **********
provision-aws : Run IPI installer for OpenShift cluster cp-deployer46-d02, logs are in /home/ec2-user/cpd-status/log/cp-deployer46-d02-create-cluster.log  1493.42s
cp4d-variables : Run list-components command --------------------------- 37.78s
nfs-storage-class : Wait 15 seconds for the dynamic NFS client to deploy -- 15.05s
openshift-download-installer : Unpack OpenShift installer -------------- 11.50s
openshift-download-installer : Unpack OpenShift installer -------------- 11.46s
cpd-cli-download : Unpack cpd-cli from /home/ec2-user/cpd-status/downloads/cpd-cli-linux-amd64.tar.gz -- 10.74s
openshift-download-installer : Download OpenShift installer "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest-4.12/openshift-install-linux.tar.gz" --- 8.28s
aws-download-cli : Unpack aws-cli client installer ---------------------- 3.51s
openshift-download-client : Unpack OpenShift client from /home/ec2-user/cpd-status/downloads/openshift-client-linux.tar.gz-4.12 --- 3.45s
openshift-download-client : Unpack OpenShift client from /home/ec2-user/cpd-status/downloads/openshift-client-linux.tar.gz-4.12 --- 3.43s
openshift-download-client : Unpack OpenShift client from /home/ec2-user/cpd-status/downloads/openshift-client-linux.tar.gz-4.12 --- 2.57s
cpd-cli-download : Download latest cpd-cli release ---------------------- 2.56s
cloudctl-download : Unpack cloudctl from /home/ec2-user/cpd-status/downloads/cloudctl-linux-amd64.tar.gz --- 1.92s
provision-aws : Create mount target for file server cp-deployer46-d02-elastic and subnet subnet-05c7d2d610d4db25f --- 1.81s
provision-aws : Create mount target for file server cp-deployer46-d02-elastic and subnet subnet-015bca0698e9b4c41 --- 1.72s
provision-aws : Create mount target for file server cp-deployer46-d02-elastic and subnet subnet-03ed7835a97324708 --- 1.72s
cp4d-variables : Add versions details from olm-utils -------------------- 1.71s
provision-aws : Get security group for OpenShift cluster compute nodes --- 1.47s
aws-download-cli : Install aws client ----------------------------------- 1.38s
openshift-download-client : Download OpenShift client "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest-4.12/openshift-client-linux.tar.gz" --- 1.35s`
Desktop (please complete the following information):

OS: AWS EC2 RedHat Enterprise Linux
AMI: RHEL-8.6.0_HVM-20220503-x86_64-2-Hourly2-GP2

Additional context
please find the OCP configuration as below,
`---
global_config:
environment_name: cp-deployer46-d02
cloud_platform: aws
aws_region: us-east-2
nfs_server:

name: "{{ env_id }}-elastic"
infrastructure:
aws_region: "{{ aws_region }}"

openshift:

name: "{{ env_id }}"
ocp_version: 4.12.0
domain_name: cpdxx.ibmworkshops.com
control_plane_flavour: m5.xlarge
control_plane_nodes: 3
compute_flavour: m5.4xlarge
compute_nodes: 9
infrastructure:
type: self-managed
aws_region: "{{ aws_region }}"
use_sts: False
multi_zone: True
private_only: False
machine_cidr: <IP_ADDRESS>/16
subnet_ids:

subnet-xx
subnet-xx
subnet-xx
subnet-xx
subnet-xx
subnet-xx
openshift_storage:
storage_name: "{{ env_id }}-elastic"
storage_type: aws-elastic`

Please inform if any other details are required.

@barochiarg I reproduced the issue, you can work around it by specifying the following in your openshift definition:
  openshift_storage:
    storage_name: "{{ env_id }}-elastic"
    storage_type: aws-elastic
    ocp_storage_class_block: gp3-csi


DefiniteInitialization: Error when noncopyable types are conditionally initialized.

This leads to unhandled complications in the move-only checker that were causing miscompiles. We can disallow this for now. rdar://109695770

@swift-ci Please test


Disable unit test parallelization

This PR adds an AssemblyInfo file, in which xUnit is instructed not to run any tests in parallel. This is because the tests don't work when run in parallel. When running all tests, this change decreases the number of failing tests from +/- 13 to 6. The remaining failing tests also fail when run on their own, so that they still fail is to be expected.

Thx for contrib.


Add some test coverage for Javadoc caching

@bot-gradle test this

OK, I've already triggered the following builds for you:

PullRequestFeedback build

No milestone for this PR. Please set a milestone and retry.

@bot-gradle test and merge

OK, I've already triggered a build for you.


[Bug]: bazel run to update snapshots will fail if test relies on 'TEST_SRCDIR'

What happened?
I have tests written by folks who used rules_nodejs prior and am migrating them to rules_jest. The tests specifically rely on some bazel test environment directories. When running bazel run :test_update_snapshots, the tests fail with rules_jest because these bazel environment variables are not exported.
For example, TEST_SRCDIR doesn't exist, but I could tap JS_BINARY__RUNFILES, which seems to be the equivalent.
List of full envs that could be expected found here https://bazel.build/reference/test-encyclopedia
Version
Development (host) and target OS/architectures:
Output of bazel --version: 6.0.0
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: rules_jest - 0.14.4
Language(s) and/or frameworks involved:
How to reproduce
Have a test that does something like

const SRCDIR = join(process.env['TEST_SRCDIR']!, 'folder')

in it and run `bazel run :test_update_snapshots`. It will fail.

Any other information?
This also impacts anything that needs TEST_TMPDIR
Fund our work

[ ] Sponsor our open source work by donating a bug bounty

Right. Since the update snapshot target is a build action (a js_run_binary under the hood), there is no TEST_SRCDIR set in that context. I think we should fix this by setting it explicitly there.


[FEATURE]Add action to process stale pull requests.

[FEATURE]Add action to process stale pull requests.
What changes were proposed in this pull request?
Why are the changes needed?

What are the items that need reviewer attention?
Related issues.
Related pull requests.
How was this patch tested?
/cc @related-reviewer
/assign @main-reviewer

ping @waitinfuture @pan3793 @AngersZhuuuu . I want to add an action to close stale pull requests.

@waitinfuture Conversation resolved.

Hold for a second.


⚠ Bofrost.es has degraded performance

In e750fb0, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1562 ms

Resolved: Bofrost.es performance has improved in e203015 after 24 minutes.


wasm-builder: Make hash and date optional

Apparently there are installations where the hash and date is optional.
Closes: https://github.com/paritytech/substrate/issues/14335

bot fmt

bot merge


Expo 46 managed + EAS - 'RCTConvert+AirMap.h' file not found

Summary
I have upgraded my Expo SDK to v46. When building my managed app with EAS, I get the following error:
❌   (../../node_modules/react-native-maps/ios/AirGoogleMaps/AIRGoogleMapPolylineManager.m:17:9)

...

'RCTConvert+AirMap.h' file not found

Reproducible sample code
This is my eas.json file:

{
  "cli": {
    "version": ">= 2.6.0"
  },
  "build": {
    "production": {
      "node": "16.18.0",
      "yarn": "1.22.19"
    },
    "preview": {
      "extends": "production",
      "distribution": "internal"
    },
    "development": {
      "extends": "production",
      "distribution": "internal",
      "developmentClient": true,
      "ios": {
        "simulator": true
      }
    }
  },
  "submit": {
    "production": {}
  }
}

My app.json:
...

    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "compileSdkVersion": 31,
            "targetSdkVersion": 31,
            "buildToolsVersion": "31.0.0"
          },
          "ios": {
            "deploymentTarget": "13.0",
            "useFrameworks": "static"
          }
        }
      ],
...

And my package.json:
"expo": "^46.0.0",
"expo-build-properties": "~0.3.0",
"expo-firebase-analytics": "^7.2.0",
"react-native": "0.69.6",
"react-native-maps": "^1.3.2",

Steps to reproduce

Create an Expo managed workflow.
Configure EAS with the code above.
Install expo-firebase-analytics + react-native-maps + expo-build-properties
Configure app.json, adding the plugin I have shown.
Run eas build --profile development --platform ios --clear-cache in your terminal.

Expected result
Successful build.
Actual result
Build failing.
React Native Maps Version
1.3.2
What platforms are you seeing the problem on?
iOS (Apple Maps)
React Native Version
0.69.6
What version of Expo are you using?
SDK 46
Device(s)
iPhone
Additional information
I use the Hermes engine.

Same here: https://github.com/react-native-maps/react-native-maps/issues/4492

Solved in Expo 47 SDK with the following plugin (maybe not necessary in a future):
/* eslint-disable max-len */
const fs = require("fs");
const path = require("path");
const configPlugins = require("@expo/config-plugins");
const generateCode = require("@expo/config-plugins/build/utils/generateCode");

const code = `
  $static_library = [
    'React',
    'Google-Maps-iOS-Utils',
    'GoogleMaps',
    'react-native-maps',
    'react-native-google-maps',
    'React-hermes'
  ]

  pre_install do |installer|
    Pod::Installer::Xcode::TargetValidator.send(
      :define_method,
      :verify_no_static_framework_transitive_dependencies
    ) {}

    installer.pod_targets.each do |pod|
      bt = pod.send(:build_type)

      if $static_library.include?(pod.name)
        puts "Overriding the build_type to static_library from static_framework for #{pod.name}"

        def pod.build_type;
          Pod::BuildType.static_library
        end
      end
    end

    installer.pod_targets.each do |pod|
      bt = pod.send(:build_type)
      puts "#{pod.name} (#{bt})"
      puts "  linkage: #{bt.send(:linkage)} packaging: #{bt.send(:packaging)}"
    end
  end
`;

/**
 * Modifier plugin which acts as a bundler for the 'react-native-maps' package.
 *
 * @memberof module:Plugins/Maps
 * @function withReactNativeMaps
 * @param {import("@expo/config").ExpoConfig} config - Current Expo configuration.
 * @returns {import("@expo/config").ExpoConfig}
 *   A dangerously modified version of the 'App.json' configuration.
 */
const withReactNativeMaps = (config) => {
  return configPlugins.withDangerousMod(config, [
    "ios",
    (config) => {
      const filePath = path.join(
        config.modRequest.platformProjectRoot,
        "Podfile"
      );

      const contents = fs.readFileSync(filePath, "utf-8");

      const newCode = generateCode.mergeContents({
        tag: "withReactNativeMaps",
        src: contents,
        newSrc: code,
        anchor: /\s*get_default_flags\(\)/i,
        offset: 2,
        comment: "#",
      });

      if (!newCode.didMerge) {
        // eslint-disable-next-line no-console
        console.error(
          "ERROR: Cannot add `withReactNativeMaps` to the project's " +
            "ios/Podfile because it's malformed."
        );

        return config;
      }

      fs.writeFileSync(filePath, newCode.contents);

      return config;
    },
  ]);
};

module.exports = withReactNativeMaps;

Thank you @VictorioMolina you made my day! 🙌
I just successfully built my project on eas with
"expo": "~47.0.3",
"react-native": "0.70.5",
"react-native-maps": "1.3.2",

How do you use this plugin?

@arikankainen
here is how I used it

app.config.js

 },
  plugins: [
    "sentry-expo",
    ++"./bin/react-native-maps-plugin",
    [
      "expo-build-properties",
      {

bin/react-native-maps-plugin.js (I use bin folder because I am kind of a Linux guy but you can use whatever)
Paste the code from @VictorioMolina there

On this PR you can have a look at another way to add a custom Expo plugin

Thanks!

Is this something that could be handled in react-native-maps instead? If it is a conflict with the way it expects the useFrameworks settings for example, so we don't need to have the config plugin in sync with future React Native or Expo changes.


ImportError: No module named "yaml"

@jlowdermilk: This has an obvious fix on Jenkins, but I have mixed feelings ..
Traceback (most recent call last):
  File "<string>", line 2, in <module>
ImportError: No module named yaml
Running: /jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/cluster/../cluster/gce/../../cluster/../cluster/gce/../../cluster/../cluster/gce/../../platforms/linux/amd64/kubectl config view --global

We don't have a clear place to list python deps right now, and it's apparently not a base library (unlike json, which appears in other inlines and is.)
cc @brendanburns

Regression from #4097

Is that file actually yaml?  or is it json.  because if it's json...

It's yaml, unfortunately. I forgot pyyaml isn't a base library.

I went ahead and installed python-yaml on Jenkins, but I'm leaving this issue open because it's a sort of odd dep, and I'm not sure if we have a place to list it. (If we had standard packaging files, I'd be asking you to adding it to .debs and .rpms, etc.)

(I think my objection to is partially just that there's nothing really early testing for this .. you're kind of randomly in the middle of kube-up.sh and bam, ImportError.

Ok, I think the right thing to do here is to add something to kubectl that knows how to parse yaml and dump out the relevant data.
--brendan

Someone should write an arbitrary yaml to json slinger, then it would be
parseable with base libs. :)

Ok, I think the right thing to do here is to add something to kubectl that knows how to parse yaml and dump out the relevant data.

I think the ideal way to do this is to make, kubectl config view take a  --output flag so it can print the config as yaml|json|template.

This is now fixed. kubectl config view now takes --output=json|yaml|template (#4147). The inline python in cluster/gce/util.sh that triggered this pyyaml dependency was replaced with kubectl config view --o template (#4205)


Package statistics for FakeXrmEasy.9 package not updating

Hi,
Package statistics don't seem to be updating for package FakeXrmEasy.9.
Could you please take a look?
Thanks a mill

Hey @jordimontana82,
I'll be fixing this soon and it will roll out with the next deployment.
Just a note: the reason stats don't update every time you create a new package is because we have a bug with statistics for packages that end with a . plus a number. The statistics pipeline can't distinguish between FakeXrmEasy.9 version 1.0.0 and FakeXrmEasy version <IP_ADDRESS> so it assumes that the downloads are for the latter. If you were to change the naming scheme of your packages, for example by uploading FakeXrmEasy9 version 1.0.0 instead, you would not have this problem. Unfortunately this is a very hard bug to fix and although we've wanted to fix it for a while, it will likely be a long time until we do.
In the future, I would suggest naming new packages under a different scheme that doesn't have this issue so that there's no need for us to intervene. If you would like to keep this naming scheme, please let us know when you upload new packages as quickly as possible so you don't have any issues with losing download counts. To speed up the process even further, you could make the change yourself (see https://github.com/NuGet/NuGet.Jobs/blob/master/src/Stats.ImportAzureCdnStatistics/packagetranslations.json) and we'll review it.

Hi Scott!
Thanks a mill! Ok, will update the naming convention as you suggested from now on...
Cheers!

Verified that it's working as expected now!
Let us know if you encounter any other issues.


How to run ES6 functions?

Is there a way to run functions that rely on ES6 and compile them via Bable before testing?
As of now i do get the following error running sls function mocha-run.
Do i misinterpret the error and this is unrelated of ES6?
Unhandled rejection SyntaxError: Unexpected reserved word
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/richardrentrop/Desktop/JS/auto-scraper/api/scrape/website/handler.js:4:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/Users/richardrentrop/Desktop/JS/auto-scraper/test/scrape-website.js:4:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at /Users/richardrentrop/Desktop/JS/auto-scraper/node_modules/mocha/lib/mocha.js:192:27
    at Array.forEach (native)
    at Mocha.loadFiles (/Users/richardrentrop/Desktop/JS/auto-scraper/node_modules/mocha/lib/mocha.js:189:14)
    at Mocha.run (/Users/richardrentrop/Desktop/JS/auto-scraper/node_modules/mocha/lib/mocha.js:422:31)
    at /Users/richardrentrop/Desktop/JS/auto-scraper/node_modules/serverless-mocha-plugin/index.js:122:21
    at tryCatcher (/Users/richardrentrop/Desktop/JS/auto-scraper/node_modules/serverless-mocha-plugin/node_modules/bluebird/js/release/util.js:11:23)
    at Promise._settlePromiseFromHandler (/Users/richardrentrop/Desktop/JS/auto-scraper/node_modules/serverless-mocha-plugin/node_modules/bluebird/js/release/promise.js:489:31)

@rentrop is this still valid?

Yes it is... I havent found a solution yet.

Can you please send me a sample ES6 function and I'll try to reproduce the issue in my environment.

You can reproduce the error by using an import statement instead of a require statement in your handler function. i.e.
import path from 'path';

If it helps, I got around the issue by calling mocha directly via
mocha --require babel-register
this requires you to npm install babel-register and make sure you have babel properly configured in your project.
However, I'm not sure how I would go about choosing a stage and region when calling mocha directly. Any thoughts?

Solved by #45


Support UTF-8 characters

Codecov Report

Merging #2 (e71ff34) into master (b3de08d) will decrease coverage by 23.37%.
The diff coverage is 74.28%.

@@             Coverage Diff              @@
##            master       #2       +/-   ##
============================================
- Coverage   100.00%   76.62%   -23.38%
============================================
  Files            1        2        +1
  Lines           25       77       +52
============================================
+ Hits            25       59       +34
- Misses           0       18       +18

Flag
Coverage Δ

unittests
76.62% <74.28%> (-23.38%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/lua_string_capitalize.h
73.52% <73.52%> (ø)

src/capitalize.c
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.


Completion hooks aborted by linting errors.

Version
3.0.0-beta.3
Steps to reproduce
Create a new project with vue create.

select at least TypeScript, PWA and Linting
select ESLint   Airbnb config
select lint on save

What is expected?
Project should be created.
What is actually happening?
Project is created though completing hook will be aborted with the following error:
⠋  Running completion hooks...error: Unexpected use of file extension "ts" for "./registerServiceWorker.ts" (import/extensions) at vuedit/src/main.ts:5:8:
  3 | import router from './router';
  4 | import store from './store';
> 5 | import './registerServiceWorker.ts';
    |        ^
  6 |
  7 | Vue.config.productionTip = false;
  8 |```

<!-- generated by vue-issues.


Handle element selector receivers in RedundantMerge

@lumeet, thanks for fixing #3006. I had a slightly different idea about the fix for this. I was thinking that we could register an offense for, and fix, this condition. Let me know what you think about this tweak.

Nice supplement! My fix didn't actually address the :[] case specifically but possibly many other uncommon cases such as what.ever.merge(a: '').

possibly many other uncommon cases such as what.ever.merge(a: '')

I was starting to think the same thing. We shouldn't care what merge! is being called on as long as the value isn't being used. I have been debating whether or not to move some of this logic to inside of value_used.


Support "plantuml" LANG in fenced code (in addition to "uml")

The UML extension expects the following fenced code:
Text

```uml
@startuml
@enduml
```

Some editors like VS Code (see https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml) support plantuml syntax highlighting (and preview) in markdown fenced code , but with the following form:
Text

```plantuml
@startuml
@enduml
```

So there is a discrepancy between editor and renderer. Is it possible to make fenced code generate the plantuml schema for uml and plantuml languages ?

ok. let us find the other implementations first.
I don't want to add the languages everytime we find another one.
Could you help me find the others?

As far as I know, there is no other implementation beside uml and plantuml when it comes to describe a plantuml schema.

@cazeaux ok thanks.
I'll consider adding this to next minor release.


[Feature] Add links of not included relationships

This PR allows to create relationship links on the top level resource for all available includes. This allows to set all available relationship links without the need to include them.
Example:
{
  "links": {
    "self": "http://example.com/articles/1"
  },
  "data": {
    "type": "articles",
    "id": "1",
    "attributes": {
      "title": "JSON API paints my bikeshed!"
    },
    "relationships": {
      "author": {
        "links": {
          "related": "http://example.com/articles/1/author"
        }
      }
    }
  }
}

I've added a second parameter $includeRelationshipsLinks in JsonApiSerializer::__construct(). Default is set to false to keep BC.
I'm not so happy about this second parameter. Maybe an options array would be better because it would allow more options for future configuration?
This PR should fix #367.
This refs also #331 but should not have any BC breaks.

I like this addition as it adds the hyper media capability that a JSON API should have. The implementation looks ok but I can't help but feel the addition of the boolean flag to the constructor is going to lead to some headaches as it breaks convention with other serializers. Much like 'id' is plucked from attributes, 'relationships' should most likely be done the same way. Self and related links I believe are non optional when the relationship object is present so choosing whether to display them or not is open to the transformer, not the serializer.

@Art4 Thank you very much for this! I think the boolean flag will probably cause headaches and does depart from the way serializers are working currently, though. I've decided to go with #331
Fractal is still pre-1.0, so I feel comfortable merging in an additive change like his for 0.17.0

Great, thank you. :+1:


The upper_bound func of btree cannot use binary search when using btree_binary_search_compare_to.

As you can see the following code, btree_binary_search_compare_to use linear search function because there seems to be some bugs when using binary search.
https://github.com/sukeya/cpp-btree/blob/c04956b462818fa6d206d9255a0eb879e2989444/cppbtree/btree.h#L419

fixed.


Incompatibility with Flask >= 2.3.x

Starting 2.3.0, json_encoder and json_decoder attributes on app and blueprint, and the corresponding json.JSONEncoder and JSONDecoder classes, are removed (source: https://flask.palletsprojects.com/en/2.3.x/changes/).
This produces an error in module pyctuator/impl/flask_pyctuator.py, which attempts to load non-existing module JSONEncoder.
Error trace example:
  File "/home/jboss/.local/lib/python3.11/site-packages/pyctuator/pyctuator.py", line 130, in __init__
    success = framework_integration_function(app, self.pyctuator_impl, customizer)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jboss/.local/lib/python3.11/site-packages/pyctuator/pyctuator.py", line 210, in _integrate_flask
    from pyctuator.impl.flask_pyctuator import FlaskPyctuator
  File "/home/jboss/.local/lib/python3.11/site-packages/pyctuator/impl/flask_pyctuator.py", line 9, in <module>
    from flask.json import JSONEncoder
ImportError: cannot import name 'JSONEncoder' from 'flask.json' (/home/jboss/.local/lib/python3.11/site-packages/flask/json/__init__.py)

any news? :)

will take a look.
And if you can send  and push-request its even better.

Ok, I started working on this, see #99

it looks like this fix is merged, any plans for a release soon?

Sure, was hoping to get the other issues fixed too - will try to get this done by the end of this week.

Done, please upgrade to pyctuator 1.1.0


Problems running the first exercise (Chapter1) in windows

I am starting to read the book
In Getting Started with MLflow you got a very simple docker file.
I am trying to run it in my windows 10 machine
There are several problems but when I run
docker run -p 8888:8888 -p 5000:5000 -v %cd%:/home/jovyan/ -it chapter_1_homlflow
from the cmd, it gets running but in the end I got an error
>docker run -p 8888:8888 -p 5000:5000 -v %cd%:/home/jovyan/ -it chapter_1_homlflow
Entered start.sh with args: jupyter lab
Executing the command: jupyter lab
[I 2022-05-19 13:37:21.107 ServerApp] jupyterlab | extension was successfully linked.
[W 2022-05-19 13:37:21.121 NotebookApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-05-19 13:37:21.121 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2022-05-19 13:37:21.121 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2022-05-19 13:37:21.129 ServerApp] nbclassic | extension was successfully linked.
[I 2022-05-19 13:37:21.154 ServerApp] Writing Jupyter server cookie secret to /home/jovyan/.local/share/jupyter/runtime/jupyter_cookie_secret
[W 2022-05-19 13:37:21.160 ServerApp] Permissions assignment failed for secure file: '/home/jovyan/.local/share/jupyter/runtime/jupyter_cookie_secret'. Got '0o655' instead of '0o0600'.
[I 2022-05-19 13:37:21.208 ServerApp] notebook_shim | extension was successfully loaded.
[I 2022-05-19 13:37:21.210 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.9/site-packages/jupyterlab
[I 2022-05-19 13:37:21.210 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2022-05-19 13:37:21.218 ServerApp] jupyterlab | extension was successfully loaded.
[I 2022-05-19 13:37:21.833 ServerApp] nbclassic | extension was successfully loaded.
[I 2022-05-19 13:37:21.834 ServerApp] Serving notebooks from local directory: /home/jovyan
[I 2022-05-19 13:37:21.835 ServerApp] Jupyter Server 1.17.0 is running at:
[I 2022-05-19 13:37:21.835 ServerApp] http://03086fb5b986:8888/lab?token=04777eb1ad3263ce654af5fd1bda277f822a73b8a83d0c43
[I 2022-05-19 13:37:21.835 ServerApp]  or http://<IP_ADDRESS>:8888/lab?token=04777eb1ad3263ce654af5fd1bda277f822a73b8a83d0c43
[I 2022-05-19 13:37:21.835 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-lab", line 10, in <module>
    sys.exit(main())
  File "/opt/conda/lib/python3.9/site-packages/jupyter_server/extension/application.py", line 594, in launch_instance
    serverapp.start()
  File "/opt/conda/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2757, in start
    self.start_app()
  File "/opt/conda/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2687, in start_app
    self.write_server_info_file()
  File "/opt/conda/lib/python3.9/site-packages/jupyter_server/serverapp.py", line 2503, in write_server_info_file
    with secure_write(self.info_file) as f:
  File "/opt/conda/lib/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/opt/conda/lib/python3.9/site-packages/jupyter_core/paths.py", line 903, in secure_write
    raise RuntimeError(
RuntimeError: Permissions assignment failed for secure file: '/home/jovyan/.local/share/jupyter/runtime/jpserver-7.json'. Got '0o655' instead of '0o0600'.

How can I run this very simple example?

Same here. Just got the book, trying the first example, same problem.

I'm using this opportunity to learn some more about Docker, and I put together my own little setup for the very first examples from Chapter01. Comments and contributions are welcome, I hope this helps someone:
https://github.com/nebelgrau77/dockerized_notebook/tree/chapter01

@nebelgrau77 : I am relooking at this repo and trying to revive it . Do you mind if i adopt your work above into this repo ?

This is closed as @nebelgrau77 work around works , i will be busy incorporating on this repo.

@nebelgrau77 : I am relooking at this repo and trying to revive it . Do you mind if i adopt your work above into this repo ?

Sure, feel free to use it :)


analysis: users api command

This PR holds a proposal for new commands to leverage console administrator APIs and let them manage users directly from command-line
This PR is currently under development, after approval we'll proceed implementing the commands and accept this documentation PR

this analysis is outdated


Fix Travis

Akka TestKit specs fails more an more often on Travis, probably because instances freeze.

Giving up on Travis. We now run our own CI for Gatling private repository.


Make RHODS/ODH deployment optional

Main goal:

Optionally deploy RHODS or ODH when running the kserve install script.

In addition:

Remove creation of DSC v1alpha1 - expected for ODH 1.10 coming this week (right?)
Check if CHECK_UWM env variable is set and ask for it otherwise - to be consistent with other variables

Description

Adding an Env variable DEPLOY_OPERATOR to control if the script must install RHODS/ODH operator during the execution.
How Has This Been Tested?
Tested by running ./scripts/install/kserve-install.sh as per README.md
Scenarios:

Tested against a cluster where RHODS was already installed and stack not
Tested against a cluster where both RHODS and stack were installed
Tested deployment of a model after script execution

Merge criteria:

[ ] The commits are squashed in a cohesive manner and have meaningful messages.
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work

@Jooho @Xaenalt ^^

@bdattoma Sorry I didn't have time to merge this pr before I moved on to another task. But I added your changes to this [PR] (https://github.com/opendatahub-io/caikit-tgis-serving/pull/106). could you please review it?

Closing in favor of #106


autogenerated fields with @model

Note: If your feature-request is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Is your feature request related to a problem? Please describe.
Some fields in a @model schema must be auto-generated, for example UUID, incremental number, timestamp, current_date. Currently, there is no way to mention the same in the schema.
Currently, only IDs can be generated provided they are not passed by the caller in a mutation. But such system-generated information should not be allowed to be overwritten by the user.
Describe the solution you'd like
Allow new annotation @system-generated ({name:field_name_1, value:auto_uuid}, {name:field_name_2, value:auto_increment_number}, {name: field_name_3, value:auto_date_time}, {name: field_name_4, value: timestam_nanoseconds} )
The format is not important, but the functionality is.
Describe alternatives you've considered
One alternative is to implement this logic using a pipeline resolver or a lambda function. Both are overkill of functionality and this is something should be made available by default in the system.

@arkllc
Could you describe in more details on the  @system-generated  annotation you proposed?
such as, Is it applied to the type level or field level?  how should it be transformed? etc.

It should be applied at the field level. Also, the implementation is straightforward. The corresponding fields should always be generated in the Velocity template by using either the current ISO timestamp for date fields and UUI for unique ID. For the sequence number, a call needs to be made to the table to identify the current sequence number and then increment by 1. Now I can see why sequence numbers can be tricky due to race conditions in a highly concurrent system so it need not be supported in dynamodb systems. The RDBMSs typically have the sequence number capabilities so it may be slightly easier to support. Overall I don't think the sequence number implementation is all that important but the UUID, Timestamps and current DateTime are more important.

@UnleashedMind please let me know if you have any further questions

@UnleashedMind  could you please provide an update if we could expect this feature to be released sometime in near future?

@arkllc I believe you can leverage this community created @auto transformer for auto-generating certain fields or create your own custom transformer based on your requirements on the fields.
@auto directive 3rd party plugin reference - https://github.com/hirochachacha/graphql-auto-transformer


Bump dep versions and release 0.2.1.

Specifically, we bump the dep on aho-corasick to 0.6.0, which includes a
dep on memchr 1.0.0. This avoids compiling two distinct versions of
memchr into every regex build.

@bors r+

:pushpin: Commit 75e5410 has been approved by BurntSushi

:hourglass: Testing commit 75e5410 with merge e97a000...

:broken_heart: Test failed - status-travis

@bors r+

:pushpin: Commit 75ae79b has been approved by BurntSushi

:hourglass: Testing commit 75ae79b with merge c7bf105...

:sunny: Test successful - status-appveyor, status-travis
Approved by: BurntSushi
Pushing c7bf105b5d675bafe14534d91fe3f147ecd5419c to master...


Which files should be added to the project when we want to use CS embedded?

Hi there,
I am trying to use CS as embedded libraries, also I have downloaded the ChatScript-Brains-master (https://github.com/tkuebler/ChatScriptBrains). I can build and use the brains successfully. Also I can compile and run CS successfully, but I have a problem in my executable program. In my program I get a char* from the user input, then pass it through the CS, but it says:
No such bot.
I created a file named RAWDATA within the main folder of my project and copied the Alice ,and QUIBBLE and filesAlice.txt inside the RAWDATA folder.
Should I copy more folders from CS to my project's folder?

Maybe you can see better what I have in my project's file (FINAL_PROJECT):
http://uupload.ir/files/4ye1_file1.png
And this is inside the RAWDATA folder:
http://uupload.ir/files/h1wh_file2.png


Isolating Connection objects in _http modules (where relevant).

This is a work-in-progress for now, but vision and speech are done. Will also be doing logging, pubsub and maybe error_reporting.
FWIW, this is a result of me working on #2746.

@daspecster Thanks but you are bit quick on the draw. The work-in-progress bit means more changes will be coming.

Sorry, I thought that meant this was one PR of n-PRs.

Holding off on logging and pubsub in this PR since it would un-necessarily create 3 connections (since there are 3 services created in either case). What we really care about is connection.api_request (here and here), which just relies on CLASS attributes, the credentials (known on the client) and the inputs. So it can wait until a larger refactor.

@daspecster @lukesneeringer PTAL this is ready for review

This LGTM.


Missing initalization options

Missing initialization options cause of this issue https://github.com/yegappan/lsp/issues/291.
Lsp works when configuring manually, but not using the adapter.

https://github.com/normen/vim-lsp-settings-adapter/pull/2

Cheers!


Can we pass arguments to the build definition?

I want to pass arguments to the build definition before queuing it. Please let me know. Thanks in Advance.

Hi @deepuHub - the commands in this tool not related to VSTS extensions have been deprecated. Please see https://github.com/Microsoft/vsts-cli.


Spring cannot create proxies for some OrientDb classes (see details below).

I am using Spring to create a database connection bean by http request.
In order to do that, Spring creates a proxy on the bean (because I declared it with scope "request") but when the server started I got the below messages:
2016-04-10 02:33:22.688  INFO 14861 --- [           main] o.s.aop.framework.CglibAopProxy          : Unable to proxy method [public final com.tinkerpop.blueprints.impls.orient.OrientEdgeType com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.getEdgeType(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.
2016-04-10 02:33:22.689  INFO 14861 --- [           main] o.s.aop.framework.CglibAopProxy          : Unable to proxy method [public final com.tinkerpop.blueprints.impls.orient.OrientVertexType com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.getVertexType(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.
2016-04-10 02:33:22.689  INFO 14861 --- [           main] o.s.aop.framework.CglibAopProxy          : Unable to proxy method [public final void com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.dropVertexType(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.
2016-04-10 02:33:22.689  INFO 14861 --- [           main] o.s.aop.framework.CglibAopProxy          : Unable to proxy method [public final void com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.dropEdgeType(java.lang.String)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.

Is is possible to declare as NOT final the following methods?:

public final com.tinkerpop.blueprints.impls.orient.OrientEdgeType com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.getEdgeType(java.lang.String)
public final com.tinkerpop.blueprints.impls.orient.OrientVertexType com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.getVertexType(java.lang.String)
public final void com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.dropVertexType(java.lang.String)
public final void com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.dropEdgeType(java.lang.String)

@pabloa You should proxy OrientGraphFactory, not directly OrientGraph I think. Take a look here: https://github.com/eugene-kamenev/orientdb-spring-boot-example/blob/master/src/main/groovy/com/spring/BootApp.groovy

Hi guys,
It depends which approach do you use, if you treat OrientGraph as a bean with thread bounded scope, it is also OK.
Let me push change in couple of minutes.

Fixed. Will be at next hotfix.

Awesome! Thank you
Pablo


Permutation instructions/links

Allow asm machines to be linked by permutation arguments.
The syntax is the same as for lookups, but  uses a ~ (tilde) instead of =.
This PR is written in a way that there's no change to existing asm/pil code and tests, and so witgen support can be implemented separately

I tried implementing memory with it: #1129
One issue that I think should be fixed in this PR is that it seems like the selectors can't actually be used. I expect this to be a common pattern:
let is_mem_op = array::sum(selectors);

This currently gives me symbol not found in '::std::memory': 'selectors' even though the selectors do appear in the correct namespace in the final pil. So I guess they are added too late for the check to pass.

I tried implementing memory with it: #1129
One issue that I think should be fixed in this PR is that it seems like the selectors can't actually be used. I expect this to be a common pattern:
let is_mem_op = array::sum(selectors);

This currently gives me symbol not found in '::std::memory': 'selectors' even though the selectors do appear in the correct namespace in the final pil. So I guess they are added too late for the check to pass.

I think they are missing from Machine::local_names()

For the issue of accessing the selectors, is accessing the used flag directly (i.e., sum of selectors) instead of the selector array enough?
We could do one of the following:

a) try a builtin for that

b) allow machines to have an optional declaration (selector foo;?), which would be the name for the used flag in place of the default "hidden" name, and thus would be referenceable by machine code.

What do you think? I kinda like the second option

For the issue of accessing the selectors, is accessing the used flag directly (i.e., sum of selectors) instead of the selector array enough?

Not to fix the unchanged_until thing in Poseidon, as discussed above, right? But that would be fixed by giving the user access to the raw selectors and making the user responsible for keeping them constant if needed.


How to modify per agent's speed and accuracy?

Hi,
I didn't find where to specify each agent's speed and accuracy. In addition, is there a full list of customizable attributes for each agent? Thanks a lot in advance.

Hi,
to experiment with different attributes you might try changing them in playerdata.cpp. The names of the players are updated later.
To see how speed is calculated, search for velocity in third_party/gfootball_engine

Depending on what you want to achieve there is also left/right team difficulty defined in each scenario file, for example: https://github.com/google-research/football/blame/master/gfootball/scenarios/11_vs_11_competition.py#L25
It controls all players on a given team that are controlled by the built-in AI.

@vi3itor Hi, I tried to modify the attributes as you specified, but it seems even if I manually create different agents with different attributes and include them in teamdata.cpp, there's no effect on the actual agent, though when I print out the playerdata those properties are indeed different.


Improve inline help for rights and alt text field

Mention screen readers
Say that file rights are displayed in the copyright section

Coverage remained the same at 99.031% when pulling 8aa2f0ab0ae9f97e5e989249cae65d401e67ae67 on tf:inline-help-improvements into a6402da686f6907277caa8c48e2626ac27287d96 on codevise:master.

Coverage remained the same at 99.031% when pulling 8aa2f0ab0ae9f97e5e989249cae65d401e67ae67 on tf:inline-help-improvements into a6402da686f6907277caa8c48e2626ac27287d96 on codevise:master.

Coverage remained the same at 99.031% when pulling 8f4a108106fa0407b743852daea5689f3d6942a7 on tf:inline-help-improvements into a6402da686f6907277caa8c48e2626ac27287d96 on codevise:master.


feat: cluster domain models

Overview
What I've done
What I haven't done
How I tested
Which point I want you to review particularly
Memo

I realize that last time we discussed how scenes should have clusters and decided as follows: clusters are not very large objects, so we will treat them as value objects and let the scene own them directly.


IllegalArgumentException due to integer overflow when building a large Word2Vec model

I trained a model using the original C code and was importing it into my deeplearning4j code and got the following exception:
Exception in thread "main" java.lang.IllegalArgumentException: Unable to create a buffer of length <= 0
at org.nd4j.linalg.api.buffer.BaseDataBuffer.(BaseDataBuffer.java:195)
at org.nd4j.linalg.api.buffer.FloatBuffer.(FloatBuffer.java:39)
at org.nd4j.linalg.api.buffer.factory.DefaultDataBufferFactory.createFloat(DefaultDataBufferFactory.java:43)
at org.nd4j.linalg.factory.Nd4j.createBuffer(Nd4j.java:988)
at org.nd4j.linalg.api.ndarray.BaseNDArray.(BaseNDArray.java:223)
at org.nd4j.linalg.jblas.NDArray.(NDArray.java:107)
at org.nd4j.linalg.jblas.JblasNDArrayFactory.create(JblasNDArrayFactory.java:224)
at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3801)
at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3770)
at org.nd4j.linalg.factory.Nd4j.create(Nd4j.java:3044)
at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.readBinaryModel(WordVectorSerializer.java:182)
at org.deeplearning4j.models.embeddings.loader.WordVectorSerializer.loadGoogleModel(WordVectorSerializer.java:97)
at com.shc.ift.misclass.wordnet.FeatureBuilder.(FeatureBuilder.java:46)
at com.shc.ift.misclass.wordnet.TestFileProcessor.main(TestFileProcessor.java:164)
I've found the cause to be due the the file:
nd4j/nd4j-api/src/main/java/org/nd4j/linalg/util/ArrayUtil.java
The product calculation function int prod(int[] mult) overflows due to the limit on Integer.MAX_VALUE.
There is no issue when the trained model is used it the original C code from google.

This is a limitation of java itself. We are working on libnd4j which will store the arrays natively. File a more general issue on nd4j mentioning this if this is important to you. Otherwise this will be fixed when we implement the new storage.


No space left on device when trying to run the docker getting-started app

Following the official docker getting started tutorial it is suggested to try the created container in play-with-docker
Unfortunately the download fails with no space left on device

can you try again? it should be good now

Working now, thank you very much.


fix: add ability to print file path

to fix #4:

[x] cd to the physical directory of the file instead of the file itself
[x] print the path, including file name, only if cd was successful
[x] quote the variables

Thanks very much, but there's also one little issue with this fix that it breaks realpath /
I will merge it and add special case if the argument is '/'


cannot write new files

Hello, I just installed this in my arch pi, it seems everything went fine.
But if I got it right, I should be able to touch, write the files in / , without getting a "read-only"warning.
Because changes would go to ram (tempfs), is this it?
As of now I cannot touch new file, or nano edit any file at all, I get read only warning.
I can edit /etc/resolv.conf
So is this set to overlay only some specific files?
Thank you.

That is strange. Can you post the error you are seeing, and the output of
cat /boot/config.txt
cat /boot/cmdline.txt
cat /etc/fstab
mount

Hello, after a couple reboots it is working just fine. I guess that Idid wrong on the last step, were it says to first add overlayroot to cmdline.txt, reboot, and then add "ro" to cmdline.txt . In my case, I went straight to adding both overlayroot and ro at the same time. Anyway, it is working fine now.
One last question: Is it possible to keep uploading the raspberry firmware? Of course we are talking about making it rw again first.
I ask this because there now there is "initramfs initrd followkernel" instead of "initramfs initramfs-linux.img followkernel".
Thank you.

Hello, after a couple reboots it is working just fine.

OK great

Is it possible to keep uploading the raspberry firmware? [...] I ask this because there now there is "initramfs initrd followkernel" instead of "initramfs initramfs-linux.img followkernel".

what do you mean?

Ok, understood.
How do I remove /boot from this overlay setup?  I do need /boot to be RW all the time.

The RW /boot/ should be in /overlay/lower/boot/

Strange, my /overlay/lower/boot/ is read-only, and ls shows no files.
This is my fstab:
/dev/mmcblk0p1  /boot           vfat    defaults,rw          0       0 /dev/mmcblk0p3  /mnt/memory1               ext4    defaults,noatime,nodiratime  0       0 /dev/mmcblk0p4  /mnt/memory2               ext4    defaults,noatime,nodiratime  0       0 tmpfs           /tmp            tmpfs   nodev,nosuid          0 0
(My sd card has a total of 4 partitions, I have 2 RW partitions, memory1 and memory2)
this is my config.txt:
dtparam=audio=on disable_splash=1 hdmi_force_hotplug=1 hdmi_drive=2 hdmi_group=1 hdmi_mode=16 gpu_mem=400 initramfs initrd followkernel
and this is my cmdline:
root=/dev/mmcblk0p2 ro rootwait console=ttyAMA0,115200 console=tty3 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=ttyAMA0,115200 elevator=noop loglevel=3 vt.global_cursor_default=0 noswap logo.nologo overlayroot

It may have to do with the bind mount I am doing not properly binding subvolumes...

Strangely my /boot seems to be rw (as intended) now,
my fstab is:
/dev/mmcblk0p1  /boot           vfat    defaults,rw
and I can freely write files to it, they persist over reboots.
So overlay root seems to be not present over my boot.
I dont know what happened, but I guess my /boot became "overlayed" after I tried the "rwrootfs" command.

Everything in the overlayroot is RW. Anything you change in /boot now should disappear after a reboot.

Remember that rwrootfs opens a new shell in the RW filesystems. You need to exit that shell to return to the overlayed FS.

Hello.
I am trying to remove it.
I removed from cmdline, removed the initdr live from config.txt
and removed from HOOKS in /etc/mkinitcpio.conf
when I command: mkinitcpio -g /boot/initrd I get
==> ERROR: '/lib/modules/4.9.15-1-ARCH' is not a valid kernel module directory
Is this ok?

You only need to change cmdline.txt to disable it, change config.txt to remove the initrd. No need to recompile /boot/initrd or change HOOKS.
I think the other issue you are seeing is unrelated to this project.


Listening for notifications fails

Describe the bug
When the application listens for notifications at some point the error occurs:
WARNING|2022-10-13 11:19:54.136240|Monitor|Heartbeat response not received within expected duration. Heartbeat was sent at<PHONE_NUMBER>800, it is now<PHONE_NUMBER>136, last heartbeat response was received at<PHONE_NUMBER>946. Will close connection, set status stopped, call retryCallback

INFO|2022-10-13 11:19:54.137650|Monitor|socket.listen onDone called. Will destroy socket, set status stopped, call retryCallback

INFO|2022-10-13 11:19:54.137699|Monitor|Another closeStopAndRetry operation is in progress

INFO|2022-10-13 11:20:00.802056|Monitor|status is MonitorStatus.stopped : heartbeat will not be sent

INFO|2022-10-13 11:20:09.146764|Monitor|starting monitor for @81bored7 with lastNotificationTime:<PHONE_NUMBER>193

INFO|2022-10-13 11:20:10.660778|Monitor|starting monitor for @81bored7 with lastNotificationTime:<PHONE_NUMBER>193

INFO|2022-10-13 11:20:12.381016|Monitor|socket.listen onDone called. Will destroy socket, set status stopped, call retryCallback

INFO|2022-10-13 11:20:12.381170|Monitor|Retrying start monitor due to error

INFO|2022-10-13 11:20:12.381300|NotificationServiceImpl|Attempting to retry in less than 15 seconds... Rejected

INFO|2022-10-13 11:20:27.390790|Monitor|starting monitor for @81bored7 with lastNotificationTime:<PHONE_NUMBER>193

INFO|2022-10-13 11:20:28.148531|Monitor|monitor started for @81bored7 with last notification time:<PHONE_NUMBER>193

Unhandled exception:
NoSuchMethodError: The getter 'isError' was called on null.
Receiver: null
Tried calling: isError
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)
#1      Monitor._getQueueResponse (package:at_client/src/manager/monitor.dart:302:25)
<asynchronous suspension>
#2      Monitor._authenticateConnection (package:at_client/src/manager/monitor.dart:249:24)
<asynchronous suspension>
#3      Monitor.start (package:at_client/src/manager/monitor.dart:176:7)
<asynchronous suspension>

Even though waiting for notifications is wrapped into try-catch the exception is still not caught and application is crashed.
A snipped of listening:
  @override
  void listen() async {
    Logger.root.info("Listening for At notifications");
    final atStream = AtClientManager.getInstance()
        .notificationService
        .subscribe(regex: r'^((?!statsNotification).)*$', shouldDecrypt: true)
      ..handleError((error) {
        Logger.root
            .warning("While waiting for atNotifications an error has occurred: $error");
      });
    final keyRegex =
        RegExp('(@\\w+):([\\w\\.\\-]+)\\.${client.getPreferences()?.namespace}(@\\w+)');
    var retry = true;
    while (retry) {
      try {
        await for (final notification in atStream) {
          if (notification.operation != "update") {
            continue;
          }
        .......
        }
        retry = false;
      } on Exception {
        Logger.root
            .warning("During waiting for AtNotification an unexpected error occurred");
        Logger.root.warning("Restarting listening...");
      }
    }
  }

Steps to reproduce

Start listening for notifications with the code similar to one above
Wait for some time (can be 4 hours)

Expected behavior
Listening errors are handled and aren't propagated to the consuming application.
Or is there are propagated then the issue is documented and can be caught
Screenshots
No response
Smartphones

Device: console app
OS: MacOS

Were you using an atApplication when the bug was found?
no
Additional context
No response

Found the potential root cause of the issue:

When the server responses are delayed/timeout, the monitorResponse will have null value. In the subsequent line, we check for isError which leads to a null pointer exception.

The changes are published in v3.0.42. Hence marking the issue has fixed.


Next Release?

When will the next version be relased?
Some bug fixes that have been merged are critical.
Thanks!

Next release is planned for the next knative version (in 2 weeks or so), but if you need any change I can schedule a patch release for Tuesdays any week

That would be great!
I need this merged PR

Ready! Created the cherry picks:
https://github.com/knative-sandbox/eventing-rabbitmq/pull/1180
https://github.com/knative-sandbox/eventing-rabbitmq/pull/1181
Next tuesday this will be in the 1.10.1 and 1.9.2 versions


Text Classification with FNet [KerasNLP]

Resolves https://github.com/keras-team/keras-nlp/issues/213
Dataset: IMDb
Compared results with Transformer model

Thank you, @mattdangerw, @fchollet for the review comments and the approval! :)

Continuous integration / black (pull_request) Failing after 23s — black

Please fix the code formatting.

The CI error is unrelated. I'll merge. Thank you!


Don't apply csrf for autodeploy, so webhooks can easily call it

#75

csrf is important because javascript is really dumb, so it's a way to stop bad websites from sending requests to good websites and thus getting user data by tricking the user's browser https://docs.djangoproject.com/en/4.1/ref/csrf/
but it doesn't really apply to calls that aren't authorized via cookies or other stuff like that, and it stopped me from just sending a POST to do the autodeploy

actually I'm slandering javascript. what's dumb is the standard for sending http calls through browsers. javascript is just dumb for unrelated reasons


E2E: go release main SLSA3 config-ldflags assets

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.12
Run: https://github.com/slsa-framework/example-package/actions/runs/6681101494
Workflow name: go release main SLSA3 config-ldflags assets
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.12
Date: Sun Oct 29 04:08:20 UTC 2023

Repo: https://github.com/slsa-framework/example-package/tree/v16.0.12
Run: https://github.com/slsa-framework/example-package/actions/runs/6688175720
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.release.main.config-ldflags-assets.slsa3.yml
Trigger: release
Branch: v16.0.12
Date: Mon Oct 30 04:16:07 UTC 2023
Tests are passing now. Closing this issue.


WeConnect ID will no longer initialise

Home Assistant 2022.10.3
Frontend 20221010.0 - latest
When I upgraded to the latest version, on restart of HA, I got this message:
Invalid config
The following integrations and platforms could not be set up:

volkswagen_we_connect_id.sensor
Please check your config and logs

The logs show
2023-01-05 11:00:51.258 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform volkswagen_we_connect_id.sensor: Platform not found (cannot import name 'UnitOfPower' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py)).

Help!

I needed to upgrade HA to the latest version.


Adding API Gateway acceptance test

Closes #25
Signed-off-by: Michael Lavers<EMAIL_ADDRESS>

@pselle That's why I make the URL an environment variable.


Fixes main area height issue on several browsers.

#342 Layout not working on Firefox and IE
Firefox requires a unit to be provided.
I did a global search on .style('height') and .style('width') and found no other occurences. However, most of them could be in .attr('height') which I didn't look for until we spot an issue.

:+1:
The branch is out of sync with develop, but once rebased this is good to merge.

Rebased and merged in #348.


What license is this under?

Looks like a cool project! You should add a license so other people can use this legally.

Thanks for the hint. This is now under BSD.
Oh and sorry for the late answer. Have been pretty busy lately.


Update BSK with autofill 10.2.0

Task/Issue URL: https://app.asana.com/0/1206839421155398/1206839421155398
Autofill Release: https://github.com/duckduckgo/duckduckgo-autofill/releases/tag/10.2.0
BSK PR: https://github.com/duckduckgo/BrowserServicesKit/pull/723
Description
Updates Autofill to version 10.2.0.
Autofill 10.2.0 release notes
What's Changed

Remove unused Android UA check by @jonathanKingston in https://github.com/duckduckgo/duckduckgo-autofill/pull/494
fix tracker radar kit reference by @brindy in https://github.com/duckduckgo/duckduckgo-autofill/pull/505
Update password-related json files (2024-03-04) by @daxmobile in https://github.com/duckduckgo/duckduckgo-autofill/pull/518
separate 'third party provider' feature by @shakyShane in https://github.com/duckduckgo/duckduckgo-autofill/pull/252
marking flaky tests by @shakyShane in https://github.com/duckduckgo/duckduckgo-autofill/pull/524
remove device-specifc 'isEnabled' checks by @shakyShane in https://github.com/duckduckgo/duckduckgo-autofill/pull/523
fixing some flaky tests by @shakyShane in https://github.com/duckduckgo/duckduckgo-autofill/pull/526
Fixes bugs for Lufthansa, Twitter, Rumble by @GioSensation in https://github.com/duckduckgo/duckduckgo-autofill/pull/529
Update Github action dependency by @GioSensation in https://github.com/duckduckgo/duckduckgo-autofill/pull/531

New Contributors

@brindy made their first contribution in https://github.com/duckduckgo/duckduckgo-autofill/pull/505

Full Changelog: https://github.com/duckduckgo/duckduckgo-autofill/compare/10.1.0...10.2.0
Steps to test
This release has been tested during autofill development. For smoke test steps see this task.

@GioSensation @shakyShane it looks like there is an issue with this autofill release and email incontext signup on iOS. EmailManager.autofillUserScriptDidCompleteInContextSignup is no longer firing, so the final stage of the email sign-up and sign-in flows are broken with the Email Protection screen never getting dismissed.
I checked and there were no errors in the console, it's like a message handler just stopped firing or was possibly removed? Let me know if I can do anything to help
https://github.com/duckduckgo/iOS/assets/91189922/4e0b6ea6-728d-43fb-9f42-fc18cf830893
https://github.com/duckduckgo/iOS/assets/91189922/a05f4e5a-3f00-4c57-ad01-4ab42e0d4891

Thanks both! The issue was indeed a runtime config support issue in the in-context webview; i've opened a PR with a fix (and I also added a debug option to reset the days since installed to 0 for ease of testing the incontext signup flow)

Nice! Thanks, Anya! FWIW, this is the options we have for email protection on Android, in case you need further inspiration.

Thanks @GioSensation that is definitely inspiring! 😄


RadioButtons does not respect XYFocus with Gamepad

Describe the bug
When navigating a list of RadioButtons with MaximumColumns set, XYFocus is not respected.
Steps to reproduce the bug

Create an app and RadioButtons list with MaximumColumns set to >= 2

<muxc:RadioButtons Header="App Mode" MaximumColumns="2">
    <x:String>Item 1</x:String>
    <x:String>Item 2</x:String>
    <x:String>Item 3</x:String>
    <x:String>Item 4</x:String>
</muxc:RadioButtons>

Use the gamepad controller to navigate to Item 1
Attempt to navigate to Item 3 by moving the L stick down
Observe that instead you move to Item 2, which is expected keyboard behavior, not gamepad

Expected behavior

With focus on Item 1, attempt to navigate to Item 3 by moving the L stick down
Observe that focus is instead moved to Item 3

Version Info
Win UI 2.1 Preview

Windows 10 version
Saw the problem?

Insider Build (18855)
Yes

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Anniversary Update (14393)

Device form factor
Saw the problem?

Desktop
Yes

Mobile

Xbox
Potentially

Surface Hub

IoT

Additional context

The repro steps are a little off for the current radio buttons behavior but I believe this has been fixed with the move to repeater.


LinalgRefactor-mean

Fine to merge from my side
@lambday @vigsterkr I leave to you

@karlnapf @lambday updated

cant we just simply have mean that returns always float64_t?

i.e. i dont really get why we really need that enum story.

so all types will be converted to float64_t? I don't think it will work for the complex.

in that case you could use something like:
template < typename = typename std::enable_if< std::is_same<T, complex_t>::type >::type >
complex_t mean(T);

template < T >
float64_t mean(T);

Ah cool! Lemme try

Updates?

I'm having some trouble using typename std::enable_if<std::is_same<Type, complex128_t>::type, complex128_t>::type in macros.
I did:
https://gist.github.com/OXPHOS/8f2d048e71df1dfc98bb7e2f0953c30e
but I got several errors:
http://pastebin.com/EeYvAay1
I'm not sure why this is happening.

you cannot have this:
https://gist.github.com/OXPHOS/8f2d048e71df1dfc98bb7e2f0953c30e#file-linalgnamespace-h-L10

@vigsterkr @karlnapf  updated

Fine to merge from my side

Ill leave it to @vigsterkr
@OXPHOS ping me if not merged by later today then Ill do it

squashed

@karlnapf wants to merge this?


iOS: Fix textInput is not cleared on clicking clear button.

In RN 0.55 TextInput for iOS is re-implemented from ground,
so this might introduced in that.
https://github.com/react-native-community/react-native-releases/blob/5d160a86c54163c3df5bdb07282c0de48bfe7acb/CHANGELOG.md#ios-specific-changes-1
So this is a quick fix for that.

Good catch!


Add the request method to debugDescription.

This PR adds the request method to the DataResponse and DownloadResponse debugDescriptions.

I made a small tweak to this @jshier to fallback on GET rather than force unwrap the httpMethod. I pushed it up into master in 3f8575ad.


Incorrect hyperlink for Vocab documentations on the website

http://gluon-nlp.mxnet.io/api/vocab.html#gluonnlp.Vocab
In the variables section, embedding, idx_to_token etc are linked to APIs in the TokenEmbedding class

Great job spotting it. Sphinx seems to be confused about the variables. We may need to manually specify where they link to.

The variable is defined here: https://github.com/dmlc/gluon-nlp/blob/master/src/gluonnlp/vocab/vocab.py#L78. It was incorrectly linked to https://github.com/dmlc/gluon-nlp/blob/master/src/gluonnlp/embedding/token_embedding.py#L386
I suspect this is a common problem. People with sphinx experience can take a look. https://github.com/dmlc/gluon-nlp/blob/master/docs/api/vocab.rst

Hi I would like to work on this . Please give me some guidelines

@namanbiyani thanks for offering to help. The link above on the related fields are still accurate. We need to figure out how sphinx decided to link those variables in Vocab class to the ones in token embedding class. It might be related to how the current module was set when documenting vocab class. https://github.com/dmlc/gluon-nlp/blame/master/docs/api/modules/vocab.rst#L19


docs: fix typo

If I read it correctly, I think the text is actually correct as it is, and the correction makes it incorrect?
The type is NaN, so although a bit confusing, it "must be not a number", I think 🤔

Oh, Interesting I see the word play now.


Increase prometheus server limits for the 2i2c cluster

The prometheus-server pod gets OOMKilled currently so we don't have dashboards for the 2i2c cluster.
Currently, the sizes are:
Limits:
      cpu:     1
      memory:  2Gi
    Requests:
      cpu:        200m
      memory:     512Mi

@damianavila, please feel free to merge this is you think it's LGTM to use the grafana dashbords today

Thanks for taking care of this one @GeorgianaElena!


Add Better Testing

It would be really great to add more unit tests and E2E tests as well as component tests.
The continued use of jest and react-testing-lib for unit testing as well as the addition of Storybook for visual unit testing, and cypress for 2e2 testing.

Possibly use enzyme


[core-data] event endpoint return value grows rapidly and can lead to service failure

🐞 Bug Report
The core-data endpoint /api/v1/event returns an array of Event objects, each of which in turn include an array of Reading objects.
On a running system, this data returned by this endpoint can grown rapidly and doesn't seem to be constrained in any way by core data. For instance, with the latest device-virtual service enabled, which has AutoEvents defined for multiple devices, including one that generates binary data, the resulting response from the event endpoint grows exponentially. At some point, the response gets so large (I'm not sure at what point this happens, but guessing 1-2MB?) that service starts to use chunked encoding to send the full response. When using curl to query this endpoint, I've seen the response object easily crest 100MB.
At some point, the requests start to fail, as the call(s) core-data makes to encode the response start failing. I've also seen the service crash on occasion.
I ran into this bug while testing my latest snap changes. At the moment, due to a device-virtual bug, you may need to bump the service timeouts in order to reproduce this bug using docker:
https://github.com/edgexfoundry/device-virtual-go/issues/104
Affected Services
The issue is located in: core-data
Is this a regression?
Maybe?
Description and Minimal Reproduction
Start EdgeX and make sure the latest device-virtual is running with all of its AutoEvents enabled. Start hitting core-data's /api/v1/events endpoint with curl and watch the size of the replies grow.
This is being reported against the latest code in master...

Core-data looks like it is simply returning too much data. I think a short term fix for this is to decrease the Service.MaxResultCount. The default value is 50,000 which may be too high for the situation.
Long term, I think we can add more functionality for limiting the information returned when getting all events. Right now we are relying on the Service.MaxResultCount configuration to limit the number of events returned. However, an event can contain zero or more readings which vary in size, so the number limitation on events might be hard to determine especially for a system which deals with readings and events which vary in size. It might be more useful to have a limit on the Response size, say 500KB. Also, I wonder if for V2 we could explore not returning the Readings for the GET Events endpoint and only provide an ID for the client to perform a separate GET Reading request to obtain that data.

@AnthonyMBonafide do really consider this low priority? This seems pretty serious to me (i.e. core-data quits responding to the endpoint and can actually crash as a result of this), although I haven't given it enough thought on how we could fix...

I was thinking this was lower based on how I was looking at the issue. As I see it, the issue is coming up due to Device Virtual creating big binary events (8MB each) and creating them at a really high rate(every 30s). I was thinking that the issue really resides with the configuration of Device Virtual, rather than being a problem with Core-data. I think that this is a problem, but I see it as being an extreme case. I think adding better limiting functionality for responses is the true fix here. I think we can up the priority. However, I am not sure if this is something we tackle for this release(Geneva).
@tsconn23 , is this a high priority item that we should work on getting in for Geneva?

We talked about this in release planning last week. My takeaway was that this is addressed in V2 with the pagination controls provided by the request types. Even there, the user will need to configure a sensible max page size in the Core to prevent an application from requesting a page size of 10,000 items per page. This behavior/setting has been in the code as long as I have been involved with the project. If Anthony's recommendation to control the response size via configuration works, then I don't think there's an issue here.

@tsconn23 No argument that V2 pagination will solve this. Regarding someone setting a page size to 10k, I think the code needs some reasonable limits for max response size in addition to pagination.
@AnthonyMBonafide I disagree that this is a device-virtual issue. The fact that binary AutoEvents had been configured with a 30s timer just allowed me to hit this issue much quicker than without. If routine maintenance of the db is not happening to clean out pushed events/readings, then this will still happen, it just may take longer with strings or numeric values being pushed. Configure a bunch of devices all pushing uint64s, and you'll see this issue soon enough. The other reason I thought this issue should be considered higher priority is that once the number of pushed events/readings hit a certain threshold, Core Data stops being able to respond to this endpoint, and I've seen it crash as well due to memory starvation.
My recommendation is that we make sure this issue is included in the release notes for Geneva, with emphasis on ensuring that routine database cleaning happens...

@tonyespy , good points. As per our discussion yesterday during the Core WG meeting. Core-data is persisting the binary reading values. I verified this using the Redis CLI to obtain one of the events which are associated with a big binary event and observed all the binary data. This is also obvious since issuing a GET /events request results in events with readings which have values, most notably the large binary readings. I think there is a bug here which is to avoid persisting the reading values. My apologizes, I didn't know we did not want to store the reading data and did not point this out as the root cause from the beginning. A complete oversight on my part.

Is the fix here that we simply just do not persist the reading values or is there some other cleanup or affected area of the system that needs to be addressed as well?

This issue depends on the completion of https://github.com/edgexfoundry/go-mod-core-contracts/pull/241.

I have verified that this issue only resides with our Redis implementation since the Mongo implementation is converting go-mod-core-contracts's Reading into a Mongo representation:
https://github.com/edgexfoundry/edgex-go/blob/6d4072662fd20448464d6b9f1b6b045ced6f2767/internal/pkg/db/mongo/models/reading.go#L68-L87
which is not copying over the BinaryValue information, so we are good there.
Thank you @jdharms  and @tsconn23  for pointing this out!

@AnthonyMBonafide while your fix greatly reduces the mean time til failure of this endpoint, it doesn't completely fix it. I would think as such, we'd want to keep this open for Hanoi. As @tsconn23 has pointed out, the real fix comes with V2.
I also think we want to recommend that people keep any eye on their database, and ensure that period cleaning of pushed events is always done as a best practice.

As per the Core-WG call on May 14th 2020, Reopened issue since the PR which closed this issue does not address the underlying problem. It is expected that this problem will be resolved with V2 as we are looking to add pagination to our APIs to reduce the response sizes.

Might be OBE with V2 API.  Jim to check with Cloud

This is fixed in V2, because we have default limit for api/v2/event/all

close this issue because it has been fixed in V2


No test/example project found.

Can you please provide an example project using this library? or can you please guide how can I use it?

I recommend against using this library for anything productive. Instead, use something maintained and tested like Imgui
If you absolutely must know how this works (i certainly do not remember this madness of a project well enough to tell you), in the dev-0.2 branch of this https://github.com/dreggingames/Dragon2D/tree/dev-0.2/ you can find it used. But as i said: dont.
I keep this up as a reminder of what i coded in the past and to not loose the code, but its not good or fast or easy-to-use code.


Add web page summarization

Start with LangChain
https://python.langchain.com/docs/use_cases/summarization

This is a bad idea.  For example, I would want to block websites, avoid unintended consequences like websites blocking my network (wherever this is installed), preventing malicious code, etc etc.
I think I'll play around with this branch to learn but won't merge to main unless I'm comfortable with the guardrails

Changed my mind. It's so easy to implement that it's easy enough to comment out of the code if someone is concerned. Merging with main


Update mde-device-control-device-installation.md

Remove conflicting license requirements in the document

@JohanFreelancer9 Please copy review

Issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/9142


loading weights with clip.load() throws EOFError: Ran out of input

Description
I'm trying to load CLIP in my code, but it does not work.
I bypass the sha256 check in clip.load() simply by passing the file name in, in this case, it will just load that model.
The code can load original CLIP models successfully using the same method.
clip.load("/home/user/.cache/clip/ViT-L-14.pt")
I'm suspecting this might have something to do with a different torch (or python) version, can you provide me with your local environment details?
I will list what I have done down below:
Environment

OS: Ubuntu 22.04.5 LTS
Python: 3.10.14
conda

torch: 2.4.0
torchvision: 0.19.0
cuda-toolkit: 12.1.0
clip: pip install git+https://github.com/openai/CLIP.git

Steps

python

Python 3.10.14 (main, Mar 21 2024, 16:24:04) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import clip
clip.load("ViT-L-14-TEXT-detail-improved-hiT-GmP-state_dict.pt")

/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/clip/clip.py:136: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
  state_dict = torch.load(opened_file, map_location="cpu")
Traceback (most recent call last):
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/clip/clip.py", line 129, in load
    model = torch.jit.load(opened_file, map_location=device if jit else "cpu").eval()
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/torch/jit/_serialization.py", line 165, in load
    cpp_module = torch._C.import_ir_module_from_buffer(
RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/clip/clip.py", line 136, in load
    state_dict = torch.load(opened_file, map_location="cpu")
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/torch/serialization.py", line 1114, in load
    return _legacy_load(
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/torch/serialization.py", line 1338, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

clip.load("ViT-L-14-TEXT-detail-improved-hiT-GmP-pickle-OpenAI.pt")

Traceback (most recent call last):
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/clip/clip.py", line 129, in load
    model = torch.jit.load(opened_file, map_location=device if jit else "cpu").eval()
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/torch/jit/_serialization.py", line 165, in load
    cpp_module = torch._C.import_ir_module_from_buffer(
RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/clip/clip.py", line 136, in load
    state_dict = torch.load(opened_file, map_location="cpu")
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/torch/serialization.py", line 1114, in load
    return _legacy_load(
  File "/home/jack/miniconda3/envs/oi/lib/python3.10/site-packages/torch/serialization.py", line 1338, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

Judging by the filename, you have downloaded the state_dict version (and not the full model object).
You can either:

Download the full pickle instead and use that (also search for anything that says jit= and remove it, if present, if you get another jit error; my model is just a torch.save, not a jit archive).

Load the state_dict you have already downloaded into the ViT-L/14 model:

model, preprocess = clip.load("ViT-L/14")
state_dict = torch.load("path/to/ViT-L-14-TEXT-detail-improved-hiT-GmP-state_dict.pt", map_location="cpu")
model.load_state_dict(state_dict)
model.eval() # or .train(), depending on what you're trying to do

Hope that helps!

THANK YOU VERY MUCH!
It worked!
I did not realize it work this way.
Thank you for your work, your time and your guide!


What mean in toBeUndefined?

🐛 Bug Report
the code expect(undefined).not.toBeUndefined
it pass the test.
Dose it means undefined !== undefined ????
and I found any test with toBeUndefined, it will pass
like this expect(1).toBeUndefined
To Reproduce
the full test code
test('1: undefined is not be undefined?', () => {
  expect(undefined).not.toBeUndefined
})

test('2: undefined is not be undefined?', () => {
  expect(undefined).not.toBe(undefined)
})

test('3: 1 is be the undefined?', () => {
  expect(1).toBeUndefined
})

the result
 FAIL  test/undefined.test.js
  ✓ 1: undefined is not be undefined?
  ✕ 2: undefined is not be undefined? (1ms)
  ✓ 3: 1 is be the undefined?

  ● 2: undefined is not be undefined?

    expect(received).not.toBe(expected) // Object.is equality

    Expected: not undefined

       6 |
       7 | test('2: undefined is not be undefined?', () => {
    >  8 |   expect(undefined).not.toBe(undefined)
         |                         ^
       9 | })
      10 |
      11 |

      at Object.<anonymous>.test **(test/undefined.test.js:8:25)**

## Expected behavior

toBeUndefined should alias toBe(undefined)

I found the code expect(undefined).toBeDefined will pass the test also.

You need to call it: expect(undefined).toBeDefined(), it's a function, not a property/getter

You need to call it: expect(undefined).toBeDefined(), it's a function, not a property/getter

@thymikee  thanks,
I am sorry to submit this issue,
and I should ready the docs carefully.

Happens! Have fun testing :)

@thymikee  thanks,
I am sorry to submit this issue,
and I should ready the docs carefully.


Integrated drone and other standard files

LGTM

Why giving up travis completely ?
From a quick look it seems that Travis is testing against multiple Go versions while Drone isn't (yet?).
Why not having both bots keep an eye on the code, until/unless they perform the same checks ?

Travis is too slow. Drone also can be configed Go versions.

Let's have it configured before dropping travis

Drone also got matrix builds and we define the build power and flexibility. Travis is slow and now we are really dogfooding as far as possible

This pr is already complex enough, we can add the matrix later on as well

LGTM

Let's not forget to add the matrix later. Good job! :+1:


WIP - Fix iCloud error 450 : staying alive

Proposed change

Keep the API alive for more than 10 min, even if we don't fetch devices.
Type of change

[ ] Dependency upgrade
[x] Bugfix (non-breaking change which fixes an issue)
[ ] New integration (thank you!)
[ ] New feature (which adds functionality to an existing integration)
[ ] Breaking change (fix/feature causing existing functionality to break)
[ ] Code quality improvements to existing code or addition of tests

Additional information

This PR fixes or closes issue: fixes #31465
This PR is related to issue:
Link to documentation pull request:

Checklist

[x] The code change is tested and works locally.
[x] Local tests pass. Your PR cannot be merged unless tests pass
[ ] There is no commented out code in this PR.
[ ] I have followed the development checklist
[ ] The code has been formatted using Black (black --fast homeassistant tests)
[ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated for www.home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] The manifest file has all fields filled out correctly.
Updated and included derived files by running: python3 -m script.hassfest.
[ ] New or updated dependencies have been added to requirements_all.txt.
Updated by running python3 -m script.gen_requirements_all.
[ ] Untested files have been added to .coveragerc.

The integration reached or maintains the following Integration Quality Scale:

[ ] No score or internal
[ ] 🥈 Silver
[ ] 🥇 Gold
[ ] 🏆 Platinum

Hello. I have the same thing even after upgrade in v0.105.2.

Normal this hasn’t been fixed, actually the error appears but has been catch and a retry is done 5 min after the error (successfully)
Sent with GitHawk

unfortunately it isn't the case for me (or other people maybe).
To be clear : before to upgrade my HA to v0.105.2, I deleted the files in the icloud folder and remove in the integration page my iphone. after that, I upgraded my HA and add my iphone accross the integration page, I allowed on my phone to connection and I enter the code that I received next to the action.
This is my logfile :
2020-02-07 22:43:38 ERROR (SyncWorker_16) [homeassistant.components.icloud.account] Unknown iCloud error:  (450) 2020-02-07 22:51:05 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved Traceback (most recent call last):   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 109, in async_init     result = await self._async_handle_step(flow, flow.init_step, data)   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 172, in _async_handle_step     result: Dict = await getattr(flow, method)(user_input)   File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 234, in async_step_zeroconf     existing = find_existing_host(self.hass, hkid)   File "/usr/src/homeassistant/homeassistant/components/homekit_controller/config_flow.py", line 61, in find_existing_host     if entry.data["AccessoryPairingID"] == serial: KeyError: 'AccessoryPairingID'
It's work well during 10 or 20 minutes after the integration only.

You traceback log concerns the homekit_controller component... not iCloud !
The 450 concerning iCloud is 8 minutes before !
What happens :

22h43 : iCloud 450 error (catch but still logged)
22h48 : iCloud retries to fetch with no error
22h51 : a HomeKit accessory paired to Home Assistant is triggering an error, for a unknown reason (I do not maintain the homekit_controller component)

Please create a new issue concerning the homekit_controller, the maintainer is very responsive.
Sent with GitHawk

Thank you for your answer. Even I don't have the homekit include in my HA (I'll look for why after ), I have a lot of error messages for iCloud 31 times in 4h of time and my iphone doesn't update information :

2020-02-09 01:19:44 ERROR (SyncWorker_xx) [pyicloud.base]  (450)
2020-02-09 01:19:44 ERROR (SyncWorker_xx) [homeassistant.components.icloud.account] Unknown iCloud error:  (450)

I tried again to remove my device and include once with the webui and an other one with the config file, but it's the same. I'm alone with this issue ?

No that's why I've created this issue and PR to follow the evolution on it.
Fixing in the library.

Library fixed : picklepete/pyicloud#230
Asking for a release.


Bootstrap iPod Style jQuery Drill Down Menu Plugin

Among the built in plugins that I suggest are drill down menu plugin, for my own products needs, so I modified one of jQuery plugins to be exactly what I need "Bootstrap iPod Style jQuery Drill Down Menu Plugin", It has many good things and working well specially for long trees like Classifieds or Auctions categories and with option to display collapsed as a breadcrumb on final node selection or just as a selected menu item by setting the option:
show_end_nodes     : true, // drill to final empty nodes, true/false

I do not consider my self a JS developer but struggle to do what I want when I do not find it ready online, so I hope some one to re write plugin similar to this one in more compact and stylish code.
Bootply live example  http://www.bootply.com/hIuKeY1K4t
project on github https://github.com/mewsoft/Bootstrap-DrillDownMenu
Sceen shot

Hi @mewsoft!
You appear to have posted a live example (http://s.bootply.com/render/hIuKeY1K4t), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:

line 9, column 9: W013: Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.3.2
line 431, column 9: W013: Bootstrap version might be outdated. Latest version is at least 3.3.4 ; saw what appears to be usage of Bootstrap 3.3.2

You'll need to fix these errors and post a revised example before we can proceed further.
Thanks!
(Please note that this is a fully automated comment.)

Bootply latest bootstrap version is 3.3.2, so how to fix this to 3.3.4?

Not to worry, that's not a huge problem :).
If you're proposing we add a new feature to Bootstrap to do this, we'll be passing on that. That looks like a decently complicated feature, and beyond us not adding anything new to v3, it'd be a bit of work for us to implement in a clear and extensible way. This kind of component is better served as a separate repo, something folks can include in addition to Bootstrap.
Thanks though!


Adding a 'custom generate' option

I would like to add a button to the page that will generate flashing a light combination for random feasible input values. Please let me work on this issue!

@Jasleen1210
Thank you for raising this issue. I've reviewed it, and it seems that no further action is needed at the moment. If you have any additional issues, feel free to reach out. 😊 Also this issue has already been addressed in issue #87


Question: Override Generated UpdateFunc

Is it possible to override the generated UpdateFunc - current generated code produces:
                UpdateFunc: func(old, new interface{}) {
			newMeta, err := meta.Accessor(new)
			utilruntime.Must(err)
			oldMeta, err := meta.Accessor(old)
			utilruntime.Must(err)
			if newMeta.GetResourceVersion() == oldMeta.GetResourceVersion() {
				return
			}
			controller.handleObject(new)
		},

This is fine for controllers when the system is just made up of k8s objects. But what if we're making the attempt to sync external resources. For example I have a resource (outside of k8s) that exposes an api, that provides some controls, and describes the resources current state (such as a simple health check). This resource will creep away from the desired state do to "natural events". I would like to be able to auto remedy when the real world creeps away from the desired state described by the resource spec.
In the past I just used the template from the k8s sample controller. This provided granular control over the UpdateFunc. Maybe I'm using the wrong handler?
I was wondering what is the most native way to do this with wrangler, I'd like to avoid having to edit the generated code.

This is no longer an issue with wrangler v0.8.10.
If anyone comes here looking for this simple do the following to constantly sync. The sync will still always use your OnChange handler
// Generated sample controller
sample := samplecontroller.NewFactoryFromConfigWithOptionsOrDie(cfg, &samplecontroller.FactoryOptions{
	Resync: time.Second * 1,
})


video demo no signal

hi，i run the video from AFF-Wild trainning set（216.mp4  133.avi）, but ended with no signal,my os is Ubuntu18.04.

Dear LeiiY,
Could you, please, send me the error message shown in your terminal (behind the "No Signal" Window)?
Is this screen shown after processing the video clip?
In the positive case, the framework shows "No Signal" when there are no further frames for processing. You can press "Esc" or close the window to quit the demonstration.
If you are running the framework on all the data from AFF-Wild, you can call cv2.destroyWindow(""Siqueira_et_al_AAAI_2020") or cv2.destroyAllWindows() in your python script to close the "No Signal" window.
I will change the text. It is not intuitive.
Thank you for your interest and your message.
Best,
Henrique Siqueira
P.S. Please, let me know if the problem is solved.

yeah,no further frames,but i added the argument -o  ./media/output.csv,after processing ,close the windows or press esc, the file output.csv did not generate,why?

Dear LeiiY,
It is because this feature is on development as you can see in the GitHub page: https://github.com/siqueira-hc/Efficient-Facial-Feature-Learning-with-Wide-Ensemble-based-Convolutional-Neural-Networks#list-of-arguments

Since you are interested in this feature I will prioritize its development.
I will close this issue as there is no error and open another issue regarding the development of the new feature.
I plan to add the new feature until the end of this week.
Best wishes,
Henrique Siqueira

Dear LeiiY,
You can now save predictions to a CSV file!
Best,
Henrique Siqueira


Bug: lndk process does not respond to a SIGTERM

Describe the bug
Passing a SIGTERM to the process should initiate a graceful termination, but is currently ignored.

Expected Behavior: should kill the process
Actual Behavior: does not kill the process

Environment

LND Version: master HEAD
LNDK Version: 259de8b8ef0916393a47d96076db518cf94651f9
Operating System: Linux ee8587466347 6.6.32-linuxkit #1 SMP Thu Jun 13 14:13:01 UTC 2024 aarch64 GNU/Linu

_Please do not include private information in bug reports! _
To Reproduce
Steps to reproduce the behavior: Start the service, then send it a SIGTERM signal, e.g. kill -s TERM [pid]
Additional context
This is preventing docker images and kubernetes pods from responding to shutdown requests.

Hmm I'm actually having success with this, unless I'm misunderstanding something. Here's what I did:

ps aux | grep lndk
grabbed the lndk pid and used kill -s TERM [pid]
Looking back at the lndk window, it says "Terminated" and the process is no longer running

It does work work when you run the process standalone. However, it does not when the process is run inside a Docker container. In the Docker container, the process runs as PID 1.  I believe the issue arises because of how PID 1 (the first process in a container) handles signals. In a Docker container, the process running as PID 1 has special responsibilities, such as reaping zombie processes and handling signals. When lndk is running as PID 1, it doesn't handle signals like SIGTERM correctly because it wasn't designed to be an init system.
It may be possible to work around this by wrapping lndk with an init process like tinit in a Docker environment, but generally speaking that shouldn't be needed - the lndk process should respond directly to these signals.

Ahh ok interesting. I'll look into it the next couple of days and let you know what I find out.


MRG : don't require git to install master

FYI @cbrnr @agramfort I pushed a maintenance release 0.19.2
https://pypi.org/project/mne/


SAK-45195 Lessons : subpage button color

This seemed to be added in https://github.com/sakaiproject/sakai/pull/8479 and gone after https://github.com/sakaiproject/sakai/pull/9037
@profmikegreene  @davidpbauer Could please review this? Thanks!

Build is failing with an unrelated library error (I got the same yesterday on a different PR):
Error: Failed to execute goal on project api: Could not resolve dependencies for project org.sakaiproject:api:war:22-SNAPSHOT: Failed to collect dependencies at io.springfox:springfox-swagger2:jar:3.0.0 -> org.mapstruct:mapstruct:jar:1.3.1.Final: Failed to read artifact descriptor for org.mapstruct:mapstruct:jar:1.3.1.Final: Could not transfer artifact org.jboss.shrinkwrap:shrinkwrap-bom:pom:1.0.1 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/jboss/shrinkwrap/shrinkwrap-bom/1.0.1/shrinkwrap-bom-1.0.1.pom: Connection timed out (Read failed)


Mockup Login

Please do work for this task in a branch called issue-013.
Create a mockup of the login page.

Switched some buttons around and made sure tests are consistent with updates.


Angular6/RxJs6 upgrade

As request by me: #105

@afrad , is this published to npm?

@afrad , please could you publish this important change for Angular6/RxJs6 upgrade to npm? For a lot of people this is the last package to be able to remove the rxjs5to6 compatibility package...
Thanks in advance
Regards


[admin] Publish

Learn Build status updates of commit 1db8290:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/index.md
:white_check_mark:Succeeded
View

docs/overview/excel.md
:white_check_mark:Succeeded
View

docs/testing/troubleshooting.md
:white_check_mark:Succeeded
View

README.md
:white_check_mark:Succeeded

SECURITY.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Find does not work in Wedding view

Could I clarify what this means, do you mean the desired output is to search and list weddings or search and list contacts that are assigned to that wedding?

The current bug occurs when you switch to wedding view. When in wedding view, the find command would not execute as intended. Can refer to the screenshot, when i search for weddings containing 2 in the name, all the other weddings show up.