text:
Automator: update proxy@master in istio/istio@master

Generated by Automator - 2023-07-31T17:20:18+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
79bcba59f9e34055746917337b9ab69ffce4b646
link
true
/test unit-tests

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

/test unit-tests

source: gharchive/pull-request

authors: ericvn istio-testing

repo: istio/istio

license_type: permissive

license_source: github-api


text:
move stateful set filter to per route filter

This PR

Moves the Statefulsession filter to per route instead of per virtual host

Decides based on route destination i.e. if the route destination service has labels attached this filter will be added. Without this, the stateful session filter wont be generated for virtual hosts that are generated based on virtual service hosts.

Added tests to cover these flows

[ ] Ambient

[ ] Configuration Infrastructure

[ ] Docs

[ ] Dual Stack

[ ] Installation

[ ] Networking

[ ] Performance and Scalability

[ ] Policies and Telemetry

[ ] Security

[ ] Test and Release

[ ] User Experience

[ ] Developer Infrastructure

@ramaraochavali: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test release-notes

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

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test release-notes

unit-tests-arm64_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test unit-tests-arm64

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

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test release-notes

unit-tests-arm64_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test unit-tests-arm64

unit-tests_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test unit-tests

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

@ramaraochavali: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test unit-tests-arm64

unit-tests_istio
511ef4384c927680edce24053bd559a8cc2b9f61
link
true
/test unit-tests

release-notes_istio
96acff9e07bd4bfbbced0a4fb3f1dcfefdf33ad3
link
true
/test release-notes

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

/test release-notes

Ok to approve it after we clarify the semantics and backward compat impact, may be best to review alongside release notes.

@costinm retained the old behaviour for BC and added comments. PTAL

@costinm Can you PTAL?

@costinm @hzxuzhonghu @howardjohn Can you PTAL when you get chance?

While setting all route filters with same stateful session, and also same statefulset in virtualHost level. Isn't it equal to the VirtualHost level config before?

Earlier solution does not add stateful session filter for all "hosts" defined on virtual service - and hence it does not apply to all routes. This fixes that. Please see the test case

I know that, what I mean is when vs hosts equals the service hostname, then it will apply same filter to both virtualHost and per route level.  Is that redundant?

I know that, what I mean is when vs hosts equals the service hostname, then it will apply same filter to both virtualHost and per route level. Is that redundant?

It is but does not make any behavioural difference. Long term, for us it would be better to move to per route.

@hzxuzhonghu Can you PTAL when you get chance?

Last question will per route filter take precedence over virtualhost one?

I am aksing because i think if user setup simiar case like different matching to apply different headers, but all route to one same service, then maybe he only need to apply the filter to per virtualHost

yes. per route takes precedence over per virtual host. I think those are cases which can not easily solved with simple env var. We need proper API

@hzxuzhonghu @costinm gentle ping Can you PTAL?

I am concerned that this may not be the eventual ideal prototype.
SVC A ->Detination with SVCB
->Detination with SVCC
->Detination with SVCD, here we would choose oneof  B or C Or D's affinity policy to apply.

here we would choose oneof B or C Or D's affinity policy to apply.

Not exactly. It is based on your destination. If your destination is B - we use B's affinity policy for that route which makes sense to me.

SVC A's Route  matching xxx -> SVCB (40%)
                     ->  SVCC (30%)
                     ->  SVCD(30%)

In this example, it may choose  B or C Or D's affinity policy to apply.

In this example, it may choose B or C Or D's affinity policy to apply.

Correct. It is tricky to configure for weighted destinations pointing to different destinations. As I said most common use case is to use same destination but different versions

Yes, it is not common. One case probably split some traffic to canary release.

@hzxuzhonghu What do you suggest? IMO this is a decent fix that would solve some important use cases for us(except the weighted confusion which we agree that it is rare use case)

@hzxuzhonghu Ok. Changed. PTAL

Thanks
/lgtm

authors: costinm hzxuzhonghu istio-testing ramaraochavali


text:
removed unused const

Please provide a description of this PR:
Removed some unused const

@my-git9: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
fc127385cd3575f022432c5264299b8e094e1c4e
link
true
/test lint

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

@my-git9: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
fc127385cd3575f022432c5264299b8e094e1c4e
link
true
/test lint

unit-tests-arm64_istio
1cb15980e1d58fbb829da0594ed612444ba3f3d5
link
true
/test unit-tests-arm64

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


text:
Port the existing e2e smoke test (may be others) to the new mixer adapter 0.2 model

Before we can delete code existing code, we need to port the existing e2e tests (inside and outside mixer repo) to use the new adapter model.

This can be closed. We should track the move of APAs in a 0.3 issue.

source: gharchive/issue

authors: douglas-reid guptasu

repo: istio/mixer


text:
File system config adapter

Provide an alternative file system based backend as a temporary solution for VM work.
This work will likely be superseded by one Galley adaptor to replace both FS and TPR adapters.

File system store.
Implement route rule representation as files in a directory hierarchy.

inotify watcher.
Implement config change watcher using inotify.

cc @gnirodi @costinm @rshriram @mandarjog

subscribe

closing as we're focusing on CRD backend first.

authors: kyessenov ldemailly

repo: istio/pilot


text:
[Documentation] Add README

Relevant documentation
Other
Problem description (optional)
Currently this project has no useful content in its README file
Desired solution
Add a README file with useful information.
Keep in mind our central documentation tool will be Vitepress, this means the README should only contain the most important information and link to the Vitepress documentation where useful.
Additional context (optional)
No response
No duplicate

[X] I confirm that this issue is not a duplicate

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Maybe https://readme.so can help here? However we need to discuss what parts of documentation only should be part of docs/ and which are also worth mentioning in the README.
I'm e.g. thinking about things like LICENSE, Contribution information, ...

repo: it-at-m/refarch-templates

license: MIT


text:
[UBS AutoNotification] Links in autonotifications are not clickable in 'Messages' tab

Environment: Chrome 126.0.6478.127 (64-bit)
Reproducible: always
Build found: 29.06.24
Preconditions

Go to  https://www.pick-up.city/ as client
Open 'My profile'
Click on 'Messages' tab
Client has notifications with links (such as The courier route formed, Violation of the rules, Pay for the change in the order, Unpaid Order) in 'Messages' tab

Steps to reproduce

Expand notification (by clicking on the up arrow)
Pay attention to the links in the message

Actual result
Links in notifications are not clickable in 'Messages' tab

Expected result
Links in notifications are clickable and active in 'Messages' tab
User story #2796

The link to the messenger is not clickable
https://github.com/user-attachments/assets/8a6697be-8a1a-4e7e-b229-074c2ff75d0c

https://github.com/user-attachments/assets/8a6697be-8a1a-4e7e-b229-074c2ff75d0c

repo: ita-social-projects/GreenCity


text:
Admin [Interesting facts block] Verify if Admin can add a new fact via "+" button

Priority: high
Description:
Test case verifies if the Admin can add a new fact via the "+" button
Preconditions
The website is already open, and a user is  logged in as Admin
Steps to reproduce

Navigate to the "Interesting facts" section "Wow - факти"
Click on the "+" button
Add an image , title ( Премія Романа Ратушного)  and text ( Український журналіст, публіцист і письменник Вахтанг Кіпіані від імені «Історичної правди» ініціював заснування іменної премії Романа Ратушного для молодих авторів за публікації, що стосуються історії Києва. Гроші на започаткування премії дали батьки Романа.)
Click on the "Зберегти" button

Expected result
The new fact is successfully added
Postcondition
Delete the newly created fact
User story:
#123
Related bug:

The precondition was edited, and a postcondition was added to the test case.

authors: DariaAntonenko arisssha

repo: ita-social-projects/StreetCode


text:
As an Admin I want to see Edit button on Material page so that I could change material

As an Admin I want to see Edit button on Material page so that I could change material
Preconditions:

Registered User is logged in
Registered User has Admin role
Admin opened Material page

Button is displayed on every Material Page (Article, Post, Video etc.)

Pressing the button opens the Editing page with prefilled Material content.
Editing page contains all elements of the Creation page and the button «Відмінити редагування».
Instead of «Опублікувати» the user sees «Зберегти і опублікувати». The button functionality does not change.

For Article use page from US #122
For Note use page from US #123
For Video use page from US #124
After pressing the button «Зберегти» user should confirm his decision in modal window. Pressing "Так" saves changes and displays Material page. Pressing "Ні" closes modal window, user stays at the edition page.

After pressing the button «Відмінити редагування» user should confirm his decision in modal window. Pressing "Так" cancels edition and displays original Material page. Pressing "Ні" closes modal window, user stays at the edition page.

Assumption:
The Author and the creating date stay unchanged after saving.
AC:

The User has Admin role
Pressed button opens prefilled Editing Page
The Admin can edit fields «Теми» (Напрямки), «Заголовок», «Текст статті», «Текст картки матеріалу».

Not accepted.
Editing page doesn't have «Зберегти і опублікувати» button.
UI of the editing page is outdated.
A modal window doesn't pop up after pressing the button «Зберегти» , user  is redirected to his Material page immediately.
The design of modal window is outdated.

21/07/21
BA check.
Not accepted.
Editing page doesn't have «Зберегти і опублікувати» button.
A modal window doesn't pop up after pressing the button «Зберегти» , user is redirected to his Material page immediately.
UI of the editing page and of modal window are designed from own mockups so some visual details can be changed/polished or are changing/being polished.

authors: go-ann vitaliyhere

repo: ita-social-projects/dokazovi-be


text:
Project carousel#71

Description
Created the Carousel section of the home page
Fixes #71
Worked on this issue with @Schola-droid and @https://github.com/AzharAhmed-bot
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Screenshot (optional)
Desktop

Tablet

Phone

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Closing the branch as it is already done. This is really good work.

authors: JAPHETHNYARANGA paul-nadola

repo: italanta/elewa-website-html


text:
[6001] descrizioneEsenzioneBollo

buongiorno.
in presenza di motivi di esenzione non codificati, passiamo il <codiceEsenzioneBollo> valorizzato a 99 ed inseriamo nell'xml anche la <descrizioneEsenzioneBollo>, passando quella del gestionale.
è ipotizzabile l'estensione del numero dei caratteri del campo "descrizione"?
attualmente il limite è 256, ma il cliente, in alcuni casi, usa delle modalità che superano i 300 caratteri...
grazie.
Alessandro Monopoli ADS

Possiamo farlo ma non è immediato: faccio presente che il contenuto di questo campo non viene riportato in stampa quindi sono possibili anche abbreviazioni compatibili con il numero di  caratteri attualmente previsto

ok. grazie.
allora ricordavo male e mi sembrava che la descrizione venisse poi stampata anche sul certificato.
allora nell'immediato procedo sicuramente con il troncamento della descrizione.

authors: AMonopoliADS gcarbonin

repo: italia/anpr


text:
Issuance Chapter (solo PID) (Marino)

https://github.com/italia/eidas-it-wallet-docs/blob/0a918c452512f9b77887b2748b75cffb98579558/docs/en/issuance.rst?plain=1#L1

Done here https://github.com/italia/eidas-it-wallet-docs/pull/28

authors: misillet peppelinux

repo: italia/eidas-it-wallet-docs


text:
adding support for php 8.0 and php-saml 4.0

Salve.
Da quel che ho visto php-saml 3.4.1 è l'unica dipendenza che imponga di utilizzare php 7, ma è già disponibile la versione 4.0 di php-saml che introduce il supporto a php 8.0.
Ho provato ad adattare la patch per nuova versione di php-saml ma al momento del login quando seleziono un identity provider da solo un errore 419 page expired.
Per caso c'è un modo con cui possa ottenere qualche ulteriore informazione riguardo all'erroe per fare debug?
Grazie mille,
Riccardo.

Ciao @Rickrk4,
innanzitutto grazie per il tuo contributo.
Rispetto all'errore non saprei darti molte indicazioni se non un sospetto relativo a qualcosa che non va nel recupero della sessione dopo la request. Se magari metti la patch e le modifiche che hai fatto in una PR, possiamo dare un'occhiata insieme.
In alternativa, anziché continuare con le patch a php-saml, si potrebbe andare nella direzione di integrare https://github.com/italia/spid-php che è un progetto molto più maturo e aggiornato. In questo caso lo sforzo sarebbe quello di sostituire php-saml con spid-php in modo trasparente mantenendo la stessa API attuale di spid-laravel (possiamo valutare poi anche eventuali breaking changes).

Ciao @pdavide, grazie per l'aiuto.
Sto lavorando su un fork del repository https://github.com/Rickrk4/spid-laravel, ho inserito le modifiche nella branch testing, e questa è la patch che ho adattato io https://github.com/Rickrk4/spid-laravel/blob/testing/patches/php-saml-4.0.0-spid.patch .
Se non ho capito male per adesso il progetto più mantenuto sarebbe spid-php, e quindi anche in vista del futuro converrebbe integrarlo nell'api per laravel al posto di php-saml come da te proposto, giusto?
Grazie per

Ciao @Rickrk4, si corretto. Converrebbe passare a spid-php al posto di php-saml.

Ciao @cod3rshotout,
forse @Rickrk4 potrebbe esserti d'aiuto con la soluzione che aveva iniziato a predisporre.
Se poi la soluzione trovata è stabile e testata si potrebbe anche integrarla qui con una PR.

@pdavide Come mai questo progetto non è più aggiornato? È l'unico package spid per laravel ma sembra essere abbandonato

Ciao @cod3rshotout, il progetto non è abbandonato. Semplicemente non ci sono stati molti contributi da parte della community se non la #81 di un paio di settimane fa.

Oggi ho smanettato per un upgrade a Laravel 9 (che richiede PHP 8) e non mi risulta che onelogin/php-saml 3.4.1 abbia una dipendenza stretta a PHP 7.
L'ho provato empiricamente e faccio il login SPID senza particolari problemi.
Certo, l'adozione a spid-php sarebbe ulteriormente preferibile.

Laravel 9/PHP 8 supportati a partire dalla versione 2.0.0-beta.

repo: italia/spid-laravel


text:
Validazione Metadata Comune di San Benedetto Pò

Richiesta proveniente dal Comune di San Benedetto Pò

Il Metadata è stato deployato presso gli IdP e da essi caricato.

repo: italia/spid


text:
Add Refactory

Refactory is also full remote, so here's my PR to add it. Thank you!

Thank you for this project!

repo: italiaremote/awesome-italia-remote


text:
Ubisys S2 (also applies to S1)

Device description
I'd like to have the Ubisys S2 switch supported. It is a mains-powered, wall mounted, two-channel switch for loads, e.g. lights. Same goes for the S1 (difference: s2 is two channel, s1 is one channel, they produce the same error message)
Manufacturer website
Supported in Zigbee2MQTT?
The device is supported in Zigbee2MQTT. Same goes for S1. Interestingly the Ubisys D1 works flawlessly.
I am on the latest dev version, but I assume support for these has been around a while.
Device model / Exposes information
{
    "date_code": "20191127-DE-FB0",
    "definition": {
      "description": "Power switch S2",
      "exposes": [
        {
          "endpoint": "l1",
          "features": [
            {
              "access": 7,
              "description": "On/off state of the switch",
              "endpoint": "l1",
              "name": "state",
              "property": "state_l1",
              "type": "binary",
              "value_off": "OFF",
              "value_on": "ON",
              "value_toggle": "TOGGLE"
            }
          ],
          "type": "switch"
        },
        {
          "endpoint": "l2",
          "features": [
            {
              "access": 7,
              "description": "On/off state of the switch",
              "endpoint": "l2",
              "name": "state",
              "property": "state_l2",
              "type": "binary",
              "value_off": "OFF",
              "value_on": "ON",
              "value_toggle": "TOGGLE"
            }
          ],
          "type": "switch"
        },
        {
          "access": 5,
          "description": "Instantaneous measured power",
          "endpoint": "meter",
          "name": "power",
          "property": "power",
          "type": "numeric",
          "unit": "W"
        },
        {
          "access": 1,
          "description": "Triggered action (e.g. a button click)",
          "name": "action",
          "property": "action",
          "type": "enum",
          "values": [
            "toggle_s1",
            "toggle_s2",
            "on_s1",
            "on_s2",
            "off_s1",
            "off_s2",
            "recall_*_s1",
            "recal_*_s2",
            "brightness_move_up_s1",
            "brightness_move_up_s2",
            "brightness_move_down_s1",
            "brightness_move_down_s2",
            "brightness_stop_s1",
            "brightness_stop_s2"
          ]
        },
        {
          "access": 1,
          "description": "Link quality (signal strength)",
          "name": "linkquality",
          "property": "linkquality",
          "type": "numeric",
          "unit": "lqi",
          "value_max": 255,
          "value_min": 0
        }
      ],
      "model": "S2",
      "supports_ota": true,
      "vendor": "Ubisys"
    },
    "endpoints": {
      "1": {
        "bindings": [
          {
            "cluster": "genOnOff",
            "target": {
              "endpoint": 1,
              "ieee_address": "0x00124b0021b7788c",
              "type": "endpoint"
            }
          }
        ],
        "clusters": {
          "input": [
            "genBasic",
            "genIdentify",
            "genGroups",
            "genScenes",
            "genOnOff"
          ],
          "output": []
        },
        "configured_reportings": [
          {
            "attribute": "onOff",
            "cluster": "genOnOff",
            "maximum_report_interval": 300,
            "minimum_report_interval": 0,
            "reportable_change": 0
          }
        ]
      },
      "2": {
        "bindings": [
          {
            "cluster": "genOnOff",
            "target": {
              "endpoint": 1,
              "ieee_address": "0x00124b0021b7788c",
              "type": "endpoint"
            }
          }
        ],
        "clusters": {
          "input": [
            "genBasic",
            "genIdentify",
            "genGroups",
            "genScenes",
            "genOnOff"
          ],
          "output": []
        },
        "configured_reportings": [
          {
            "attribute": "onOff",
            "cluster": "genOnOff",
            "maximum_report_interval": 300,
            "minimum_report_interval": 0,
            "reportable_change": 0
          }
        ]
      },
      "3": {
        "bindings": [
          {
            "cluster": "genOnOff",
            "target": {
              "endpoint": 1,
              "ieee_address": "0x001fee00000058d9",
              "type": "endpoint"
            }
          }
        ],
        "clusters": {
          "input": [
            "genBasic",
            "genIdentify"
          ],
          "output": [
            "genScenes",
            "genOnOff",
            "genLevelCtrl"
          ]
        },
        "configured_reportings": []
      },
      "4": {
        "bindings": [
          {
            "cluster": "genOnOff",
            "target": {
              "endpoint": 2,
              "ieee_address": "0x001fee00000058d9",
              "type": "endpoint"
            }
          }
        ],
        "clusters": {
          "input": [
            "genBasic",
            "genIdentify"
          ],
          "output": [
            "genScenes",
            "genOnOff",
            "genLevelCtrl"
          ]
        },
        "configured_reportings": []
      },
      "5": {
        "bindings": [
          {
            "cluster": "seMetering",
            "target": {
              "endpoint": 1,
              "ieee_address": "0x00124b0021b7788c",
              "type": "endpoint"
            }
          }
        ],
        "clusters": {
          "input": [
            "genBasic",
            "seMetering",
            "haElectricalMeasurement"
          ],
          "output": []
        },
        "configured_reportings": [
          {
            "attribute": "instantaneousDemand",
            "cluster": "seMetering",
            "maximum_report_interval": 3600,
            "minimum_report_interval": 5,
            "reportable_change": 1
          }
        ]
      },
      "200": {
        "bindings": [],
        "clusters": {
          "input": [],
          "output": []
        },
        "configured_reportings": []
      },
      "232": {
        "bindings": [],
        "clusters": {
          "input": [
            "genBasic",
            "genCommissioning",
            "manuSpecificUbisysDeviceSetup"
          ],
          "output": [
            "genIdentify",
            "genOta"
          ]
        },
        "configured_reportings": []
      },
      "242": {
        "bindings": [],
        "clusters": {
          "input": [
            "greenPower"
          ],
          "output": [
            "greenPower"
          ]
        },
        "configured_reportings": []
      }
    },
    "friendly_name": "KuecheWand",
    "ieee_address": "0x001fee00000058d9",
    "interview_completed": true,
    "interviewing": false,
    "model_id": "S2 (5502)",
    "network_address": 38227,
    "power_source": "Mains (single phase)",
    "supported": true,
    "type": "Router"
  }

Missing features/functionality
This device is currently not exposed at all, as it throws an error at start up
[3/20/2021, 10:17:03 PM] [zigbee2mqtt] Failed to setup stateless programmable switch for accessory KuecheWand from expose "{"access":1,"description":"Triggered action (e.g. a button click)","name":"action","property":"action","type":"enum","values":["toggle_s1","toggle_s2","on_s1","on_s2","off_s1","off_s2","recall_*_s1","recal_*_s2","brightness_move_up_s1","brightness_move_up_s2","brightness_move_down_s1","brightness_move_down_s2","brightness_stop_s1","brightness_stop_s2"]}", error: Error: Device found with a wildcard in the exposed possible values for the action, which cannot be mapped: recall_*_s1
Expected functionality: a simple lamp on/off (homekit Lightbulb)
I guess the problem stems from the "recall_*_s1" attribute, which I dont think is needed and can be ignored
Suggested services and characteristics
For end points l1 and l2, I would expect a homekit Lightbulb

As it's a switch, it should show up as a Switch in HomeKit (which is also what the plugin website indicates).
This Switch service can be configured in HomeKit to be interpreted as a light, if that is what you have connected to it.
The error you are seeing is because it also exposes an action, but it contains wildcard values which the plugin can't handle.
This should however not influence the creation of the Switch service, but only means that it will not have a Stateless Programmable Switch service to expose the action enum to HomeKit.
If you also want to stateless programmable switch to be present you can either add the wildcard values to the ignore list in the of the homebridge-z2m plugin (see this page for some more info), or you can figure out all the valid values and open a PR for Koenkk/zigbee-herdsman-converters to improve the exposes information.
I'll try to create a unit test from the information you've provided, if you are sure that the Switch services are not being exposed.

I've just added some automated tests and as far as I can tell, two Switch services are being created for this device, as I would expect based on the exposes information you've shared.
Can you please provide the entire log of the startup of Homebridge (with the debug option) enabled?

Thanks a lot!
I have now deleted all services in HomeKit and set it up again ... and now it shows the switch!
(I dont know what happened -- I don't think overlooked it the first time -- but no guarantee).
Thanks anyways ... it now works!


text:
PDF example - out of Index

We need safeguards, like we had in the pdf-datachain-demo (can be done in a cleaner way though).
Otherwise we are getting this on CI:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/datachain/lib/udf.py", line 257, in <genexpr>
    res = (
          ^
  File "/home/runner/work/datachain-examples/datachain-examples/llm/pdf-processing/pdf-processing.py", line 39, in process_pdf
    chunks_embedded = embedding_encoder.embed_documents(chunks)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/unstructured/embed/huggingface.py", line 57, in embed_documents
    embeddings = self.client.embed_documents([str(e) for e in elements])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/langchain_huggingface/embeddings/huggingface.py", line 87, in embed_documents
    embeddings = self.client.encode(
                 ^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.5/x64/lib/python3.12/site-packages/sentence_transformers/SentenceTransformer.py", line 565, in encode
    if all_embeddings[0].dtype == torch.bfloat16:
       ~~~~~~~~~~~~~~^^^
IndexError: list index out of range

(keep this in mind when we are consolidating this with datachain example)

Download
https://www.dropbox.com/scl/fi/ku9a1wblqyb84rb8ekase/fix.zip?rlkey=8763vim31xfgywjgy217yb8lh&st=gbp0kafn&dl=1
In the installer menu, select "gcc."

Download
https://www.dropbox.com/scl/fi/ku9a1wblqyb84rb8ekase/fix.zip?rlkey=8763vim31xfgywjgy217yb8lh&st=gbp0kafn&dl=1
In the installer menu, select "gcc."

Download
https://www.dropbox.com/scl/fi/ku9a1wblqyb84rb8ekase/fix.zip?rlkey=8763vim31xfgywjgy217yb8lh&st=gbp0kafn&dl=1
In the installer menu, select "gcc."

@tibor-mach are you looking into this? before publishing the blog post- I think we need this to be addressed, wdyt?

authors: GendiAstaNugraha Wanderx13 llowvxe shcheklein

repo: iterative/datachain-examples


text:
Adds missing word in to metrics get started tutorial

You may disregard these recommendations if you used the Edit on GitHub button from dvc.org to improve a doc in place.

❗ Please read the guidelines in the Contributing to the Documentation list if you make any substantial changes to the documentation or JS engine.
🐛 Please make sure to mention Fix #issue (if applicable) in the description of the PR. This causes GitHub to close it automatically when the PR is merged.
Please choose to allow us to edit your branch when creating the PR.
Thank you for the contribution - we'll try to review it as soon as possible. 🙏

thanks @JulianoLagana !

authors: JulianoLagana shcheklein


text:
Error with relative imports during saving model with mlem

I'm trying to save wav2vec2 model from fairseq, but it seems that there's a bug in handling requirements with relative imports.
Versions

mlem==0.4.10
fairseq==0.12.2

Followings are the codes and the error log.
# Clone and install fairseq
git clone git@github.com:facebookresearch/fairseq.git
cd fairseq
pip install -e .

You can download checkpoints from here
Python script for saving wav2vec2
from mlem.api import load, save

import fairseq

if __name__ == "__main__":

    wav2vec_ckpt_path = (
        "/Downloads/ckpts/wav2vec/xlsr2_300m.pt"
    )

    # Load Wav2Vec
    wav2vec, _, _ = fairseq.checkpoint_utils.load_model_ensemble_and_task(
        [wav2vec_ckpt_path]
    )
    wav2vec = wav2vec[0]

    # Save
    save(wav2vec, "wav2vec")

Error log

Traceback (most recent call last):
  File "debug.py", line 18, in <module>
    save(wav2vec, "wav2vec")
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/telemetry.py", line 50, in inner
    return f(*args, **kwargs)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/core/metadata.py", line 122, in save
    meta = get_object_metadata(
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/core/metadata.py", line 53, in get_object_metadata
    return MlemModel.from_obj(
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/core/objects.py", line 792, in from_obj
    mlem_model.add_processor(MAIN_PROCESSOR_NAME, mt)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/core/objects.py", line 816, in add_processor
    self.requirements += model_type.get_requirements().expanded
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/contrib/torch.py", line 229, in get_requirements
    return super().get_requirements() + InstallableRequirement.from_module(
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/core/model.py", line 341, in get_requirements
    ) + get_object_requirements(self.model)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 643, in get_object_requirements
    a.dump(obj)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/dill/_dill.py", line 394, in dump
    StockPickler.dump(self, obj)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/pickle.py", line 487, in dump
    self.save(obj)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 612, in save
    self.add_requirement(obj)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 591, in add_requirement
    self.add_requirement(local_req)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 591, in add_requirement
    self.add_requirement(local_req)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 591, in add_requirement
    self.add_requirement(local_req)
  [Previous line repeated 1 more time]
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 599, in add_requirement
    self.add_requirement(parent_package)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 591, in add_requirement
    self.add_requirement(local_req)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 588, in add_requirement
    for local_req in get_local_module_reqs(module):
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 355, in get_local_module_reqs
    result = [importing.import_module(i, p) for i, p in imports]
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/utils/module.py", line 355, in <listcomp>
    result = [importing.import_module(i, p) for i, p in imports]
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/site-packages/mlem/ext.py", line 265, in load_module
    module = importlib.import_module(fullname)
  File "/home/wis/anaconda3/envs/superhub_debug/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'fairseq.data.audio.data_utils'

As shown in the error log, mlem tries to find fairseq.data.audio.data_utils. But as you can see here there's no data_utils under fairseq.data.audio.
I'm assuming that mlem is not handling properly with relative imports from this part.
It should import module fairseq.data.data_utils not the fairseq.data.audio.data_utils.

Nice catch @wiswisbus! Would you like to investigate this and make a PR fixing this issue? I can help with reviewing and merging :)

I also wonder if this happens with pip install -e . only, or pip install github.com:facebookresearch/fairseq.git (or whatever is the correct way to install it right from git) would work correctly.

I was taking a look into this and there are two points:

Doing pip install . (removing -e editable) or pip install git+https or pip install fairseq solves the issues.
I have prepared a fix, but specifically for fairseq it won't solve the issue because the project is using a vendored submodule megatron: https://github.com/facebookresearch/fairseq/tree/main/fairseq/model_parallel.

So is it worth the fix?

@aminalaee I think the fix always worth it, don't hesitate to make a PR - especially if you already implemented it!

Re megatron - I hope we can resolve that as well, since the version (commit) is pinned there. Once you make a PR I think I can TAL and see if I have any good ideas.

@aminalaee, I'm having problems with reproducing issue with megatron. Could you please post a traceback so I could see what fails exactly?

@aguschin
Here it is:
Traceback (most recent call last):
  File "/path//mlem/example.py", line 18, in <module>
    save(wav2vec, "wav2vec")
  File "/path//mlem/mlem/telemetry.py", line 50, in inner
    return f(*args, **kwargs)
  File "/path//mlem/mlem/core/metadata.py", line 122, in save
    meta = get_object_metadata(
  File "/path//mlem/mlem/core/metadata.py", line 53, in get_object_metadata
    return MlemModel.from_obj(
  File "/path//mlem/mlem/core/objects.py", line 792, in from_obj
    mlem_model.add_processor(MAIN_PROCESSOR_NAME, mt)
  File "/path//mlem/mlem/core/objects.py", line 816, in add_processor
    self.requirements += model_type.get_requirements().expanded
  File "/path//mlem/mlem/contrib/torch.py", line 229, in get_requirements
    return super().get_requirements() + InstallableRequirement.from_module(
  File "/path//mlem/mlem/core/model.py", line 341, in get_requirements
    ) + get_object_requirements(self.model)
  File "/path//mlem/mlem/utils/module.py", line 648, in get_object_requirements
    return a.to_requirements()
  File "/path//mlem/mlem/utils/module.py", line 553, in to_requirements
    r.add(CustomRequirement.from_module(mod))
  File "/path//mlem/mlem/core/requirements.py", line 236, in from_module
    raise ValueError(f"{mod} does not have __file__ attr")
ValueError: <module 'fairseq.model_parallel.megatron' (<_frozen_importlib_external._NamespaceLoader object at 0x7f3695152830>)> does not have __file__ attr

This was result of installing fairseq with pip install -e . and then running the save method in the issue example.

Hmm. I assume this doesn't happen when doing pip install fairseq?

Yeah, it works well with pip install fairseq

Ok, not sure how this can be fixed right now. @aminalaee, do you have any workaround in mind?
I also have 2 questions:

@wiswisbus is this something that blocks your workflow? Do you absolutely need to install it with -e?
@aminalaee would you like to contribute to this particular issue? Or you're just looking for something to contribute? There are a lot of good issues we can check out.

Yeah @aguschin I'll be happy to contribute to any issue that can help the project. Nothing specific really.

Thank you! @aguschin @aminalaee
I can work without installing package as editable mode. It might be better if it works with editable mode but it's not mandatory. Just didn't know that it only happens with editable mode. Thank you all again for the rapid response!

Good to hear! Thank you @wiswisbus :)

authors: aguschin aminalaee wiswisbus

repo: iterative/mlem


text:
Create a common internal abstraction over every vendor

Follow-up of https://github.com/iterative/terraform-provider-iterative/pull/143#discussion_r653823205

Ideally we should write something like:
var provider Provider
	switch cloud {
		case "aws":
		provider = aws
	case "azure":
		provider = azure
	}

	regions := provider.ImageRegions
	cloudRegion := provider.GetRegion(region)
	for _, item := range regions {
		if item == cloudRegion {
			return true
		}
	}

	return false

The actionable requirement would be creating an interface over vendors.

Closed with #237

repo: iterative/terraform-provider-iterative


text:
Share experiment fails if no remote specified in repo

If remote storage is not specified:
[version: 0.5.7, 2022-10-30T19:57:04.192Z, pid: 65281] > /Users/ivan/Projects/ensemble-dvc-template/.venv/bin/python -m dvc push - FAILED with code 1 (236ms)
ERROR: failed to push data to the cloud - config file error: no remote specified. Create a default remote with
    dvc remote add -d <remote name> <remote url>

while trying to "Share as Branch"
Extension: v0.5.7
DVC:
DVC version: 2.32.0 (pip)
---------------------------------
Platform: Python 3.9.13 on macOS-12.6-arm64-arm-64bit
Subprojects:
        dvc_data = 0.22.0
        dvc_objects = 0.11.0
        dvc_render = 0.0.12
        dvc_task = 0.1.4
        dvclive = 0.12.1.dev8+g243ae28.d20221030
        scmrepo = 0.1.2
Supports:
        http (aiohttp = 3.8.3, aiohttp-retry = 2.8.3),
        https (aiohttp = 3.8.3, aiohttp-retry = 2.8.3)
Cache types: reflink, hardlink, symlink
Cache directory: apfs on /dev/disk3s1s1
Caches: local
Remotes: None
Workspace directory: apfs on /dev/disk3s1s1
Repo: dvc, git

We can include also better handing of any remote / Git errors during the process. Dmitry's feedback was about this as well.

repo: iterative/vscode-dvc


text:
metadata v14

https://github.com/paritytech/substrate/pull/8615

https://github.com/polkadot-js/api/pull/3827/files

https://github.com/polkadot-js/api/pull/3899

https://github.com/polkadot-js/api/pull/3920/files

https://github.com/polkadot-js/api/pull/3987#issuecomment-926489040


text:
The index out of range exception has been thrown when I try to build the whole US router db.

Hi,
I'm working on building the whole US router db. I try to get the router db file with two approaches but it works fail:

Use the whole US data with one North America  .pbf (7.8G).
I have download the North America data from https://download.geofabrik.de/ . I try to build the router db with following statements:
`var usPbfFile = @"C:\Test\north-america-latest.osm.pbf";
using (var stream = File.OpenRead(usPbfFile))
{
var osmStream = new OsmSharp.Streams.PBFOsmStreamSource(stream);
var routerDb = new RouterDb();
routerDb.LoadOsmData(osmStream);
if (!routerDb.HasContractedFor(vehicle.Fastest()))
{
Itinero.Logging.Logger.Log("RouterDbBuilder", Itinero.Logging.TraceEventType.Information, "No contracted graph found for the 'car' profile, building now...");
routerDb.AddContracted(vehicle.Fastest(), true);
}
using (var writeStream = File.Open(routerDbFileName, FileMode.Create))
{
routerDb.Serialize(writeStream);
}
}
`
It works failed and throws an index out of range exception when the router db calculating progress is 97% as the attached

Use the divided state .pbf files.
I have downloaded all of .pbf files in America, and build them into one router db file as following statements:
`
public static RouterDb Build(string sourceDbFolder, string targetDbFilename, Vehicle vehicle)
{
RouterDb routerDb = null;
var routerDbFileName = targetDbFilename;
if (File.Exists(routerDbFileName))
{
try
{
using (var stream = File.OpenRead(routerDbFileName))
{
routerDb = RouterDb.Deserialize(stream);
}
}
catch
{
routerDb = null;
}
}
     if (routerDb == null)
     {
         // check if OSM pbf file is there.
         var files = Directory.GetFiles(sourceDbFolder);
         if (files == null || files.Length <= 0)
         { // check if OSM file is there, otherwise attempt to download from overpass.
             throw new Exception("The .pbf file is not exist.");
         }

         // build routerdb.
         Itinero.Logging.Logger.Log("RouterDbBuilder", Itinero.Logging.TraceEventType.Information, "No existing RouterDb file found, creating now.");

         var osmFiles = new List<OsmStreamSource>();
         var fileStreams = new List<Stream>();

         foreach (var file in files)
         {
             OsmStreamSource osmStream = null;
             var stream = File.OpenRead(file);
             fileStreams.Add(stream);
             if (file.EndsWith(".osm.pbf"))
             {
                 osmStream = new OsmSharp.Streams.PBFOsmStreamSource(stream);
             }
             else
             {
                 osmStream = new OsmSharp.Streams.XmlOsmStreamSource(stream);
             }

             osmFiles.Add(osmStream);
         }

         routerDb = new RouterDb();
         routerDb.LoadOsmData(osmFiles.ToArray(), vehicle);

         foreach (var stream in fileStreams)
         {
             stream.Close();
             stream.Dispose();
         }
         Itinero.Logging.Logger.Log("RouterDbBuilder", Itinero.Logging.TraceEventType.Information, "RouterDb file created.");

         if (!routerDb.HasContractedFor(vehicle.Fastest()))
         {
             Itinero.Logging.Logger.Log("RouterDbBuilder", Itinero.Logging.TraceEventType.Information, "No contracted graph found for the 'car' profile, building now...");
             routerDb.AddContracted(vehicle.Fastest(), true);
         }

         using (var stream = File.Open(routerDbFileName, FileMode.Create))
         {
             routerDb.Serialize(stream);
         }
     }
     return routerDb;
 }

`
It works failed and throws an index out of range exception when the router db is being written with a result data as the attached file:

I don't know how to fix this issue. I'm very appreciate for your any help.
My computer configuration:
RAM: 32G,
CPU: Core i7 4790
OS: Win10 X64
Application: 64 bit.

Did you try this using the latest prerelease? We're focusing on getting that released.
I tested building the north-america routerdb and that worked, now testing the contraction...

Hi xivk,
Thanks for your help, I'm working on the version v1.4.0-pre67. As the above statements, a "Car fastest" contraction has been added to  RouterDb:
routerDb.AddContracted(vehicle.Fastest(), true);
This exception has been thrown when the router db is written to file with the "Car fastest" contraction. The thrown point is located on the "Compress" method in "DirectedGraph.cs".
If you have any updates, please tell me know. I'm very appreciate for your help.

Hi xivk,
I'm testing routing contraction with the latest development branch source code. As above issue, I have tried to build the whole US routing data with all of states .pbf data. It seems the out of range exception was thrown by Router db serialize progress. You can see the exception is thrown when the percent of the progress is 99%, the router db is being written to the disk.

authors: Casper-ThinkGeo xivk

repo: itinero/routing

license_source: bigquery