Set -user-module-version for any version-based package

This would allow conditionalizing client code using #if canImport(:_version:) so that different versions of a dependency can be supported within a single codebase.
Note: this is explicitly not passing the flag if pre-releases are in use to avoid any confusion in those cases.
rdar://107077287

@swift-ci please smoke test

Unsure whether we should conditionalize this based on tools-version

Unsure whether we should conditionalize this based on tools-version

probably should for unintended consequences? or is it inert?
also should we add a test?

probably should for unintended consequences? or is it inert?

What is was thinking is that not tying it to the tools version would allow folks to support multiple versions if their users are using a newer SwiftPM, but they would still have support for a singular older version for users of older SwiftPMs.
For example, in the case of a Swift macro, I could write something like:
#if canImport(SwiftSyntax _version: 510.0.0)
...
#else
...
#endif

where the else block would still work for users of Swift 5.9 who by definition won't be able to use the swift-syntax aligned with 5.10 and therefore couldn't even reach the if anyway.
It does come with a certain danger of course, because presumably the package would have a more open ended dependency and it would rely on clients to constraint their dependencies in some way.

also should we add a test?

We should, but it doesn't look like the infrastructure of the build plan tests supports it today. The version of any dependency seems to not be set when running those tests.

Ah, it seems like we can just hardcode a version in the Manifest.createLocalSourceControlManifest() call, but we don't really resolve anything, so we currently don't.

We're currently discussing whether we should bring this into 5.9, so for now I set it to be included for any package with tools-version 5.9 or newer.

@swift-ci please smoke test

@swift-ci please smoke test windows

[157/171] Compiling BuildTests BuildPlanTests.swift
/Users/ec2-user/jenkins/workspace/swift-package-manager-with-xcode-self-hosted-PR-osx/branch-main/swiftpm/Tests/BuildTests/BuildPlanTests.swift:4917:62: error: 'contains' is only available in macOS 13.0 or newer
            XCTAssertTrue(try swiftTarget.compileArguments().contains(["-user-module-version", "1.0.0"]))

wat

@swift-ci please smoke test

@swift-ci please smoke test windows


Merge to live!

design toolkits updates

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/design/design-toolkits.md
:white_check_mark:Succeeded

docs/design/ux-design-pattern-templates.md
:white_check_mark:Succeeded

docs/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Create integration “restore after project file edits” test

We need to create an integration test verifying “restore after project file edits” features.

Open a test solution
unload
edit -> open file
open with a XML text editor
change the file
debug -> release
save
close
reload the project
verify the change

hi - target framework
hi - adding removing nuget packages
adding removing files to compile
resx public to internal
change output type


Removing the type guards?

Saw the note about removing check, but if it is simply safeParse().success, why can we not implement it that way in the base type? I assume this has already been tried, but if there is a problem with that, it would be helpful to know what the problem is so that I don't accidentally reproduce the issue in my own usage.

Wrote this little wrapper that seems to do the right thing:
function check<T>(schema: ZodSchema<T>, data: unknown): data is T {
  const parsed = schema.safeParse(data);
  return parsed.success;
}

— But still not clear why this can't be how ZodType#check is implemented to avoid having to import this helper when using a ZodSchema

Wrote this little wrapper that seems to do the right thing:
function check<T>(schema: ZodSchema<T>, data: unknown): data is T {
  const parsed = schema.safeParse(data);
  return parsed.success;
}

— But still not clear why this can't be how ZodType#check is implemented to avoid having to import this helper when using a ZodSchema

Actually it's probably because of transformers transform types. For example:
const countLength = z.transformer(
  z.string(),
  z.number(),
  (myString) => myString.length
);

const originalString = "foobar"
if (countLength.check(originalString)) {
 console.log('originalString is number', typeof originalString) // would result wrong typecheck
}

Actually it's probably because of transformers transform types. For example:
const countLength = z.transformer(
  z.string(),
  z.number(),
  (myString) => myString.length
);

const originalString = "foobar"
if (countLength.check(originalString)) {
 console.log('originalString is number', typeof originalString) // would result wrong typecheck
}

Ahh, that makes sense. So not only do we want to avoid the type guard in this situation, we should always use the parsed data directly to avoid accidentally asserting something about a type before it has been transformed.
So to build off of your example:
const countLength = z.transformer(
  z.string(),
  z.number(),
  (myString) => myString.length
);

const originalString = "foobar";
const parsed = countLength.safeParse(originalString);
if (!parsed.success) {
  throw new Error("parsing error! oh no!");
}

parsed.data; // number

@colinhacks
Do you want me to take a swing at adding to the v3 docs now that @hixus has helped enlighten me on this issue? I know it's a bit early to be documenting the API itself, but since this is more of a pattern, and I imagine the basic premise will hold throughout the refactor, seems like a worthwhile time to guide people toward to right usage maybe?
At any rate, the issue is definitely "resolved", so I'll close this now. Thanks again @hixus for helping me to understand!


SAP HANA XS Advanced - Modules within Node.js SAP HANA applications

There are missing dependencies in package.json which fails the nodejs service build. These dependencies are being referenced in file utils/initialize.js -

@sap/xssec
@sap/hdbext
@sap/logging

So, I've used the latest version in the build as
"@sap/xssec": "latest", "@sap/hdbext": "latest", "@sap/logging": "latest",

I got the same issue doing the same tutorial and also the previous prerequisited tutorial.
Thank you @git-ashish , your solution helped!


Provide capability to exclude Unacknowledged message counts from RabbitMQ QueueLength

Proposal
Optionally exclude Unacknowledged message counts from RabbitMQ QueueLength
Use-Case
No response
Anything else?
No response

Docs were done in https://github.com/kedacore/keda-docs/pull/801 and feature in https://github.com/kedacore/keda/pull/3323 by @sl1pm4t - Thanks!


Do not exclude the status attribute

I've encoutered a CRD with a status field but it's not being generated

Maybe we can make this an option we can enable per library? Doing it for all libraries might increase the library size quite a bit (especially for k8s-libsonnet).

Maybe we can make this an option we can enable per library? Doing it for all libraries might increase the library size quite a bit (especially for k8s-libsonnet).

I just searched for withStatus in k8s-libsonnet after generating it and found nothing (558 results across crossplane libs). Do you mean for the status attribute that's besides spec. This one is ignored because it's in the root of the objects


⚠ Quirk Club Argentina (Payment Gateway) has degraded performance

In 19d3ee7, Quirk Club Argentina (Payment Gateway) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/payment-gateway-ml) experienced degraded performance:

HTTP code: 200
Response time: 7340 ms

Resolved: Quirk Club Argentina (Payment Gateway) performance has improved in ca9c5d3.


Update Application System with Configuration System

          Alright time to make the configuration system work with the other systems so I can unify the entire engine with this.

Originally posted by @aod6060 in https://github.com/aod6060/dsge/issues/11#issuecomment-2492828270

Alright time to time to change up the application interface with the configuration system.

I've integrated into the application interface and it seems to be working as inteneded so far. I'm going to add in some function to deal with the input interface real quick and I need to build up a menu to configure the application at run time.

Alright I think I'm done with the config system for now. I'm going focus on getting the menu system for this test.

I ran into an issue with the reload feature. I think its ImGui that might be causing the issue so I'll need to make a wrapper of it in the code base.

Alright lets finish up this system config menu

Alright I'm fixing a bunch of issues with the resolution system and I'm liking it.

Alright lets finish the system configuration menu.

Alright had to do a bit of changes to the input structure. Instead of having a direct access to the input::InputMapping structure. Instead I'm using a new structure with in the config called config::KeyboardInputMap which contains a bunch of stuff I need with the system configuration menu. Here is the structure.
struct KeyboardMouseInputMap {
    std::string name;
    std::string currentMouseButton = "MBS_LEFT";
    std::string currentKey = "KEYS_UNKNOWN";
    input::InputMapping mapping;
};

Oh, my God it works. It works use Input Mapping configuration while the game engine is running works. This makes me happy :)

I'm going to make a new issue to create a wrapper for the config stuff because
vel.x = input::getInputMappingAxisPressed(&config::getConfig()->input.mapping.at("move-left").mapping, &config::getConfig()->input.mapping.at("move-right").mapping) + input::gamepad::getLeftAxis(input::gamepad::PlayerControllerName::PCN_PLAYER_1).x;
This is affecting my wrists are hurting.

Alright fixed my wrist problem how it looks like this.
vel.x = input::getInputMappingAxisPressed("move-left", "move-right");

Alright time to working on the gamepad mapping which will require... Multiple controllers. For now I'm going to limit to 1 controller.

Hmm, I'm going to rewrite config.json to support 4 players. The current config.json looks like this.
{
"app" :
{
"caption" : "DSGE: Engine",
"display" : 0,
"fullscreen" : false,
"resolution" : 16
},
"input" :
{
"gamepad" :
{
"mapping" :
[
{
"controller-button" : "CB_A",
"name" : "jump-im-ctrl",
"player-name" : "PCN_PLAYER_1"
}
]
},
"mapping" :
[
{
"input" : "KEYS_SPACE",
"is-mouse" : false,
"name" : "jump-im"
},
{
"input" : "KEYS_LEFT",
"is-mouse" : false,
"name" : "move-left"
},
{
"input" : "KEYS_RIGHT",
"is-mouse" : false,
"name" : "move-right"
}
]
},
"physics" : {},
"render" : {},
"sound" :
{
"master-volume" : 1.0,
"music-volume" : 1.0,
"sound-fx-volume" : 1.0
}
}

Alright I'm don't have to go to work tomorrow so I'm going to work on this issue until its done. I want to move on to getting a gui system that meant for an actual game implemented.

Alright I think I have an idea of how the controller mapping will work.

Alright had a small issue inside a loop. Fixed it so now I'm going to need to I need to make the interface in the ImGui system.

Alright, now I just need to add in the the sound section.

Alright got sound configuration finished.

Alright I'm finished with this issue and the config menu works really great.


The app takes too much time to shut down?

Macbook Pro doesn't go to sleep when desktop app is running. It drains the battery and that sometimes in the morning, the laptop will be completely dead.
Desk #140965

duplicate of #1220


[engsys] update dep core-util version to ^1.1.1

to ensure packages can get the delay() refactoring.
Without this change our js - core nightly is failing. It would fail the min-max testing as well.
What's happening is that our nightly pipeline does something special: for example, rewriting our @azure/core-util package versions to be like "1.1.1-alpha.20220909.2" so we can publish nightly alpha package of this version to npmjs.org.
If our other packages depend on the same minimum version (^1.1.1) then we also update the version to be ">=1.1.1-alpha <1.1.1-alphb" then rush would be able to find this version in the repository and we are building and testing against the version to be published.
However, if the version doesn't match (^1.1.0 in this case), rush would not modify the dep version, and would get v1.1.0 from npmjs instead thus failed the build.
Using "^1.1.1" is also more correct for end users, as v1.1.0 satisfies the sem version ^1.1.0 but doesn't work.

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


Corrupted downloaded file

Describe the bug
When downloading a WSDL with this plugin, I get the contents of that WSDL different from the result I get if I download the file with a browser or with a simple Java script in JShell.
Consider the build script reported below and run: gradle downloadArubaPecEmailManagerWsdl.
Then look at build/EmailManager.wsdl.
After doing this, try to execute the following script in JShell:
var url = new URL("https://areaclienti.arubapec.it/arubapec/rpc/EmailManager?wsdl");
var dest = Paths.get("/tmp/EmailManager.wsdl");
try(var in = url.openStream()) { Files.copy(in, dest); }

Then, do a diff between the two files. There are two differences:
4c4
<               <xsd:import namespace="http://email.service.rpc.arubapec.it" schemaLocation="http://areaclienti.arubapec.it:443/arubapec/rpc/EmailManager?xsd=1"/>
---
>               <xsd:import namespace="http://email.service.rpc.arubapec.it" schemaLocation="https://areaclienti.arubapec.it/arubapec/rpc/EmailManager?xsd=1"/>
580c580
< <soap:address location="http://areaclienti.arubapec.it:443/arubapec/rpc/EmailManager"/>
---
> <soap:address location="https://areaclienti.arubapec.it/arubapec/rpc/EmailManager"/>

In particular, the file downloaded with this plugin shows an imported schema location with http scheme on port 443, instead of https. This makes a subsequent call to JAXB XJC fail when trying to retrieve the referred schema, because that URL is invalid.
I'm pretty sure there's some flaky server-side processing here which is altering the WSDL output, however it must be due to some kind of unusual client behavior, because all my attempts to download that WSDL result in a correct schemaLocation being output (I even tried wget, curl, etc.).
Sample build script
plugins {
  id "de.undercouch.download" version "5.1.1"
}

task downloadArubaPecEmailManagerWsdl(type: Download) {
        src 'https://areaclienti.arubapec.it/arubapec/rpc/EmailManager?wsdl'
        dest new File(buildDir, 'EmailManager.wsdl')
        onlyIfModified true
}

Thanks for reporting this. I can reproduce the issue.
If you enable debug mode in Gradle, you can see that gradle-download-task sends a Host header with a port:
> GET /arubapec/rpc/EmailManager?wsdl
> Accept-Encoding: gzip, x-gzip, deflate
> Host: areaclienti.arubapec.it:443
> Connection: keep-alive

According to this thread, other clients do not include the port in the host header, so gradle-download-task shouldn't do that either.
I will fix this and get back to you. In the meantime you can specify the Host header yourself to work around this issue:
task downloadArubaPecEmailManagerWsdl(type: Download) {
        src 'https://areaclienti.arubapec.it/arubapec/rpc/EmailManager?wsdl'
        dest new File(buildDir, 'EmailManager.wsdl')
        header "Host", "areaclienti.arubapec.it"
        onlyIfModified true
}

I've fixed the issue and published a new version 5.1.2. Please test again.


Cake build scripts

Our various Makefiles do not currently work well on windows, so @tritao and I are looking to start the process of migrating to Cake.
This PR includes:

Just a few build targets Generate-Android is set to Default
Run-Java-Tests works (except on Windows there is an issue compiling C)
Windows & OS X bootstrap scripts for Cake
Point external/Xamarin.Android.Tools back to official repo

Changes from standard Cake scripts:

Using experimental flag for C# 6/Roslyn on Windows
Using .cake instead of the tools directory
Using .nuget/nuget.exe because we already have it there

From here, we can start adding more Cake tasks.

nice

Build failed


chore: Bump svelte peer dependency

Bump svelte peer dependency to include svelte 5 RC, closes #967
I would have liked to also bump the svelte version on the sveltekit example to make it easier to test, but it would break the build of the svelte package afterwards.

Summary by CodeRabbit

New Features

Updated dependencies for improved performance and compatibility.
Enhanced support for Svelte 5 alongside Svelte 4 in the package configuration.

Bug Fixes

Incremented versions of key dependencies to ensure stability and access to the latest features.

I would have liked to also bump the svelte version on the sveltekit example to make it easier to test, but it would break the build of the svelte package afterwards.

Can you elaborate on this @AlanAcDz ? Is it something that can be done once stable is out or what's blocking it?

Mark approved

I would have liked to also bump the svelte version on the sveltekit example to make it easier to test, but it would break the build of the svelte package afterwards.

Can you elaborate on this @AlanAcDz ? Is it something that can be done once stable is out or what's blocking it?

Yeah, both the sveltekit example and the svelte package use svelte v4 atm, if you bump only the example version it breaks the build of the package because of how the monorepo manages dependencies.


vanilla JS framework for frontend and refactoring work

We need a JS framework to deduplicate code like this:
https://github.com/Enter-tainer/typst-preview/blob/e31b29cd302262693d7c7fc6c0d2354bf3ed7f81/addons/frontend/src/typst-doc.ts#L574-L597
The JS framework should be like vanilla JS, since:

webview doesn't like too complicated code and framework. For example, there are pain upstream bugs found in vscode-webview-ui-toolkit.
PS: we also have found some upstream bug of SVG rendering in webview, which hints that we may be better to have fully control of our code. Instead we will come into no idea on solving upstream bugs.
the JS framework should easily interoperate with vDOM of typst documents.

I personally pick https://github.com/vanjs-org/van with seeing benchmark. It is also the first googled item. But we can check other ones.
The refactoring plan and work needs participation of @Enter-tainer.
It is not quite urgent, and once we have a plan, we can break refactoring into parts and merge them into main branch. The each part of code refactoring should be simple, easy to review. And they should get separated into multiple version publish, so to avoid thrushing the stability of software?

For the code piece shown in the desciption I think vanjs is OK. I wonder do we need the reactive functionality of it. I guess it might be useful in presentation mode where there are multiple buttons and key bindings


(SSA Refactor): Returning arrays from if statements results in incorrect IR

Aim
Tried to return an array from an if statement:
fn main(x: bool) {
    let foo = [1, 2, 3];
    let bar = [4, 5, 6];

    // == true is required because of a parsing bug
    let y = if x == true { foo } else { bar };

    constrain y[0] == 12;
}

Expected Behavior
Valid SSA output
Bug
After flattening, the output is:
fn main f1 {
  b0(v0: u1):
    v1 = alloc 3 fields
    store Field 1 at v1
    v3 = add v1, Field 1
    store Field 2 at v3
    v5 = add v1, Field 2
    store Field 3 at v5
    v7 = alloc 3 fields
    store Field 4 at v7
    v9 = add v7, Field 1
    store Field 5 at v9
    v11 = add v7, Field 2
    store Field 6 at v11
    v13 = eq v0, Field 1
    v19 = not v13
    v20 = mul v13, v1    // multiplying the condition times an address is likely invalid.
    v21 = mul v19, v7
    v22 = add v20, v21   // adding the two multiplied addresses together is also likely invalid.
    v23 = load v22
    v24 = eq v23, Field 12
    constrain v24
    return unit 0
}

To Reproduce

Installation Method
None
Nargo Version
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response

Tests named 6_array is affected

Affects test named 9_conditional

Affects test named regression


Error when installing Edge via apt install microsoft-edge-stable

HI all,
I am trying to install the edge driver stable on Linux and since two weeks I am getting an error that some file is not found anymore. I was wondering if someone has got an idea on how to solve this.
My command is:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main" > /etc/apt/sources.list.d/microsoft-edge-dev.list'
/usr/bin/yes | sudo apt update && /usr/bin/yes | sudo apt install microsoft-edge-stable=95.0.1020.44-1
The most important error message at the end is
"E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.16_amd64.deb 404 Not Found [IP: <IP_ADDRESS> 80]"
Any idea how to solve or do I need to contact Microsoft directly?
Here is the complete error message:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed: fonts-liberation libgbm1 libu2f-udev libwayland-server0 udev The following NEW packages will be installed: fonts-liberation libgbm1 libu2f-udev libwayland-server0 microsoft-edge-stable udev 0 upgraded, 6 newly installed, 0 to remove and 12 not upgraded. Need to get 118 MB of archives. After this operation, 399 MB of additional disk space will be used. Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 fonts-liberation all 1:1.07.4-11 [822 kB]
Get:2 https://packages.microsoft.com/repos/edge stable/main amd64 microsoft-edge-stable amd64 95.0.1020.44-1 [116 MB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libwayland-server0 amd64 1.18.0-1 [31.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgbm1 amd64 21.2.6-0ubuntu0.1~20.04.2 [29.2 kB] Err:
5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 udev amd64 245.4-4ubuntu3.16 404 Not Found [IP: <IP_ADDRESS> 80]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 libu2f-udev all 1.1.10-1 [6,108 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 116 MB in 2s (74.5 MB/s)
Selecting previously unselected package fonts-liberation.
(Reading database ...

Preparing to unpack .../fonts-liberation_1%3a1.07.4-11_all.deb ...
Unpacking fonts-liberation (1:1.07.4-11) ...
Selecting previously unselected package libwayland-server0:amd64.
Preparing to unpack .../libwayland-server0_1.18.0-1_amd64.deb ...
Unpacking libwayland-server0:amd64 (1.18.0-1) ...
Selecting previously unselected package libgbm1:amd64.
Preparing to unpack .../libgbm1_21.2.6-0ubuntu0.1~20.04.2_amd64.deb ...
Unpacking libgbm1:amd64 (21.2.6-0ubuntu0.1~20.04.2) ...
Selecting previously unselected package microsoft-edge-stable.
Preparing to unpack ...
/microsoft-edge-stable_95.0.1020.44-1_amd64.deb ...
Unpacking microsoft-edge-stable (95.0.1020.44-1) ... S
etting up libwayland-server0:amd64 (1.18.0-1) ...
Setting up libgbm1:amd64 (21.2.6-0ubuntu0.1~20.04.2) ... Setting up fonts-liberation (1:1.07.4-11) ...
Setting up microsoft-edge-stable (95.0.1020.44-1) ...
update-alternatives: using /usr/bin/microsoft-edge-stable to provide /usr/bin/x-www-browser (x-www-browser) in auto mode update-alternatives: using /usr/bin/microsoft-edge-stable to provide /usr/bin/gnome-www-browser (gnome-www-browser) i auto mode update-alternatives: using /usr/bin/microsoft-edge-stable to provide /usr/bin/microsoft-edge (microsoft-edge) in auto mode
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/systemd/udev_245.4-4ubuntu3.16_amd64.deb 404 Not Found [IP: <IP_ADDRESS> 80]

Thanks for raising this issue. I'm trying to find the right place for this feedback to go to. I'll get back to you as soon as I know more.

Hi @AGrosserHH, unfortunately this repository is about the Edge docs so this isn't the right place for us to help you on this specific issue. The best place I found is the Microsoft Edge insider support page here: https://www.microsoftedgeinsider.com/en-us/support
Please do submit a request for support there. I hope you get the help you need to resolve this. Thanks for your understanding.


xparse "log-declarations = false" option is not working

As subject, the load-time option is not working!

\msg_redirect_module:nnn was broken, I'm ommitting a fix soon. That won't close this issue. The problem is that xparse uses kernel errors and warnings, and those cannot be redirected (unless you want to go for \msg_redirect_module:nnn { LaTeX } { error } { none }). Should we switch it to normal \msg_warning:nnxxxx?

Actually, there is a bit more to this than that: I need to think about the entire mechanism a bit more.


[Device Support Request] IKEA E2112 Vindstyrka Air Sensor.

Is your feature request related to a problem? Please describe.
Some functions is not ZCL R8 compatible and is not  working.
Describe the solution you'd like
Adding support for missing functions in ZHA

Device signature
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4476, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0302",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0402",
        "0x0405",
        "0x042a",
        "0xfc57",
        "0xfc7c",
        "0xfc7e"
      ],
      "out_clusters": [
        "0x0003",
        "0x0019",
        "0x0020",
        "0x0202"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "IKEA of Sweden",
  "model": "VINDSTYRKA",
  "class": "zigpy.device.Device"
}

Diagnostic information
{
  "home_assistant": {
    "installation_type": "Home Assistant Supervised",
    "version": "2023.3.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.10.10",
    "docker": true,
    "arch": "armv7l",
    "timezone": "Europe/Vienna",
    "os_name": "Linux",
    "os_version": "5.15.93-sunxi",
    "supervisor": "2023.03.1",
    "host_os": "Armbian 23.02.2 Jammy",
    "docker_version": "23.0.1",
    "chassis": "",
    "run_as_root": true
  },
  "custom_components": {
    "zha_toolkit": {
      "version": "0.0.0",
      "requirements": [
        "packaging>=20.8"
      ]
    },
    "remote_homeassistant": {
      "version": "3.6",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "zha",
    "name": "Zigbee Home Automation",
    "after_dependencies": [
      "onboarding",
      "usb"
    ],
    "codeowners": [
      "@dmulcahey",
      "@adminiuga",
      "@puddly"
    ],
    "config_flow": true,
    "dependencies": [
      "file_upload"
    ],
    "documentation": "https://www.home-assistant.io/integrations/zha",
    "iot_class": "local_polling",
    "loggers": [
      "aiosqlite",
      "bellows",
      "crccheck",
      "pure_pcapy3",
      "zhaquirks",
      "zigpy",
      "zigpy_deconz",
      "zigpy_xbee",
      "zigpy_zigate",
      "zigpy_znp"
    ],
    "requirements": [
      "bellows==0.34.10",
      "pyserial==3.5",
      "pyserial-asyncio==0.6",
      "zha-quirks==0.0.94",
      "zigpy-deconz==0.19.2",
      "zigpy==0.53.2",
      "zigpy-xbee==0.16.2",
      "zigpy-zigate==0.10.3",
      "zigpy-znp==0.9.3"
    ],
    "usb": [
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*2652*",
        "known_devices": [
          "slae.sh cc2652rb stick"
        ]
      },
      {
        "vid": "1A86",
        "pid": "55D4",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus v2"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*sonoff*plus*",
        "known_devices": [
          "sonoff zigbee dongle plus"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*tubeszb*",
        "known_devices": [
          "TubesZB Coordinator"
        ]
      },
      {
        "vid": "1A86",
        "pid": "7523",
        "description": "*zigstar*",
        "known_devices": [
          "ZigStar Coordinators"
        ]
      },
      {
        "vid": "1CF1",
        "pid": "0030",
        "description": "*conbee*",
        "known_devices": [
          "Conbee II"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*zigbee*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "0403",
        "pid": "6015",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate+"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "description": "*zigate*",
        "known_devices": [
          "ZiGate"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8B34",
        "description": "*bv 2010/10*",
        "known_devices": [
          "Bitron Video AV2010/10"
        ]
      }
    ],
    "zeroconf": [
      {
        "type": "_esphomelib._tcp.local.",
        "name": "tube*"
      },
      {
        "type": "_zigate-zigbee-gateway._tcp.local.",
        "name": "*zigate*"
      },
      {
        "type": "_zigstar_gw._tcp.local.",
        "name": "*zigstar*"
      },
      {
        "type": "_slzb-06._tcp.local.",
        "name": "slzb-06*"
      }
    ],
    "is_built_in": true
  },
  "data": {
    "ieee": "**REDACTED**",
    "nwk": 45252,
    "manufacturer": "IKEA of Sweden",
    "model": "VINDSTYRKA",
    "name": "IKEA of Sweden VINDSTYRKA",
    "quirk_applied": false,
    "quirk_class": "zigpy.device.Device",
    "manufacturer_code": 4476,
    "power_source": "Mains",
    "lqi": 206,
    "rssi": -60,
    "last_seen": "2023-03-14T14:11:45",
    "available": true,
    "device_type": "Router",
    "signature": {
      "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4476, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
      "endpoints": {
        "1": {
          "profile_id": 260,
          "device_type": "0x0302",
          "in_clusters": [
            "0x0000",
            "0x0003",
            "0x0004",
            "0x0402",
            "0x0405",
            "0x042a",
            "0xfc57",
            "0xfc7c",
            "0xfc7e"
          ],
          "out_clusters": [
            "0x0003",
            "0x0019",
            "0x0020",
            "0x0202"
          ]
        },
        "242": {
          "profile_id": 41440,
          "device_type": "0x0061",
          "in_clusters": [],
          "out_clusters": [
            "0x0021"
          ]
        }
      }
    },
    "active_coordinator": false,
    "entities": [
      {
        "entity_id": "button.ikea_of_sweden_vindstyrka_identify",
        "name": "IKEA of Sweden VINDSTYRKA"
      },
      {
        "entity_id": "sensor.ikea_of_sweden_vindstyrka_temperature",
        "name": "IKEA of Sweden VINDSTYRKA"
      },
      {
        "entity_id": "sensor.ikea_of_sweden_vindstyrka_particulate_matter",
        "name": "IKEA of Sweden VINDSTYRKA"
      },
      {
        "entity_id": "sensor.ikea_of_sweden_vindstyrka_humidity",
        "name": "IKEA of Sweden VINDSTYRKA"
      }
    ],
    "neighbors": [
      {
        "device_type": "Coordinator",
        "rx_on_when_idle": "On",
        "relationship": "Parent",
        "extended_pan_id": "**REDACTED**",
        "ieee": "**REDACTED**",
        "nwk": "0x0000",
        "permit_joining": "Unknown",
        "depth": "0",
        "lqi": "215"
      }
    ],
    "routes": [
      {
        "dest_nwk": "0x0000",
        "route_status": "Active",
        "memory_constrained": false,
        "many_to_one": true,
        "route_record_required": false,
        "next_hop": "0x0000"
      }
    ],
    "endpoint_names": [
      {
        "name": "TEMPERATURE_SENSOR"
      },
      {
        "name": "unknown 97 device_type of 0xa1e0 profile id"
      }
    ],
    "user_given_name": "IKEA VINDSTYRKA",
    "device_reg_id": "3f828a4feac677050c05527fc54d0bb5",
    "area_id": "living_room",
    "cluster_details": {
      "1": {
        "device_type": {
          "name": "TEMPERATURE_SENSOR",
          "id": 770
        },
        "profile_id": 260,
        "in_clusters": {
          "0x0000": {
            "endpoint_attribute": "basic",
            "attributes": {
              "0x0000": {
                "attribute_name": "zcl_version",
                "value": 8
              },
              "0x0002": {
                "attribute_name": "stack_version",
                "value": 106
              },
              "0x0004": {
                "attribute_name": "manufacturer",
                "value": "IKEA of Sweden"
              },
              "0x0005": {
                "attribute_name": "model",
                "value": "VINDSTYRKA"
              },
              "0x4000": {
                "attribute_name": "sw_build_id",
                "value": "1.0.010"
              }
            },
            "unsupported_attributes": {}
          },
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0004": {
            "endpoint_attribute": "groups",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0402": {
            "endpoint_attribute": "temperature",
            "attributes": {
              "0x0000": {
                "attribute_name": "measured_value",
                "value": 2500
              }
            },
            "unsupported_attributes": {}
          },
          "0x0405": {
            "endpoint_attribute": "humidity",
            "attributes": {
              "0x0000": {
                "attribute_name": "measured_value",
                "value": 4400
              }
            },
            "unsupported_attributes": {}
          },
          "0xfc57": {
            "endpoint_attribute": "manufacturer_specific",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0xfc7c": {
            "endpoint_attribute": "manufacturer_specific",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x042a": {
            "endpoint_attribute": "pm25",
            "attributes": {
              "0x0000": {
                "attribute_name": "measured_value",
                "value": 740.0
              }
            },
            "unsupported_attributes": {}
          },
          "0xfc7e": {
            "endpoint_attribute": "manufacturer_specific",
            "attributes": {},
            "unsupported_attributes": {}
          }
        },
        "out_clusters": {
          "0x0003": {
            "endpoint_attribute": "identify",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0019": {
            "endpoint_attribute": "ota",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0020": {
            "endpoint_attribute": "poll_control",
            "attributes": {},
            "unsupported_attributes": {}
          },
          "0x0202": {
            "endpoint_attribute": "fan",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      },
      "242": {
        "device_type": {
          "name": "unknown",
          "id": 97
        },
        "profile_id": 41440,
        "in_clusters": {},
        "out_clusters": {
          "0x0021": {
            "endpoint_attribute": "green_power",
            "attributes": {},
            "unsupported_attributes": {}
          }
        }
      }
    }
  }
}

Additional logs
Nothing HERE !!!

Additional context
From CSA-IOT cert:
Zigbee 3.0
Vindstyrka Air Sensor
SKU E2112
Firmware Version 1.0.11
Hardware Version 1
Certificate ID ZIG23024ZB331492-24
Certified Date 02/23/2023
The device is shipped with firmware 1.0.010 but  the new have not being pushed to TF or DG but is very likely being done very soon (I shall trying sniffing it with Dirigea if its possible then the Zigbee module is debug locked so the device is sitting in "caranteen" for not  getting updated alone).
Its looks being very nice ZCL standard cluster but the VOC is not working and the  fan is being used for steering starkvind if being direct pared with it and i think it shall being possible doing the same with ZHA or using its command for other fan devices.
Z2M have making the most work so worth looking what the device can do but i think they have missing some parts and some can being done better in ZHA :-))
The device is working OK for the moment so i trying focus on catching the OTA firmware so we is getting one if users need it and later getting full support for the device.

Then looking i was finding one older version that early devices can being shipped with.
CSA-IOT certed Firmware Versions:

1.0.009
06/14/2022

1.0.010
08/08/2022

1.0.11
02/23/2023

I only having the <IP_ADDRESS> and dont knowing if the other is working the same way.

Cluster 0xfc7e in endpoint 1 provides a measurement in the range of 0-500 that correlates with the tVOC trend display on the unit itself.
See also: https://community.home-assistant.io/t/ikea-vindstyrka-zigbee-air-quality-sensor/549747/3?u=donny007x

I was adding 0xFC7F and 0xFC80 cluster for Symfonisk 2 and we need doing  the same for this device and we also need looking if Zigbee is having one standard cluster for tVOC in the  ZCL R8 and also if Matter ZCL is having some update on it but they is not having adding all classes and can coming later (IKEA is very heavy in CSA-IOT / Matter aliens and is using functions that is not in the standard but is coming).
My device is siting in carantene for not getting OTA updates from Dirigera but if some is having one connected to Dirigera and getting update pleas informing my and i trying sniffing it  and making one OTA file that  we can using in ZHA (i only have one chance getting all packages and then i must baying one more device for getting the missing packages). I dont know ind TF is having support for or if getting it but  is no OTA released in the open feed.
I is having little mush in the pipe that must being fixed but i trying helping as much i can with knowledge for getting good support for this device.
Also the fan control is interesting then the device is using it then connecting to Starkvind for steering the fan speed and can being used to controlling other devices but i think it shall being bounded to devices fan cluster and we shall getting it working in ZHA if its possible.
But i dont have any Strakvind and i was testing flashing the OTA firmware on one Zigbee module but it looks not starting OK then its not having all hardware its need for working OK so wee need some with one Starkvind later for testing.

The ZCL R8 doc specifies a standard cluster ID for PM2.5 (0x042A, listed under "Concentration Measurement"), but not one for tVOC. I couldn't find anything in the Matter Clusters on air quality sensing.
The Sensirion SEN54 sensor module inside VINDSTYRKA reports a "VOC index" on a scale of 0-500, which matches the bounds reported by the attribute. So it looks like we're getting the processed value directly from the sensor: https://sensirion.com/media/documents/02232963/6294E043/Info_Note_VOC_Index.pdf

Was looking if Matter have implanting the sensor cluster but i was not finding PM2.5 and tVOC so its not in the pipe for next update of ZCL for Zigbee and Matter.
How have HA implanting it for other sensors ?
Some sensors that is being tracked https://github.com/zigpy/zigpy/discussions/691.
How have Z2M mapping it in HA ?

New version 1.0.11 looks having the same end point and cluster setting:
{
  "node_descriptor": "NodeDescriptor(logical_type=<LogicalType.Router: 1>, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=<FrequencyBand.Freq2400MHz: 8>, mac_capability_flags=<MACCapabilityFlags.AllocateAddress|RxOnWhenIdle|MainsPowered|FullFunctionDevice: 142>, manufacturer_code=4476, maximum_buffer_size=82, maximum_incoming_transfer_size=82, server_mask=11264, maximum_outgoing_transfer_size=82, descriptor_capability_field=<DescriptorCapability.NONE: 0>, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)",
  "endpoints": {
    "1": {
      "profile_id": 260,
      "device_type": "0x0302",
      "in_clusters": [
        "0x0000",
        "0x0003",
        "0x0004",
        "0x0402",
        "0x0405",
        "0x042a",
        "0xfc57",
        "0xfc7c",
        "0xfc7e"
      ],
      "out_clusters": [
        "0x0003",
        "0x0019",
        "0x0020",
        "0x0202"
      ]
    },
    "242": {
      "profile_id": 41440,
      "device_type": "0x0061",
      "in_clusters": [],
      "out_clusters": [
        "0x0021"
      ]
    }
  },
  "manufacturer": "IKEA of Sweden",
  "model": "VINDSTYRKA",
  "class": "vindstyrka.IkeaVINDSTYRKA"
}

I was sniffing the upgrade but i was loosing 2 package so i cant doing one OTA file but i shall fixing it in one other way (sad for IKEA getting one updated device back that was broken of there OTA update  ;-))  ) so users without Dirigear can getting there devices updated.

Any news?

Why did this get closed? There is a PR open specifically for this issue
https://github.com/zigpy/zha-device-handlers/pull/2315

can we reopen the issue? I have a vindstyrka and I offert myself to help with this work


drivers: pinctrl: Microchip XEC PINCTRL add invert pin

Add support for inverting the output (of alternate pin functions) on Microchip XEC GPIO pins.
Signed-off-by: Jay Vasanth<EMAIL_ADDRESS>

@albertofloyd can you help to review the PR?

@MaureenHelm can you help to review and approve this PR?


Theater Mode

adds "theater mode" (ie; youtube style), assigned to "Theater Mode" button in right settings panel, and F4 key
shows an [X] on "canvas" hover to close/exit theater mode for users who may not have access to F4 shortcut keys

Thanks for your contribution!


node-gyp/test/fixtures/test-charmap.py:11: DeprecationWarning: 'locale.getde faultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.

On master branch when doing npm test it seems the test use outdated python apis, leading to errors.

Py3.15 will be released in October 2026 so not a massive rush but still good to get this fixed.


adding correct area attributes to proportions_lc_by_prms() functions

Added 2 params - area_col and length_col - in the proportions_lc_by_prms() saved in combine_NLCD_PRMS.R.
proportion_lc_by_prms <- function(NLCD_LC_df_w_area, area_col, length_col = 'LENGTHKM', catchment_att = 'CAT')

This way when aggregating to PRMS scale, the NLCD TOT datasets is subsetting and aggregating using the right area metric comparedi to NLCD ACC and NLCD CAT.
See one in-line comment regarding ACC.
Addresses issue #130

Waiting on #122 for merge.

@jds485 cannot say whether this needs to be merged now. Can you review based on most recent changes to the pipeline?

@jds485 cannot say whether this needs to be merged now. Can you review based on most recent changes to the pipeline?

Nevermind this is also ready to merge.

Clarification point:
NLCD proportions for total and accumulated are only aggregated from its respective comid down:
in 2_process.R, added a filter to only consider these down catchments:
proportion_lc_by_prms(**p2_NLCD_LC_w_catchment_area %>%**
                            # filtering to only the comid_downs of each PRMS - nrow = ~459
                            **filter(comid %in% p2_drb_comids_down$comid)**,
                          catchment_att = 'ACC', remove_NODATA_cols = TRUE)
                          area_col = 'TOTDASQKM',length_col = 'LENGTHKM',
                          catchment_att = 'ACC',
                          remove_NODATA_cols = TRUE)


STARTING DEAMON FIX PLS

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to 'open app'
Click on 'create wallet then i click to back nothing happens only says starting daemon wth
See error

i cant send logs cuz there isnt
I HAVE GOOD INTERNET
IM USING LATEST VERSION
I HAVE REINSTALL 2TIMES
AND STILL SAME ERROR WTH

Logs are required to investigate the issue


nixos-rebuild --install-bootloader does not add an efi boot entry

Describe the bug
I had to do a bios upgrade and my EFI boot entries and boot order were cleared.
Using a spare usb key with nixos, I booted into systemd-boot through refind.
I then tried to reinstall the bootloader with nixos-rebuild --install-bootloader .... but it did not work.
edit: excerpt from my config
{
  boot.loader = {
    timeout = 10;
    efi = {
      canTouchEfiVariables = true;
      efiSysMountPoint = "/boot/efi";
    };
    systemd-boot = {
      enable = true;
      editor = true;
      consoleMode = "auto";
    };
  };
}

I then tracked down what I assume was the problem:
https://github.com/NixOS/nixpkgs/blob/2136e90fa39c2cfc5ec48e67315be4e08c741493/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py#L206-L222
For some reason, even when using the install-bootloader, bootctl install is never called.
$ sudo strace -f -e execve nixos-rebuild --install-bootloader switch --flake ~/dotfiles -v -L 2>&1 | grep bootctl
[pid 70140] execve("/nix/store/ss3pnkjknb8bc9ljdyy9wn00n0y7bxhp-systemd-247.6/bin/bootctl", ["/nix/store/ss3pnkjknb8bc9ljdyy9w"..., "--version"], 0x7fff6dae38b0 /* 36 vars */) = 0
[pid 70141] execve("/nix/store/ss3pnkjknb8bc9ljdyy9wn00n0y7bxhp-systemd-247.6/bin/bootctl", ["/nix/store/ss3pnkjknb8bc9ljdyy9w"..., "--path=/boot/efi", "status"], 0x7fff6dae38b0 /* 36 vars */) = 0

$ efibootmgr -v
BootCurrent: 0006
Timeout: 1 seconds
BootOrder: 0000,0006,0003,0004,0005
Boot0000* Windows Boot Manager	HD(1,GPT,c704235b-4cb8-bc4c-b519-4d738078be4b,0x800,0x142000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS
Boot0003* HDD ...
Boot0004* SSD ...
Boot0005* USB .....
Boot0006* UEFI: USB ....

I had to use bootctl install manually to resolve the issue.
To Reproduce
$ efibootmgr -v | grep -i linux
Boot0001* Linux Boot Manager	HD(1,GPT,c704235b-4cb8-bc4c-b519-4d738078be4b,0x800,0x142000)/File(\EFI\systemd\systemd-bootx64.efi)
# Delete the Linux entry if present
$ efibootmgr -B -b 0001

$ nixos-rebuild --install-bootloader ......

$ efibootmgr -v | grep -i linux
<nothing>

Expected behavior
I expect a boot entry to be present
$ efibootmgr -v | grep -i linux
Boot0001* Linux Boot Manager	HD(1,GPT,c704235b-4cb8-bc4c-b519-4d738078be4b,0x800,0x142000)/File(\EFI\systemd\systemd-bootx64.efi)

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers

Metadata
$ nix run nixpkgs#nix-info -- -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.12.9-zen1, NixOS, 21.11.20210613.6aa2bb6 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210601_5985b8b`
 - channels(root): `""`
 - channels(nicolas): `""`
 - nixpkgs: `/nix/store/d5yawhdysxikaf01cf2kd9ngz4i9ahj8-s9kqqhxvs8234vznjjp5961x47apc5nw-source`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

I  can confirm this bug. I just ran into the issue changing the boot partition to a different drive.
I first changed the /boot partition configuration, did nixos-rebuild switch, confirmed the new boot was mounted and empty, then did nixos-rebuild --install-bootloader switch which installed the nixos generations, etc., but not BOOTX64.EFI, etc. I fixed this with a manual bootctl install.
$ nixos-version
20.09.3951.bba3474a579 (Nightingale)

I ran into this problem too. I think this is an interaction between nixos-rebuild and sudo. When SUDO_USER is set, nixos-rebuild will execute sudo ... switch-to-configuration (I'm not sure what the rationale is for running sudo in this situation, but maybe there is some good reason).
The --install-bootloader is passed to nixos-switch-to-configuration using the environment variable NIXOS_INSTALL_BOOTLOADER=1, but sudo wipes out all the environment variables. This could be fixed using sudo -E, but it may be better to avoid relying on the environment as it depends on a specific sudo configuration.
# As regular user.
$ sudo nixos-rebuild switch --flake ~orbekk/projects/nixos-config --install-bootloader boot
building the system configuration...
updating GRUB 2 menu...

# As root, but SUDO_USER is still set.
$ sudo -s
$ echo $SUDO_USER
orbekk
$ nixos-rebuild switch --flake ~orbekk/projects/nixos-config --install-bootloader boot
building the system configuration...
updating GRUB 2 menu...

# As root, without SUDO_USER.
$ SUDO_USER=
$ nixos-rebuild switch --flake ~orbekk/projects/nixos-config --install-bootloader boot
building the system configuration...
updating GRUB 2 menu...
installing the GRUB 2 EFI boot loader into /boot...
Installing for x86_64-efi platform.
/nix/store/s78h6wsr8lqrr6x0xb0n12wrqcdgfwdq-grub-2.06-rc1/sbin/grub-install: warning: cannot open directory `/nix/store/s78h6wsr8lqrr6x0xb0n12wrqcdgfwdq-grub-2.06-rc1/share/locale': No such file or directory.
Installation finished. No error reported.

Oh dam, been battling with this issue for ages. I moved over all partitions (including my root and boot drive) to another larger hdd, kept all the same UUIDs and took out the old drive, did a nixos rebuild etc.
Grub would boot but it'd error with "error: no such partition" and it would enter rescue mode.
Running the efibootmgr -v | grep -i linux showed me no entry, so it was fixed by running bootctl install.


Widen CLA Scope

Hi all, cool project, thanks for keeping it going!
I need to have a CLA for the scope of a whole organization, not just individual repos.  When new repos are added, they should be covered by the existing CLA, not require a new CLA to be signed.
IANAL, but the way things are articulated, it would be easy for a layperson to be convinced that the CLAs here reflect against individual repos, and a new repo that was created without it being included in CLAHub could be confused for a CLA not being required for that repo.

Duplicate of #82?

Aren't duplicates considered in chronological order?

Not always. The other issue have more information and more participation. But I marked both as duplicates and I am leaving to maintainers to decide.

@mitar Agreed. Closing this one as duplicate as there is more activity on #82

Yah good luck with it all. I filed this, what, 2.5 years ago? I doubt it will go very far. And that activity...  Woo hoo.
Whatever.


Pluggable logging backends

It would be helpful to configure multiple backends for logplexer, as in prod, we want to be able to log to standard out and Honeybadger, however in development we want to log to a /log/development.log.

The ability to add global configuration has been added in v1.0.0

Works like a charm, thanks, mate!


test: Set CT TCP map size in v1.3 ConfigMaps

I came to the conclusion way too quick.
The upgrade test upgrades Cilium to the latest. The latest version CT TCP map size is 1000000, while v1.3 - 524288. To avoid the removal of the CT TCP maps due to max entries mismatch, we need to set size in the v1.3 ConfigMaps.
Should fix the nightly CI failure: https://jenkins.cilium.io/job/cilium-master-Nightly/173

This change is

test-nightly-please

test-nightly

Coverage decreased (-0.002%) to 41.448% when pulling d7ade68aaef4e8725f04123913484a2440e2f5a1 on pr/brb/fix-nightly-update into 44018adc91e2e67ad1c57a200a784dddec16f512 on master.

CI failed due to:
Still waiting to schedule task
Waiting for next available executor on ‘fixed’

test-nightly

test-me-please


Tests fail to link on Ubuntu 14.04

Linking CXX executable /home/mkoval/storage/herb-ws/devel/lib/or_multiset/test_hashes
/usr/bin/ld: /home/mkoval/storage/herb-ws/devel/lib/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [/home/mkoval/storage/herb-ws/devel/lib/or_multiset/test_hashes] Error 1
make[2]: *** [CMakeFiles/test_hashes.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
Linking CXX executable /home/mkoval/storage/herb-ws/devel/lib/or_multiset/test_wam7
/usr/bin/ld: /home/mkoval/storage/herb-ws/devel/lib/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [/home/mkoval/storage/herb-ws/devel/lib/or_multiset/test_wam7] Error 1
make[2]: *** [CMakeFiles/test_wam7.dir/all] Error 2
Linking CXX executable /home/mkoval/storage/herb-ws/devel/lib/or_multiset/test_selfcc
/usr/bin/ld: /home/mkoval/storage/herb-ws/devel/lib/libgtest.a(gtest-all.cc.o): undefined reference to symbol 'pthread_key_delete@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [/home/mkoval/storage/herb-ws/devel/lib/or_multiset/test_selfcc] Error 1
make[2]: *** [CMakeFiles/test_selfcc.dir/all] Error 2
make[1]: *** [CMakeFiles/tests.dir/rule] Error 2
make: *** [tests] Error 2

Strangely enough this works for me on ava (Ubuntu 14.04) using catkin_make, but fails as above with catkin build.  Note that the reported error, error adding symbols: DSO missing from command line, may have to do with link order on the command line.


Fix incorrect port in docker-compose file

This pull request fixes an incorrect port in the docker-compose file. The port was mistakenly set to 8090 instead of the correct port 8080. The patch in the pull request corrects this error by updating the port to the correct value.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.20%. Comparing base (7220372) to head (1763693).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage   92.20%   92.20%
=======================================
  Files          22       22
  Lines         885      885
=======================================
  Hits          816      816
  Misses         48       48
  Partials       21       21

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add filip-mihalic to Contributors list

My firs OSS contribution.

Hi  @nathan-drake, I'm quite elated about your pull request. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a pull request and learned that I merged it?
We’ve recently added social share  to our web app. Could you please go to https://roshanjossey.github.io/first-contributions/#social-share and share your first contribution to open source?
Also, check out projects with easy issues while you’re there.


Create an fpm package skeleton

Get fpm and create a skeleton for the project via fpm new.

Hello, I've submitted a PR and would appreciate it if you could review it.

Done by #2


Made changes to the sameSite parameter in the set method

Added "None" as an option for sameSite.
Defaulted sameSite to "None".

Hey
Sorry for my late reaction. I will merge this now and publish a new version on NPM. Thanks a lot for your help @IceBreakerG.
Cheers


@azure/data-tables - Multiple transactions with the same Partition Key

Package Name: @azure/data-tables
Package Version: 12.0.0-beta.3
Operating system: Windows
[ ] nodejs

version: v12.16.1

[ ] browser

name/version: Microsoft Edge/Version 90.0.818.66 (Official build) (64-bit)

[ ] typescript

version: 4.2.4

Is the bug related to documentation in

[ ] README.md
[ ] source code documentation
[ ] SDK API docs on https://docs.microsoft.com

Describe the bug
When calling twice to tableClient.submitTransaction(actions) the second call is empty.
To Reproduce
Steps to reproduce the behavior:
const TableBatchMaxElements = 100;

async putBatchInTable(
	tableUrl: string,
	tableName: stirng,
	data[]: string,
) {
	const tableClient = new AzureTableClient(tableUrl, tableName);

	let start = 0;
	while (start < data.length) {
		const actions: TransactionAction[] = data
			.slice(start, start + TableBatchMaxElements)
			.map((info) => {
				const transactionAction: TransactionAction = [
					'create',
					{
						partitionKey: partitionKey,
						rowKey: blobInfo.id,
						Info: info,
					},
				];
				return transactionAction;
			});
		start += TableBatchMaxElements;

		await tableClient.submitTransaction(actions);
	}
}

Expected behavior
Expecting to be able to insert number of transactions

@ArielYehezkely thanks for reporting this issue. I have identified the root cause and currently working on a fix. I'll post a link to the PR here as soon as it is ready

Hi @joheredi,
I tried with version 12.0.0-alpha.20210604.1 and still couldn't make it to send multiple requests - only the first batch was inserted. Is this version includes the fix? When should I expect it to arrive beta?

Hi @ArielYehezkely, thanks for taking the time to try it out and report back your findings. Are you getting any errors? If so would you mind sharing them, please?
To make sure you have the latest dev build please run npm install @azure/data-tables@dev. Looking at the version you mention above, I believe it should contain the fix. I have created a local sample similar to your snippet above and is working fine.
I can't tell from your snippet whereblobInfo.id comes from, but make sure that you are adding entities to the transaction that have unique rowKey.
Getting more details on the error or problem you are getting would be really helpful!

Hi @joheredi ,
Apparently my registry blocked the usage of the dev version and the last test was using 12.0.0-beta.2.
I've tried with version 12.0.0-alpha.20210607.1 and it works!
Thanks for the fix, hope it will arrive Beta soon.

Glad to hear it worked fine. We'll be releasing soon, I'll post an update once we release!
Thanks for taking the time to report the issue!


bcc: 0.23.0 -> 0.24.0

Switch to vendored libbpf because latest release is too old for bcc.

Motivation for this change
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

crash here:
bpftrace is calling a bcc function calling something in libbpf, but it's that's using the system's libbpf and not the one it was built with, so that won't work well:
#0  0x00007ffff011a5d1 in __strlen_avx2 ()
   from /nix/store/s9qbqh7gzacs7h68b2jfmn9l6q4jwfjz-glibc-2.33-59/lib/libc.so.6
#1  0x00007ffff002cd75 in __vfprintf_internal ()
   from /nix/store/s9qbqh7gzacs7h68b2jfmn9l6q4jwfjz-glibc-2.33-59/lib/libc.so.6
#2  0x00007ffff002d543 in buffered_vfprintf ()
   from /nix/store/s9qbqh7gzacs7h68b2jfmn9l6q4jwfjz-glibc-2.33-59/lib/libc.so.6
#3  0x00007ffff002c445 in __vfprintf_internal ()
   from /nix/store/s9qbqh7gzacs7h68b2jfmn9l6q4jwfjz-glibc-2.33-59/lib/libc.so.6
#4  0x00007ffff7f84b7b in libbpf_print ()
   from /nix/store/kgsfd3zvjgmpal75qnyrhk2jvs7ibs70-libbpf-0.6.1/lib/libbpf.so.0
#5  0x00007ffff7f91064 in __bpf_object__open_xattr.constprop.0 ()
   from /nix/store/kgsfd3zvjgmpal75qnyrhk2jvs7ibs70-libbpf-0.6.1/lib/libbpf.so.0
#6  0x00007ffff7f91147 in bpf_object.open_xattr ()
   from /nix/store/kgsfd3zvjgmpal75qnyrhk2jvs7ibs70-libbpf-0.6.1/lib/libbpf.so.0
#7  0x00007ffff7f9851d in bpf_prog_load_xattr ()
   from /nix/store/kgsfd3zvjgmpal75qnyrhk2jvs7ibs70-libbpf-0.6.1/lib/libbpf.so.0
#8  0x00007ffff7f98723 in bpf_prog_load_deprecated ()
   from /nix/store/kgsfd3zvjgmpal75qnyrhk2jvs7ibs70-libbpf-0.6.1/lib/libbpf.so.0
#9  0x00007ffff667c5de in libbpf_bpf_prog_load ()
   from /nix/store/wzrn7wp5809ryphzlqshj8jzxq1jf9b1-bcc-0.24.0/lib/libbcc_bpf.so.0
#10 0x00007ffff667d6a5 in bcc_prog_load_xattr ()
   from /nix/store/wzrn7wp5809ryphzlqshj8jzxq1jf9b1-bcc-0.24.0/lib/libbcc_bpf.so.0
#11 0x00007ffff667de93 in bcc_prog_load ()
   from /nix/store/wzrn7wp5809ryphzlqshj8jzxq1jf9b1-bcc-0.24.0/lib/libbcc_bpf.so.0
#12 0x000000000049b57f in bpftrace::try_load(libbpf::bpf_prog_type, bpf_insn*, unsigned long, char const*) ()
#13 0x000000000049b877 in bpftrace::BPFfeature::detect_prog_type(libbpf::bpf_prog_type, char const*)
    ()
#14 0x00000000005498fe in bpftrace::ast::SemanticAnalyser::visit(bpftrace::ast::AttachPoint&) ()
#15 0x000000000054a1ac in bpftrace::ast::SemanticAnalyser::visit(bpftrace::ast::Probe&) ()
#16 0x000000000053b2c0 in bpftrace::ast::SemanticAnalyser::visit(bpftrace::ast::Program&) ()
#17 0x000000000053c42d in bpftrace::ast::SemanticAnalyser::analyse() ()
#18 0x000000000043ed1f in main ()

I guess it's time to ask upstream to cut a new release so we can update all of them at the same time? :/
I'm not sure how we can make this work otherwise... It's probably possible to keep a bcc23 around for bpftrace but that's a bit meh as well, what do you think?

How about this approach?

I leave this upgrade to someone else. I am using bpftrace...

Sorry if I sounded rude, I appreciate the effort (and pain we keep getting put through with this...)
For what it's worth, I've tried yet another approach: package whatever libbpf commit bcc has as submodule, so both bcc and bpftrace use the same version.
There are a couple of deprecation warnings but it built fine and bpftrace appears to work, so that might be a way forward, but I haven't taken the time to check all other users of libbpf still work: what do you think?
I've also just asked upstream when they plan on releasing here: https://github.com/libbpf/libbpf/issues/440
Here's a diff from master with what I tested (should probably also change libbpf "version" field to something '0.7-pre'ish to be clean):
diff --git a/pkgs/os-specific/linux/bcc/default.nix b/pkgs/os-specific/linux/bcc/default.nix
index caeaed455f7e..ecae3ae86d9f 100644
--- a/pkgs/os-specific/linux/bcc/default.nix
+++ b/pkgs/os-specific/linux/bcc/default.nix
@@ -7,7 +7,7 @@

 python.pkgs.buildPythonApplication rec {
   pname = "bcc";
-  version = "0.23.0";
+  version = "0.24.0";

   disabled = !stdenv.isLinux;

@@ -15,7 +15,7 @@ python.pkgs.buildPythonApplication rec {
     owner = "iovisor";
     repo = "bcc";
     rev = "v${version}";
-    sha256 = "sha256-iLVUwJTDQ8Bn38sgHOcIR8TYxIB+gIlfTgr9+gPU0gE=";
+    sha256 = "sha256-KrhbNQzdfzQaxe/V2x1Pa0kroD4YcXW1+lC+NWnLKns=";
   };
   format = "other";

diff --git a/pkgs/os-specific/linux/libbpf/default.nix b/pkgs/os-specific/linux/libbpf/default.nix
index daee83e61dbc..59a7c6a210bb 100644
--- a/pkgs/os-specific/linux/libbpf/default.nix
+++ b/pkgs/os-specific/linux/libbpf/default.nix
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
   src = fetchFromGitHub {
     owner = "libbpf";
     repo = "libbpf";
-    rev = "v${version}";
-    sha256 = "sha256-/MLPflnfooe7Wjy8M3CTowAi5oYpscruSkDsaVzhmYQ=";
+    rev = "22411acc4b2c846868fd570b2d9f3b016d2af2cb";
+    sha256 = "sha256-323QUh1zn4nKhJY+eQcReM3uIrWWi8aqkwEsLA+Oog0=";
   };

   nativeBuildInputs = [ pkg-config ];
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {

   postInstall = ''
     # install linux's libbpf-compatible linux/btf.h
-    install -Dm444 ../include/uapi/linux/btf.h -t $out/include/linux
+    install -Dm444 ../include/uapi/linux/*.h -t $out/include/linux
   '';

   # FIXME: Multi-output requires some fixes to the way the pkg-config file is

Sorry if I sounded rude, I appreciate the effort (and pain we keep getting put through with this...)
For what it's worth, I've tried yet another approach: package whatever libbpf commit bcc has as submodule, so both bcc and bpftrace use the same version. There are a couple of deprecation warnings but it built fine and bpftrace appears to work, so that might be a way forward, but I haven't taken the time to check all other users of libbpf still work: what do you think?
I've also just asked upstream when they plan on releasing here: libbpf/libbpf#440
Here's a diff from master with what I tested (should probably also change libbpf "version" field to something '0.7-pre'ish to be clean):
diff --git a/pkgs/os-specific/linux/bcc/default.nix b/pkgs/os-specific/linux/bcc/default.nix
index caeaed455f7e..ecae3ae86d9f 100644
--- a/pkgs/os-specific/linux/bcc/default.nix
+++ b/pkgs/os-specific/linux/bcc/default.nix
@@ -7,7 +7,7 @@

 python.pkgs.buildPythonApplication rec {
   pname = "bcc";
-  version = "0.23.0";
+  version = "0.24.0";

   disabled = !stdenv.isLinux;

@@ -15,7 +15,7 @@ python.pkgs.buildPythonApplication rec {
     owner = "iovisor";
     repo = "bcc";
     rev = "v${version}";
-    sha256 = "sha256-iLVUwJTDQ8Bn38sgHOcIR8TYxIB+gIlfTgr9+gPU0gE=";
+    sha256 = "sha256-KrhbNQzdfzQaxe/V2x1Pa0kroD4YcXW1+lC+NWnLKns=";
   };
   format = "other";

diff --git a/pkgs/os-specific/linux/libbpf/default.nix b/pkgs/os-specific/linux/libbpf/default.nix
index daee83e61dbc..59a7c6a210bb 100644
--- a/pkgs/os-specific/linux/libbpf/default.nix
+++ b/pkgs/os-specific/linux/libbpf/default.nix
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
   src = fetchFromGitHub {
     owner = "libbpf";
     repo = "libbpf";
-    rev = "v${version}";
-    sha256 = "sha256-/MLPflnfooe7Wjy8M3CTowAi5oYpscruSkDsaVzhmYQ=";
+    rev = "22411acc4b2c846868fd570b2d9f3b016d2af2cb";
+    sha256 = "sha256-323QUh1zn4nKhJY+eQcReM3uIrWWi8aqkwEsLA+Oog0=";
   };

   nativeBuildInputs = [ pkg-config ];
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {

   postInstall = ''
     # install linux's libbpf-compatible linux/btf.h
-    install -Dm444 ../include/uapi/linux/btf.h -t $out/include/linux
+    install -Dm444 ../include/uapi/linux/*.h -t $out/include/linux
   '';

   # FIXME: Multi-output requires some fixes to the way the pkg-config file is

I did not perceived it as rude, I think you are just in a better position to fix it.

Okay, let's wait for what upstream has to say about a release, and I'll open a new PR.

(Adding @vcunat to Ccs as he took part of upstream release discussion)
So upstream will release 0.7 "in a few weeks", I see three ways forward:

least work would be to just wait for it, update libbpf and bcc and deal with any package that might no longer work as usual (there's no API removal, just deprecation warnings that I can see, so should be OK)
update libbpf now with a pre-0.7 version from git; since I didn't see API breakage it should work but we're taking a bit more risks, and I can't test everything (e.g. dpdk)
add a new libbpf_git package just for bcc/bpftrace for now, and remove it again when release is made. When libbpf 1.0 is released the deprecated functions will be removed (from the release plans issue 0.7 and possibly 0.8 will mostly be compatible leaving time for users to use new APIs), so we might need to split libbpf users at this point.

Looking at the bcc release notes for 0.24: https://github.com/iovisor/bcc/releases the main takeaway seems to be linux 5.16 support, we're still at 5.10 for default kernel so it might be OK to wait a bit?
Happy to go with anything, what do you think?

I'd probably avoid updating all packages to pre-release libbpf.  Otherwise whatever you feel like.

libbpf 0.7.0 got released today, so opened #159173 with libbpf + bcc update


feat($compile): add preAssignBindings flag

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature
What is the current behavior? (You can also link to an open issue here)
Bindings are assigned to controller objects before their constructors are called
What is the new behavior (if this is a feature change)?
A flag can now be set so that bindings are assigned to controller objects after their constructors are called
Does this PR introduce a breaking change?
no
Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines: https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#commit-message-format
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Other information:
A new flag to enable/disable whether directive controllers are assigned bindings before
calling the controller's constructor.
If enabled (true), the compiler assigns the value of each of the bindings to the
properties of the controller object before the constructor of this object is called.
If disabled (false), the compiler calls the constructor first before assigning bindings.
The default value is enabled (true) in Angular 1.5.x but will switch to false in Angular 1.6.x.
See #14580

In line with a few other provider fns, I think we should call this one preAssign(ed)BindingsEnabled or something. (Enabled being the important part).

I can't comment on parseSpec.js changes inline as the diff is too big for GitHub so I'll write here: in the should cope with changes occuring inside '`$onChanges()` hooks test there is now nothing assigned in the controller. Also, most of the tests have moved the initial checks into the $onInit method. Am I missing something or is the constructor behavior for the flag set to false untested?

@Narretz - I agree. I will update the name of the flag getter-setter
@mgol - Github will show the diff if you ignore whitespare: https://github.com/angular/angular.js/pull/15095/files?w=s.
In the tests I took the approach of running a large collection of the tests with both preAssignBindings enabled and disabled. What I found was that there were a load of tests that checked for properties being assigned inside the controller. Obviously when our flag is set to false this doesn't happen and the correct place to check is in $onInit, which is the first point where we promise that bindings will have been assigned. So the approach I took was to run the check in the controller if preAssignBindings is true and inside the $onInit otherwise.
This covers almost all the changes in the specs, except for the one that you point out should cope with changes occurring inside '$onChanges() hooks. In this case I had previously added a "hack" to ensure that the property had a valid number in it at the start (i.e. this.prop1 = 0;) without this you get an extra call to $onChanges with the initial NaN value. This doesn't work if we are not preAssigningBindings. I wondered if this was actually a bug but I think that I was really just hiding the behaviour in the previous test.

@petebd I know about the w URL param but GitHub doesn't let one comment on
a diff like that so this doesn't buy me much. :)
--
Michał Gołębiowski

@mgol - true, true

@petebacondarwin I realize why you changed the logic to conditionally run the check in $onInit instead of a constructor. There are just no tests ensuring the flag actually does anything. If I change this line:
$compileProvider.preAssignBindings(preAssignBindings);

into:
$compileProvider.preAssignBindings(true);

all the tests still pass and they shouldn't.

Ah right! OK, I'll add an extra test that actually checks the difference

Fixed up via 4f599fffd12ef281f27577dc394fe3e905f328c7 PTAL

This covers almost all the changes in the specs, except for the one that you point out: should cope with changes occurring inside '`$onChanges()` hooks. In this case I had previously added a "hack" to ensure that the property had a valid number in it at the start (i.e. this.prop1 = 0;) without this you get an extra call to $onChanges with the initial NaN value. This doesn't work if we are not preAssigningBindings. I wondered if this was actually a bug but I think that I was really just hiding the behaviour in the previous test.

I think it is actually a bug (depends on your POV). We fail to detect NaN === NaN (because it isn't :grin:), so we are always reporting properties set to NaN as changed. Considering that (a) we have special NaN equality checks in a bunch of other places, (b) I can't think of any usecase where continously reporting NaN as changed is useful and (c) it is unintuitive, I think we should fix this.
--
Minor: Probably also the case for some other similar helpers, but there are no tests for the getter nature of $compileProvider.preAssignBindingsEnabled() :grin:

We fail to detect NaN === NaN (because it isn't :grin:), so we are always reporting properties set to NaN as changed.

Actually that is not exactly true. We are not reporting it constantly as changed, but we do report it one extra time (something that doesn't happen with non-NaN values.

I submitted a fix for this in #15098 :smile:


Blank Screen without any elements

How to Fix ?
This issue happens due to Incorrect Naming
Try to fix it by reading the instruction carefully.
If the issue still persists, create an issue with the following details included.

Error Message
Link to the Figma File

Can you share the link to your Figma file...

https://www.figma.com/file/8ioiguDXRGLe2zLO9y2HsZ/Untitled

https://www.figma.com/file/8ioiguDXRGLe2zLO9y2HsZ/Untitled

Hey, There are plenty of things which are not supported tkinter designer...

Can you give me editing permissions ?

U can now

It's not allowing me to edit - I need a educational account I guess. Nevermind , I'll make changes on a fork and share you a link.

oh,thank you very much ~

And also you dont need to name the text "No need to name" I just added it as example 😅 Text can be named anything.

hh.okey

Hey, I have made the changes -
Some elements wont work, and some might look different on widows or linux specially the font. You can reduce the font size if  it looks large. It's usual.
You also might get an EOF error which can be fixed manually by removing a line from the code. I am fixing that issue.

https://www.figma.com/file/sQSAZxR0n2SJEOn6JprJHr/Untitled-Copy?node-id=0%3A6

Ok,thanks! How can I fix that issue?Copy the same  link?

Yes, open that link and duplicate the file

I copied twice and still got this.

Yes, Open up the code and remove the errors on that mentioned line. It's just a matter of moving the code from next to previous line.

Hey @misska1 , I discovered that the EOL Error issue was particular to that text. I tried to replicate it but it did not occur to me.


Spellbook Merge

I have no idea if such a thing is even possible, but since you added a spellbook I was curioius if spellbook merging could possibly be enabled. I was chugging along with my planned playthrough of Azata->Gold Dragon and I am sad to lose my spellbook merge. If I could at least respec into a class that made sense to merge spellbooks, that would be cool. I see that you added a spellbook for them in the first place so I'm curious if merging could be added (along the lines of the mod that adds more classes to the existing merges).

Hey there. There are no plans at this time to make the new spellbook work with spellbook merging.


Possible EventEmitter memory leak detected.

Description of Issue
Node is giving warning
(node:12212) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit Possible EventEmitter memory leak detected.
I enabled --trace-warnings
Errors or Screenshots of Issue
Version: 1.4.1

SquadJS factory commencing building...
Getting config file...
Building Squad server...
Initialising connectors...
Starting discordClient connector...
Starting mysqlPool connector...
Loading plugins...
Loading plugin auto-tk-warn...
Loading plugin discord-admin-cam-logs...
Loading plugin discord-admin-request...
Loading plugin discord-teamkill...
Loading plugin mysql-log...
Watching server 1...
(node:12212) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:389:17)
    at Socket.addListener (events.js:405:10)
    at Socket.Readable.on (_stream_readable.js:853:35)
    at Socket.once (events.js:436:8)
    at file:///C:/servers/squadjs-current/SquadJS/squad-server/rcon/index.js:235:19
    at new Promise (<anonymous>)
    at Rcon.write (file:///C:/servers/squadjs-current/SquadJS/squad-server/rcon/index.js:179:12)
    at Rcon.execute (file:///C:/servers/squadjs-current/SquadJS/squad-server/rcon/index.js:54:17)
    at Rcon.getMapInfo (file:///C:/servers/squadjs-current/SquadJS/squad-server/rcon/index.js:58:33)
    at Timeout._onTimeout (file:///C:/servers/squadjs-current/SquadJS/squad-server/index.js:53:36)

Squad Information

SquadJS Version:1.4.1
Squad Version:<IP_ADDRESS>.39994-4.23.1-SHIPPING

System Information

Operating System: Windows 10
NodeJS Version:v14.5.0
Yarn Version: 1.22.4

We started seeing this after enabling admin cam log.  It's not every time but a restart is required to fix it.  But appears to happen when we go in and out of admin cam "sometimes"

Err, well we just disabled admin-cam-log and still getting this error.

The majority of SquadJS has been rewritten so I will close this.


Fixed NavBar

Following themes have differences in media queries regarding height of navbar
Default
Cerulean
Custom
Cyborg
Journal
Litera
Lux
Materia
Minty
Sandstone
Simplex
Sketchy
United

So turning of top fixed navbar for now.


Added try/catch blocks around calls to canRead and canWrite to protect subscription state.

Addresses issue #316
Wrap canRead and canWrite, assume false if any uncaught exceptions occur.  This prevents a situation where a client_id can never subscribe again, even on new connections.

No more applicable in v0.12 due to heavy restructure


Automate Creation of CNAMEs on AWS

Background
Currently we manually create CNAMEs on AWS under the appropriate hosted zone when we are required to activate a newly created certificate for a domain. Alternatively, if Operations Engineering do not own the hosted zone, we forward on the information to the required team that owns the hosted zone to create the CNAMEs for the activation.
This spreadsheet contains information on when we need to forward this information for external CNAME activation.
Task
We need functionality (within the current operations engineering certificate renewal) application to automatically create the CNAME records in order to activate the (what will be) pending certificate. I believe the most effective way to achieve this will be using the Boto3 framework.
Acceptance Criteria

Does the application automatically create the correct CNAME records under the the correct hosted zone?
Does the application forward the correct information when an external team is required to create the records instead of Operations Engineering?
Do we email out the appropriate updates during the process (should we deem this necessary)?

Points to consider:

How are we going to acquire the correct hosted zone to create the record in? Perhaps the mappings.json could house this in another field.
How are we going to determine which records need to be managed by external teams? Again, this could most likely be determined via the mappings.json
Will we need additional notifications around the progress of this process?

The delete_cname script can be used as reference to accessing our current zones service.justice.gov.uk and justice.gov.uk to interact with the CNAME records


Cleanup deferred

A first step in cleaning up the deferred ABI.
This PR specifically simplifies the internals and changes the interface to match the nondeferred. This PR also removes the default of autodiff to be Reverse and explicitly requires the user to specify Forward, Reverse, ReverseWithPrimal, etc.
This will enable a later PR can unify the two interfaces.

Codecov Report
Base: 73.43% // Head: 70.17% // Decreases project coverage by -3.26% :warning:

Coverage data is based on head (40c2ed2) compared to base (f29cd60).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head 40c2ed2 differs from pull request most recent head 12599ea. Consider uploading reports for the commit 12599ea to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #604      +/-   ##
==========================================
- Coverage   73.43%   70.17%   -3.26%
==========================================
  Files          17       17
  Lines        6147     5808     -339
==========================================
- Hits         4514     4076     -438
- Misses       1633     1732      +99

Impacted Files
Coverage Δ

src/Enzyme.jl
83.10% <100.00%> (-1.61%)
:arrow_down:

src/compiler/orcv2.jl
0.00% <0.00%> (-61.91%)
:arrow_down:

src/compiler/interpreter.jl
24.52% <0.00%> (-60.93%)
:arrow_down:

src/compiler/utils.jl
58.57% <0.00%> (-37.32%)
:arrow_down:

src/logic.jl
75.00% <0.00%> (-5.00%)
:arrow_down:

src/api.jl
60.00% <0.00%> (-2.69%)
:arrow_down:

src/compiler/validation.jl
59.59% <0.00%> (-2.48%)
:arrow_down:

src/compiler/pmap.jl
75.27% <0.00%> (-2.27%)
:arrow_down:

src/pmap.jl
83.33% <0.00%> (-1.29%)
:arrow_down:

src/compiler.jl
72.03% <0.00%> (-1.15%)
:arrow_down:

... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


typo: Double word "in"

@nschonni : Thanks for your contribution! The author, @anrothMSFT, has been notified to review your proposed change.

Yes!! Thank you!!
(I don't think I'm able to approve this, but I think my comment will trigger a notification to someone who can)

@anrothMSFT you can can comment with #sign-off to remove the "do-not-merge" label. I think adding that comment in the review comment is still borked though

#sign-off


Soft Robot Simulation: (a) Example XML files, and (b) difference between Composite and Deformable soft objects

Hi,
I'm a PhD researcher and I'm trying to use MuJoCo for soft-robot simulation.
I have two questions:
(1) I'm looking for some example soft-robot XML files to learn how to model my own soft-robot in MuJoCo - are there any prominent examples? I can see in the MuJoCo menageries that there are several rigid robot XML files which seem to use obj2mjcf to decompose an OBJ file of a rigid robot into various sub-meshes, which can then be used to create an XML file. Can something analogous be done for soft robots, but using the flexcomp element instead of the rigid geom element? This is hard for me to imagine, since by definition a soft-robot isn't a series of rigid links connected by various joints, so I don't see the need to generate several flexcomp sub-meshes for a soft-robot (unless I'm mistaken)?
(2) I'm struggling to understand the differences between composite objects and deformable objects. From reading through these two links, it seems like deformable objects can more reliably model soft-bodies, but I'd like to understand the actual differences?
I appreciate any help/feedback/comments dramatically! Thanks in advance.

Hi, the answer to (2) is clear: please use deformable objects, we will deprecate 2D/3D soft bodies from composite since they use only spheres at mesh vertices for collisions.
For (1), you have to think of flexcomp as a collection of body's (one per mesh vertex), so it's not an alternative to geom. A deformable objects introduces 3*nvert degrees of freedom, while a geom introduces none. We have some examples here https://github.com/google-deepmind/mujoco/tree/main/model/plugin/elasticity I think the one you may want to look at is trampoline_flex since it shows how to pin a soft object to a body.
Let me know if you have more questions.

Hi @quagla, for flexcomp we reference 3D mesh files. So is the 'nvert' you're referring to the number of total nodes in the 3D mesh? Or only the total number of vertices included for collisions/in the convex hull of the 3D mesh?

The total number. It's really the total number of independent deformation modes of the soft object.

How do I obtain the vertices in the convex hull of a flexcomp object that references a 3D MSH file? I'm struggling to also obtain the vertices in the convex hull of (a) primitive geom objects and (b) rigid geom objects that reference STL files (as described here?


Error when trying to build frontend Dockerfile

Story
I want to build the Docker image for the frontend project, so in order to build it I'm doing the following steps:
First, I added this line in the Dockerfile, because it is needed

Then, I try to build the frontend image with this command in the root:
 docker build -t kurtosistech/near-explorer_frontend:8df44b7 -f ./frontend/Dockerfile ./
And it throws this error:
`
[+] Building 105.5s (19/25)
=> [internal] load build definition from Dockerfile                                                                                0.0s
=> => transferring dockerfile: 1.02kB                                                                                0.0s
=> [internal] load .dockerignore                                                                                0.0s
=> => transferring context: 34B                                                                                0.0s
=> [internal] load metadata for docker.io/mhart/alpine-node:16                                                                                1.2s
=> [internal] load build context                                                                                0.0s
=> => transferring context: 22.39kB                                                                                0.0s
=> [stage-1 1/7] FROM docker.io/mhart/alpine-node:16@sha256:c9014e9e5b33f29d47c867ea548edc0235ba71677f40456409a44c278d8a8e01                                          0.0s
=> CACHED [stage-1 2/7] WORKDIR /near-explorer/frontend                                                                                0.0s
=> CACHED [build  2/15] WORKDIR /near-explorer/common                                                                                0.0s
=> CACHED [build  3/15] COPY ./common/package.json ./common/package-lock.json ./                                                                                0.0s
=> CACHED [build  4/15] RUN npm clean-install                                                                                0.0s
=> CACHED [build  5/15] WORKDIR /near-explorer/frontend                                                                                0.0s
=> CACHED [build  6/15] COPY ./frontend/package.json ./frontend/package-lock.json  ./                                                                                0.0s
=> CACHED [build  7/15] RUN npm clean-install --prod                                                                                0.0s
=> CACHED [build  8/15] RUN cp -a node_modules ../production_node_modules                                                                                0.0s
=> CACHED [build  9/15] RUN npm clean-install                                                                                0.0s
=> CACHED [build 10/15] COPY ./common ../common                                                                                0.0s
=> CACHED [build 11/15] COPY ./frontend ./                                                                                0.0s
=> CACHED [build 12/15] COPY ./tsconfig.json ../                                                                                0.0s
=> [build 13/15] RUN cp -a ./node_modules ../production_node_modules                                                                                61.4s
=> ERROR [build 14/15] RUN npm run build                                                                                42.5s

[build 14/15] RUN npm run build:
#19 2.750
#19 2.750 ><EMAIL_ADDRESS>build
#19 2.750 > next build
#19 2.750
#19 14.11 warn  - You have enabled experimental feature(s).
#19 14.11 warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
#19 14.11
#19 14.48 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#19 14.48 This information is used to shape Next.js' roadmap and prioritize features.
#19 14.48 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
#19 14.48 https://nextjs.org/telemetry
#19 14.48
#19 15.11 info  - Checking validity of types...
#19 42.35 Failed to compile.
#19 42.35
#19 42.35 ./jest.setup.ts:1:1
#19 42.35 Type error: Cannot find name 'jest'.
#19 42.35
#19 42.35 > 1 | jest.useFakeTimers().setSystemTime(new Date(2019, 1, 1));
#19 42.35     | ^
#19 42.35   2 | export {};
#19 42.35   3 |

executor failed running [/bin/sh -c npm run build]: exit code: 1
`
Acceptance Criteria

[ ] AC1
[ ] AC2
[ ] Mobile ok
[ ] Tested

Assets

Mockup:

NOTES

Thanks for reporting!
Just discovered this today as well, it seems to be broken after the workspaces commit.
I'll make a PR to fix this soon.
If you need to run an explorer - you can do that without a docker in a few steps:

npm install
docker-compose build wamp && docker-compose up wamp
npm run -w backend dev:mainnet
npm run -w frontend dev:local-wamp

And soon (after TRPC PR is merged) step 2 will be skipped.

Hey @luixo , unfortunately we actually need Docker images for the Kurtosis NEAR localnet, since the existing local dev setup is predicated on having containers. Folks looking to do localnet dev are currently blocked due to the latest NEAR CLI (4.0 I believe) being incompatible with the older version that was inside of Kurtosis, so we're trying to push new images ASAP. Any idea when we'd be able to get new containers so we can unblock local dev users?

Can you use an image of the version before workspaces commit before I fix it?
I'll do this task top priority anyway, but it might take some time.

Thanks @luixo !!


"Hello three.js" string appears at origin

"Hello three.js" pops up at the origin on loading of page and executing (empty flowchart)

The same string appears when I execute a flowchart as well.

issue no longer exists