"extract-text-webpack-plugin" loader is used without the corresponding plugin

when I debug file "build/build.js" in vscode
got this error:

the final build results is wrong:

the correct build results would be this:

here is my project git repo
https://github.com/changchengqin/my-webpack-demo.git

can'T run this right now, but have you tried setting the cwd properkly in launch.json?
"cwd": "${workspaceRoot}"

@LinusBorg
I am sure,my project's launch.json have a correctly setting.
I guess It's vscode's bug,because when I type

node --inspect build/build.js
in terminal under my workspace,everything is all right.
It's just a problem in the debug mode of vscode.

Since we can't do much about this I will close.


Fix truncate not actually truncating

This fixes an issue that causes postgres database to not actually truncate, so Id column auto-increment does not get reset to 1 and new models continue to use Id from existing increment.
This truncate query is actually faster and this fixes an issue where some tests fail (when using postgres db) because snapshot thinks new entities should have Id 1 when they do not.
Now, I'm very new to both Rust and Loco, so please inspect this code carefully and make sure I haven't done anything stupid.

Thanks for this PR!
Your code looks good.
I think the semantics of truncate is to not restart identity (see rails: https://github.com/search?q=repo%3Arails%2Frails build_truncate_statement&type=code)
But the test errors I believe come from a change in how seeding is done (where seeding provides explicit ID), we're still trying to manage to get that ID to take effect in a different PR.
Either way moving to truncate is speedier, I'll leave that PR open until we locate the specific fix for seeding (in a different effort) and then see how to incorporate

Sounds good.
Yes, truncate is speedier. Furthermore, calling truncate on a database does something very different than running a delete-all query. So, if you're going to name the function 'truncate', then it should actually run truncate. Otherwise the function should probably just be named 'delete_all'.

you're right.
thinking ahead of incorporating this, I'm thinking about the topic of escaping and all kinds of edge case.
could you try using sea-query directly? looks like they have facilities to compose queries in a safe way: https://github.com/SeaQL/sea-query?tab=readme-ov-file#table-truncate

@jondot I've changed the hardcoded query string to a sea_query built string.
It's a little more verbose but safer. This escapes the table name.
Is this what you were looking for? If so, please triple check the code and make sure it's correct.


Crossbuild docker image for different architectures

I'd like to run gatus on my raspberry pi cluster, but the docker image twinproduction/gatus is built only with linux/amd64 architecture support.
PRI4 Output:
arch; docker run twinproduction/gatus
armv7l
standard_init_linux.go:211: exec user process caused "exec format error"
failed to resize tty, using default size

This is how you can make sure that the manifest does not contain any CPU architecture description.
docker buildx imagetools inspect twinproduction/gatus

I added few build steps to Github Actions for cross compilation of docker images and now gatus works on raspberry.
arch; docker run pentusha/gatus
armv7l
2020/12/02 09:21:50 [config][Load] Reading configuration from configFile=config/config.yaml
2020/12/02 09:21:50 [config][validateAlertingConfig] Alerting is not configured
2020/12/02 09:21:50 [config][validateServicesConfig] Validated 5 services
2020/12/02 09:21:50 [main][main] Listening on <IP_ADDRESS>:8080/
2020/12/02 09:21:51 [watchdog][monitor] Monitored serviceName=frontend; success=true; errors=0; requestDuration=648ms;
2020/12/02 09:21:51 [watchdog][monitor] Monitored serviceName=backend; success=true; errors=0; requestDuration=218ms;
2020/12/02 09:21:52 [watchdog][monitor] Monitored serviceName=monitoring; success=true; errors=0; requestDuration=223ms;

docker buildx imagetools inspect pentusha/gatus | grep Platform
  Platform:  linux/amd64
  Platform:  linux/arm/v6
  Platform:  linux/arm/v7
  Platform:  linux/arm64

I also tried to some other platforms, but build was failed so I keep only ARM.

Closed by #55

Released in v1.9.1
P.S. I've also removed linux/arm/v6, as linux/arm/v7 and linux/arm64 covers all requested use cases right now.
This also lowers the time for the action to complete, but I might re-add it if it becomes necessary in the future.


Update SpiderMonkey version

Follow up for: https://github.com/apache/couchdb/issues/1334
Very WIP branch here: https://github.com/apache/couchdb/tree/sm52
The plan roughly is to bring our SM dependencies to a new release, which means rewriting a bunch of our C/C++ goop that binds SM to our CLI tool.
The newer version will not accept CouchDB-style function declaration as-is, but there are two options to deal with this:

the Chakra work included an auto-AST transform thinger to adjust things to we maintain backwards compatibility.
we bite the BC bullet,  because the impact is mostly theoretical.

Benefits: faster js, modern JS language features, fewer packaging woes.

@jiangphcn  - do you have an update here? Tnx!

thanks for checking @denib
I am working on this task using https://github.com/apache/couchdb/pull/2170.
Below is current status:

codes of couch_js are updated to use SpiderMonkey 60
couch_js javascript can be compiled locally in mac environment
the javascript for main.js is updated and is able to be compiled during runtime
new couchjs can started by couchdb and communicated with couchdb to accept reset, addFun, mapDoc etc

There are some to-dos I am working on

there is code tweak needed to complete the whole mrview action
compile and test in linux and windows
adding codes to workaround anonymous javascript function name
test where multiple sandbox are working together.

Hope I can get more progress in coming weeks.

I marked two of them "completed" because mrview action works now.

[x]  there is code tweak needed to complete the whole mrview action
[ ] compile and test in linux and windows
[x]  adding codes to workaround anonymous javascript function name
[ ]  test where multiple sandbox are working together

There are more progress on this task

compiled and tested in linux environment and prove that function is working
most of make javascript test suites passed
some tested to sandbox passed
the latest commit is https://github.com/apache/couchdb/pull/2170/commits/349a30b83762d370f3b03dc19ffd796dc47eb5e6

To-do:

fix collation_test_ eunit test
fix the left javascript test case
test in windows
decide how to deploy with new spidermonkey runtime.

cc @denib @janl @davisp @kocolosk

The recent update:

fixed collation_test_ eunit test failure
addressed utf8 related javascript test failures
modify .travis.yml to accelerate CI elapsed time by installing spidermonkey dev instead of building on-the-fly
other changes to make javascript test happy

To-do or ongoing:

change for windows platform
in parallel, send review request tomorrow
decide how to deploy with new spidermonkey runtime.
cc @denib @janl @davisp @kocolosk

For windows-related stuff, finally made progress to build spidermonkey 60 using visual studio 2017. Next thing is to build changed CouchDB codes and test them.
It took me about 1 week to setup environment and build spidermonkey 60 for windows.

First, I follow the guide in https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation

cd js/src
autoconf2.13

# This name should end with "_OPT.OBJ" to make the version control system ignore it.
mkdir build_OPT.OBJ
cd build_OPT.OBJ
../configure
mozmake

But I stuck during executing configure.
$ ../configure
Reexecuting in the virtualenv
checking for vcs source checkout... no
checking for a shell... C:/mozilla-build-3.2/msys/bin/sh.exe
checking for host system type... i686-pc-mingw32
checking for target system type... i686-pc-mingw32
checking for a shell... C:/mozilla-build-3.2/msys/bin/sh.exe
checking for host system type... i686-pc-mingw32
checking for target system type... i686-pc-mingw32
checking for android platform directory... no
checking for android sysroot directory... no
checking for android system directory... no
checking for the Android toolchain directory... not found
checking for android platform directory... no
checking for android system directory... no
checking for android sysroot directory... no
checking for the Android toolchain directory... not found
checking for vcs source checkout... no
checking whether cross compiling... no
traceback (most recent call last):
  File "../../../configure.py", line 130, in <module>
    sys.exit(main(sys.argv))
  File "../../../configure.py", line 29, in main
    sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 409, in run
    self._value_for(option)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 477, in _value_for
    return self._value_for_option(obj)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 494, in _value_for_option
    not self._value_for(implied_option.when)):
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 474, in _value_for
    return self._value_for_depends(obj, need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 483, in _value_for_depends
    return obj.result(need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 199, in result
    return self._func(resolved_args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 198, in <genexpr>
    for d in self.dependencies)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 474, in _value_for
    return self._value_for_depends(obj, need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 483, in _value_for_depends
    return obj.result(need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 122, in result
    for d in self.dependencies]
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 474, in _value_for
    return self._value_for_depends(obj, need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 483, in _value_for_depends
    return obj.result(need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 122, in result
    for d in self.dependencies]
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 474, in _value_for
    return self._value_for_depends(obj, need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 483, in _value_for_depends
    return obj.result(need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 122, in result
    for d in self.dependencies]
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 474, in _value_for
    return self._value_for_depends(obj, need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 483, in _value_for_depends
    return obj.result(need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 122, in result
    for d in self.dependencies]
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 474, in _value_for
    return self._value_for_depends(obj, need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 483, in _value_for_depends
    return obj.result(need_help_dependency)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\util.py", line 944, in method_call
    cache[args] = self.func(instance, *args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 123, in result
    return self._func(*resolved_args)
  File "c:\mozjs\mozjs-60.1.1pre3\python\mozbuild\mozbuild\configure\__init__.py", line 1003, in wrapped
    return new_func(*args, **kwargs)
  File "c:/mozjs/mozjs-60.1.1pre3/build/moz.configure/toolchain.configure", line 638, in vc_compiler_path
    all_versions = sorted(get_vc_paths(env.topsrcdir), key=itemgetter(0))
  File "c:/mozjs/mozjs-60.1.1pre3/build/moz.configure/toolchain.configure", line 585, in get_vc_paths
    for install in vswhere(['-legacy', '-version', '[14.0,15.0)']):
  File "c:/mozjs/mozjs-60.1.1pre3/build/moz.configure/toolchain.configure", line 581, in vswhere
    ] + args).decode(encoding, 'replace'))
  File "c:\mozilla-build-3.2\python\Lib\subprocess.py", line 216, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "c:\mozilla-build-3.2\python\Lib\subprocess.py", line 394, in __init__
    errread, errwrite)
  File "c:\mozilla-build-3.2\python\Lib\subprocess.py", line 644, in _execute_child
    startupinfo)
WindowsError: [Error 5] Access is denied

Knowing that it is related to file access, but error message doesn't tell details about problem location. Took days to investigate build system of spidermonkey and use half-interval search and finally identify that it is related to vswhere.exe in spidermonkey source code package. And it failed to execute.
Administrator@ph-win10 /c/mozjs/mozjs-60.1.1pre3/build/win32
$ vswhere.exe
bash: ./vswhere.exe: Bad file number

After using vswhere.exe provided from visual studio 2017, the configure can continue.
And then mozmake can build spidermonkey source.
For now, the jsapi-tests.exe passed without error.
$ ./js/src/build_OPT.OBJ/dist/bin/jsapi-tests.exe
testXDR_sourceMap
TEST-PASS | testXDR_sourceMap | ok
testXDR_source
TEST-PASS | testXDR_source | ok
...
testAssemblerBuffer_BufferOffset
TEST-PASS | testAssemblerBuffer_BufferOffset | ok

Passed: ran 281 tests.

cc @denib @janl @davisp @kocolosk

I want to give some update before thanksgiving day about this ticket. Recently, I used a lot of time to work for window platform. Every time I am almost about to send to email to community to get support, I got some progress. I plan to still take two days to try the last approach, and then decide how to proceed for windows platform.

a. using guide in https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation, spidermonkey 60 can be built, but the default is 32 bit. 32 bit library is not for 64bit couchjs. I will get link issue.
b. same as approach a, I used ../configure --host=x86_64-pc-mingw32 --target=x86_64-pc-mingw32 --enable-debug to setup 64bit environment.  There is error when comping js/src/Unified_cpp_js_src19.cpp.

Unified_cpp_js_src19.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\stralign.h(120): warning C4090: 'argument': different '__unaligned' qualifiers
c:/mozjs/mozjs-60.1.1pre3/js/src/jit/ProcessExecutableMemory.cpp(65): fatal error C1189: #error:  "Unsupported architecture"
mozmake[3]: *** [c:/mozjs/mozjs-60.1.1pre3/config/rules.mk:1049: Unified_cpp_js_src19.obj] Error 2

c. later on, I found one repository https://github.com/mozilla/gecko-dev. I made it work and compile mozjs-72a1.lib. When compiling couchjs using this library, we can pass compile, and there is 64bit-32bit issue when linking them together. Because there are interface change, it is not surprise that I got some undefined symbols error.
d. this week, I found another repository https://github.com/servo/mozjs. I made it almost work and my thought is that it can build spidermonkey version6x with 64bit. The error I got in case b was resolved. Most of files can be compiled today. I am working on Cannot open include file corecrt.h error.

I found that configure --disable-jemalloc --disable-js-shell --disable-tests --disable-shared-js --build-backends=RecursiveMake --enable-posix-nspr-emulati on --with-visual-studio-version=2017 --enable-debug --disable-optimize --enable-gczeal --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32 was used in approach d, this can be used for approach b.
So let me check whether I can get around using approach d and enhanced approach b in coming days.
cc @denib @janl @davisp @kocolosk @wohali

I built out spidermonkey 60 64bit for windows now. It is using enhanced approach b. The problem mentioned in above approach d was resolved. However, it will not build mozjs-60.lib.
I wrote up one guide in PR https://github.com/apache/couchdb-glazier/pull/11
@denib @janl @davisp @kocolosk @wohali

PR https://github.com/apache/couchdb/pull/2345 was merged.


Alternatively use Claude for annotation?

Hi, thank you for your amazing work here!
I wonder if one could also use Anthropic/Claude for the annotators instead of OpenAI?

Hi,
We currently do not have support for Claude in this repo for the AlpacaFarm evaluation standard.
However, we do have a separate evaluation library based on AlpacaFarm available here that has support for Claude: https://github.com/tatsu-lab/alpaca_eval
There are some differences in the evaluation procedure between the two, which is covered here: https://github.com/tatsu-lab/alpaca_eval#differences-with-alpacafarm

Thank you for your fast response!
But I meant annotation not evaluation. Do you think I would be able to adapt the annotators in my fork on my own, maybe using the Claude-related code from AlpacaEval?

Or are annotators and evaluators more or less the same thing here?

Yup that could definitely work :)
Annotators and evaluators are almost the same there, if you're referring to the train/test split.
For collecting the preference data for training, we use the same set of pairwise evaluators, with the added step of flipping a random 25% of the labels (as detailed in the paper).
For doing the pairwise evaluation, we use the same evaluators/annotators but don't inject the extra noise.


support the Spark sql to create the iceerg table?

support the Spark sql to create the iceerg table

@melin Iceberg will have full SQL support in Spark 3.0 as noted here.


Deploy amd64 updater

What does this PR do?
Start deploying the amd64 updater

Motivation
The release management started failing since the promotion job for the amd64 updater was already merged, while there's currently nothing to be promoted

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided. Except if the qa/skip-qa label, with required either qa/done or qa/no-code-change labels, are applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

test deploy pipeline: https://gitlab.ddbuild.io/DataDog/datadog-agent/-/pipelines/28100843


kafka persistance module

Sample module for understanding.

@manan164 Closing this to avoid merging accidentally. Feel free to reopen and continue working on it.


Network deadlock because of mutex locking order

Describe the bug
It is possible to deadlock the entire network stack with TCP. If this happens, the network is completely blocked, not even ICMP traffic works anymore.
The reason is that the send and receive paths each lock two mutexes in different order.

Receive path: z_work_q_main() -> process_rx_packet() -> net_rx() -> process_data() -> net_ipv4_input() -> net_conn_input() -> tcp_recv() -> tcp_in() (locks conn->lock) -> tcp_data_get() -> net_context_packet_received() (locks context->lock)
Send path: send() -> zsock_send() -> zsock_sendto() -> z_impl_zsock_sendto() -> sock_sendto_vmeth() -> zsock_sendto_ctx() -> net_context_send() (locks context->lock) -> context_sendto() -> net_tcp_queue_data() (locks conn->lock)

The deadlock happens if a mutex is locked in one path and the other path also locks a mutex before the second mutex can be locked. In that case both paths wait for each other to release the locks.
To Reproduce
This problem is very sensible to timing. It can be reliably reproduced by inserting a short sleep right before acquiring the mutex in net_tcp_queue_data(). In that case, a small modification to the echo server in the samples can be used to demonstrate the problem.
Steps to reproduce the behavior:

Patch the TCP stack and the echo server:

diff --git a/samples/net/sockets/echo_server/src/tcp.c b/samples/net/sockets/echo_server/src/tcp.c
index 0ff35a1852..034e2e7c7b 100644
--- a/samples/net/sockets/echo_server/src/tcp.c
+++ b/samples/net/sockets/echo_server/src/tcp.c
@@ -129,6 +129,8 @@ static void handle_data(void *ptr1, void *ptr2, void *ptr3)

        client = data->tcp.accepted[slot].sock;

+       sendall(client, "HELLO", sizeof("HELLO"));
+
        do {
                received = recv(client,
                        data->tcp.accepted[slot].recv_buffer + offset,
diff --git a/subsys/net/ip/tcp2.c b/subsys/net/ip/tcp2.c
index 36d6b191d1..ff7d64d5bd 100644
--- a/subsys/net/ip/tcp2.c
+++ b/subsys/net/ip/tcp2.c
@@ -1550,6 +1550,8 @@ int net_tcp_queue_data(struct net_context *context, struct net_pkt *pkt)
                return -ENOTCONN;
        }

+       k_sleep(K_MSEC(10));
+
        k_mutex_lock(&conn->lock, K_FOREVER);

        if (tcp_window_full(conn)) {

Compile the echo server and flash (tested on MIMXRT1060-EVK)
Connect to the echo server, send data and close the connection right away: echo -n "test" | nc -v -N <IP_ADDRESS> 4242

The stack is blocked, not even ping works anymore.
Expected behavior
The stack should not block.
Impact
That's a pretty bad deadlock as by the textbooks.
Environment

Zephyr 8f2d69c4a3e24f4afcef7737cc31d17155a97122

The reason is that the send and receive paths each lock two mutexes in different order.
* Receive path: `z_work_q_main()` -> `process_rx_packet()` -> `net_rx()` -> `process_data()` -> `net_ipv4_input()` -> `net_conn_input()` -> `tcp_recv()` -> `tcp_in()` **(locks conn->lock)** -> `tcp_data_get()` -> `net_context_packet_received()` **(locks context->lock)**

* Send path: `send()` -> `zsock_send()` -> `zsock_sendto()` -> `z_impl_zsock_sendto()` -> `sock_sendto_vmeth()` -> `zsock_sendto_ctx()` -> `net_context_send()` **(locks context->lock)** -> `context_sendto()` -> `net_tcp_queue_data()` **(locks conn->lock)**

One thing which is a bit mystery here is that the RX thread in receive path and the application thread are separate threads. So even if net_context_packet_received() calls the socket recv_cb() with context locked, the application thread will get blocked when trying to get context lock, in which case the RX should continue running. Of course if the RX thread is never able to run because of priorities, then the unlock will not happen.
Anyway, one easy "fix" here is to just release the context lock in net_context_packet_received() before calling recv_cb().

@jukkar there is still something odd with your PR #29351. When the sleep is left in net_tcp_queue_data(), the echo server still locks the network stack as above, trying to lock the mutex in net_tcp_queue_data().

@jukkar there is still something odd with your PR #29351. When the sleep is left in net_tcp_queue_data(), the echo server still locks the network stack as above, trying to lock the mutex in net_tcp_queue_data().

Ok, thanks for the info. I will try to replicate the issue.

@ohitz thanks for a good analysis. I think the new version of the fix will solve the issue, at least I was no longer able to replicate the hang issue. In the fix, we do not pass data to application with tcpconn->lock held.

Thanks @jukkar I have tried the new fix. Unfortunately, there is a NULL pointer access now at subsys/net/ip/tcp2.c:1494 if the client closes the connection. The echo server doesn't crash, but you can see it if you insert an assertion which checks conn->context != NULL right there.

Unfortunately, there is a NULL pointer access now at subsys/net/ip/tcp2.c:1494 if the client closes the connection.

Indeed, the connection handler disappears. This is an easy fix, I will send a new version in few minutes.

I remember that there was some commit(s) in another TCP issue where one could catch the null pointer access violations with this hw, you seem to have that applied. Have you considered to upstream that properly, could be quite useful to have?

I can confirm the fix now works properly, thanks @jukkar!
As for the MPU configuration to catch null pointer access violations, I'll check with my colleague.

@jukkar I have no time to clean-up our patch now but I can publish it on github if someone wants to take it over. It is not ready for a pull request yet since it is very specific to our target.


Consider not defaulting to hiredis since it isn't included as a dependency

Hi. This gem defaults to hiredis, but since hiredis is no longer included as a dependency, if I don't have hiredis in my Gemfile, then the connection will fail. In my opinion, it doesn't make sense to default to hiredis when it isn't included as a dependency by default. In order for readthis to work out of the box, it is required for a client app to add hiredis to their Gemfile. Therefore, why not include it as a dependency by default?
If you don't want to have hiredis as a dependency for readthis, then I think the default should be the ruby driver, and if people want to use hiredis, they can add the gem to their Gemfile and specify the driver during initialization.
Thoughts?

@monfresh: I think that's a very sensible approach. I don't want hiredis as a dependency for possible jruby compatibility. Hiredis is a transparent replacement that I'd encourage anybody to use, but I don't want to mandate it.

Wonderful! Thanks for the fast update. By the way, this gem rocks! I've been testing it for use with rack-cache, which required me to fork the redis-rack-cache gem and modify it, but once I got it working, I compared it to dalli + memcached and redis-store, and it blew all of them out of the water. readthis was about 4x faster than redis-store and 8x faster than Dalli+Memcached (the slowest of all). I used the same ApacheBench test (ab -t 10 -c 10) and pointed the Memcache and Redis instances to the ones used by my Heroku app.

That's great to hear! I should quote that as a testimonial =)

Hi Parker. Just following up to get a sense of when you plan to release a new version with these changes. Thanks!

This is a large enough behavior change that I'll be bumping the minor number. I'll probably be doing a release this next week.

@monfresh: v0.8.0 was just released, including the hiredis change and an overhaul of how redis is configured.


[Bug] BuildObject with Multipart from ...

I encountered an internal error in autorest for method in api called UploadPicture. Nswag did not have any problem with this.
I attach zipped  Configuration.json and CodeModel.yaml
Configuration.zip
Error message:

Exception: BuildObject with Multipart from UploadPicture
at AutoRest.CSharp.Output.Builders.SerializationBuilder.BuildObject(KnownMediaType mediaType, ObjectSchema objectSchema, SchemaObjectType type) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Output\Builders\SerializationBuilder.cs:line 28
at AutoRest.CSharp.Output.Models.Types.SchemaObjectType.b__45_0(KnownMediaType type) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Output\Models\Types\SchemaObjectType.cs:line 333
at System.Linq.Enumerable.SelectEnumerableIterator2.ToArray()    at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)
at AutoRest.CSharp.Output.Models.Types.SchemaObjectType.BuildSerializations() in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Output\Models\Types\SchemaObjectType.cs:line 328
at AutoRest.CSharp.Output.Models.Types.SchemaObjectType.get_Serializations() in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Output\Models\Types\SchemaObjectType.cs:line 66
at AutoRest.CSharp.Generation.Writers.SerializationWriter.WriteObjectSerialization(CodeWriter writer, SchemaObjectType model) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Generation\Writers\SerializationWriter.cs:line 34
at AutoRest.CSharp.Generation.Writers.SerializationWriter.WriteSerialization(CodeWriter writer, TypeProvider schema) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\Generation\Writers\SerializationWriter.cs:line 30
at AutoRest.CSharp.AutoRest.Plugins.DataPlaneTarget.Execute(GeneratedCodeWorkspace project, CodeModel codeModel, SourceInputModel sourceInputModel, Configuration configuration) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\DataPlane\AutoRest\DataPlaneTarget.cs:line 34
at AutoRest.CSharp.AutoRest.Plugins.CSharpGen.ExecuteAsync(Task`1 codeModelTask, Configuration configuration) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\CSharpGen.cs:line 56
at AutoRest.CSharp.AutoRest.Plugins.CSharpGen.Execute(IPluginCommunication autoRest) in D:\a\1\s\autorest.csharp\src\AutoRest.CSharp\Common\AutoRest\Plugins\CSharpGen.cs:line 96

@AlexanderSher could you take a look?

Minimal input to repro the issue:
openapi: "3.0.0"
info:
  title: Multipart
  version: 1.0.0
servers:
  - url: http://test.swagger.io/v1
paths:
  /pets:
    post:
      operationId: testOp
      responses:
        '201':
          description: Null response
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                test:
                  type: object
                  properties:
                    test:
                      type: integer
                fileName:
                  type: string
                  format: binary

This is an object schema that has serializationFormats that isn't supported.
  objects:
    - !ObjectSchema &ref_2
      type: object
      apiVersions:
        - !ApiVersion
          version: 1.0.0
      properties:
        - !Property
          schema: *ref_1
          serializedName: nested
          language: !Languages
            default:
              name: nested
              description: ''
          protocol: !Protocols {}
      serializationFormats:
        - multipart
      usage:
        - input
      extensions:
        x-internal-autorest-anonymous-schema:
          anonymous: true
      language: !Languages
        default:
          name: PostContentSchemaTest
          description: ''
          namespace: ''
      protocol: !Protocols {}

I had the same issue: https://github.com/Azure/autorest.csharp/issues/1455
It looks to be related to any multipart request body having more than one type?

Also maybe related to this one: https://github.com/Azure/autorest.csharp/issues/985


Drop Puppet 5 support; require 6.1. or newer

Puppet 5 is EoL and it won't pass our CI anymore

implemented in #365


[BUG] Incremental updates on satellites fail with case sensitive SQL Server collations

Describe the bug
When using case sensitive collations, automate_dv.sat incremental updates fail due to the "latest_records" being declared as lower case and then used as upper case in the left join for the records to insert. This results in an invalid object error (on synapse)
Environment
dbt version: dbt-core 1.3.5, dbt-synapse 1.3.2
automate-dv version: 0.10.1
Database/Platform: Azure Synapse Dedicated SQL Pool, Collation = SQL_Latin1_General_CP1_CS_AS
(technically not supported but works fine as it's inherited from SQL Server)
To Reproduce
Steps to reproduce the behavior:

Create a target with a case sensitive collation
create a satellite and then run DBT RUN twice to get incremental load

Screenshots

Expected behavior
Should have been lower case in the join or at least consistent
Additional context
Compiled SQL fragment
latest_records AS (
SELECT b.account_links_hk, b.account_links_hashdiff, b.accl_seqno, b.accl_last_change_date, b.accl_subacc_no, b.accl_last_change_by, b.accl_soc_seqno, b.accl_holder_pos, b.accl_soc_control, b.accl_dispensing_notice, b.accl_brn_code, b.accl_account_no, b.accl_old_no, b.accl_extract_required, b.accl_gact_type, b.accl_cust_seqno, b.accl_cust_usage, b.account_links_nk, b.account_and_subacc_no_nk, b.customer_nk, b.end_date, b.deleted, b.active, b.account_and_subacc_no_hk, b.customer_hk, b.start_date, b.load_datetime, b.source
FROM (......
records_to_insert AS (
SELECT frin.account_links_hk, frin.account_links_hashdiff, frin.accl_seqno, frin.accl_last_change_date, frin.accl_subacc_no, frin.accl_last_change_by, frin.accl_soc_seqno, frin.accl_holder_pos, frin.accl_soc_control, frin.accl_dispensing_notice, frin.accl_brn_code, frin.accl_account_no, frin.accl_old_no, frin.accl_extract_required, frin.accl_gact_type, frin.accl_cust_seqno, frin.accl_cust_usage, frin.account_links_nk, frin.account_and_subacc_no_nk, frin.customer_nk, frin.end_date, frin.deleted, frin.active, frin.account_and_subacc_no_hk, frin.customer_hk, frin.start_date, frin.load_datetime, frin.source
FROM first_record_in_set AS frin
LEFT JOIN LATEST_RECORDS lr
ON lr.account_links_hk = frin.account_links_hk
AND lr.account_links_hashdiff = frin.account_links_hashdiff
WHERE lr.account_links_hashdiff IS NULL
UNION
SELECT ........etc

Fixed in v0.10.2 😄 Thanks for your patience for release of this! Please let us know if you experience any issues by responding here or opening a new issue.


Changes to Luhn tests

We recently rewrote the test suite for the Luhn exercise. Since this track implements Luhn, please take a look at the new canonical_data.json file and see if your track should update its implementation or tests.
Details on the test changes and the motivation can be found in the PR.
Tracking of these changes is being done at the tracking issue.

It looks like we do need an update here.
https://github.com/exercism/x-common/blob/master/exercises/luhn/canonical-data.json

Hi, I'd like to try this :)


[BUG] Colocation error when place Variable on CPU and TrainableWrapper on GPU

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Centos 7
TensorFlow version and how it was installed (source or binary): 2.5.1 from binary
TensorFlow-Recommenders-Addons version and how it was installed (source or binary): tensorflow-recommenders-addons-gpu==0.4.0
Python version: 3.8.7
Is GPU used? (yes/no): yes

Describe the bug
Since the GPU memory is very limited, so I tried to place the dynamice_embedding.Variable on host memory, and use the TrainableWrapper as a temporary buffer to prefetch the lookup result to GPU. In forward and backward computation, everything works fine. But when I ran optimizer.apply_grdianet on the GPU TrainableWrapper, I got following errors:
Traceback (most recent call last):
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1375, in _do_call
    return fn(*args)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1358, in _run_fn
    self._extend_graph()
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1398, in _extend_graph
    tf_session.ExtendSession(self._session)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot colocate nodes {{colocation_node embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape}} and {{colocation_node random_uniform}}: Cannot merge devices with incompatible types: '/device:GPU:0' and '/device:CPU:0'
         [[{{node embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape}}]]

During handling of the above exception, another exception occurred:

Code to reproduce the issue
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '0'

import tensorflow as tf
from tensorflow_recommenders_addons import dynamic_embedding as de

tf.compat.v1.disable_v2_behavior()

def test_reproduce_issue():
  batch_size = 128
  seq_len = 1000
  global_vocab_size = 10_0000
  embedding_size = 64
  val_inititializer = tf.compat.v1.random_normal_initializer(dtype=tf.float32)

  embedding_var = de.get_variable(
      'tfra_var',
      dim=embedding_size,
      devices=['/CPU:0'],
      key_dtype=tf.int64,
      value_dtype=tf.float32,
      initializer=val_inititializer)

  initializer = tf.keras.initializers.RandomUniform(0, global_vocab_size)
  data = initializer((batch_size, seq_len,), dtype=tf.int64)

  lookup_result, trainable = de.embedding_lookup(embedding_var, data, return_trainable=True)

  optimizer = tf.compat.v1.train.AdamOptimizer(1E-3)
  optimizer = de.DynamicEmbeddingOptimizer(optimizer)

  loss = tf.reduce_sum(lookup_result)
  with tf.device('/GPU:0'):
    grads_and_vars = optimizer.compute_gradients(loss, var_list=[trainable])  # this is ok
    run_op = optimizer.apply_gradients(grads_and_vars)  # this will fail.

  config = tf.compat.v1.ConfigProto()
  config.gpu_options.allow_growth = True

  with tf.compat.v1.Session(config=config) as sess:
      sess.run(tf.compat.v1.global_variables_initializer())
      sess.run(run_op)

if __name__ == '__main__':
  test_reproduce_issue()

Other info / logs
Call initializer instance with the dtype argument instead of passing it to the constructor
2022-03-31 11:50:43.638876: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2022-03-31 11:50:43.640646: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcuda.so.1
2022-03-31 11:50:43.651276: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-03-31 11:50:43.653750: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties:
pciBusID: 0000:00:09.0 name: GRID T4-8C computeCapability: 7.5
coreClock: 1.59GHz coreCount: 40 deviceMemorySize: 8.00GiB deviceMemoryBandwidth: 298.08GiB/s
2022-03-31 11:50:43.653875: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudart.so.11.0
2022-03-31 11:50:43.656486: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcublas.so.11
2022-03-31 11:50:43.656563: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcublasLt.so.11
2022-03-31 11:50:43.657797: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcufft.so.10
2022-03-31 11:50:43.658093: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcurand.so.10
2022-03-31 11:50:43.660878: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcusolver.so.11
2022-03-31 11:50:43.661549: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcusparse.so.11
2022-03-31 11:50:43.661706: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library libcudnn.so.8
2022-03-31 11:50:43.661808: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-03-31 11:50:43.665003: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-03-31 11:50:43.667348: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1871] Adding visible gpu devices: 0
2022-03-31 11:50:44.741278: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1258] Device interconnect StreamExecutor with strength 1 edge matrix:
2022-03-31 11:50:44.741323: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1264]      0
2022-03-31 11:50:44.741336: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1277] 0:   N
2022-03-31 11:50:44.741551: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-03-31 11:50:44.742612: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-03-31 11:50:44.743506: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2022-03-31 11:50:44.744465: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1418] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 5717 MB memory) -> physical GPU (device: 0, name: GRID T4-8C, pci bus id: 0000:00:09.0, compute capability: 7.5)
Traceback (most recent call last):
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1375, in _do_call
    return fn(*args)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1358, in _run_fn
    self._extend_graph()
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1398, in _extend_graph
    tf_session.ExtendSession(self._session)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot colocate nodes {{colocation_node embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape}} and {{colocation_node random_uniform}}: Cannot merge devices with incompatible types: '/device:GPU:0' and '/device:CPU:0'
         [[{{node embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape}}]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "benchmark_between_curry_superion.py", line 46, in <module>
    test_reproduce_issue()
  File "benchmark_between_curry_superion.py", line 42, in test_reproduce_issue
    sess.run(tf.compat.v1.global_variables_initializer())
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 967, in run
    result = self._run(None, fetches, feed_dict, options_ptr,
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1190, in _run
    results = self._do_run(handle, final_targets, final_fetches,
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1368, in _do_run
    return self._do_call(_run_fn, feeds, fetches, targets, options,
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/client/session.py", line 1394, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot colocate nodes node embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape (defined at /data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_variable.py:529) placed on device Device assignments active during op 'embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape' creation:
  with tf.device(/CPU:0): </data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_variable.py:567>
  with tf.device(): </data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py:294>  and node random_uniform (defined at benchmark_between_curry_superion.py:26) placed on device No device assignments were active during op 'random_uniform' creation. : Cannot merge devices with incompatible types: '/device:GPU:0' and '/device:CPU:0'
         [[node embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape (defined at /data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_variable.py:529) ]]Additional information about colocations:Node-device colocations active during op 'embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape' creation:
  with tf.colocate_with(random_uniform): </data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py:586>
Device assignments active during op 'embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape' creation:
  with tf.device(/CPU:0): </data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_variable.py:567>
  with tf.device(): </data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py:294>
No node-device colocations were active during op 'random_uniform' creation.
No device assignments were active during op 'random_uniform' creation.

Original stack trace for 'embedding_lookup/embedding_lookup/_anonymous_trainable_store_key/Read/Reshape/shape':
  File "benchmark_between_curry_superion.py", line 46, in <module>
    test_reproduce_issue()
  File "benchmark_between_curry_superion.py", line 28, in test_reproduce_issue
    lookup_result, trainable = de.embedding_lookup(embedding_var, data, return_trainable=True)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py", line 587, in embedding_lookup
    trainable_ = _create_or_get_trainable(name)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py", line 562, in _create_or_get_trainable
    wrapper = de.TrainableWrapper(params,
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/ops/variables.py", line 264, in __call__
    return super(VariableMetaclass, cls).__call__(*args, **kwargs)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py", line 91, in __init__
    super(TrainableWrapper, self).__init__(*args, **kwargs)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/ops/resource_variable_ops.py", line 1584, in __init__
    self._init_from_args(
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py", line 298, in _init_from_args
    self.prefetch_values(),
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_ops.py", line 99, in prefetch_values
    self.prefetch_values_op = self.transform(self.params.lookup(self.ids))
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_variable.py", line 568, in lookup
    dynamic_default_values = self._create_default_values_by_initializer(
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/dynamic_embedding_variable.py", line 529, in _create_default_values_by_initializer
    keys_shape = array_ops.shape(array_ops.reshape(keys, [-1]))
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/util/dispatch.py", line 206, in wrapper
    return target(*args, **kwargs)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/ops/array_ops.py", line 195, in reshape
    result = gen_array_ops.reshape(tensor, shape, name)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/ops/gen_array_ops.py", line 8397, in reshape
    _, _, _op, _outputs = _op_def_library._apply_op_helper(
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/op_def_library.py", line 497, in _apply_op_helper
    inferred = ops.convert_to_tensor(
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/profiler/trace.py", line 163, in wrapped
    return func(*args, **kwargs)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 1566, in convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 339, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 264, in constant
    return _constant_impl(value, dtype, shape, name, verify_shape=False,
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/constant_op.py", line 286, in _constant_impl
    const_tensor = g._create_op_internal(  # pylint: disable=protected-access
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 3557, in _create_op_internal
    ret = Operation(
  File "/data/env/py3/lib/python3.8/site-packages/tensorflow/python/framework/ops.py", line 2045, in __init__
    self._traceback = tf_stack.extract_stack_for_node(self._c_op)

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Solved by placing initializer on CPU either


Fonts become missing

Describe the bug
From time to time, fonts that used to work are becoming missing/broken.
This is extremely strange and frustrating for a CDN - it is expected to have old (static) assets, but not "broken links".
Yesterday we had a similar situation with Roboto Slab, then suddenly the fonts became available again.
Today I noticed one missing font that is still missing, even though it is referenced from the fontsource site (see repro below).
Steps to Reproduce

Go to https://fontsource.org/fonts/lobster/cdn
click the "latin-ext" subset
visit the woff2 link in the generated source (under "Copy CSS") - it is as of now broken:
<EMAIL_ADDRESS>    "status": 404,
    "error": "Not Found. File does not exist."
}

Expected behavior

This is extremely strange and frustrating for CDN - it is expected to have old/bad static assets, but not "broken links".

Version
n/a
OS
osx
Browser
chrome
Additional context
No response

This is a valid concern and I agree with you. Something is clearly not resolving properly (probably to do with the @latest tag) when the cache expires which leads to this occurring.
Is this something that you have been experiencing recently or something that has been happening for a while?
I'll also probably switch default links to not point to @latest and instead point to the latest actual version which makes the caches immutable. We can then offer a version list to make @latest opt-in.

#918 should hopefully address this as it seems like the only related thing that could throw that error. However, if you encounter this again, please don't hesitate to reopen this issue.

Hey, thanks a lot for the quick response and solution!
On a sidenote, I now realise that the safer option for us is to actually not use @latest, because then it should be practically guaranteed that the specific version we picked must exist.


[TW#13260] Current consumption not varying for different Transmitter powers

I tried setting different values from 0 to 20 dBm for the Tx of WiFi radio using the setting
Under make menuconfig > Component config > PHY >  Max WiFi TX Power, flashed a program and kept checking for the current the board is drawing. I've observed that the current consumption is same for all values of Tx Power.
Can someone verify if they're facing the same issue?
Or am I supposed to change something else too?
Thanks

Bump. Any update?

@FayeY maybe we can close this issue.

Closing due to lack of response, please feel free to reopen if this is still an issue. Thanks.


Rename topology's LinkType to LinkTo

Rename topology's LinkType to LinkTo, fixes #1444

This change is

Reviewed 11 of 11 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

python/topology/generator.py, line 624 at r1 (raw file):

            b = TopoID(attrs.pop("b"))
            linkto = linkto_a = linkto_b = attrs.pop("linkto")
            if linkto == LinkType.PARENT:

With the change in the .topo files, this becomes LinkType.CHILD.

topology/Default.topo, line 65 at r1 (raw file):

  - {a: 1-4_295_001_010, b: 1-4_295_001_030, linkto: CORE}
  - {a: 1-4_295_001_010, b: 2-4_295_002_010, linkto: CORE}
  - {a: 1-4_295_001_010, b: 1-4_295_001_011, linkto: PARENT}

Proposal:
- {a: 1-4_295_001_010, b: 1-4_295_001_011, linkAtoB: CHILD}

Comments from Reviewable

Review status: 4 of 12 files reviewed at latest revision, 2 unresolved discussions, some commit checks failed.

python/topology/generator.py, line 624 at r1 (raw file):
Previously, kormat (Stephen Shirley) wrote…
With the change in the .topo files, this becomes LinkType.CHILD.

Done.

topology/Default.topo, line 65 at r1 (raw file):
Previously, kormat (Stephen Shirley) wrote…
Proposal:
- {a: 1-4_295_001_010, b: 1-4_295_001_011, linkAtoB: CHILD}

Done.

Comments from Reviewable

Reviewed 8 of 8 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

topology/Two.topo, line 1 at r2 (raw file):

--- # Two Topology

DONOTWANT

Comments from Reviewable

Reviewed 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

Comments from Reviewable


Popup doesnt open in Safari on MacOS

I'm using react-oauth-popup with NextJS and the popup works fine in Firefox and Chrome but it only shortly appears in Safari and then closes immediately.
Has anyone of you experienced this issue before?

Hi @kgoedecke  Any solution for this? I had the same issue

@akiladevinda I actually  re-wrote the whole thing and will probably open source it one of these days.

@kgoedecke  Did you able to make your one open source? Any link?

@kgoedecke can you open source your fork or at least post a snippet of the fix? Thanks!

@akiladevinda @sismanis I havent gotten around to it yet. I hope I can do it this week.

@kgoedecke I'm happy to transfer ownership of this repo to you if you'd like. I don't have the time to maintain this.
I'm also not sure there's a way to get popups working on safari, afaik you need to set noopener for the popup for it to stay open but that also prevents the the parent window from accessing any information inside the popup.

It works in my solution. But i took a different approach, fully functional no class components.

@Ramshackle-Jamathon do you think it makes sense to completely delete all code and replace it with my version? :/

@kgoedecke sure! I think you'd just wanna do a major version bump

Sounds interesting, hope we can expect the update soon. Looking into the same now.

@akiladevinda @sismanis this should be fixed now, just released v1.0.0


[Feature request] Subsume functionatliy of "autojump"

There are autojump programs that keep a history of recently visited dirs. It'd be great if Alt-C could show those as well to jump to.
List of such programs:
bash: https://github.com/rupa/z
ruby: https://github.com/madx/jumpr
Example usage with current programs, after installation:
[~]$ cd ~/x
[~/x] $ cd ~/y
[~/y] $ cd ~/z
[~/z] $ z x
[~/x] $

You can easily hook fzf up to those programs, see:
https://github.com/junegunn/fzf/wiki/Examples#z


How can I get HTML Source Code from site?

Hello,
I want to detect the html source code (or the html tags) of a page.
I checked this https://github.com/pichillilorenzo/flutter_inappwebview/issues/2#issuecomment-423858427
but var html = await this.injectScriptCode("document.body.innerHTML"); is not working for me. Is there a complete example?
Thanks and best regards

@desmeit did you solve the problem? Can you please leave your solution here?

@Rustam-Z
I solved it with https://pub.dev/packages/webview_flutter
Infos here:
https://medium.com/@janithsg/flutter-extract-web-page-html-content-from-webview-1c39e43e675d


Improve README guide

A lot of the difficulty I'm having with this library is that it's difficult to understand how to use it. The example in the README is somewhat pseudocode. It doesn't compile, and uses types that are not valid according to the compiler (eg. CustomSocket / let remote = SocketAddr::from(..); / what is udp_socket?). This makes it a challenging resource to rely upon while debugging.
A lot of this knowledge resides in @jacobkaufmann 's head and it would be useful if you could improve the documentation to explicitly & correctly show the public api for this library.
I understand that the README example contains enough context that I should be able to interpret the public api, but explicit, correct examples are extremely helpful as a reference. Simple examples for a utp tx using both connect() and connect_with_cid() would be very helpful.
As an aside... I'm also curious as to why there are both connect() & connect_with_cid() api's available? What are the use cases for each method? Is using one preferable to the other?

I agree that the documentation needs improvement. I will take this up to create some more examples in the method doc comments.
with connect the connection ID (CID) is generated "under the hood", so it would be used if you did not need to pre-negotiate a CID. I can add some more details to the doc comments there.

Would you mind to edit the name of this issue so it includes "document public API"? @njgheorghita


Birthday list

The dataset that we are using has the date of birth field. Using this data, we can display the victims having birthdays on today's date.

Interesting, I'll what I can do. Elixir is new to me.

Interesting, I'll see what I can do. Elixir is new to me.

Thanks, mas! Let me know if you face any trouble running the web server.
Btw, Elixir is also new to me, so please not be surprised with how I wrote the code 😅

I think I misunderstood what you wanted earlier.
Could you please elaborate on what you want? Is it to have a separate list on the victims that should have a birthday today?
I merely assume you wanted to display the victim's age, that's why I created this pr.

My initial intention was to have a separate UI component that lists victims having birthdays on a given date. Think of it like Facebook's Friends Birthdays. This is one way that I think can help us preserve their lives and memories, by celebrating their birthday.
I'm still not sure about the copywriting here, what I have right now is something like this:

{Martyr name} would be XX years old today. Remember him/her.

As for your PR, I've seen it and I would like to merge it because it aligns with the UI design in Figma where it displays the age of the victims. Cc: @randyvarianda


SLIM-3076 model for unencrypted keys

retest this please

retest this please

retest this please

Retest this please


Trying to buy too many items that cannot fit in stash will not remove money

General information:
Project issue is for:
SPT AKI (3.8.0) Bleeding Edge Test
Expected result:
Purchase should not happen.
Actual result:
Stash fills with items purchased as much as possible, but no money is taken.
How to reproduce:

Have a relatively full stash. I'd say 4-6 cells open.
Buy too many items from flea market, easier with ammo. Try 9x18mm PM P gzh.
Items are added to stash, "not enough stash space" error pops up.
No money removed, items added to stash.

Originally written by bandit

Also works when buying direct from traders

Originally written by bandit

Seems to work in the inverse as well. Selling too much (14m worth of items) with no space for the money to go to will cause the items to disappear and the money not to be provided to you.

Originally written by bandit

buyItem() will need some rework to make use of addItemsToStash() instead of addItemToStash().
it does a space check prior to adding any item.

Originally written by chomp

Fixed with: https://dev.sp-tarkov.com/SPT-AKI/Server/commit/183e71370a589d3752bc2554b9df2f9ffb28de5b

Originally written by chomp

Went to sell to mechanic, selected a bunch of guns from my inventory, 3 x m9a3's and then some parts off of an AKMN (while they were still attached to the AKMN) and received an error that the purchase could not happen, but still lost all of the gear and didn't receive any of the 120k+ roubles that it was saying the trade was worth.
Updated to most recent as of a few minutes after it's release this morning (0955 CST((GMT-6))
Also worth noting, i had plenty of room in my stash for the money to have gone to.

Attachments

image.png (66 KiB)
image.png (66 KiB)

Originally written by Anonymouswrex

Hello, testing exactly what was wrote to reproduce this and can confirm the purchase does NOT go through and no money is taken. https://youtu.be/DNdbzb8isYo

Attachments

balance.png (344 KiB)

Originally written by Dabi7582


PhantomJS ?

Hi,
It is possible to have PhantomJS pre-installed with meteor up ?
Or how to install it in the container ?
Because I want to use spiderable and I have this error when I want to cache a page :
spiderable: phantomjs failed at http://picturals.com/login?%3F_escaped_fragment_=: Error: Command failed: [<IP_ADDRESS>]    at ChildProcess.exithandler (child_process.js:658:15) [<IP_ADDRESS>]    at ChildProcess.emit (events.js:98:17) [<IP_ADDRESS>]    at maybeClose (child_process.js:766:16) [<IP_ADDRESS>]    at Process.ChildProcess._handle.onexit (child_process.js:833:5) [<IP_ADDRESS>]stderr: [<IP_ADDRESS>]stdout:
Regards,
Rémy.

Build a new docker image with PhantomJS dependencies installed using the meteorhacks/meteord base image push it to the docker registry, and set it as the docker image in mup.js file

I will try this, and let you know if I succeed :+1:
Thanks.

Sorry, I forgot to reply to this post.
I wanted PhantomJS to use Spiderable, but I switch to prenreder.io, so I don't need PhantomJS anymore.
Thanks for your help :+1:


Add support for shimming operators

Implicit vs. explicit operators.
Confirm by trying it out in the sandbox.
Currently not supported. Will be added in this issue and linked PR #33
Tasks:

[ ] Implement support for conversion operators (both implicit and explicit)
[ ] Implement support for arithmetic operators
[ ] Implement support for equality operators
[ ] Implement support for comparison operators

Tests:
For all of the following operators we need:

Shim tests
Exercise tests

[ ] Conversion operators
[ ] Arithmetic operators
[ ] Equality operators
[ ] Comparison operators

The list of operators (and their names) is taken from here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading#overloadable-operators
Operators to support
Arithmetic

+x
-x
!x
~x
++
--
true I cannot find a good way to express this operation in an expression tree.
false I cannot find a good way to express this operation in an expression tree.
x + y
x - y
x / y
x % y
x & y
x | y
x ^ y
x << y
x >> y
x >>> y Expression trees cannot contain this operator. This is a limitation on the part of the compiler.

Equality

x == y
x != y

Comparison

x < y
x > y
x <= y
x >= y

I can confirm that we do not currently support this.
Given the following MVE:
public class OverridenOperatorClass
{
    public static explicit operator bool(OverridenOperatorClass c) => false;
}

public static void Main(string[] args)
{
    Shim
        .Replace(() => (bool) Is.A<OverridenOperatorClass>())
        .With(delegate { return true; });
}

This throws the following exception:
Unhandled Exception: System.NotImplementedException: Unsupported expression
   at Pose.Helpers.ShimHelper.GetMethodFromExpression(Expression expression, Boolean setter, Object& instanceOrType) in C:\Rider\pose\src\Pose\Helpers\ShimHelper.cs:line 42
   at Pose.Shim.ReplaceImpl[T](Expression`1 expression, Boolean setter) in C:\Rider\pose\src\Pose\Shim.cs:line 68
   at Pose.Shim.Replace[T](Expression`1 expression, Boolean setter) in C:\Rider\pose\src\Pose\Shim.cs:line 62
   at Pose.Sandbox.Program.Main(String[] args) in C:\Rider\pose\src\Sandbox\Program.cs:line 36

This seems to be caused by the expression type not being supported. Specifically, ExpressionType.Convert is unsupported.

I've added support for shimming operators. Please note, though, that the shim cannot be applied to a specific instance as the operator is static.

How to handle double casting? That is, assume the following code:
class OperatorsClass
{
    public static implicit operator double(OperatorsClass c) => double.MinValue;
}

var instance = new OperatorsClass();
var doubleCasted = (long)(int)instance; // Double-cast

Attempting to get the method from the expression (long)(int)instance will yield Convert(Convert(...)) from which we will fail to get a method.

Operators shimming is now implemented and the README has been updated. I did discover that when attempting to shim an operator for which the type has no overload (e.g. 1 + 1) the error message is rather cryptic. I will look into making it more clear what went wrong.


Exiting play mode with brush selected causes MissingReferenceException with destroyed CSGBrush

I often edit brushes then play to check how they seem ingame, but was getting spammed with errors upon stopping and entering edit mode again if a brush was still selected at the time.
Error received:
"MissingReferenceException: The object of type 'CSGBrush' has been destroyed but you are still trying to access it.  Your script should either check if it is null or you should not destroy the object."
in OnInspectorGUI of EditModeSelection.GUI.cs at line:
var gameObject = targetNodes[0].gameObject;
The 3D selection box etc is also no longer visible.
These (and further errors if in a tool edit mode such as Mesh) happen until the selection is changed manually.
There might be a better way, but I've done this as a workaround in the meantime (to version 1.529):
In OnInspectorGUI of EditModeSelection.GUI.cs:
Replaced
if (targetNodes.Length > 0 )
with
if (targetNodes.Length > 0 && targetNodes[0] != null)
to avoid initial errors.
In SetTargets of EditMode.Object.cs:
Replaced
                    if (!ArrayUtility.Contains(brushes, newBrushes[i]))
with
                    if (brushes[i] == null || !ArrayUtility.Contains(brushes, newBrushes[i]))
To ensure refresh if brushes destroyed in object mode.
In Select of BrushSelection.cs:
Replaced
                    if (foundBrushes.Contains(Brushes[i]))
with
                    if (Brushes[i] != null && foundBrushes.Contains(Brushes[i]))
To allow null brushes to be removed from the lists for mesh edit.
In SetTargets of EditMode.Surface.cs:
Replaced
				if (foundBrushes.Contains(brushTargets[i]))
with
				if (brushTargets[i] != null && foundBrushes.Contains(brushTargets[i]))
To remove null brushes from surface targets.
In RunOnce of UpdateLoop.cs:
Added
            if (EditModeManager.FilteredSelection.NodeTargets.Length > 0 && EditModeManager.FilteredSelection.NodeTargets[0] == null)             {                 EditModeManager.UpdateSelection();             }
To force a selection update on exiting play mode.
With these edits, there are no errors and the scene shows most tools correctly (though default sub-part selection similar to recompiling) when exiting play mode (Not used clip mode much, didn't notice any difference with similar null check for backupData[i].brush or not.)

Thanks for letting me know about this & thanks for the fix :)

Also discovered OnApplicationQuit in CSGSceneManagerInstance sets InternalCSGModelManager.IsQuitting = true; when exiting play mode, which stops component unregistration/dynamic updates when deleting brushes etc.
To repro, play/stop then delete brushes: this will not update the rendered model automatically until recompiling scripts.
One-time update forcable by calling ForceRebuild or exiting play mode again but EnsureBuildFinished does not detect the removed brush.
I've worked around for now by putting InternalCSGModelManager.IsQuitting = false; inside the OnCreated function for CSGModel in InternalCSGModelManager.Registration.cs but I don't know if this will cause other problems or not.

thanks, I'll see if I can fix this soon

This seems to have already been fixed at some point?
Let me know if you still run into this


Issue after upgrade from 7.04.00

I've upgraded from 7.04.00 to 9.5.0
All went well aside from one issue with the Security > Login Settings > Basic Login Settings menu stating "There was an error retrieving your content. Please check your internet connection."
How do I being to troubleshoot this issue?

did you upgrade directly or follow suggested upgrade path?

I followed this
https://dnndocs.com/content/getting-started/setup/upgrades/suggested-upgrade-path/index.html
and this
https://dnndocs.com/content/getting-started/setup/upgrades/index.html

I would start by looking for errors in the browser console (F12 in Chrome).
Then in the Event Log in the persona bar.
Then in the filesystem /Portal/_default/logs you will see log files per date, take a look in those to see if there are any clues.

Console has no error.
"Admin Logs" has a General Exception but it was there before I navigated to the Security section.
AbsoluteURL:/API/InternalServices/FileUpload/loadimage
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:9222f777-55da-4f44-b0e0-8d95777633fd
AssemblyVersion:
PortalId:-1
UserId:-1
TabId:-1
RawUrl:
Referrer:
UserAgent:
ExceptionHash:
Message:Description
StackTrace:
at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
at System.Data.SqlClient.SqlDataReader.get_Item(String name)
at DotNetNuke.Services.FileSystem.FileInfo.Fill(IDataReader dr)
at DotNetNuke.Common.Utilities.CBO.FillObjectFromReader(Object objObject, IDataReader dr)
InnerMessage:
InnerStackTrace:
Source:System.Data
FileName:
FileLineNumber:0
FileColumnNumber:0
Method:

did you unblock downloaded upgrade packeges (at the bottom of 1st tab in file properties), prior to unzipping the files contained, and copying them to overwrite existing files?

Yes. All zip files were unblocked before extracting the files.

I am receiving "Hint 'noexpand' on object 'dbo.vw_UserRoles' is invalid." in my log file. How can I fix this?

did you apply my TurboScripts (if you don't know, check for HostSettings named "Turbo..."

Is that in the web.config? I've inherited this server and I'm brand new to DNN.
Thanks for any assistance you can provide.

no, it is in the database:
SELECT * From dbo.HostSettings WHERE SettingName Like N'Turbo%'

Hmm, it looks like there are Turbo settings. I did not know this prior to my initial upgrade from 7.04.00. Looks like I'll have to restore the first backup, uninstall the TurboScritps and run the upgrade gamut again. Is that correct?
TurboDNN_Version	907	0	-1	2015-04-15 15:44:29.550	-1	2015-04-15 15:44:29.550
TurboSchema_Version	907	0	-1	2015-04-15 15:45:21.063	-1	2015-04-15 15:45:21.063

yes, restore latest database and files from before DNN upgrade.
run TurboUnSchema.sql and perform upgrae again.
You should re-apply TurboDNN.sql and TurboSchema again afterwards, but I am still working on a release for DNN 9.4.0 and above, planned to be released next week.

I am closing this issue since it is not actionable as something to fix in this project. However this does not mean you can't keep discussing and people involved will keep getting notifications.

Thank you for all of your assistance.

if you need any support for my TurboScripts, please use options at https://github.com/dnnwerk/dnnScript


Can't compare offset-naive and offset-aware datetimes - Bluetooth device

Describe the bug
After configuring a connected Sengled bluetooth light to appear in Home Assistant, the light entity is generated and can be controlled once (the error occurs after initiating the first command), however, thereafter, the device does not respond and generates errors when trying to power on/off, or change the color. There is a " TypeError: can't compare offset-naive and offset-aware datetimes" in Homeassistant logs.
To Reproduce
Steps to reproduce the behavior:

Configure Sengled light device (bluetooth) in the Alexa app
After configuring the Alexa Media Player integration, select "Include devices connected via Echo"
Wait for the new light entity to appear in Home Assistant
Attempt to control the devie

Expected behavior
When changing settings I expect the light to turn off/on and to change color/intensity as it does through the Alexa app.
Screenshots
If applicable, add screenshots to help explain your problem.
System details

Home-assistant (version): 2021.6.3
Hassio (Yes/No): No
alexa_media  (version from const.py or HA startup): 3.10.6
alexapy (version from pip show alexapy or HA startup):
Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: Yes

Logs

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/alexa_media/alexa_entity.py:329
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 18:39:03 (4 occurrences)
Last logged: 18:39:21

[139889474582080] can't compare offset-naive and offset-aware datetimes

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 760, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 417, in async_handle_light_on_service await light.async_turn_on(**filter_turn_on_params(light, params)) File "/config/custom_components/alexa_media/light.py", line 329, in async_turn_on await self._set_state(True, brightness, mired, hs) File "/config/custom_components/alexa_media/light.py", line 317, in _set_state self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 402, in _async_write_ha_state state = self._stringify_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 374, in _stringify_state state = self.state File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 772, in state return STATE_ON if self.is_on else STATE_OFF File "/config/custom_components/alexa_media/light.py", line 215, in is_on power = parse_power_from_coordinator( File "/config/custom_components/alexa_media/alexa_entity.py", line 277, in parse_power_from_coordinator return parse_value_from_coordinator( File "/config/custom_components/alexa_media/alexa_entity.py", line 305, in parse_value_from_coordinator if is_cap_state_still_acceptable(cap_state, since): File "/config/custom_components/alexa_media/alexa_entity.py", line 329, in is_cap_state_still_acceptable return time_of_sample >= since TypeError: can't compare offset-naive and offset-aware datetimes

Additional context
Similar issue: https://github.com/custom-components/alexa_media_player/issues/1334

I thought I was using the most up-to-date version. Wasn't


SelectList: pass through onClick

@zprong noticed an issue in the SelectListDate.tsx component with the #174 PR. In that PR, we rely on the event being propagated since it looks like a select but is actually acting as a datepicker:

@christianvuerings I forget.. did we ever find out why the dropdown's textbox didn't show up in the SelectListDate component?