Subscriber does not receive single message

Hi!
I have discovered your work through the recent Ubuntu blog post. Nice job!
You have done a great documentation job and I like how you test the issues in simple docker containers as in this comment https://github.com/aler9/goroslib/issues/2#issuecomment-601724672 :+1:
My first try was to test a simple subscriber like the one in the examples and it seems to never receive a message from rostopic pub. But I have noticed that if I give a rate -r 1, the messages start to appear and from the Seq: 1 so all messages seem to be received.
The issue is that sometimes, a node only waits for one message and not repeated messages so this behavior can be an issue.

Hi, thanks for informing me about the blog post, i'm glad that many people found this library useful.
I decided to write it because i wanted to use ROS with JIT-compiled messages, since i worked with both ROS and grpc/protobuf, and they both required the compilation and sharing of message definitions between users. Of course i'd like to work on a ROS2 porting, and i'll start as soon as i'll find the time for it (in the meantime, any contribution is welcomed).
This issue is related to the latching feature of ROS, currently not implemented in the library, that consists in:

When a connection is latched, the last message published is saved and automatically sent to any future subscribers that connect.

When a subscriber like rostopic pub wants to send a single message, this happens:

the subscriber informs the master that it is publishing on a given topic
the subscriber sends the message
the publisher gets informed by the master about the subscriber existence, and connects to it
since latching is not implemented, the publisher doesn't receive anything. Normally it would receive the last sent message from the subscriber.

So: i'll study how to implement latching.

Ok, thanks for the explanation.
I think you have inverted subscriber and publisher terms in your scenario, isn't it?

yes, thanks

Hi, this should be fixed,and i also added a couple of unit tests. Let me know if it works for you too. Bye

Oh! That was quick!
Indeed, in my test case shown above, it is now working!
Thanks a lot!


A new file is created even if the query is not used in PARTITION BY

[Enter feedback here]
Please update the document.
https://docs.microsoft.com/en-us/azure/stream-analytics/blob-storage-azure-data-lake-gen2-output#blob-output-files
The part our customer would like you to update is:
If the query is fully partitioned, and a new file is created for each output partition
The customer did not use PARTITION BY in the query, but the compatibility level 1.2 specification automatically parallelized and output the per-partition file.
This was a result that the customer did not expect.
Customers are confused, so could you please update?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6ad43ff5-5b86-5f62-f40b-9a6b9886c2de
Version Independent ID: 05f2351d-d023-91ec-8e0d-ae2d538c3619
Content: Blob storage and Azure Data Lake Gen2 output from Azure Stream Analytics
Content Source: articles/stream-analytics/blob-storage-azure-data-lake-gen2-output.md
Service: stream-analytics
GitHub Login: @enkrumah
Microsoft Alias: ebnkruma

Thanks for the feedback! We have assigned the issue to the content author to further review this and update the document as appropriate.

Thank you for your reply. If you consider it, please let us know ETA.

Done! Should appear live in a few moments.
#please-close

Thank you for your quick response. I was able to confirm the document in English was updated. However our customers are Japanese. Could you revise the Japanese page as well?

Hey @JasonWHowell, any idea how to make that happen? :)

It's a queueing system (much like Event Hub) and takes a few days minimum to get translated. I don't have any visibility into that system to see the progress. If there's an urgent need, file a request via https://aka.ms/devrellocfeedback
The ja-jp page shows today's date, but the sentence in question isn't current.
https://docs.microsoft.com/ja-jp/azure/stream-analytics/blob-storage-azure-data-lake-gen2-output#blob-output-files
ja-jp

クエリが完全にパーティション分割されており、新しいファイルが出力パーティションごとに作成される場合。

en-us

If the query is fully partitioned, and a new file is created for each output partition. This comes from using PARTITION BY, or the native parallelization introduced in compatibility level 1.2

@spelluru any additional tips?

I confirmed that the Japanese page was also updated. Thank you for your support.

We really appreciate your contribution to making the doc better. Don't hesitate to do it again :)


has come back in relaton-ietf output

https://github.com/metanorma/metanorma-bsi/actions/runs/1615052986 tests an IETF document included in a BSI document.
RFC 7749
Before:
                 <abstract format='text/html' language='en' script='Latn'>

                      This document defines the “xml2rfc” version 2
                     vocabulary: an XML-based language used for writing RFCs and
                     Internet-Drafts.

                      Version 2 represents the state of the vocabulary (as implemented
                     by several tools and as used by the RFC Editor) around 2014.

This document obsoletes RFC 2629.

                 </abstract>

Now:
                 <abstract format='text/html' language='en' script='Latn'>
                   <t>
                     This document defines the “xml2rfc” version 2
                     vocabulary: an XML-based language used for writing RFCs and
                     Internet-Drafts.
                   </t>
                   <t>
                     Version 2 represents the state of the vocabulary (as implemented
                     by several tools and as used by the RFC Editor) around 2014.
                   </t>
                   <t>This document obsoletes RFC 2629.</t>
                 </abstract>

When Metanorma is invoking Relaton-IETF, there must be Metanorma, not Relaton tags. More generally, the tags output need to conform to the calling environment.

@opoudjis I make a bug in the last relaton-bib v 1.9.9 which potentially could lead to this result but in this case, v 1.9.7 was used.
I'm unable reproduce the issue with latest relaton-ietf:
require 'relaton_ietf'
=> true

RelatonIetf::VERSION
=> "1.9.4"

bib = RelatonIetf::IetfBibliography.get 'RFC 7749'
[relaton-ietf] ("RFC 7749") fetching...
[relaton-ietf] ("RFC 7749") found RFC 7749
=> #<RelatonIetf::IetfBibliographicItem:0x00007fd9ac8e5458
 @abstract=
  [#<RelatonBib::FormattedString:0x00007fd9ac87d240
    @content=
     "
This document defines the \"xml2rfc\" version 2 vocabulary: an XML-based language used for writing RFCs and Internet-Drafts.

Version 2 represents the state of the vocabulary (as implemented by several tools and as used by the RFC Editor) around 2014.

This document obsoletes RFC 2629.
",
    @format="text/html",
...

puts bib.to_xml
<bibitem id="RFC7749" type="standard">
  <fetched>2021-12-23</fetched>
  <title format="text/plain" language="en" script="Latn">The "xml2rfc" Version 2 Vocabulary</title>
  <uri type="xml">https://raw.githubusercontent.com/relaton/relaton-data-ietf/master/data/reference.RFC.7749.xml</uri>
  <uri type="src">https://www.rfc-editor.org/info/rfc7749</uri>
  <docidentifier type="IETF">RFC 7749</docidentifier>
  <docidentifier type="rfc-anchor">RFC7749</docidentifier>
  <docidentifier type="DOI">10.17487/RFC7749</docidentifier>
  <docnumber>RFC7749</docnumber>
  <date type="published">
    <on>2016-02</on>
  </date>
  <contributor>
    <role type="publisher"/>
    <organization>
      <name>Internet Engineering Task Force</name>
      <abbreviation>IETF</abbreviation>
    </organization>
  </contributor>
  <contributor>
    <role type="author"/>
    <person>
      <name>
        <completename language="en">J. Reschke</completename>
      </name>
    </person>
  </contributor>
  <language>en</language>

  <abstract format="text/html" language="en" script="Latn">

This document defines the "xml2rfc" version 2 vocabulary: an XML-based language used for writing RFCs and Internet-Drafts.

Version 2 represents the state of the vocabulary (as implemented by several tools and as used by the RFC Editor) around 2014.

This document obsoletes RFC 2629.

  </abstract>
  <series type="main">
    <title format="text/plain" language="en" script="Latn">RFC</title>
    <number>7749</number>
  </series>
  <place>Fremont, CA</place>
</bibitem>

Error has gone away with relaton update.


Mirror related feature requests

Allow the mirror file name extension to be htm or html is the user specifies eother of those.
If something is written to the gCLI with HTML then write the HTML to the mirror as well.

Also some lint.
Includes a test of dubious value but demonstrates that the request logger does not routinely add HTML.

Finally.  @libraryaddict

Reverted because gCLI missing line endings.


Rules for checking color value formats

Would be a good addition to have the ability to check if color formatting is consistent, as defined in XML, BRS, BS, JSON files.

Choosing the preferred format. #161616 or 0x161616
Choosing lowercase or upper. '0xdbdbdb' or 0xDBDBDB
Choosing if defining alpha values is allowed 0x161616CC
Choosing if default 100% or 0% alpha is allowed, as setting these is redundant 0x161616FF
Rule for limiting the definition of colors to a single file, ie. a theme/ stylesheet file.

Could also check that the classic Roku cert requirement around broadcast safe colors is followed. - 6.4 the channel using only broadcast-safe colors

I think a good first pass at this would be to enforce all of your suggestions exclusively in xml files. (perhaps also for m.top.someColorField assignments since those are pretty easy to detect)
Finding the correct locations in brs/bs/json files may be more difficult. For example, consider this code:
    'this has nothing to do with colors
    bitFlags = 0x00000001 and 0x00000003

Longer-term, when we can do proper type tracking, then we could start to enforce these things when assigning to component fields.

Opened a WIP PR
https://github.com/rokucommunity/bslint/pull/94/files
I wonder if with your bitFlags example, if it's possible to include exceptions, by line or example?

We can close this, @TwitchBronBron 😎

Sure! Closed by #89


thunderbird, thunderbird-bin: 78.11.0 -> 78.12.0 [High security fixes]

Motivation for this change

High security fixes
Other fixes

https://www.mozilla.org/en-US/security/advisories/mfsa2021-30/
https://www.thunderbird.net/en-US/thunderbird/78.12.0/releasenotes/
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 130165 run on x86_64-linux 1

2 packages built:

thunderbird (thunderbird-78)
thunderbird-bin (thunderbird-bin-78)

Builds/runs fine here too


benchmark openai assistants vs open source assistants

End goal would be to have something like this:
OpenAI Assistant API Benchmark

Model Name
Code Interpreter
Retrieval
Function Calling
JSON Mode
Tool Switching

GPT-4
5
5
5
5
5

GPT-3.5
4
4
4
4
4

Open Source Assistant Models Benchmark

Model Name
Code Interpreter
Retrieval
Function Calling
JSON Mode
Tool Switching

Mistral 7B
6
6
6
6
6

LAMMA2
3
3
3
3
3

LLaVA
4
4
4
4
4

[Other]
[Rating]
[Rating]
[Rating]
[Rating]
[Rating]

plus speed stuff ...

next:

make sure process dont crash if request fial or something and write the json
more tests, different models, domains, use cases, etc.
scale it
make it human readable

https://gist.github.com/louis030195/3a937de928c553a0c6d9be3d92766c55 to finish

also fix the result writer which write duplicate files

other idea is to just write a bunch of rows with "input" "output" "expected" and use best practice llm scoring:
https://github.com/openai/evals
since assistants is basically software 3.0 (foundation models) + software 1.0 hacks and plumbing - might also have a column which is extra context received by the LLM or something like this
if anyone has ideas on how to derive llm benchmarking best practice to this project 🙏


Get-AD* is severely slow on Azure AD joined devices when filling

Issue:
On an Azure AD joined device, when running commands such as get-ADUser or get-ADGroup the initial query is very fast.  However, when storing the results in a variable and attempting to view them the domain controller is contacted for each and every single result, causing massive delays for processing records.
This does not occur on a standard domain joined device.  Both devices are on the same physical wired network within the organization.
With the initial query ran and results cached, if the network adapter is disabled traversing the results happens instantly as would be expected.  When viewing the difference between those records returned with a live network and those without the results returned with a live network have five additional blank attributes:

WriteDebugStream
WriteErrorStream
WriteInformationStream
WriteVerboseStream
WriteWarningStream

Not sure why traversing the records would cause additional network activity and what these fields are to represent.
Expected Behavior:
The code should operate the same whether using a domain joined device or an Azure AD joined device.
How to Replicate:
Running the following code on a domain joined PC works fine.  Running the same code on an Azure AD joined PC has the issue.
$var = get-ADUser -filter * -Server SomeDCServerName
$var | Select -First 10

PowerShell Version:
Tested on 5.1.19041.610 and 2021.2.2
Resources:
Please check out the following StackOverflow issue and Reddit thread for additional info on users experiencing this.

@MattPennerVVUSD Can you try if running $result = $var | Select -First 10 is fast on an Azure AD joined PC?
I suspect it's because $var | Select -First 10 will send the results through formatting system, which will try retrieving the values for the properties to be displayed. For some properties, the attempt to retrieve value somehow results in a network IO for the Azure AD joined machine.
@joeyaiello @theJasonHelmick This is an issue with the ActiveDirectory module. Where shall we transfer this to?

Thanks for confirming the behavior -- it's indeed as what I suspected.
You cannot disable the formatting system, also when you attempt to access any of those problematic properties of the returned AD object, you will experience the same problem.
@SteveL-MSFT This is an issue with the ActiveDirectory module. do you know where we should transfer this issue to?

This issue still exists with PowerShell Core version 7.3.8.
What's interesting is when running the command standalone "get-ADUser -filter * -Server SomeDCServerName" the results are returned quickly.  However, when storing them in a var and then reading the var they are returned one at a time as it hits the server.
get-ADUser -filter * -SearchBase "someBase" -Server SomeDCServerName -- Returns immediately

$var = get-ADUser -filter * -SearchBase "someBase" -Server SomeDCServerName -- Returns immediately
$var -- Slowly displays each individual record one at a time.

Not sure why storing them in and reading from the var causes this issue.

This is still occurring with PS Core version 7.4.2

This is still occurring with PS Core version 7.4.6

You could try to disable NetBIOS and LLDP name resolutions on local device.


[v2.9] Add ability to specify a service account for a node pool in a GKE cluster

The gke-operator (in v2.9) now supports the ability to specify a service account for a node pool. This is an optional field that may be set to an email address of a service account that has limited permissions, for example<EMAIL_ADDRESS>To set this field, one needs to set the value for field .spec.nodePools[*].config.serviceAccount. If not set, the default service account will be used.
There is currently no API method that lists the service accounts for a project, that the UI could invoke to help the user pick a service account. Adding such an API is possible but it would require additional permissions for the GKE service account that Rancher uses, i.e. to include the roles/iam.serviceAccountViewer IAM role.
Relates to https://github.com/rancher/gke-operator/issues/262

Internal reference: SURE-3099
@mantis-toboggan-md recently touched the GKE area and @eva-vashkevich has been looking at service accounts. However, this may require design so need to check with @nwmac and @kwwii if this is more than just a field.

There will probably (?) be a lot of service accounts, so we should avoid doing a findAll (almost all will be removed by 2.10.0). @yiannistri are there any other definitive ways to select the applicable accounts, like labels or annotations?

@richard-cox just to be clear, for this particular scenario I'm referring to GCP IAM Service Accounts (not to be confused with Kubernetes service accounts). These service accounts are assigned to node pools in order to restrict what GCP services can be accessed from a cluster.
I agree with you that potentially this would return a lot of data, however this would need a call to the GCP API from server-side. So we can't use labels or annotations.

It looks like there may already be an endpoint for the UI to use here, as GKE provisioning v1 included the option to set service accounts for node pools, see ui code here and norman api code here - does this existing API functionality look adequate @yiannistri?

@mantis-toboggan-md yes that looks adequate :+1:

Excellent, then it sounds like we're not backend-blocked on this issue. I have a couple more questions @yiannistri:

That api call returns a list of these objects: https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts#ServiceAccount. Your example appears to correspond to the email field; is this what we would using in .spec.nodePools[*].config.serviceAccount?
When the user selects the 'use the default service account' option in the UI, can we leave .spec.nodePools[*].config.serviceAccount blank, or do we need to set the value based off the "Compute Engine default service account" I see returned from this gkeServiceAccounts API call?

That api call returns a list of these objects: https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts#ServiceAccount. Your example appears to correspond to the email field; is this what we would using in .spec.nodePools[*].config.serviceAccount?

Yes, please use the email field.

When the user selects the 'use the default service account' option in the UI, can we leave .spec.nodePools[*].config.serviceAccount blank, or do we need to set the value based off the "Compute Engine default service account" I see returned from this gkeServiceAccounts API call?

You can leave the field blank. Setting it to the "Compute Engine default service account" will have the same effect but it's probably simpler to simply not set it/set it to an empty string.

will be a combination of automated and manual testing. moving to To Test

Validation passed on build:
Rancher - v2.9-3c4ccdc5bc9fde3510089153b5ad58fdbe604880-head
Dashboard - master 102f1e6

The below scenarios passed - :white_check_mark:

Selecting a service account while adding Nodepool in UI
The selected SA gets assigned to the Nodepool on the provisioned/imported cluster
Able to specify different account for different nodepools
If none account selected, default account gets assigned
Not able to edit service account for Nodepool


If possible use of a function keep cursor and search registers during call functions

Hey guys, I know there are some plugins to clean extra spaces without moving cursor point, but there are other advantages of using something like this:
I found an awesome vim function calle "Preserve" on this blog post:
https://technotales.wordpress.com/2010/03/31/preserve-a-vim-function-that-keeps-your-state/
"The thing is: The function "Preserve can be calle by other functions
" I think is a good thing to do when it comes to vim improvement

Useful, but not something that should be standard on vim-bootstrap.


Fix typo in "StackStripts".

Coverage remained the same at 71.348% when pulling 060871c10be401cb68ecd054cb75d044a762c4e3 on Jonchun:patch-1 into edd99dc4e1be5ab8190f243c3dbf8b830716255e on linode:master.


Clean up marker generics for systems

Objective
While we use #[doc(hidden)] to try and hide marker generics from the user, these types reveal themselves in compiler errors, adding visual noise and confusion.
Solution
Replace the AlreadyWasSystem marker generic with (), to reduce visual noise in error messages. This also makes it possible to return impl Condition<()> from combinators.
For function systems, use their function signature as the marker type. This should drastically improve the legibility of some error messages.
The InputMarker type has been removed, since it is unnecessary.

bors r+

bors retry


[Suggestion] Auto eject on reactors

When I set up a fusion reactor and a turbine, I had to set up 14 ports on the reactor (10 dedicated to steam) to keep up with ultimate mechanical pipes pumping 64000 mb/t. Can you make an auto eject option for the fusion reactors?

I used Pressure Pipes mod to get around this.

I agree, there needs to be a point to using water with the reactor.

+1 to this request

Done :)

We love you! Er... in a bro way bro. Thank you

Which build was it corrected in?


Key binding to Xbox wireless controller

Nice work.
I am not sure how to use the mentioned pd.ini file, is there an example?
I have almost managed to bind all the keys to my liking from the Extended menu. However, the Xbox controller's L trigger is somehow now triggering the start button, despite it being set to the Z trigger!
Also, pressing B behaves like aim + C-right, however it is set to simply C-right, which is what I want.

I resolved this by editing the pd.ini which appeared after closing the program.


⚠ Bofrost.at has degraded performance

In 8426315, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 900 ms

Resolved: Bofrost.at performance has improved in 3dc8efd after 7 minutes.


From The Vault collection records not populating

On the From the Vault collection, the records are not populating.
The md has the tag: [](http://localhost:3000/catalog?f[special_collection_tags][]=from_the_vault)
And a record that should be in the collection http://demo.openvault.wgbh-mla.org/catalog/V_0669B2FE8ADC4F80A8D89CB58D02BBC0  has the annotation in the PBCore:
<pbcoreAnnotation annotationType="Special Collection">from_the_vault</pbcoreAnnotation>

Figured it out: We have both special_collections / "Special Collection" and special_collection_tags / "Special Collection Tag". For the other collections we've used special_collections_tags as the basis of the query, and I'd prefer to keep it that way for consistency... Maybe you'll want multiple tabs under From The Vault at some point?
@Muraszko : could you add the other annotation to this record? I'll assign this bug to you.
For myself, I'll add more validation to make sure if we have one of these annotations, we have the other.
(This isn't the only way it could be done, but it seems the most consistent to me. Let me know if there are objections.)

(Spawned #521 for improved validation.)

Updated and ingested.


Add support to export container's filesystem stats

This fix includes support to export disk statistics.

@timstclair @vishh could one of you please take a look since you are more familiarized with disk metrics?

I'd recommend holding off this PR until the API from cAdvisor & kubelet perspective is decided.

hi, is this still relevant?

This change is

Closing as obsolete. Please reopen if you still want to work on this.


Fenwick Tree[FEATURE]

Detailed Description

I see that Fenwick Tree implementation is missing.
Context

Possible Implementation

I can contribute if possible.

are you sure?
https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/range_queries/fenwick_tree.cpp

Oh, thanks, I couldn't find it.


coverage-7.2.7 is failing on Python 3.12.0-alpha (1 to 7) (but is working on 3.12.0-beta)

Describe the bug
Trying to use coverage on a personal project, I started to have a new issue this morning when it used coverage-7.2.7 for the first time:
  coverage run -m unittest discover --start-directory=didyoumean --pattern=*.py

  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-alpha.1/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/bin/coverage", line 8, in <module>
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 973, in main
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 684, in command_line
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/cmdline.py", line 858, in do_run
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/control.py", line 638, in start
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/collector.py", line 364, in start
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/threading.py", line 82, in settrace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/threading.py", line 1545, in _shutdown
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Exception ignored in atexit callback: <bound method Coverage._atexit of <coverage.control.Coverage object at 0x7f2142f35190>>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/control.py", line 652, in _atexit
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/control.py", line 384, in _should_trace
  File "/opt/hostedtoolcache/Python/3.12.0-alpha.1/x64/lib/python3.12/site-packages/coverage/inorout.py", line 316, in should_trace
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Error: Process completed with exit code 1.

To Reproduce
How can we reproduce the problem?

What version of Python are you using?

It is very peculiar that:

it does work fine on Python 3.11 (0 to 3)
it does NOT work on Python 3.12.0-alpha (1 to 7)
it does work fine on Python 3.12.0-beta0

What version of coverage.py shows the problem? The output of coverage debug sys is helpful.

I started to have the problem with coverage-7.2.7 . Before that, coverage-7.2.6 was used with no problem whatsoever.

What versions of what packages do you have installed?

No other dependency

What code shows the problem?  Give us a specific commit of a specific repo that we can check out. If you've already worked around the problem, please provide a commit before that fix.

The branch https://github.com/SylvainDe/DidYouMean-Python/tree/issue62-coverage727-startswith goes the issue on a minimalist piece of code: here is the test https://github.com/SylvainDe/DidYouMean-Python/blob/issue62-coverage727-startswith/didyoumean/fake_tests.py

What commands should we run to reproduce the problem? Be specific. Include everything, even git clone, pip install, and so on. Explain like we're five!

From the branch mentionned above, here is the github workflow code: https://github.com/SylvainDe/DidYouMean-Python/blob/issue62-coverage727-startswith/.github/workflows/my_github_action.yml which gave https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5125470423 .
Expected behavior
No error and output:
----------------------------------------------------------------------
Ran 1 test in 0.000s

OK

Additional context
I do not have much context: I find this issue very surprising and did not find any explanation in the Coverage changelog or the CPython changelog.
The issue created on my project is: https://github.com/SylvainDe/DidYouMean-Python/issues/62 .
I understand that this issue is very low priority (or could even be considered as invalid) so I'm not expecting a fix for it but I thought that it may be interested to you (and I'd be happy to learn about the explanation).

The difference in 7.2.7 is that it ships wheels for 3.12, but 7.2.6 did not.  For the earlier version, either you were building the C extension yourself at install time, or you were using the Python tracer instead of the C tracer.
Can you run 7.2.6 on Python 3.12, and show the output of coverage debug sys?

I think the behavior you are seeing is caused by running C code compiled for 3.11.0b1 on an alpha build.

Thanks, this looks like a possible explanation!
For the record, I've launched a CI jobs to get the information you are interested in: https://github.com/SylvainDe/DidYouMean-Python/actions/runs/5126428118 .
We have on alpha:

Python 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
sys.version_info(major=3, minor=12, micro=0, releaselevel='alpha', serial=7)
('CPython', '', '')
pip 23.1.2 from /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/pip (python 3.12)

coverage debug sys || true
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib
-- sys -------------------------------------------------------
               coverage_version: 7.2.6
                coverage_module: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/__init__.py
                         tracer: -none-
                        CTracer: available
           plugins.file_tracers: -none-
            plugins.configurers: -none-
      plugins.context_switchers: -none-
              configs_attempted: .coveragerc
                   configs_read: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                    config_file: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                config_contents: b'[run]\nsource = didyoumean\n'
                      data_file: -none-
                         python: 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
                       platform: Linux-5.15.0-1037-azure-x86_64-with-glibc2.31
                 implementation: CPython
                     executable: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin/python
                   def_encoding: utf-8
                    fs_encoding: utf-8
                            pid: 1799
                            cwd: /home/runner/work/DidYouMean-Python/DidYouMean-Python
                           path: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python312.zip
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/lib-dynload
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages
                    environment: HOME = /home/runner
                   command_line: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin/coverage debug sys
         sqlite3_sqlite_version: 3.31.1
             sqlite3_temp_store: 0
        sqlite3_compile_options: COMPILER=gcc-9.4.0, ENABLE_COLUMN_METADATA, ENABLE_DBSTAT_VTAB,
                                 ENABLE_FTS3, ENABLE_FTS3_PARENTHESIS, ENABLE_FTS3_TOKENIZER, ENABLE_FTS4,
                                 ENABLE_FTS5, ENABLE_JSON1, ENABLE_LOAD_EXTENSION, ENABLE_PREUPDATE_HOOK,
                                 ENABLE_RTREE, ENABLE_SESSION, ENABLE_STMTVTAB, ENABLE_UNLOCK_NOTIFY,
                                 ENABLE_UPDATE_DELETE_LIMIT, HAVE_ISNAN, LIKE_DOESNT_MATCH_BLOBS,
                                 MAX_SCHEMA_RETRY=25, MAX_VARIABLE_NUMBER=250000, OMIT_LOOKASIDE,
                                 SECURE_DELETE, SOUNDEX, TEMP_STORE=1, THREADSAFE=1, USE_URI

(which works)

  coverage debug sys || true
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib
-- sys -------------------------------------------------------
               coverage_version: 7.2.7
                coverage_module: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages/coverage/__init__.py
                         tracer: -none-
                        CTracer: available
           plugins.file_tracers: -none-
            plugins.configurers: -none-
      plugins.context_switchers: -none-
              configs_attempted: .coveragerc
                   configs_read: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                    config_file: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                config_contents: b'[run]\nsource = didyoumean\n'
                      data_file: -none-
                         python: 3.12.0a7 (main, Apr  5 2023, 12:47:07) [GCC 9.4.0]
                       platform: Linux-5.15.0-1037-azure-x86_64-with-glibc2.31
                 implementation: CPython
                     executable: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin/python
                   def_encoding: utf-8
                    fs_encoding: utf-8
                            pid: 1821
                            cwd: /home/runner/work/DidYouMean-Python/DidYouMean-Python
                           path: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python312.zip
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/lib-dynload
                                 /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/lib/python3.12/site-packages
                    environment: HOME = /home/runner
                   command_line: /opt/hostedtoolcache/Python/3.12.0-alpha.7/x64/bin/coverage debug sys
         sqlite3_sqlite_version: 3.31.1
             sqlite3_temp_store: 0
        sqlite3_compile_options: COMPILER=gcc-9.4.0, ENABLE_COLUMN_METADATA, ENABLE_DBSTAT_VTAB,
                                 ENABLE_FTS3, ENABLE_FTS3_PARENTHESIS, ENABLE_FTS3_TOKENIZER, ENABLE_FTS4,
                                 ENABLE_FTS5, ENABLE_JSON1, ENABLE_LOAD_EXTENSION, ENABLE_PREUPDATE_HOOK,
                                 ENABLE_RTREE, ENABLE_SESSION, ENABLE_STMTVTAB, ENABLE_UNLOCK_NOTIFY,
                                 ENABLE_UPDATE_DELETE_LIMIT, HAVE_ISNAN, LIKE_DOESNT_MATCH_BLOBS,
                                 MAX_SCHEMA_RETRY=25, MAX_VARIABLE_NUMBER=250000, OMIT_LOOKASIDE,
                                 SECURE_DELETE, SOUNDEX, TEMP_STORE=1, THREADSAFE=1, USE_URI

(which does not work)

and on beta:

Python 3.12.0b1 (main, May 25 2023, 06:36:39) [GCC 9.4.0]
sys.version_info(major=3, minor=12, micro=0, releaselevel='beta', serial=1)
('CPython', '', '')
pip 23.1.2 from /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/site-packages/pip (python 3.12)

coverage debug sys || true
  coverage debug sys || true
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib
-- sys -------------------------------------------------------
               coverage_version: 7.2.6
                coverage_module: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/site-packages/coverage/__init__.py
                         tracer: -none-
                        CTracer: available
           plugins.file_tracers: -none-
            plugins.configurers: -none-
      plugins.context_switchers: -none-
              configs_attempted: .coveragerc
                   configs_read: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                    config_file: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                config_contents: b'[run]\nsource = didyoumean\n'
                      data_file: -none-
                         python: 3.12.0b1 (main, May 25 2023, 06:36:39) [GCC 9.4.0]
                       platform: Linux-5.15.0-1037-azure-x86_64-with-glibc2.31
                 implementation: CPython
                     executable: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/bin/python
                   def_encoding: utf-8
                    fs_encoding: utf-8
                            pid: 1789
                            cwd: /home/runner/work/DidYouMean-Python/DidYouMean-Python
                           path: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/bin
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python312.zip
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/lib-dynload
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/site-packages
                    environment: HOME = /home/runner
                   command_line: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/bin/coverage debug sys
         sqlite3_sqlite_version: 3.31.1
             sqlite3_temp_store: 0
        sqlite3_compile_options: COMPILER=gcc-9.4.0, ENABLE_COLUMN_METADATA, ENABLE_DBSTAT_VTAB,
                                 ENABLE_FTS3, ENABLE_FTS3_PARENTHESIS, ENABLE_FTS3_TOKENIZER, ENABLE_FTS4,
                                 ENABLE_FTS5, ENABLE_JSON1, ENABLE_LOAD_EXTENSION, ENABLE_PREUPDATE_HOOK,
                                 ENABLE_RTREE, ENABLE_SESSION, ENABLE_STMTVTAB, ENABLE_UNLOCK_NOTIFY,
                                 ENABLE_UPDATE_DELETE_LIMIT, HAVE_ISNAN, LIKE_DOESNT_MATCH_BLOBS,
                                 MAX_SCHEMA_RETRY=25, MAX_VARIABLE_NUMBER=250000, OMIT_LOOKASIDE,
                                 SECURE_DELETE, SOUNDEX, TEMP_STORE=1, THREADSAFE=1, USE_URI

(which works)

  coverage debug sys || true
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib
-- sys -------------------------------------------------------
               coverage_version: 7.2.7
                coverage_module: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/site-packages/coverage/__init__.py
                         tracer: -none-
                        CTracer: available
           plugins.file_tracers: -none-
            plugins.configurers: -none-
      plugins.context_switchers: -none-
              configs_attempted: .coveragerc
                   configs_read: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                    config_file: /home/runner/work/DidYouMean-Python/DidYouMean-Python/.coveragerc
                config_contents: b'[run]\nsource = didyoumean\n'
                      data_file: -none-
                         python: 3.12.0b1 (main, May 25 2023, 06:36:39) [GCC 9.4.0]
                       platform: Linux-5.15.0-1037-azure-x86_64-with-glibc2.31
                 implementation: CPython
                     executable: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/bin/python
                   def_encoding: utf-8
                    fs_encoding: utf-8
                            pid: 1811
                            cwd: /home/runner/work/DidYouMean-Python/DidYouMean-Python
                           path: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/bin
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python312.zip
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/lib-dynload
                                 /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/lib/python3.12/site-packages
                    environment: HOME = /home/runner
                   command_line: /opt/hostedtoolcache/Python/3.12.0-beta.1/x64/bin/coverage debug sys
         sqlite3_sqlite_version: 3.31.1
             sqlite3_temp_store: 0
        sqlite3_compile_options: COMPILER=gcc-9.4.0, ENABLE_COLUMN_METADATA, ENABLE_DBSTAT_VTAB,
                                 ENABLE_FTS3, ENABLE_FTS3_PARENTHESIS, ENABLE_FTS3_TOKENIZER, ENABLE_FTS4,
                                 ENABLE_FTS5, ENABLE_JSON1, ENABLE_LOAD_EXTENSION, ENABLE_PREUPDATE_HOOK,
                                 ENABLE_RTREE, ENABLE_SESSION, ENABLE_STMTVTAB, ENABLE_UNLOCK_NOTIFY,
                                 ENABLE_UPDATE_DELETE_LIMIT, HAVE_ISNAN, LIKE_DOESNT_MATCH_BLOBS,
                                 MAX_SCHEMA_RETRY=25, MAX_VARIABLE_NUMBER=250000, OMIT_LOOKASIDE,
                                 SECURE_DELETE, SOUNDEX, TEMP_STORE=1, THREADSAFE=1, USE_URI

(which also works)

I can confirm that the 7.2.7 wheels for 3.12.0b1 will cause the problem you show for 3.12 alpha builds.  I could add a detailed version support statement to the docs.

That could be an idea. Also, maybe my use case is not that interesting to start with as not many people care about running coverage on alpha versions when beta versions are already released....
Thanks again for your investigation (and obviously, feel free to close the ticket when you've done whatever you want to do)

I'm curious: why are you still running the alphas, now that we have beta 1?

The short answer is that I should probably not bother much.
The long answer is that my project is not maintained anymore except for the fact that it checks a few edge cases of CPython (and Pypy) that are not that well tested. Hence, just in case it can be useful, I make sure that I try it on all versions that I can put my hands on as it makes investigation easier when you can tell quickly that things got broken between Python x.y.z1 and Python x.y.z2.
As a reference: https://github.com/SylvainDe/DidYouMean-Python/blob/master/RelatedPythonIssues.md (at least for 2 of theses issues, I've bothered you with the (wrong) assumption that it was a Coverage bug).


Typo in bias metric (too many values to unpack (expected 2))

❗BEFORE YOU BEGIN❗
Are you on discord? 🤗 We'd love to have you asking questions on discord instead: https://discord.com/invite/a3K9c8GRGt
Describe the bug
I think there is a typo in the bias metric that is causing some issues, here: https://github.com/confident-ai/deepeval/blob/main/deepeval/metrics/bias/bias.py#L164
I think it should be just res = self.model.generate(prompt) since we are not using the native model
To Reproduce
Steps to reproduce the behavior:

Create a custom client from DeepEvalBaseLLM
Execute the bias metric
See error ( too many values to unpack (expected 2) )

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Thank you in advance, you are doing a great job!!!!

Hey @damagode , thanks for the error reporting, i'm wondering do you have the error message in full?

@penguine-ip
{ValueError}ValueError('too many values to unpack (expected 2)')

@damagode i see thanks for bringign it up, fixing !


new post: API Design for Heaps (aka Priority Queues)

Republished from chrisokasaki/scads@e78233ac6a787b7c66b44cd6139392418b214eb9 with the explicit permission of @chrisokasaki.
Changes to the original post:

minor editing
tutification

Thanks to @chrisokasaki for allowing us to republish this.


FIX: hide Trend/URI graphs if report contains only summary info

Codecov Report

Merging #167 into master will decrease coverage by 0.02%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #167      +/-   ##
==========================================
- Coverage    70.7%   70.67%   -0.03%
==========================================
  Files          44       44
  Lines        4096     4099       +3
  Branches      722      724       +2
==========================================
+ Hits         2896     2897       +1
+ Misses        909      908       -1
- Partials      291      294       +3

Impacted Files
Coverage Δ

.../hudson/plugins/performance/reports/UriReport.java
68.94% <0%> (-0.32%)
:arrow_down:

.../hudson/plugins/performance/TrendReportGraphs.java
51.51% <50%> (-0.1%)
:arrow_down:

Continue to review full report at Codecov.

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


Run Options should persist per project

Every time I restart Atom, I have to reconfigure my run options. I propose that script save the run options somewhere in the project so they persist between relaunches.
I'm on Windows 7, on Atom 1.0.0 (current) using script 2.26.0 (current).

have same problem. it is very annoying.
but https://github.com/rgbkrk/atom-script/issues/169

Well, i can offer u temporary solution for cwd. For some reasons, if script can not find correct path in PATHs of your system (it is my case) it uses cwd from run options and doesn't save it after restart . From code it can be seen, that script uses first value of PATH if it can't find any. Setting cwd to first position (first of SYSTEM (not USER) in windows) removes problem with grabbing of correct cwd.

There's a way for packages to serialize state per project, it came out after this package was put together. There's nothing holding it back from saving the options, I think it was suggested in the original #74 too.
@korantir I definitely agree we should persist PATH on restart (and Atom itself probably should keep that on restart).
I'd certainly like to see persistence in the options and PATH.

I don't see how it wasn't implemented this way to begin with. 3 years later its still not addressed. There's a "Script: Save Options" command that does nothing and is not mentioned in the readme.


Update action.yml

You're assuming in a hardcoded way that there's a sync input available when workflow_dispatch is present.
If it's not, input_sync will always become empty. Let's avoid that.

also see https://github.com/milanmk/actions-file-deployer/issues/12


Change syntax highlighting color

Hello, I am using Kawasaki AS Language with VSCODE. However, as shown in the picture, the color is only blue or purple. Even if I want to change the color, it does not change. I would like to know how. thank you

Hi,
Kawasaki AS Language syntax highlighting should be on immediately after installing the extension. However, I've seen some issues related to extension incompatibility. Do you or did you have any other Kawasaki Language Extension installed? If so, try uninstalling the extension to check if that's the case.
Let's also check a few things:

Check that the language selected for the file is Kawasaki AS and nothing different.
Check if changing theme colors in Settings/Extensions/Kawasaki AS Language has effect in the editor.

Thanks for your answer. Color issue fixed. I'm also curious about the behavior when using Ctrl+click in the GOTO command or CALL command. How do I select text after a period appears? The text after the underline is selected differently than the period.

Glad to hear the color issue is fixed. Could you please provide the steps followed to solve it, so no one else bumps into this problem later?

I don't know if the way I did it is correct. After setting up the working folder, a .vscode folder was created and the color problem was resolved.


Add cusp benchmark

Move CuSPARSE benchmarking capacities to the spmv benchmark.

Add all Cusp benchmarks to a file cuda_linops.hpp,
Make all the Cusp classes be gko::LinOp for easy integration;
Control usage of these classes with the flag HAS_CUDA, given only when the
benchmark is compiled with CUDA capacities;
Use dynamic pointer cast of std::shared_ptr<const gko::Executor> to ensure
the Cusp classes are called with a  std::shared_ptr<const gko::CudaExecutor>.
Remove the spmv_comparison_cuda benchmark.
Replace CUDA_VERSION with actual CMAKE_CUDA_COMPILER_VERSION.
Catch exceptions in benchmarks by const reference to get their actual type.
Add a function with specializations to manage the cudaDataType_t such as
CUDA_R_64F.
Use pointer mode HOST for cuspCsrEx as it seems to be required.

Before using the cuSPARSE API, it needs to set CUSPARSE_POINTER_MODE_HOST or move alpha and beta to device.
I prefer the second way because the Ginkgo kernel uses device parameter.

@yhmtsai I using the handles we already have in Ginkgo for each CUDA executor, which sets the pointer to DEVICE mode and everything seems to work properly. Why should it be HOST mode?
https://github.com/ginkgo-project/ginkgo/blob/e1ed14dae236cf4880e1aab418ba8b1784cc8c6e/cuda/base/cusparse_bindings.hpp#L216-L223

@yhmtsai I cannot get cusparseCsrmvEx with the CUSPARSE_ALG_MERGE_PATH algorithm to work whatever I do. I'm a bit puzzled since I believe everything should be done according to the documentation.
https://docs.nvidia.com/cuda/archive/9.2/cusparse/index.html#cusparse-csrmvEx
We use double type, CUSPARSE_OPERATION_NON_TRANSPOSE plus other default parameters, and all data is allocated through cudaMalloc (so properly aligned). All other csr functions work, and this works with the NAIVE algorithm. Since the buffer is not used, even allocating a dummy buffer and not calling cusparseCsrmvEx_bufferSize results in the same problem in cusparseCsrmvEx.
Do you have any idea ?

@tcojean I guess this function only allows CUSPARSE_POINTER_MODE_HOST
I set the scalar in host memory and set the pointer_mode, and then the function works.
Some other try:
I set the buffersize = the value I got in the above statement. it also failed.
set the buffer pointer = nullptr. it also failed

@yhmtsai Thanks for the feedback, I will try with CUSPARSE_POINTER_MODE_HOST and see if it works.

@tcojean Could you also add the description of these cuda formats in https://github.com/ginkgo-project/ginkgo/blob/0c60deec4ce806394fb3287735fad4fb9e7e5c71/benchmark/spmv/spmv.cpp#L76-L95

@yhmtsai this is done, but I did a little bit more. Here is what is in the last commit. You might also want to check it, @thoasm.
Create CuSPARSE bindings for different precisions.

Support IndexType int32
Support ValueType float, double, complex float and complex double.
Add a description of the CuSPARSE benchmarks in the spmv file.


kie-kogito-docs-672: Create a new SonataFlow guide for Knative Eventing Integration with Jobs Service and Data Index

Closes/Fixes/Resolves #ISSUE-NUMBER

Description:

Please make sure that your PR meets the following requirements:

[X] You have read the contributions doc
[X] Pull Request title is properly formatted: Issue-XYZ Subject
[X] Pull Request title contains the target branch if not targeting main: [0.9.x] Issue-XYZ Subject
[X] The nav.adoc file has a link to this guide in the proper category
[X] The index.adoc file has a card to this guide in the proper category, with a meaningful description

How to backport a pull request to a different branch?

In order to automatically create a backporting pull request please add one or more labels having the following format backport-<branch-name>, where <branch-name> is the name of the branch where the pull request must be backported to (e.g., backport-7.67.x to backport the original PR to the 7.67.x branch).

NOTE: backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.
If something goes wrong, the author will be notified and at this point a manual backporting is needed.

NOTE: this automated backporting is triggered whenever a pull request on main branch is labeled or closed, but both conditions must be satisfied to get the new PR created.

Hi @kaldesai , would you mind review this PR?


Releases

It would be good to package update as release, so we can be notified through github notifications system.
releases would also enable software to install these more automatically.

❌Not planned SwitchHosts and Hostsman can be used to receive updates automatically. Github is not being used as a provider but as an info hoster, hence the reason it's raw files are never linked and CDN links are prefered. For updates you can subscribe to the Telegram channel instead.

OK no worries!


Filter "created" does not output date and time

Hello all,
In my config I try to rename the files with the filter "created" and move them to a certain folder.
Unfortunately, no values are output in the variables used.
VID-{created.year}{created.month}{created.day}.{created.hour}-{created.minutes}.{extension.lower}
VID-.-.<built-in method lower of str object at 0xb65aad00>
The file name should then look like this:
Example:
VID-20220210-06-20.mp4
here my config:
  - locations:
      - *downloads
    filters:
      - extension:
          - mp4
          - avi
          - mpeg
          - mpg
          - mov
          - mkv
          - flv
          - m4v
          - 3gp
          - wmv
      - name:
          case_sensitive: false
      - created
    actions:
      - move: '/srv/mergerfs/Pool/Videos/VID-{created.year}{created.month}{created.day}.{created.hour}-{created.minutes}.{extension.lower}'
    subfolders: false

Oh i have not seen #177.
So i changed to lastmodified, but it still not work how I like.
but now i get this error:
20220209_202712_03.mp4
- (echo) 2022-02-09 20:27:24+01:00
- (move) Move to /srv/mergerfs/Pool/Videos/VID-202229.20-.<built-in method lower of str object at 0xb5bf8b20>

@tfeldmann How do i get the timestamp in the filename?

      - *downloads
    filters:
      - extension:
          - mp4
          - avi
          - mpeg
          - mpg
          - mov
          - mkv
          - flv
          - m4v
          - 3gp
          - wmv
      - name:
          case_sensitive: false
      - lastmodified
    actions:
      - echo: "{lastmodified}"
      - move: '/srv/mergerfs/Pool/Videos/VID-{lastmodified..strftime('%Y-%m-%d')}-{lastmodified.timestamp() | int}.{extension.>#      - move '/srv/mergerfs/Pool/Videos/{lastmodified}.{extension.lower}'
    subfolders: false

now i get the following error:
ScannerError: while scanning for the next token
found character '%' that cannot start any token
in "", line 75, column 71:
... os/VID-{lastmodified..strftime('%Y-%m-%d')}-{lastmodified.timest ...

And it should be {extension.lower()} instead of {extension.lower}

Did not work :/
ValueError: Invalid action {'move':
"/srv/mergerfs/Pool/Videos/VID-{lastmodified..strftime('%Y-%m-%d')}-{lastmodified.timestamp() | int}.{extension.lower()}"}
(expected name or number)

You have two .. there:
{lastmodified..strftime('%Y-%m-%d')}


Question/Feature Request - Non GitHub

Hey man, this is really cool.
Is it possible to scan local repositories, or repositories not hosted on GitHub?
Cheers

Fow now it's only possible to scan repos on Github, but I could look into supporting local repos too. I will probably consider other code hosting sites out of scope for the time being, though.
Thanks for your input!

Local repositories would be awesome - is there a way to manually do a workaround? If it clones a repository locally first, presumably there's something we can do?

@nickmalcolm @skim-milk This has been moved to the new fork as this project is no longer maintained. Please feel free to open up requests or bugs in that repo going forward. Thanks!

@mattyjones could you link the corresponding issue? I can’t find it on the issue board.

@gergelypolonkai mattyjones/gitrob#22


Federated plugins issue

I have implemented a package in pure dart and flutter, and uses isolates and sqflite in this package. Isolates and sqflite aren't supported in flutter web, so I was thinking to write the web plugin side of this package but I'm having a issue defining the android plugin in pubspec.yaml.

Pubspec configuration says that I have to provide package and plugin class name, but as the I don't have any specific implementation for any platform. I'm writing a package that will support the plugin out of the box on Android, iOS and Web.

If I write like this

 name: unevalib
 description: A new Flutter package.
 version: 0.0.1
 author:
 homepage: "adf"

 environment:
   sdk: ">=2.1.0 <3.0.0"

 flutter:
   plugin:
     platforms:
       android:
         default_package: unevalib
       ios:
         default_package: unevalib
       web:
         default_package: unevalib_web

 dependencies:
   flutter:
     sdk: flutter
   flutter_web_plugins:
     sdk: flutter
   unevalib_platform_interface:
     path: ../unevalib_platform_interface
   unevalib_web:
     path: ../unevalib_web

It doesn't works and throws error
../../../programs/flutter/packages/flutter_web_plugins/lib/src/plugin_registry.dart:29:5: Error: Method not found: 'webOnlySetPluginHandler'.
    ui.webOnlySetPluginHandler(_binaryMessenger.handlePlatformMessage);

I know the above method is wrong. but I don't have any android or iOS code for this plugin. Just all dart code inside this package unevalib.

The official document says to write like this.

flutter:
  plugin:
    platforms:
      android:
        package: com.example.hello
        pluginClass: HelloPlugin
      ios:
        pluginClass: HelloPlugin
      macos:
        pluginClass: HelloPlugin
      web:
        pluginClass: HelloPlugin
        fileName: hello_web.dart

I don't know how to tell the plugin that this package supports android and iOS in dart only.
Please provide a way to define that unevalib package is for android and iOS and unevalib_web package is for web.

P. S. : I have successfully integrated the web part but platform integration failing in android.

I am also having this problem. I made a plugin where the Android part implementation uses MethodChannel and the iOS one uses pure Dart. I also tried to make something like you did in (2), but didn't work.
For now, I am going to use Platform.isIOS and Platform.isAndroid, but it would be nice to be able to use separately packages for each implementation like we can do with web.

Duplicate of https://github.com/flutter/flutter/issues/52267


My WebVR app looks weird on iOS

There is a skybox and it doesn't look how it looks on every other platform besides iOS.
Not sure what is causing it.
http://alpha.vrchive.com/image2/Ou

Could you elaborate? What's the specific problem you're seeing? What makes you think this is a webvr-boilerplate issue and not a WebGL one?

If this is still happening, please re-open.

It is only for certain images in Safari I've noticed.
see: http://alpha.vrchive.com/image/OG
then compare to http://alpha.vrchive.com/image/dC
On Sat, Aug 8, 2015 at 2:52 PM, Boris Smus<EMAIL_ADDRESS>wrote:

If this is still happening, please re-open.
—
Reply to this email directly or view it on GitHub
https://github.com/borismus/webvr-boilerplate/issues/28#issuecomment-129078987
.

I can't reproduce in iOS 9. Also, please upgrade to the latest. There's a
pose predictor now which greatly improves head tracking (especially in iOS
9), where sensor update rate is high.
On Sat, Aug 8, 2015 at 6:00 PM articulite<EMAIL_ADDRESS>wrote:

It is only for certain images in Safari I've noticed.
see: http://alpha.vrchive.com/image/OG
then compare to http://alpha.vrchive.com/image/dC
On Sat, Aug 8, 2015 at 2:52 PM, Boris Smus<EMAIL_ADDRESS>wrote:

If this is still happening, please re-open.
—
Reply to this email directly or view it on GitHub
<
https://github.com/borismus/webvr-boilerplate/issues/28#issuecomment-129078987
.

—
Reply to this email directly or view it on GitHub
https://github.com/borismus/webvr-boilerplate/issues/28#issuecomment-129079193
.

Ok will do! Thanks Boris!
On Sun, Aug 9, 2015 at 3:53 PM, Boris Smus<EMAIL_ADDRESS>wrote:

I can't reproduce in iOS 9. Also, please upgrade to the latest. There's a
pose predictor now which greatly improves head tracking (especially in iOS
9), where sensor update rate is high.
On Sat, Aug 8, 2015 at 6:00 PM articulite<EMAIL_ADDRESS>wrote:

It is only for certain images in Safari I've noticed.
see: http://alpha.vrchive.com/image/OG
then compare to http://alpha.vrchive.com/image/dC
On Sat, Aug 8, 2015 at 2:52 PM, Boris Smus<EMAIL_ADDRESS>wrote:

If this is still happening, please re-open.
—
Reply to this email directly or view it on GitHub
<

https://github.com/borismus/webvr-boilerplate/issues/28#issuecomment-129078987

.

—
Reply to this email directly or view it on GitHub
<
https://github.com/borismus/webvr-boilerplate/issues/28#issuecomment-129079193

.

—
Reply to this email directly or view it on GitHub
https://github.com/borismus/webvr-boilerplate/issues/28#issuecomment-129271197
.


Fix member types of RESDIR structure

The corrected types match GRPICONDIRENTRY from here and GRPICONDIRENTRY from here and empirically match what the RC compiler outputs.

@microsoft-github-policy-service agree


Resolve auto-generated INFOPLIST_FILE

Motivation and Context
~This PR relied on #681. Please review first #681 before this.~
In the same situation as #681, Info.plist paths are also wrong.
$ xcodegen -p ./GeneratedProjects

INFOPLIST_PATH was relative path from the project spec.
https://github.com/yonaskolb/XcodeGen/pull/681#issue-325748881
Description
Use related path for auto-generated INFOPLIST_FILE settings and added tests.

Ready for review ✨

Thanks!


Several date formatting issues (no TZ conversion, no i18n)

Issue Summary
There are several places in the python code, where strftime("%d %b %Y %H:%M") is used to format dates. This does not convert the date to the currently active timezone nor does it use the current language.
For example, if you access a scheduled/locked page, the notification at the top does not use the correct TZ (should be Europe/Vienna, not UTC in that example) and it's in english instead of german (see the correct date in the status panel on the right):

Possible Solution
In the templates you normally use the date filter from django, in wagtail most dates use the human_readable_date tag, which uses this template, which uses django's date filter.
So I think we should convert those dates to local time using django's django.utils.timezone.localtime() and use django.utils.formats.date_format() to format it.
When searching for strftime("%d %b %Y %H:%M"), I've basically found two categories of usages:
1) Easy to fix:
Usages which are rendered directly, e.g. all session messages, for example
https://github.com/wagtail/wagtail/blob/5a249d4e9c65ec742c8e920d44f2fda2038395e3/wagtail/locks.py#L47-L51
2) Harder to fix (conceptual bugs):
Update: Fixing the correct formatting/timezone was easy (see #9590), but we should create a ticket to improve the storage of those timestamps.
Unfortunately, there are also some usages (only for audit logging I think), which are probably harder to fix, because the dates are actually stored in that format:
https://github.com/wagtail/wagtail/blob/5a249d4e9c65ec742c8e920d44f2fda2038395e3/wagtail/actions/publish_revision.py#L57-L72
I assume that's the case, because that storage is not really typed and it was easier to just use those ready-to-use date strings later.
Changing this in a clean way would probably require to store these dates in a standardized date string and convert all existing dates with a migration.
Steps to Reproduce
To reproduce the above example from the screenshot:

In your new virtualenv: pip install wagtail && wagtail start mysite && cd mysite && pip install -r requirements.txt && ./manage.py makemigrations && ./manage.py migrate && ./manage.py createsuperuser && ./manage.py runserver
Login to the CMS
Go to the account settings, and at least change the timezone to something other than UTC (you could change the language to non-english later).
Add a new page (http://<IP_ADDRESS>:8000/admin/pages/add/home/homepage/3/) and save it as a draft.
Set a schedule by using the side panel and configure a date in the future. Publish (schedule) the page.
Open the edit-page again and find the now locked page with the notification.

I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: yes

Technical details

Python version: 3.10, 3.11
Django version: 3.2, 4.1.3
Wagtail version: 4.0.4, 4.1
Browser version: Firefox 106

Fyi: I think the 2. category is probably not hard to fix, I haven't looked at the outputting code yet, but we can parse the date, make it tz aware and convert it to local tz.

We could use django.template.defaultfilters.date on the Python side.
from django.template.defaultfilters import date

date(value, "DATETIME_FORMAT")
date(value, "DATE_FORMAT")
date(value, "TIME_FORMAT")

Gives the EXACT SAME output as the template variant:
     {{ value|date:'DATETIME_FORMAT' }}
     {{ value|date:'DATE_FORMAT' }}
     {{ value|date:'TIME_FORMAT' }}

It respects the active locale does apply the current timezone conversion and date/time formatting rules.
It even respects the formats.py if the developer decides they want specific datetime formats in their projects.

@allcaps Yes, that was my initial idea too and I've tried that, but there is a major issue here: the date filter only converts the date to local time if used in the templates, so it looks like expects_localtime=True is only applied by the template engine.
I've actually used that in some projects too, so that was a good learning for me :+1:

Helllo, May you please let me know the steps that you used to fix the date & time zone issue using Django
https://github.com/th3hamm0r

@Zeki-Abdulhamid this is not a good first issue. And there is a draft PR (#9590) for it

I wanted to mention that this is an issue for my org as well.


[BUG] getColumn().width doesnt return correct value

🐛 Bug Report

Lib version: 3.8.0
Steps To Reproduce
In my excel, the 2th column width is 34.86 (character counts) but when I use Exceljs to get that column width, it returned 35.5703125.
Please take a look at my file and code.
const ExcelJS = require("exceljs");
const workbook = await new ExcelJS.Workbook().xlsx.readFile("test.xlsx");
const worksheet = workbook.worksheets[0];
console.log(worksheet.getRow(3).height);
console.log(worksheet.getColumn(2).width); // should return 34.86

test.xlsx
And sometimesgetRow().height returns undefined depends on the index of row. Is this a bug of exceljs ?
The expected behaviour:

getColumn(2).width should return correct value
getRow().height should not return undefined

the differences is not an issue of exceljs, this is caused by the computed way of width and height, it is related to resolution. when you rename your excel file to xxx.zip, then unzip it, find the sheet1.xml, you will find that the real width is 35.5703125 but not 34.86  which show in excel. Exceljs just returned the real value of excel file, but not change it.

when not set row height, then get the global default row height:

worksheet3.properties.defaultRowHeight

excel js provide width and height in pixels.
character count is an additional solution to Excel.


[Feature] Paimon Rust

Search before asking

[X] I searched in the issues and found nothing similar.

Motivation
It's extremely difficult for non-JVM languages like Rust and Python to interact with Paimon tables.
If we implement Paimon in Rust, it will enable a lot of use cases.
For instance, we could facilitate reading and writing Paimon data within Databend (in Rust) and DuckDB (in C++). Additionally, by creating paimon-py based on paimon-rust, we can make Paimon accessible in Python environments.
Solution
Create a pure rust implementation of the paimon spec similar to Iceberg project: iceberg-rust.
Anything else?
I'm willing to help make it happen. We can start by creating a paimon-rust repo.
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

The work has been started at https://github.com/apache/paimon-rust, welcome to join in!

The tracking issues of paimon-rust 0.1 release, welcome to check out: https://github.com/apache/paimon-rust/issues/3


Google Docs is not readable

The https://github.com/osmlab/labuildings page points to this page
https://docs.google.com/spreadsheets/d/1A3whba04_-3K0z77nGHYavIwYpWjnyAaInwWie3HSVA/edit#gid=1971401153 .  The page says, "You need permission  Want in? Ask the owner for access, or switch to an account with permission."

@drkludge, i set it for viewing to the public, does it work now?

Thank you.  I can read the document now.


Gas optimisations

Save ~85564 gas across function calls in the test suite. Most notisable improvements are found in Dispatcher.sol, with an average of 7% cost reductions with recvPacket seeing an 11% gas reduction.
For an overview of difference between gas reports, see:
https://docs.google.com/spreadsheets/d/1GHleuGHfqNIN7fHs8T7KiOKs8WH-fdGElh0ysYavanY/edit?usp=sharing
There are more savings to be hand with unchecked, however, I couldn't figure out the strict bonds. Over all: The implementation is already pretty optimised.

Summary by CodeRabbit

New Features

Introduced new data structures for packet sequences and commitments in the Dispatcher contract.
Added immutable modifiers to critical variables across contracts for enhanced security and efficiency.

Refactor

Improved data construction for packet transmission using bytes.concat in multiple contracts.
Optimized loop iterations in the Universal Channel Handler and Ibc contracts for better performance.
Reorganized mappings and updated constructor in the Dispatcher contract for clarity and functionality.

Bug Fixes

Fixed loop progression issue in the Universal Channel Handler contract.

Tests

Adjusted function signature in Dispatcher contract tests for consistency.

Hey @reednaa , after a discussion with @dshiell, we decided we should hold off on the more complicated unchecked math, mainly because it's not quite worth the over/underflow potential, and the cost reductions aren't a ton considering we're first deploying on L2s. I also think we'll soon refactor this code to use OZ's string libaries anyways.
If you can get rid of the unchecked math (I think for the for loops where it's probably fine), and also address my new constructor payable comment - I can approve this PR!

@reednaa - What does the gas reduction percent look like without the unchecked math? If we still get the majority of the efficiency from other changes then maybe we can split the unchecked math optimizations into another PR to reduce any risks in the short term while still gaining most of the efficiency.

They shouldn't be significant. The majority of the savings comes from immutable storage and the boolean struct.

closing this PR for now, will have gas optimizations very soon!


Vectors in Serialized Documents Don't Provide all Colors

This is a little difficult to describe, so a picture is helpful:

In the image above, the arrow is represented by a single Vector element (see the left column)
But there are two colors associated with this Vector.
Two colors are associated with this vector. See the right column. These are 68DB6D (green) and FFFFFF (white), for the outer circle and inner arrow respectively.
The problems arise in the serialized document result of the fetch tool`. In the serialized design document, the Vector itself is separated into two groups of points, one for the outer circle, and one for the inner arrow. But only one Color is present (white). We must be packing only the last one.
This is difficult to see outside the debugger but I was able to trace! our traversal through the serialized document:
DisplayList.rs visit ---> Node Name: #telltale/left-blinker
..
2024-04-23T04:23:44.703Z TRACE [harry::render_displaylist] There are 1 background colors provided for this vector path.
...

I'm assuming for a Vector with N paths, it should have (somewhere) N colors.
This is a simple case however, with only "fill" style paths. I think we might have more complex cases where there are both fills and strokes, so I think we may have to pack all the N fill colors and the M stroke colors in a different place, probably a dedicated struct for each.

Interesting find! Does that mean that the Kotlin renderer is also unable to draw this with both colors? I don't recall this happening, but maybe we also never used a Vector like this with multiple colors?

Ok, I found this node, and it's a vector network with mixed fills. To render this correctly, we need to add support for the fillOverrideTable and overrideID properties of vectors:
            "fills": [
              {
                "blendMode": "NORMAL",
                "type": "SOLID",
                "color": {
                  "r": 1,
                  "g": 1,
                  "b": 1,
                  "a": 1
                }
              }
            ],
            "fillOverrideTable": {
              "1": {
                "fills": [
                  {
                    "blendMode": "NORMAL",
                    "type": "SOLID",
                    "color": {
                      "r": 0.4077083468437195,
                      "g": 0.8583333492279053,
                      "b": 0.4257333278656006,
                      "a": 1
                    }
                  }
                ]
              },
              "2": null
            },
            "fillGeometry": [
              {
                "path": "M0 38.5C0 17.237 17.237 0 38.5 0C59.763 0 77 17.237 77 38.5C77 59.763 59.763 77 38.5 77C17.237 77 0 59.763 0 38.5Z",
                "overrideID": 1,
                "windingRule": "NONZERO"
              },
              {
                "path": "M60.1562 38.4129L37.5803 19.25L37.5803 30.3993L21.6562 30.3993L21.6562 46.6007L37.5803 46.6007L37.5803 57.75L60.1562 38.4129Z",
                "windingRule": "NONZERO"
              }
            ],

So one path is using a fill override of 1, which corresponds to the green fill. We don't support that yet, so we'll get a white fill for the whole node.


Added option to disable padding animation on item change

Noticed that having dynamic padding for the item is not looking nice when you want to have an item in the center.
Before

Not Selected
Selected

This PR

Not Selected
Selected

dynamic padding animation by @buraktabn


IE 10-11 ignore flex shorthand declarations that use calc.

This can be worked-around by not using the shorthand if you need to use calc. For example:
.FlexItem {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc(100%/3);
}

Closed via cbba10d1aa8c4fe17ba376a506d5c845e83559b3.


Delete files specified in .gitignore

.gitignore was introduced by the template after some files leaked to the repo, for example inside .ipynb_checkpoints directory. I propose to make files and .gitignore consistent and delete what we don't need

Fixed by #11, thank you @delucchi-cmu


logorus or other log for logging in ginkgo

Probably something like using logrus would be a good fit here.
Originally posted by @saschagrunert in https://github.com/SUSE/skuba/pull/280

not exactly the same thing, but closing this in favor of https://github.com/SUSE/avant-garde/issues/622 . If this is still relevant refile in that project.


Fix Alert memory usage

I was notified of major memory usage, as per here. This should fix it.

Okay, NOW I have the correct repo 😅


Water Leak Values Issue

[10/27/2022, 9:55:41 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:55:46 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:55:46 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:55:46 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:55:51 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:55:51 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:55:51 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:55:56 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:55:56 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:55:56 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:56:01 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:56:01 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:56:01 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:56:06 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:56:06 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:56:06 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:56:11 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:56:11 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:56:11 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:56:16 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:56:16 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 9:56:16 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
[10/27/2022, 9:56:21 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 9:56:21 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
Current States
tamper: clear
battery: 99 %
water: dry
checkInterval: 29400 s
temperature: 74 F

[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is<PHONE_NUMBER>044
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 0
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling...
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is<PHONE_NUMBER>044
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Converting temp to celcius
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 23.333333333333336
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling...
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is<PHONE_NUMBER>044
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak

When you run in debug, you should also see something like this:
Updated status for Zooz 4-in-1 sensor: {"relativeHumidityMeasurement":{"humidity":{"value":48,"unit":"%","timestamp":"2022-10-27T14:32:38.883Z"}},"temperatureMeasurement":{"temperature":{"value":75.3,"unit":"F","timestamp":"2022-10-27T14:32:38.767Z"}},"refresh":{},"motionSensor":{"motion":{"value":"inactive","timestamp":"2022-10-27T14:29:39.372Z"}},"illuminanceMeasurement":{"illuminance":{"value":369,"unit":"lux","timestamp":"2022-10-27T14:35:37.960Z"}},"battery":{"battery":{"value":null}},"tamperAlert":{"tamper":{"value":"clear","timestamp":"2022-10-27T13:53:14.723Z"}}}
I would need to see this.  You can look for the name of the device to find this.  I need to see all of this.

On Oct 27, 2022, at 11:40 AM, coryabooth @.***> wrote:
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is<PHONE_NUMBER>044
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 0
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling...
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is<PHONE_NUMBER>044
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Converting temp to celcius
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] State for Water Main Leak: 23.333333333333336
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak polling...
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Received getSensorState() event for Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Refreshing status for Water Main Leak - current timestamp is<PHONE_NUMBER>044
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Water Main Leak returned bad value for status
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Bad status from Water Main Leak
[10/27/2022, 10:38:35 AM] [Smartthings Plug (IK)] Poll failure on Water Main Leak
—
Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/63#issuecomment-1293723708, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EW6LYKO4STO3TKNCD3WFKO73ANCNFSM6AAAAAARQE53OM.
You are receiving this because you commented.

[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Water Main Leak: {"configuration":{},"relativeHumidityMeasurement":{"humidity":{"value":null}},"waterSensor":{"water":{"value":"dry","timestamp":"2022-08-22T00:25:23.424Z"}},"healthCheck":{"checkInterval":{"value":29400,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","deviceScheme":"TRACKED"},"timestamp":"2022-08-22T21:49:42.324Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"temperatureMeasurement":{"temperature":{"value":74,"unit":"F","timestamp":"2021-10-06T17:48:53.027Z"}},"sensor":{},"battery":{"battery":{"value":99,"unit":"%","timestamp":"2022-10-27T05:09:10.033Z"}},"tamperAlert":{"tamper":{"value":"clear","timestamp":"2022-08-22T00:22:47.391Z"}}}
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Battery value from Water Main Leak: 99
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Water Main Leak polling...
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Upper Main: {"indicator":{"indicatorStatus":{"value":"when on","timestamp":"2022-01-05T03:14:47.826Z"}},"actuator":{},"light":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}},"healthCheck":{"checkInterval":{"value":1920,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","offlinePingable":"1","deviceScheme":"TRACKED"},"timestamp":"2022-01-05T03:14:46.320Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"refresh":{},"sensor":{},"switch":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}}}

The issue is that the device is returning “null” for humidity: relativeHumidityMeasurement":{"humidity":{"value":null}}.
The sensor reports that it supports the humidity capability, but it isn’t returning a valid value.  So this is working as intended.  The other aspects of the sensor are usable in home kit.  So this is just a warning.
In a future version, I’ll allow the user to silence these warnings.

On Oct 27, 2022, at 12:10 PM, coryabooth @.***> wrote:
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Water Main Leak: {"configuration":{},"relativeHumidityMeasurement":{"humidity":{"value":null}},"waterSensor":{"water":{"value":"dry","timestamp":"2022-08-22T00:25:23.424Z"}},"healthCheck":{"checkInterval":{"value":29400,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","deviceScheme":"TRACKED"},"timestamp":"2022-08-22T21:49:42.324Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"temperatureMeasurement":{"temperature":{"value":74,"unit":"F","timestamp":"2021-10-06T17:48:53.027Z"}},"sensor":{},"battery":{"battery":{"value":99,"unit":"%","timestamp":"2022-10-27T05:09:10.033Z"}},"tamperAlert":{"tamper":{"value":"clear","timestamp":"2022-08-22T00:22:47.391Z"}}}
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Battery value from Water Main Leak: 99
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Water Main Leak polling...
[10/27/2022, 10:36:31 AM] [Smartthings Plug (IK)] Updated status for Upper Main: {"indicator":{"indicatorStatus":{"value":"when on","timestamp":"2022-01-05T03:14:47.826Z"}},"actuator":{},"light":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}},"healthCheck":{"checkInterval":{"value":1920,"unit":"s","data":{"protocol":"zwave","hubHardwareId":"000F","offlinePingable":"1","deviceScheme":"TRACKED"},"timestamp":"2022-01-05T03:14:46.320Z"},"healthStatus":{"value":null},"DeviceWatch-Enroll":{"value":null},"DeviceWatch-DeviceStatus":{"value":null}},"refresh":{},"sensor":{},"switch":{"switch":{"value":"off","timestamp":"2022-08-20T14:31:42.259Z"}}}
—
Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/63#issuecomment-1293760870, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EXS5EPTQJWYMSJDCGLWFKSPBANCNFSM6AAAAAARQE53OM.
You are receiving this because you commented.


Nixoflife

A nix version for game of life thus far.
Still has all the rust code in lib.rs, will change soon sense this is software construction. Not warm yet. But, it should work every single time.

You can also declare the Rust dependencies with https://github.com/cargo2nix/cargo2nix

You can also declare the Rust dependencies with https://github.com/cargo2nix/cargo2nix

Going to need to look into that. Either way this should work for now.

I should not do things at 1 in the morning. face palm


Fields validation

Adding Fields level validation and warning.
validate and warn props can get an array of objects. Each object will have the fields name and the function(s) to run.
Example:
<Fields
  names={['field-1', 'field-2']}
  component={MyComponent}
  validate={[
    {
      name: 'field-1',
      funcs: myRequiredFunction,
    },
    {
      name: 'field-2',
      funcs: myRequiredFunction,
    },
  ]}
  warn={[
    {
      name: 'field-1',
      funcs: myWarnFunction,
    }
  ]}
/>

Close #3492

@EvgeneOskin any news on this PR ?

@sbogdaniuk Yes, I've fixed codeclimate checks. All checks pass 😄

@EvgeneOskin can we go further and use validation and warn for each field
PropTypes
validate: PropTypes.oneOfType([
    PropTypes.func,
    PropTypes.arrayOf(PropTypes.func),
    PropTypes.objectOf(PropTypes.func),
]),

Usage
<Fields
    names={['facebook', 'twitter']}
    component={FormSocials}
    format={plainFormat}
    validate={url}
/>

<Fields
    names={['facebook', 'twitter']}
    component={FormSocials}
    format={plainFormat}
    validate={{
        facebook: url,
        instagram: [required, url],
    }}
/>

Use cases
if we pass PropTypes.func or PropTypes.arrayOf(PropTypes.func), we use validation for each field
if PropTypes.objectOf(PropTypes.func), we will take it from object {[name]: func | [func]}

@sbogdaniuk Thank for your review!
I think, we can go further. I will update this pull request.

@erikras any thoughts on this?

Intriguing idea. Add some tests and docs and we can merge this in.

Hi @erikras,
I've added some tests and a documentation:smile:

The documentation seems wrong (just copied from Field); there's no explanation of keyed objects, for example.

We would find this really useful in our project. Is there anything we can do to help move this along?

Does this need to be implemented for immutable Fields as well to maintain parity?

@erikras I've updated the documentation and fixed merge conflicts.

@ah-adarlow As far as I understand, it works with immutable fields without additional changes.

@ah-adarlow @erikras anything else we could do to help get this one in?

Just FYI, I'm not a maintainer or anything, just an interested party. I've had this code in our codebase for over a month now and it's been working fine. I would love to have an official release instead.

Apologies for messing this up, but if you could resubmit this against the new master, I would merge it. A lot changed recently. 🙏

Sure, @erikras. I've resubmitted it – #4301.


Unable to import in Next 15 due to registerApolloClient

Hi,
It looks like @apollo/experimental-nextjs-app-support is throwing an error where it can't find registerApolloClient.
Not sure if it's because of it importing from index.ssr.js vs. another file, or what I'm doing wrong.
Would appreciate some help!
Thanks!
Code:

Server Error:

I had to pass the use server directive in that file for the import to work and it no longer crashes.

but it does cause a type error here

it builds/works in dev, but not sure if that's how it's supposed to be.
here's the index.ts that exports things (this is all in a transpiled next.js package)

and how it gets exported in the package.json

not sure if any of this helps, but trying to give you some context of how it's used

Yeah, you definitely shouldn't use the "use server", it turns everything there into server functions, not server components.
I assume that your index.ts here is the problem - if you import anything from a barrel file like that into a "use client" file, that turns everything there into "client side" code, which will then crash, even if it was only meant for the server and never for the client.
I'm afraid, but with RSC/Next.js you can't use barrel files like that - you either have to create a index.rsc.js and index.cc.js (or similar), or - probably even better for your bundle size - stop using barrel files altogether.

Got it, that makes perfect sense - thanks a lot @phryneas !


Add constructor inject on CounterViewModel and remove AndroidViewModel

This is an attempt to remove Application out of CounterViewModel to make it easier to write unit test

Sorry it took a while for me to get to this...
I'm not sure I understand the point of this change. AppDatabase relies on Context, so it doesn't really change the testing story at all - you'll still need to run the tests on device.


feat: renovate for rpm-ostree and gsconnect

feat(renovate, staging): rpm-ostree automation
feat(renovate, staging): gsconnect automation

Why did we even have a rpm-ostree staging package? It does not seem to get used on bluefin at least...

It's there for when we need to carry a patch, bazzite carried a status patch for a while, etc. We don't use it often, but nice to have.


OLS-230: Script to generate OpenAPI schema + Makefile target to call this script

Description
Script to generate OpenAPI schema + Makefile target to call this script
Type of change

[ ] Refactor
[x] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library

Related Tickets & Documents

Related Issue #OLS-230

Checklist before requesting a review

[x] I have performed a self-review of my code.
[x] PR has passed all pre-merge test jobs.
[ ] If it is a core feature, I have added thorough tests.

Testing

Call make schema from command line to generate OpenAPI schema

/approve


bugfix: host_policy 接口鉴权 (fixed #56)

Codecov Report

Merging #59 (74ec3d5) into V2.1.342rc (15bdf4a) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@              Coverage Diff               @@
##           V2.1.342rc      #59      +/-   ##
==============================================
- Coverage       58.93%   58.92%   -0.01%
==============================================
  Files             394      394
  Lines           25899    25901       +2
==============================================
- Hits            15264    15263       -1
- Misses          10635    10638       +3

Impacted Files
Coverage Δ

apps/node_man/handlers/permission.py
29.23% <0.00%> (-0.46%)
:arrow_down:

apps/node_man/handlers/job.py
86.35% <0.00%> (-0.25%)
:arrow_down:

Continue to review full report at Codecov.

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


Updated to reflect the latest research

[x] Update the title
[x] Add code for new tasks

Update complete!


Internal Page Links not preserved on xml export/import

When exporting as xml, and then importing into a new file, links that point to internal pages appear as "Page Not Found."

This works for me. Can you attach a test case?


support multiple databases

How do you support multiple databases?

I don't think that issue has been dealed with. If you have the time, I would appreciate it if you could submit a PR


Secure conversations welcome screen file attachment

Add file attachment functionality to secure conversations welcome screen.
MOB-1723

Can you please recheck CAMERA permission related stuff

By the way, I checked, and we can request to take a picture without CAMERA permission for API >= 24, ours is 24.

!squash


Walkthrough does inconsistent capitalizing in German

The street-attributes oneway and maxspeed translate to the german words Einbahnstraße und Höchstgeschwindigkeit. These are presented with and without capitalized first letter in the walkthrough:

Ah, thanks for raising this, I forgot that capitalization works differently in German and some other languages.
I'll change those to use quoted strings instead.


Variable pointers cannot be an operand to OpArrayLength

To fix: #2107

@sarahM0 Are you still working on this?

@sarahM0 Are you still working on this?

I'm busy with Amber-Dawn so I won't work on it for a while. Feel free to close this.