code-fixer: extend for ConsumeBytes

Ref: https://github.com/google/oss-fuzz-gen/issues/575
Ref: https://github.com/google/oss-fuzz-gen/issues/301

/gcbrun exp -n d-cov-50 -b bug-fdp-consume-buffers -ns 4 -rd

https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-09-26-652-d-cov-50-bug-fdp-consume-buffers/index.html

Fixes look to be working e.g.: https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-09-26-652-d-cov-50-bug-fdp-consume-buffers/benchmark/output-libxml2-htmlcreatefileparserctxt/index.html versus before https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-09-26-649-d-cov-43-bug-fdp-consume-buffers/benchmark/output-libxml2-htmlcreatefileparserctxt/index.html

/gcbrun exp -n d-cov-51 -b bug-fdp-consume-buffers -ns 8 -rd

/gcbrun exp -n d-cov-251 -b bug-fdp-consume-buffers -ns 4 -rd

/gcbrun exp -n d-cov-254 -b bug-fdp-consume-buffers -ns 4 -rd

/gcbrun exp -n d-cov-255 -b bug-fdp-consume-buffers -ns 4 -rd

The most recent commit made it worse than before: https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-10-02-652-d-cov-255-bug-fdp-consume-buffers/index.html

The current one works in cases:

https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-10-02-652-d-cov-256-bug-fdp-consume-buffers/sample/output-opus-opus_packet_unpad/02.html
https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-10-02-652-d-cov-256-bug-fdp-consume-buffers/sample/output-opus-opus_packet_unpad/03.html

But is no silver bullet:

https://llm-exp.oss-fuzz.com/Result-reports/ofg-pr/2024-10-02-652-d-cov-256-bug-fdp-consume-buffers/sample/output-opus-opus_decoder_get_nb_samples/02.html

This should be good to go at this point -- my take is that it should have positive impact on the next larger runs and reduce FPs


BIO_printf.pod: Clarify that output is always null terminated.

The original text was ambiguous about termination for errors other
than insufficient space.  See issue #14772.
The proposed text is what I infer the intended behavior to be based on the conversation in #14772 and the change made in 586d9436c8.  Note, however, that there are syntactic code paths through BIO_snprintf that do not add a terminator.  My proposed documentation change implies that all of those paths are impossible to execute in any supported configuration, but I have not verified that to be the case.
I just now emailed my ICLA so that might need time to be processed.
Checklist

[x] documentation is added or updated

We've already reviewed the code and the code paths that do not terminate with \0 cannot happen with BIO_snprintf.

Closing and reopening to clear CLA hold.


[QUESTION] How to have a startup run by parent process and later worker process run it.

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
@app.on_event("startup")
def startup_event():
    """
    Initialize FastAPI and add variables
    """
    model_path = "./model"

    if not os.path.exists(model_path): #GCP
        download_blob(gcp_bucket,gcp_model_path,model_directory,CONST_GCP_PATH)

    model = ORTModelForSeq2SeqLM.from_pretrained(model_path)

    app.package = {
        "model": model,
    }

Description
I have a REST API, which downlaods the model from cloud and loads it in mermory. I am using worker nodes and all of them are trying to download the model.
I just want to downlaod the model once and allow the worker nodes to load it in memory.
Even though I have an if condition to check the if the directory exists, all the worker nodes are able to enter the if condition block.
How do I initally run only the parent process to download the blob and then let worker nodes run freely?
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.74.1
Python Version
3.9
Additional Context
No response

The worker is from Uvicorn, not from FastAPI. I am not exactly sure if you do this in this way. May be have a init container that can have the model in pickle form and then your workers can load from it?🤔

Another option might be to have the workers attempt to write a lock file and let the winner do the downloading and have the rest busy wait and read data after it is downloaded.

Idk how I missed this, but one can run a simple script in the dockerfile before running the uvicorn start command. That way I don't need to download the model in the startup function.
Anyways thanks for the suggetions, and my bad I posted it on the wrong repo.


Encoder.at

Similarly to Decoder.at there should also exist a method at in Encoder
trait Encoder[A] extends Serializable { self =>
  (...)
  final def at(field: String): Encoder[A] = mapJson(j => Json.obj("field" -> j))
}

This sounds reasonable to me!


Function to convert a decimal number to an array of Tris

We need a function which will convert any decimal number to an array of Tris the length of a word. This will need to do a few things:

Check the decimal number to make sure it is within the bounds of what can be expressed in WORD_SIZE balanced Tris
Compute each digit of the balanced ternary representation
instantiate WORD_SIZE new Tri() objects and setState for each of them to the necessary value for the digit
store these in an array and return them

The Tri object and methods are in tri.js
The WORD_SIZE is found in constants.js
Note that balanced ternary means every digit can be either 0, 1, or -1. So for example (base 10 to balanced ternary):

2 --> "1-1"
3 --> "10"
4 --> "11"

Said function should be defined within conversions.js


Oh My Zsh customisation strange issue?

Greeting world,
I have a strange problem with Oh My Zsh customisation. Here is my custom directory
.oh-my-zsh-custom
├── plugin
│   ├── example
│   │   └── example.plugin.zsh
│   └── example_script.zsh
├── themes
│   └── custom.zsh-theme
├── lib
│   ├── variables.zsh
│   ├── exporting.zsh
│   └── lovely_function.zsh
└── secret
    └── .gitignore

As far as I know every files in $ZSH_CUSTOM/lib will be source by oh-my-zsh.sh by default.
This is my $ZSH_CUSTOM/lib/lovely_function.zsh
export OSX_SUPERB="$ZSH_CUSTOM/plugins/osx-superb"
export SUPERB_ALIAS="$ZSH_CUSTOM/plugins/superb-aliases"

function upgrade_oh_my_zsh_custom() {
  env ZSH_CUSTOM=$ZSH_CUSTOM /bin/sh $ZSH_CUSTOM/tools/upgrade.sh
}

And now is the most fun part, the variable I exported in this file are good, but my function upgrade_oh_my_zsh_custom wasn't.
After I reload it by source command. That function will be able to use...
The question here is WHY?

As far as I know every files in $ZSH_CUSTOM/lib will be source by oh-my-zsh.sh by default.

That's actually not true. Files in $ZSH_CUSTOM/lib will only be sourced if they override a file in the normal lib folder. This means that files of other names won't be sourced (this includes your variables.zsh, exporting.zsh and lovely_function.zsh files).
If you want to have them actually sourced, you need to put them at the root of your $ZSH_CUSTOM directory, not inside the lib folder. But keep in mind that these files will be loaded after your plugins have been loaded.

I saw these lines and thought it will auto sourced by default
for config_file ($ZSH/lib/*.zsh); do
  custom_config_file="${ZSH_CUSTOM}/lib/${config_file:t}"
  [ -f "${custom_config_file}" ] && config_file=${custom_config_file}
  source $config_file
done

After look back, then I know why.
Thanks for your response.


SSH transport regression in 0.6.11

According to #864 comments, some users are experiencing regressions when using the ssh transport.
Please comment (in a single comment):

Your connection URL
TF_LOG=debug terraform plan output
make sure authorized_hosts on the server is correct
Any other error
Relevant info (client & server OS, etc)
env variable SSH_AUTH_SOCK

In my case specifying sshauth=privkey (the default is agent,privkey) solves the issue. I have ssh-agent running, but the key isn't added to it.
The Go documentation states:
	// Auth contains possible authentication methods to use with the
	// server. Only the first instance of a particular RFC 4252 method will
	// be used during authentication.
	Auth []AuthMethod

So that would explain why it isn't working when both options are specified (only the public keys from the first is used).
@oranenj FYI

@klausenbusk if agent,privkey is specified, we add the auth method only if 1) SSH_AUTH_SOCK exists and 2) we can connect to the agent.
What do you mean the key is not added to it?

What do you mean the key is not added to it?

I only have some of my keys in the agent, in that case if agent,privkey is specified the key specified with keyfile= isn't tried as the library will only try the first instance of a particular RFC 4252 method (Go doc).

Not working for me too
provider "libvirt" {
  uri =<EMAIL_ADDRESS>}

2021-10-15T17:11:48.723+0200 [DEBUG] Adding temp file log sink: /tmp/terraform-log469900922
2021-10-15T17:11:48.723+0200 [INFO]  Terraform version: 1.0.9
2021-10-15T17:11:48.723+0200 [INFO]  Go runtime version: go1.17.1
2021-10-15T17:11:48.723+0200 [INFO]  CLI args: []string{"/usr/bin/terraform", "plan"}
2021-10-15T17:11:48.723+0200 [DEBUG] Attempting to open CLI config file: /home/mario/.terraformrc
2021-10-15T17:11:48.723+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-10-15T17:11:48.723+0200 [DEBUG] checking for credentials in "/home/mario/.terraform.d/plugins"
2021-10-15T17:11:48.723+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-10-15T17:11:48.723+0200 [DEBUG] will search for provider plugins in /home/mario/.terraform.d/plugins
2021-10-15T17:11:48.723+0200 [DEBUG] will search for provider plugins in /home/mario/.local/share/terraform/plugins
2021-10-15T17:11:48.723+0200 [DEBUG] ignoring non-existing provider search directory /home/mario/.local/share/flatpak/exports/share/terraform/plugins
2021-10-15T17:11:48.723+0200 [DEBUG] ignoring non-existing provider search directory /var/lib/flatpak/exports/share/terraform/plugins
2021-10-15T17:11:48.723+0200 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2021-10-15T17:11:48.723+0200 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2021-10-15T17:11:48.723+0200 [INFO]  CLI command args: []string{"plan"}
2021-10-15T17:11:48.724+0200 [DEBUG] New state was assigned lineage "6668a336-0ebe-a0bf-095b-7690864aa4ea"
2021-10-15T17:11:48.925+0200 [DEBUG] checking for provisioner in "."
2021-10-15T17:11:48.932+0200 [DEBUG] checking for provisioner in "/usr/bin"
2021-10-15T17:11:48.932+0200 [DEBUG] checking for provisioner in "/home/mario/.terraform.d/plugins"
2021-10-15T17:11:48.933+0200 [INFO]  Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2021-10-15T17:11:48.933+0200 [INFO]  backend/local: starting Plan operation
2021-10-15T17:11:48.934+0200 [DEBUG] created provider logger: level=debug
2021-10-15T17:11:48.934+0200 [INFO]  provider: configuring client automatic mTLS
2021-10-15T17:11:48.944+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11]
2021-10-15T17:11:48.944+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17385
2021-10-15T17:11:48.944+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11
2021-10-15T17:11:48.950+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.11: configuring server automatic mTLS: timestamp=2021-10-15T17:11:48.950+0200
2021-10-15T17:11:48.987+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: plugin address: address=/tmp/plugin697683969 network=unix timestamp=2021-10-15T17:11:48.987+0200
2021-10-15T17:11:48.987+0200 [DEBUG] provider: using plugin: version=5
2021-10-15T17:11:49.018+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2021-10-15T17:11:49.019+0200 [DEBUG] No provider meta schema returned
2021-10-15T17:11:49.020+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17385
2021-10-15T17:11:49.020+0200 [DEBUG] provider: plugin exited
2021-10-15T17:11:49.020+0200 [INFO]  terraform: building graph: GraphTypeValidate
2021-10-15T17:11:49.020+0200 [DEBUG] ProviderTransformer: "libvirt_domain.default" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/dmacvicar/libvirt"]
2021-10-15T17:11:49.020+0200 [DEBUG] ReferenceTransformer: "libvirt_domain.default" references: []
2021-10-15T17:11:49.020+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/dmacvicar/libvirt\"]" references: []
2021-10-15T17:11:49.021+0200 [DEBUG] Starting graph walk: walkValidate
2021-10-15T17:11:49.021+0200 [DEBUG] created provider logger: level=debug
2021-10-15T17:11:49.021+0200 [INFO]  provider: configuring client automatic mTLS
2021-10-15T17:11:49.030+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11]
2021-10-15T17:11:49.031+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17394
2021-10-15T17:11:49.031+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11
2021-10-15T17:11:49.036+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.11: configuring server automatic mTLS: timestamp=2021-10-15T17:11:49.036+0200
2021-10-15T17:11:49.073+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: plugin address: address=/tmp/plugin466037037 network=unix timestamp=2021-10-15T17:11:49.073+0200
2021-10-15T17:11:49.073+0200 [DEBUG] provider: using plugin: version=5
2021-10-15T17:11:49.102+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2021-10-15T17:11:49.103+0200 [DEBUG] No provider meta schema returned
2021-10-15T17:11:49.106+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17394
2021-10-15T17:11:49.106+0200 [DEBUG] provider: plugin exited
2021-10-15T17:11:49.106+0200 [INFO]  backend/local: plan calling Plan
2021-10-15T17:11:49.106+0200 [INFO]  terraform: building graph: GraphTypePlan
2021-10-15T17:11:49.107+0200 [DEBUG] ProviderTransformer: "libvirt_domain.default (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/dmacvicar/libvirt"]
2021-10-15T17:11:49.107+0200 [DEBUG] ReferenceTransformer: "libvirt_domain.default (expand)" references: []
2021-10-15T17:11:49.107+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/dmacvicar/libvirt\"]" references: []
2021-10-15T17:11:49.107+0200 [DEBUG] Starting graph walk: walkPlan
2021-10-15T17:11:49.107+0200 [DEBUG] created provider logger: level=debug
2021-10-15T17:11:49.107+0200 [INFO]  provider: configuring client automatic mTLS
2021-10-15T17:11:49.117+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11]
2021-10-15T17:11:49.117+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17403
2021-10-15T17:11:49.117+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11
2021-10-15T17:11:49.123+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.11: configuring server automatic mTLS: timestamp=2021-10-15T17:11:49.123+0200
2021-10-15T17:11:49.160+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: plugin address: network=unix address=/tmp/plugin861317600 timestamp=2021-10-15T17:11:49.160+0200
2021-10-15T17:11:49.160+0200 [DEBUG] provider: using plugin: version=5
2021-10-15T17:11:49.188+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2021-10-15T17:11:49.189+0200 [DEBUG] No provider meta schema returned
2021-10-15T17:11:49.191+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: 2021/10/15 17:11:49 [DEBUG] Configuring provider for<EMAIL_ADDRESS>&{map[uri:0xc0000ba3c0] <nil> <nil> 0xc000616080 map[] <nil> 0xc000616100 0xc000125170 0xc00068e280 false map[] {1 {0 0}} false false}
2021-10-15T17:11:49.227+0200 [INFO]  backend/local: plan operation completed
╷
│ Error: failed to dial libvirt: ssh: handshake failed: ssh: unable to authenticate, attempted methods [publickey none], no supported methods remain
│
│   with provider["registry.terraform.io/dmacvicar/libvirt"],
│   on provider.tf line 1, in provider "libvirt":
│    1: provider "libvirt" {
│
╵
2021-10-15T17:11:49.230+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17403
2021-10-15T17:11:49.230+0200 [DEBUG] provider: plugin exited

ssh-agent not used
ssh config
Host <IP_ADDRESS>
User mario
IdentityFile ~/.ssh/id_rsa_home

same connection url from plan virsh works
server side error
ott 15 17:14:59 arch-server sshd[3159]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
ott 15 17:15:00 arch-server sshd[3159]: Connection closed by authenticating user mario <IP_ADDRESS> port 48698 [preauth]
if I do not copy my ssh key with the default name the error is different(ssh config file gets ignored i think)
2021-10-15T17:16:00.707+0200 [DEBUG] Adding temp file log sink: /tmp/terraform-log3154352186
2021-10-15T17:16:00.707+0200 [INFO]  Terraform version: 1.0.9
2021-10-15T17:16:00.707+0200 [INFO]  Go runtime version: go1.17.1
2021-10-15T17:16:00.707+0200 [INFO]  CLI args: []string{"/usr/bin/terraform", "plan"}
2021-10-15T17:16:00.707+0200 [DEBUG] Attempting to open CLI config file: /home/mario/.terraformrc
2021-10-15T17:16:00.707+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021-10-15T17:16:00.707+0200 [DEBUG] checking for credentials in "/home/mario/.terraform.d/plugins"
2021-10-15T17:16:00.707+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021-10-15T17:16:00.707+0200 [DEBUG] will search for provider plugins in /home/mario/.terraform.d/plugins
2021-10-15T17:16:00.707+0200 [DEBUG] will search for provider plugins in /home/mario/.local/share/terraform/plugins
2021-10-15T17:16:00.707+0200 [DEBUG] ignoring non-existing provider search directory /home/mario/.local/share/flatpak/exports/share/terraform/plugins
2021-10-15T17:16:00.707+0200 [DEBUG] ignoring non-existing provider search directory /var/lib/flatpak/exports/share/terraform/plugins
2021-10-15T17:16:00.707+0200 [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins
2021-10-15T17:16:00.707+0200 [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins
2021-10-15T17:16:00.708+0200 [INFO]  CLI command args: []string{"plan"}
2021-10-15T17:16:00.708+0200 [DEBUG] New state was assigned lineage "6cb6e08e-392b-7a0c-180c-accf09c8fbe6"
2021-10-15T17:16:00.926+0200 [DEBUG] checking for provisioner in "."
2021-10-15T17:16:00.933+0200 [DEBUG] checking for provisioner in "/usr/bin"
2021-10-15T17:16:00.934+0200 [DEBUG] checking for provisioner in "/home/mario/.terraform.d/plugins"
2021-10-15T17:16:00.934+0200 [INFO]  Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2021-10-15T17:16:00.934+0200 [INFO]  backend/local: starting Plan operation
2021-10-15T17:16:00.935+0200 [DEBUG] created provider logger: level=debug
2021-10-15T17:16:00.935+0200 [INFO]  provider: configuring client automatic mTLS
2021-10-15T17:16:00.945+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11]
2021-10-15T17:16:00.945+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17880
2021-10-15T17:16:00.945+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11
2021-10-15T17:16:00.951+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.11: configuring server automatic mTLS: timestamp=2021-10-15T17:16:00.951+0200
2021-10-15T17:16:00.988+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: plugin address: address=/tmp/plugin289039778 network=unix timestamp=2021-10-15T17:16:00.988+0200
2021-10-15T17:16:00.988+0200 [DEBUG] provider: using plugin: version=5
2021-10-15T17:16:01.018+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2021-10-15T17:16:01.018+0200 [DEBUG] No provider meta schema returned
2021-10-15T17:16:01.021+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17880
2021-10-15T17:16:01.021+0200 [DEBUG] provider: plugin exited
2021-10-15T17:16:01.021+0200 [INFO]  terraform: building graph: GraphTypeValidate
2021-10-15T17:16:01.021+0200 [DEBUG] ProviderTransformer: "libvirt_domain.default" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/dmacvicar/libvirt"]
2021-10-15T17:16:01.021+0200 [DEBUG] ReferenceTransformer: "libvirt_domain.default" references: []
2021-10-15T17:16:01.021+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/dmacvicar/libvirt\"]" references: []
2021-10-15T17:16:01.021+0200 [DEBUG] Starting graph walk: walkValidate
2021-10-15T17:16:01.021+0200 [DEBUG] created provider logger: level=debug
2021-10-15T17:16:01.022+0200 [INFO]  provider: configuring client automatic mTLS
2021-10-15T17:16:01.031+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11]
2021-10-15T17:16:01.031+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17889
2021-10-15T17:16:01.031+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11
2021-10-15T17:16:01.037+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.11: configuring server automatic mTLS: timestamp=2021-10-15T17:16:01.037+0200
2021-10-15T17:16:01.074+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: plugin address: address=/tmp/plugin197857021 network=unix timestamp=2021-10-15T17:16:01.074+0200
2021-10-15T17:16:01.074+0200 [DEBUG] provider: using plugin: version=5
2021-10-15T17:16:01.103+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2021-10-15T17:16:01.104+0200 [DEBUG] No provider meta schema returned
2021-10-15T17:16:01.107+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17889
2021-10-15T17:16:01.107+0200 [DEBUG] provider: plugin exited
2021-10-15T17:16:01.107+0200 [INFO]  backend/local: plan calling Plan
2021-10-15T17:16:01.107+0200 [INFO]  terraform: building graph: GraphTypePlan
2021-10-15T17:16:01.107+0200 [DEBUG] ProviderTransformer: "libvirt_domain.default (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/dmacvicar/libvirt"]
2021-10-15T17:16:01.108+0200 [DEBUG] ReferenceTransformer: "libvirt_domain.default (expand)" references: []
2021-10-15T17:16:01.108+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/dmacvicar/libvirt\"]" references: []
2021-10-15T17:16:01.108+0200 [DEBUG] Starting graph walk: walkPlan
2021-10-15T17:16:01.108+0200 [DEBUG] created provider logger: level=debug
2021-10-15T17:16:01.108+0200 [INFO]  provider: configuring client automatic mTLS
2021-10-15T17:16:01.118+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11]
2021-10-15T17:16:01.118+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17899
2021-10-15T17:16:01.118+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11
2021-10-15T17:16:01.124+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.11: configuring server automatic mTLS: timestamp=2021-10-15T17:16:01.124+0200
2021-10-15T17:16:01.163+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: plugin address: network=unix address=/tmp/plugin070799262 timestamp=2021-10-15T17:16:01.163+0200
2021-10-15T17:16:01.163+0200 [DEBUG] provider: using plugin: version=5
2021-10-15T17:16:01.192+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2021-10-15T17:16:01.193+0200 [DEBUG] No provider meta schema returned
2021-10-15T17:16:01.195+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: 2021/10/15 17:16:01 [DEBUG] Configuring provider for<EMAIL_ADDRESS>&{map[uri:0xc0001383c0] <nil> <nil> 0xc0000ce2a0 map[] <nil> 0xc0000ce620 0xc000128288 0xc00070a460 false map[] {1 {0 0}} false false}
2021-10-15T17:16:01.195+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.11: 2021/10/15 17:16:01 [ERROR] Failed to read ssh key: %!w(*fs.PathError=&{open /home/mario/.ssh/id_rsa 2})
2021-10-15T17:16:01.195+0200 [INFO]  backend/local: plan operation completed
╷
│ Error: failed to dial libvirt: Could not configure SSH authentication methods
│
│   with provider["registry.terraform.io/dmacvicar/libvirt"],
│   on provider.tf line 1, in provider "libvirt":
│    1: provider "libvirt" {
│
╵
2021-10-15T17:16:01.197+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.11/linux_amd64/terraform-provider-libvirt_v0.6.11 pid=17899
2021-10-15T17:16:01.198+0200 [DEBUG] provider: plugin exited

I came across the same issue and was searching for an answer.
╷
│ Error: failed to dial libvirt: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
│
│   with provider["registry.terraform.io/dmacvicar/libvirt"],
│   on k8s.tf line 10, in provider "libvirt":
│   10: provider "libvirt" {
│
╵

After checking the documentation on https://libvirt.org/uri.html
I added sshauth=privkey to the URI and it works!!!
qemu+ssh://<USERNAME>@<ADDRESS>/system?keyfile=<PATH TO PRIVATE KEY>&sshauth=privkey

I hope this could help.

I came across the same issue and was searching for an answer.
╷
│ Error: failed to dial libvirt: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
│
│   with provider["registry.terraform.io/dmacvicar/libvirt"],
│   on k8s.tf line 10, in provider "libvirt":
│   10: provider "libvirt" {
│
╵

After checking the documentation on https://libvirt.org/uri.html I added sshauth=privkey to the URI and it works!!!
qemu+ssh://<USERNAME>@<ADDRESS>/system?keyfile=<PATH TO PRIVATE KEY>&sshauth=privkey

I hope this could help.

Nop, to me this is not working. Also in 0.6.11 version.

qemu+ssh://user@host/system?sshauth=privkey&keyfile=./id_rsa
for me on macos(darwin_arm_64) terraform plan returned:
Error: failed to dial libvirt: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

@ratelbee can you provide a full debug log?

Can you all please test with v0.6.13, just released and give me feedback?

On macOS Monterey 12.1 does not work:
2022-01-25T14:59:20.206+0200 [DEBUG] Adding temp file log sink: /var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/terraform-log975558447
2022-01-25T14:59:20.207+0200 [INFO]  Terraform version: 1.0.11
2022-01-25T14:59:20.207+0200 [INFO]  Go runtime version: go1.16.4
2022-01-25T14:59:20.207+0200 [INFO]  CLI args: []string{"/usr/local/Cellar/tfenv/2.2.2/versions/1.0.11/terraform", "plan"}
2022-01-25T14:59:20.207+0200 [DEBUG] Attempting to open CLI config file: /Users/mariuss/.terraformrc
2022-01-25T14:59:20.207+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2022-01-25T14:59:20.207+0200 [INFO]  Loading CLI configuration from /Users/mariuss/.terraform.d/credentials.tfrc.json
2022-01-25T14:59:20.207+0200 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2022-01-25T14:59:20.207+0200 [DEBUG] ignoring non-existing provider search directory /Users/mariuss/.terraform.d/plugins
2022-01-25T14:59:20.207+0200 [DEBUG] ignoring non-existing provider search directory /Users/mariuss/Library/Application Support/io.terraform/plugins
2022-01-25T14:59:20.207+0200 [DEBUG] ignoring non-existing provider search directory /Library/Application Support/io.terraform/plugins
2022-01-25T14:59:20.208+0200 [INFO]  CLI command args: []string{"plan"}
2022-01-25T14:59:20.209+0200 [DEBUG] New state was assigned lineage "a20af40a-fe53-97db-22c3-31562678a307"
2022-01-25T14:59:20.303+0200 [DEBUG] checking for provisioner in "."
2022-01-25T14:59:20.303+0200 [DEBUG] checking for provisioner in "/usr/local/Cellar/tfenv/2.2.2/versions/1.0.11"
2022-01-25T14:59:20.303+0200 [INFO]  Failed to read plugin lock file .terraform/plugins/darwin_amd64/lock.json: open .terraform/plugins/darwin_amd64/lock.json: no such file or directory
2022-01-25T14:59:20.303+0200 [INFO]  backend/local: starting Plan operation
2022-01-25T14:59:20.307+0200 [DEBUG] created provider logger: level=debug
2022-01-25T14:59:20.307+0200 [INFO]  provider: configuring client automatic mTLS
2022-01-25T14:59:20.341+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13]
2022-01-25T14:59:20.344+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 pid=88593
2022-01-25T14:59:20.344+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13
2022-01-25T14:59:20.355+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.13: configuring server automatic mTLS: timestamp=2022-01-25T14:59:20.355+0200
2022-01-25T14:59:20.365+0200 [DEBUG] provider: using plugin: version=5
2022-01-25T14:59:20.365+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.13: plugin address: address=/var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/plugin4115942423 network=unix timestamp=2022-01-25T14:59:20.365+0200
2022-01-25T14:59:20.400+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022-01-25T14:59:20.401+0200 [DEBUG] No provider meta schema returned
2022-01-25T14:59:20.403+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 pid=88593
2022-01-25T14:59:20.403+0200 [DEBUG] provider: plugin exited
2022-01-25T14:59:20.403+0200 [DEBUG] created provider logger: level=debug
2022-01-25T14:59:20.403+0200 [INFO]  provider: configuring client automatic mTLS
2022-01-25T14:59:20.441+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5]
2022-01-25T14:59:20.444+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 pid=88594
2022-01-25T14:59:20.444+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5
2022-01-25T14:59:20.455+0200 [INFO]  provider.terraform-provider-null_v3.1.0_x5: configuring server automatic mTLS: timestamp=2022-01-25T14:59:20.454+0200
2022-01-25T14:59:20.497+0200 [DEBUG] provider.terraform-provider-null_v3.1.0_x5: plugin address: address=/var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/plugin897100473 network=unix timestamp=2022-01-25T14:59:20.497+0200
2022-01-25T14:59:20.498+0200 [DEBUG] provider: using plugin: version=5
2022-01-25T14:59:20.546+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-25T14:59:20.548+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 pid=88594
2022-01-25T14:59:20.548+0200 [DEBUG] provider: plugin exited
2022-01-25T14:59:20.548+0200 [INFO]  terraform: building graph: GraphTypeValidate
2022-01-25T14:59:20.549+0200 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/dmacvicar/libvirt"], implied first by module.kvm.libvirt_cloudinit_disk.init_disk
2022-01-25T14:59:20.549+0200 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/null"], implied first by module.kvm.null_resource.provisioning
2022-01-25T14:59:20.549+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_cloudinit_disk.init_disk" (*terraform.NodeValidatableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.549+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_volume.custom_image" (*terraform.NodeValidatableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.549+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_volume.base_remote_image" (*terraform.NodeValidatableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.549+0200 [DEBUG] ProviderTransformer: "module.kvm.null_resource.provisioning" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/null"]
2022-01-25T14:59:20.549+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_volume.base_local_image" (*terraform.NodeValidatableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.549+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_domain.vm_creation" (*terraform.NodeValidatableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.550+0200 [DEBUG] pruning unused provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_cloudinit_disk.init_disk" references: [module.kvm.local.cloud_init_setup (expand) module.kvm.var.name (expand) module.kvm.local.network_config (expand) module.kvm.var.pool_name (expand)]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.ssh_public_keys (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.vcpu (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.output.name (expand)" references: [module.kvm.libvirt_domain.vm_creation]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_volume.custom_image" references: [module.kvm.var.volume_size (expand) module.kvm.var.local_os (expand) module.kvm.libvirt_volume.base_local_image module.kvm.libvirt_volume.base_remote_image module.kvm.var.name (expand) module.kvm.var.pool_name (expand)]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.enable_provisioning (expand)" references: []
2022-01-25T14:59:20.551+0200 [INFO]  ReferenceTransformer: reference not found: "path.module"
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.local.network_config (expand)" references: [module.kvm.var.network_interfaces (expand) module.kvm.var.nameservers (expand)]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.base_image (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.name (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.volume_format (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.disk_type (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.connection_timeout (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.volume_size (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.kvm_ssh_private_key (expand)" references: []
2022-01-25T14:59:20.551+0200 [INFO]  ReferenceTransformer: reference not found: "path.module"
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.output.inventory (expand)" references: [module.kvm.libvirt_domain.vm_creation module.kvm.var.ssh_user (expand) module.kvm.var.provisioning_ssh_private_key (expand)]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_volume.base_remote_image" references: [module.kvm.var.local_os (expand) module.kvm.var.pool_name (expand) module.kvm.var.name (expand) module.kvm.var.volume_format (expand) module.kvm.local.os (expand) module.kvm.var.volume_format (expand)]
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.ssh_user (expand)" references: []
2022-01-25T14:59:20.551+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.network_interfaces (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.pool_name (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.privisioner_file_source (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.output.network (expand)" references: [module.kvm.libvirt_domain.vm_creation]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "output.name" references: [module.kvm.output.name (expand)]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.running (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.execute_remote_cmd (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm (close)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.null_resource.provisioning" references: [module.kvm.var.enable_provisioning (expand) module.kvm.libvirt_domain.vm_creation module.kvm.var.provisioning_ssh_private_key (expand) module.kvm.var.connection_timeout (expand) module.kvm.var.ssh_user (expand) module.kvm.libvirt_domain.vm_creation module.kvm.var.privisioner_file_source (expand) module.kvm.var.privisioner_file_dest (expand) module.kvm.var.execute_remote_cmd (expand)]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.privisioner_file_dest (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.memory (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.kvm_server (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_volume.base_local_image" references: [module.kvm.var.local_os (expand) module.kvm.var.pool_name (expand) module.kvm.local.os (expand) module.kvm.var.volume_format (expand) module.kvm.var.name (expand) module.kvm.var.volume_format (expand)]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_domain.vm_creation" references: [module.kvm.var.memory (expand) module.kvm.libvirt_cloudinit_disk.init_disk module.kvm.var.vcpu (expand) module.kvm.var.autostart (expand) module.kvm.var.running (expand) module.kvm.var.name (expand) module.kvm.var.network_interfaces (expand) module.kvm.var.name (expand) module.kvm.libvirt_volume.custom_image]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.local_os (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.autostart (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.provisioning_ssh_private_key (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.where_is_os (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.nameservers (expand)" references: []
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.local.os (expand)" references: [module.kvm.var.local_os (expand) module.kvm.var.base_image (expand) module.kvm.var.where_is_os (expand)]
2022-01-25T14:59:20.552+0200 [INFO]  ReferenceTransformer: reference not found: "path.module"
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.local.cloud_init_setup (expand)" references: [module.kvm.var.ssh_user (expand) module.kvm.var.ssh_public_keys (expand)]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "output.network" references: [module.kvm.output.network (expand)]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "module.kvm.provider[\"registry.terraform.io/dmacvicar/libvirt\"]" references: [module.kvm.var.kvm_server (expand) module.kvm.var.kvm_ssh_private_key (expand)]
2022-01-25T14:59:20.552+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/null\"]" references: []
2022-01-25T14:59:20.556+0200 [DEBUG] Starting graph walk: walkValidate
2022-01-25T14:59:20.557+0200 [DEBUG] created provider logger: level=debug
2022-01-25T14:59:20.557+0200 [INFO]  provider: configuring client automatic mTLS
2022-01-25T14:59:20.593+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5]
2022-01-25T14:59:20.597+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 pid=88595
2022-01-25T14:59:20.597+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5
2022-01-25T14:59:20.607+0200 [INFO]  provider.terraform-provider-null_v3.1.0_x5: configuring server automatic mTLS: timestamp=2022-01-25T14:59:20.606+0200
2022-01-25T14:59:20.644+0200 [DEBUG] provider.terraform-provider-null_v3.1.0_x5: plugin address: address=/var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/plugin153064734 network=unix timestamp=2022-01-25T14:59:20.644+0200
2022-01-25T14:59:20.644+0200 [DEBUG] provider: using plugin: version=5
2022-01-25T14:59:20.694+0200 [DEBUG] created provider logger: level=debug
2022-01-25T14:59:20.694+0200 [INFO]  provider: configuring client automatic mTLS
2022-01-25T14:59:20.731+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13]
2022-01-25T14:59:20.737+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 pid=88596
2022-01-25T14:59:20.737+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13
2022-01-25T14:59:20.751+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.13: configuring server automatic mTLS: timestamp=2022-01-25T14:59:20.751+0200
2022-01-25T14:59:20.763+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.13: plugin address: address=/var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/plugin494044918 network=unix timestamp=2022-01-25T14:59:20.763+0200
2022-01-25T14:59:20.763+0200 [DEBUG] provider: using plugin: version=5
2022-01-25T14:59:20.798+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022-01-25T14:59:20.799+0200 [DEBUG] No provider meta schema returned
2022-01-25T14:59:20.805+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 pid=88596
2022-01-25T14:59:20.805+0200 [DEBUG] provider: plugin exited
2022-01-25T14:59:20.806+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-25T14:59:20.807+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 pid=88595
2022-01-25T14:59:20.807+0200 [DEBUG] provider: plugin exited
2022-01-25T14:59:20.807+0200 [INFO]  backend/local: plan calling Plan
2022-01-25T14:59:20.808+0200 [INFO]  terraform: building graph: GraphTypePlan
2022-01-25T14:59:20.809+0200 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/dmacvicar/libvirt"], implied first by module.kvm.libvirt_volume.base_local_image (expand)
2022-01-25T14:59:20.809+0200 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/null"], implied first by module.kvm.null_resource.provisioning (expand)
2022-01-25T14:59:20.809+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_cloudinit_disk.init_disk (expand)" (*terraform.nodeExpandPlannableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.809+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_volume.custom_image (expand)" (*terraform.nodeExpandPlannableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.809+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_volume.base_local_image (expand)" (*terraform.nodeExpandPlannableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.809+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_volume.base_remote_image (expand)" (*terraform.nodeExpandPlannableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.809+0200 [DEBUG] ProviderTransformer: "module.kvm.libvirt_domain.vm_creation (expand)" (*terraform.nodeExpandPlannableResource) needs module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.809+0200 [DEBUG] ProviderTransformer: "module.kvm.null_resource.provisioning (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/null"]
2022-01-25T14:59:20.809+0200 [DEBUG] pruning unused provider["registry.terraform.io/dmacvicar/libvirt"]
2022-01-25T14:59:20.810+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.autostart (expand)" references: []
2022-01-25T14:59:20.810+0200 [INFO]  ReferenceTransformer: reference not found: "path.module"
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.local.cloud_init_setup (expand)" references: [module.kvm.var.ssh_user (expand) module.kvm.var.ssh_public_keys (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.memory (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.privisioner_file_source (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.output.name (expand)" references: [module.kvm.libvirt_domain.vm_creation (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.vcpu (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.ssh_user (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.ssh_public_keys (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.local_os (expand)" references: []
2022-01-25T14:59:20.811+0200 [INFO]  ReferenceTransformer: reference not found: "path.module"
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.local.network_config (expand)" references: [module.kvm.var.network_interfaces (expand) module.kvm.var.nameservers (expand)]
2022-01-25T14:59:20.811+0200 [INFO]  ReferenceTransformer: reference not found: "path.module"
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.output.inventory (expand)" references: [module.kvm.libvirt_domain.vm_creation (expand) module.kvm.var.ssh_user (expand) module.kvm.var.provisioning_ssh_private_key (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "output.name" references: [module.kvm.output.name (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_volume.base_local_image (expand)" references: [module.kvm.var.local_os (expand) module.kvm.var.name (expand) module.kvm.var.volume_format (expand) module.kvm.var.volume_format (expand) module.kvm.var.pool_name (expand) module.kvm.local.os (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.disk_type (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.kvm_ssh_private_key (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.privisioner_file_dest (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_volume.base_remote_image (expand)" references: [module.kvm.var.local_os (expand) module.kvm.var.volume_format (expand) module.kvm.var.name (expand) module.kvm.var.volume_format (expand) module.kvm.local.os (expand) module.kvm.var.pool_name (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.volume_format (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.where_is_os (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.name (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.local.os (expand)" references: [module.kvm.var.local_os (expand) module.kvm.var.base_image (expand) module.kvm.var.where_is_os (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_domain.vm_creation (expand)" references: [module.kvm.var.memory (expand) module.kvm.libvirt_cloudinit_disk.init_disk (expand) module.kvm.var.vcpu (expand) module.kvm.var.autostart (expand) module.kvm.var.running (expand) module.kvm.var.name (expand) module.kvm.var.network_interfaces (expand) module.kvm.var.name (expand) module.kvm.libvirt_volume.custom_image (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.null_resource.provisioning (expand)" references: [module.kvm.var.enable_provisioning (expand) module.kvm.libvirt_domain.vm_creation (expand) module.kvm.var.provisioning_ssh_private_key (expand) module.kvm.var.connection_timeout (expand) module.kvm.var.ssh_user (expand) module.kvm.libvirt_domain.vm_creation (expand) module.kvm.var.connection_timeout (expand) module.kvm.var.ssh_user (expand) module.kvm.libvirt_domain.vm_creation (expand) module.kvm.var.provisioning_ssh_private_key (expand) module.kvm.var.privisioner_file_dest (expand) module.kvm.var.privisioner_file_source (expand) module.kvm.libvirt_domain.vm_creation (expand) module.kvm.var.provisioning_ssh_private_key (expand) module.kvm.var.ssh_user (expand) module.kvm.var.connection_timeout (expand) module.kvm.var.execute_remote_cmd (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.provisioning_ssh_private_key (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.kvm_server (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.volume_size (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.enable_provisioning (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.running (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.base_image (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_cloudinit_disk.init_disk (expand)" references: [module.kvm.local.network_config (expand) module.kvm.var.pool_name (expand) module.kvm.local.cloud_init_setup (expand) module.kvm.var.name (expand)]
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.pool_name (expand)" references: []
2022-01-25T14:59:20.811+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.execute_remote_cmd (expand)" references: []
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/null\"]" references: []
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm (close)" references: []
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.network_interfaces (expand)" references: []
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm.output.network (expand)" references: [module.kvm.libvirt_domain.vm_creation (expand)]
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm.provider[\"registry.terraform.io/dmacvicar/libvirt\"]" references: [module.kvm.var.kvm_server (expand) module.kvm.var.kvm_ssh_private_key (expand)]
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "output.network" references: [module.kvm.output.network (expand)]
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm (expand)" references: []
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm.libvirt_volume.custom_image (expand)" references: [module.kvm.var.local_os (expand) module.kvm.libvirt_volume.base_local_image (expand) module.kvm.libvirt_volume.base_remote_image (expand) module.kvm.var.pool_name (expand) module.kvm.var.volume_size (expand) module.kvm.var.name (expand)]
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.connection_timeout (expand)" references: []
2022-01-25T14:59:20.812+0200 [DEBUG] ReferenceTransformer: "module.kvm.var.nameservers (expand)" references: []
2022-01-25T14:59:20.815+0200 [DEBUG] Starting graph walk: walkPlan
2022-01-25T14:59:20.816+0200 [DEBUG] created provider logger: level=debug
2022-01-25T14:59:20.816+0200 [INFO]  provider: configuring client automatic mTLS
2022-01-25T14:59:20.852+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 args=[.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5]
2022-01-25T14:59:20.856+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 pid=88597
2022-01-25T14:59:20.856+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5
2022-01-25T14:59:20.865+0200 [INFO]  provider.terraform-provider-null_v3.1.0_x5: configuring server automatic mTLS: timestamp=2022-01-25T14:59:20.865+0200
2022-01-25T14:59:20.904+0200 [DEBUG] provider.terraform-provider-null_v3.1.0_x5: plugin address: network=unix address=/var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/plugin258046672 timestamp=2022-01-25T14:59:20.904+0200
2022-01-25T14:59:20.904+0200 [DEBUG] provider: using plugin: version=5
2022-01-25T14:59:20.954+0200 [DEBUG] created provider logger: level=debug
2022-01-25T14:59:20.954+0200 [INFO]  provider: configuring client automatic mTLS
2022-01-25T14:59:20.995+0200 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 args=[.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13]
2022-01-25T14:59:20.999+0200 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 pid=88598
2022-01-25T14:59:21.000+0200 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13
2022-01-25T14:59:21.014+0200 [INFO]  provider.terraform-provider-libvirt_v0.6.13: configuring server automatic mTLS: timestamp=2022-01-25T14:59:21.014+0200
2022-01-25T14:59:21.025+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.13: plugin address: address=/var/folders/lt/w5ykf27n5_l68t0736kjslnc0000gn/T/plugin1813970997 network=unix timestamp=2022-01-25T14:59:21.025+0200
2022-01-25T14:59:21.025+0200 [DEBUG] provider: using plugin: version=5
2022-01-25T14:59:21.064+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022-01-25T14:59:21.065+0200 [DEBUG] No provider meta schema returned
2022-01-25T14:59:21.067+0200 [DEBUG] provider.terraform-provider-libvirt_v0.6.13: 2022/01/25 14:59:21 [DEBUG] Configuring provider for 'qemu+ssh://cicd@x.x.x.x/system?keyfile=$HOME/.ssh/mariuss_git': &{map[uri:0xc0004d0000] <nil> <nil> 0xc000274bc0 map[] <nil> 0xc000274c40 0xc00066c630 0xc000245ae0 false map[] {1 {0 0}} false false}
2022-01-25T14:59:22.255+0200 [INFO]  backend/local: plan operation completed
╷
│ Error: failed to dial libvirt: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
│
│   with module.kvm.provider["registry.terraform.io/dmacvicar/libvirt"],
│   on ../../providers.tf line 11, in provider "libvirt":
│   11: provider "libvirt" {
│
╵
2022-01-25T14:59:22.256+0200 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-01-25T14:59:22.257+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/dmacvicar/libvirt/0.6.13/darwin_amd64/terraform-provider-libvirt_v0.6.13 pid=88598
2022-01-25T14:59:22.257+0200 [DEBUG] provider: plugin exited
2022-01-25T14:59:22.257+0200 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64/terraform-provider-null_v3.1.0_x5 pid=88597
2022-01-25T14:59:22.257+0200 [DEBUG] provider: plugin exited

On Linux (Ubuntu 20.04) works.

Please check:
https://github.com/dmacvicar/terraform-provider-libvirt/issues/916#issuecomment-1022712551

I came across the same issue and was searching for an answer.
╷
│ Error: failed to dial libvirt: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
│
│   with provider["registry.terraform.io/dmacvicar/libvirt"],
│   on k8s.tf line 10, in provider "libvirt":
│   10: provider "libvirt" {
│
╵

After checking the documentation on https://libvirt.org/uri.html I added sshauth=privkey to the URI and it works!!!
qemu+ssh://<USERNAME>@<ADDRESS>/system?keyfile=<PATH TO PRIVATE KEY>&sshauth=privkey

I hope this could help.

Weird, I am seeing this now in the strangest way.
I have 3 machines.
One machine is failing and one machine is fine. Same exact hardware, same exact code, same ssh config, same key.... same remote endpoint.
Both - Terraform 1.1.4
Both - libvirt v0.6.13
Both - 4.19.0-18-amd64
Working Machine URI
qemu+ssh://oneill@<IP_ADDRESS>:2269/system
Failing machine
Set to the above uri scheme.
It started working when set to
qemu+ssh://@/system?keyfile=&sshauth=privkey
Looks like the failing machine has had something introduced in one of the more recent golang patches
go version go1.16.5 linux/amd64
Working machine
go version go1.16 linux/amd64

@MikePadge I'd be skeptical about that. Please check which key is being tried in each case by looking at the logs of the ssh server in both cases.
As we tracked down the issue, it is because servers don't accept RSA keys with SHA1 signatures. Golang client does not support RSA+SHA256 sigs nor the extension to negotiate the algorithm to use.
I have posted a branch with a fix I reproduced locally in https://github.com/dmacvicar/terraform-provider-libvirt/issues/916#issuecomment-1022712551
If you know how to build the provider locally, check that comment for instructions and check if that fix works for you. Feedback is crucial to make a release with the fix.

https://github.com/dmacvicar/terraform-provider-libvirt/releases/tag/v0.6.14 should be available in the registry soon.

I can propose this workaround.
Make remote unix socket forwarding to local port with root access on remote host:
ssh -nNT -L localhost:5000:/run/libvirt/libvirt-sock<EMAIL_ADDRESS>And use connection string to local port:
qemu+tcp://localhost:5000/system
It's working for me.


JAX implementation of the derivatives of log determinents

To my knowledge, the sonnet implementation (master branch) used a hand-rolled gradient function for the logdet_matmul function corresponding to the Appendix C of the Ferminet paper. However, in the JAX implemention, such hand-rolled gradient function seems gone.
Could someone shed some light on the rationale behind the change? Is it because JAX is doing something smarter when differentiating a slogdet function? Thanks!

Very good eye. We found empirically that there is some subtle difference in how slogdet is implemented in JAX versus TF, such that the failures of TF training that we saw simply didn't happen in JAX. The numerical results in JAX also seem slightly better than in TF (for instance, the absolute energy of bicyclobutane is ~8 mHa lower) so we are not too concerned about the discrepancy going forward.

Very good eye. We found empirically that there is some subtle difference in how slogdet is implemented in JAX versus TF, such that the failures of TF training that we saw simply didn't happen in JAX. The numerical results in JAX also seem slightly better than in TF (for instance, the absolute energy of bicyclobutane is ~8 mHa lower) so we are not too concerned about the discrepancy going forward.


Can I change the style so it look more like default Android date picker?

I want the date picker to have left and right arrow. Just like default Android date picker.

Can I do that?

Not right now
I want to eventually support this in the version 2 layout, but I haven't had the time recently


IIS HeliconZoo with PullRequestBuilder Not working

Hi all,
I've got GitBucket running on Windows IIS with no problems. I've used the Wiki setup HeliconZoo and it did the job. Currently I access my instance by http://host/gitbucket and there is no issue. However, i've setup the GitHub Pull Request Builder using the Wiki again and it really wants to work but I've found that because of the context_path set to "/gitbucket" the plugin trips out.
In Jenkins project the Github Project path is set to http://domain/gitbucket/Utilities/UniversalTestApplication/. The request plugin thinks that the "/gitbucket/" part is the owner and it cant find repository "Utilities", but it isn't, its just the context path set by HeliconZoo. I've tried changing the Context_path but no success. If I set it to "/", gitbucket generates a query string so long that IIS can't handle it and throws error 404.15
My questions are: Does any one know how I could change IIS or HeliconZoo configuration to allow me to access the instance without the "/gitbucket", or what could I change in the Pull Request Builder setup so it ignores the "/gitbucket".
Thanks

Are there someone who are using GitBucket on IIS?

I have solved my issue.
What I've done:

In IIS HeliconZoo configuration comment variables CONTEXT_PATH, WAR_EXTRACT_PATH, CONTEXTS_DIR.
In gitbucket.conf change base url from http://domain/gitbucket to http://domain/
Restart IIS web application


coordinator-overlord.log so large

Affected Version
apache-druid-0.20.0
Description

druid/single-server/medium

coordinator-overlord.log so large when run it a week later, how to avoid this or reduce the log file size, help please

refer to https://github.com/apache/druid/issues/10127 and https://github.com/apache/druid/pull/10147. Hope to be helpful

@liuchyi Did you look in the log file. What's filling it up? Is there a repeated error message or stacktrace?


aursync: local changes

error: Your local changes to the following files would be overwritten by merge:
	.SRCINFO
	PKGBUILD
Please, commit your changes or stash them before you can merge.
Aborting

via https://github.com/AladW/aurutils/commit/7836996c432e01ee6ee1b56c0a269974baa2a585


Creating or reusing the London Underground logo as an icon.

Creating an icon for Tube Stations using the London Underground logo, perhaps by editing it to fit with Sailfish OS a bit better.

The icon is done, just need to add to the project.


Fix readonly rootfs container

Readonly rootfs is not supported because hyperd. We should fix it after  https://github.com/hyperhq/hyperd/pull/638.

Cool! This will be the a good start for beta release! 🥇 ㊗


Think about how to layout binaries in memory

There are some binaries in the initial repositories:
https://github.com/QuickLogic-Corp/qf-initial-bins
https://forum.quicklogic.com/viewtopic.php?t=29 <- explains how to recover the board
My understanding is that we need 3 binaries (or 2 depending whether we want to have bootloader or not)
First binary is bootloader
Second is FPGA binary
And finally we get the Cortex M4A Application (Zephyr?)

Since we are using the generic bootloader, we will be putting the binaries according to its requirements.
https://github.com/QuickLogic-Corp/qorc-sdk/tree/master/qf_apps/qf_bootloader


CLOUD-58687 Move cluster update password flow to new flow engine

@schfeca75 @mhmxs plz review

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2604/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/95/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2615/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/106/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2618/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/109/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2621/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/112/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2624/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/115/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/116/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/117/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2625/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2626/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/cloudbreak-pull-request/2628/

Refer to this link for build results (access rights to CI server needed):
http://ci.sequenceiq.com//job/mock-integration-test/119/


Convert to Python3

using : find . -name '*.py' | xargs 2to3 -w

Hi,
while we wrote the code thinking about this, it is not yet time to convert to py3. Some of the instruments we are using 3ML with (for example Fermi) have a software which is not compatible with python3.
Do you have a specific need for this?

I may try to work on Fermi packages. I checked the website on Nasa. Is the source code from this page ?
https://fermi.gsfc.nasa.gov/ssc/data/analysis/software/

Or here ?
https://fermi.gsfc.nasa.gov/ssc/data/analysis/scitools/overview.html


add workflow to manually rebuild and push packages and eve

Creates a new GitHub action workflow that builds and publishes all packages and eve, according to the latest HEAD off of master. Optionally, can tell it to force rebuild.
As this is GHA, I expect it will take us a few runs to get it right.
Also, this reuses a lot of code from build.yml and publish.yml. As such, I expect we will refactor much of it out shortly.

I do not know what yetus is complaining about. It says 1 yamllint error, but I do not see it, and I passed it through yamllint, came back clean 🤷♂


chain link proof example

Demonstrates how an attribute equality proof can be used with a chain function to prove the veracity of a provenance chain of linked data.

Closing this as Nova's interfaces have diverged substantially from what is used here. Please reopen with an updated PR.


Frameworks and Targets update

Fixes #1694

Topic renamed to Target Frameworks
NuGet docs topic content added to this topic
Link this topic to commands was handled in #1705

@GuardRex,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@terrajobst can you help review this? also, where can I find where the TFMs are defined? I wanted to double-check this list.

Thanks @svick ... I think that licked it.
We decided to clean up tables generally as we go. Future generations will thank us!

@mairaw Oh, yes. I see what you mean now. I thought you were referring to the first paragraph. I brought back the Writing about frameworks section with upgrades. The table was meant simply to condense all of it, but I like this layout as well. I think we know who influenced my earlier decision cough cough Rick cough. :grinning:

@mairaw Oh, yes. I see what you mean now. I thought you were referring to the first paragraph. I brought back the Writing about frameworks section with upgrades. The table was meant simply to condense all of it, but I like this layout, too. I think we know who influenced my earlier decision cough cough Rick cough. :grinning:
I plopped that alternative frameworks language in here for feedback. cc/ @weshaggard @terrajobst


Form next requested slot incorrectly asked in Rasa 3.0, although it was removed from required slots

Rasa Open Source version
3.0.1
Rasa SDK version
No response
Rasa X version
No response
Python version
3.8
What operating system are you using?
Windows
What happened?
This was confirmed as an issue based in this forum discussion:
https://forum.rasa.com/t/form-next-requested-slot-incorrectly-asked-in-rasa-3-0-although-it-was-removed-from-required-slots/50020
All the relevant info related to this case can be found in the discussion.
Command / Request
No response
Relevant log output
No response
Defintion of done

[ ] Understand why it has changed between 2.8 and 3.0
[ ] Ask user what they want to achieve with this behavior
[ ] Decide if this behavior is what we actually want to support

Thanks for the issue, @dakshvar22 will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

Thanks for the issue, @ancalita will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

@iuliacotaga Thanks for opening this issue - we're trying to understand the motivation(s) and use cases for removing a form required slot defined in the domain via the FormValidationAction custom action, could you please provide more context?

The list of form slots defined in the domain contains all the possible slots that need to be filled in.
However, the actual slots that need to be filled in are dynamically decided during conversation. Based on specific user answer, certain slot may not further make sense, therefore it is removed from required_slots list in order to avoid being requested as the next slot.

The opposite logic of adding slots instead of removing them would not properly fit the requirements.
The scenario of dynamically adjusting the form slots list works fine in 2.x version, including for the remove case. This flexibility really helps on supporting various scenarios. Is there any reason for not continuing to have it? Thanks.

I will discuss this internally as we're not entirely sure the remove case was intentionally designed in 2.x.

I will discuss this internally

To help us on this front, would you be able to share your requirements and give more details about the problem you're trying to solve? @iuliacotaga

@iuliacotaga I found the source of the bug, it's actually introduced by the domain_slots.remove(slot_to_remove line in your custom action. Because you're modifying domain_slots, this has a knock-on effect further in this line here where it cedes control to Rasa to request the next slot (and Rasa looks at the form's required slots as defined in the domain - this is how it has been in 2.x also).
I would recommend copyingdomain_slots in a new variable, modify that new list/variable and then return the modified new list, I've just tested with a bot and the fix works, form1_slot2 doesn't get requested. Hope this helps! I'll look to see if I can make the docs clearer for this example.
cc'ind @TyDunn

Solution updated in docs via merged PR #10734


Add paid LLM / Image gen API support

Use https://github.com/BerriAI/litellm so that people can use openai etc. for llm and img gen

moved to pro


On / Off switch from HA is unreliable

Hi,
I frequently find switching the cololight on/off from HA would be very unreliable. HA would indicate the light is switched on/off, but in reality this would not be the case. It does seem to happen when the light is toggled a few times in a short period of time, e.g.
From an off state, clicking on the light switch in HA 4 times with approx 1s intervals:
click 1: HA indicate light is switched on, Light switches on
click 2: HA indicate light is switched off, Light switches off
click 3: HA indicate light is switched on, Light switches on
click 4: HA indicate light is switched off, Light stays on
I can see the events firing, but no response on the light.
If I leave it alone for a while (about 1 minute) and then try to switch on/off the light starts responding again. Not sure if the light is ignoring too frequent commands perhaps?  Is there a way to improve this to get a more reliable response from the light?
In case it matters, on the initial config the light connected to HomeKit which I generally don't use, but the light is still controllable from HomeKit and doesn't have the reliability issue. If I click on the light switch a bunch of times then trying to control the light from HomeKit becomes unresponsive for a bit before it starts working fine again.
Regards,
Carel

Thanks @carels,
Unfortunately I haven't found a way to prevent this kind on behaviour.
Ideally Home Assistant should be able to poll the light to get the state, rather than relying only on the last state HA set.
This would help HA being out of sync with the light if it was controlled by other means, and prevent the need for toggling in HA.
However I haven't found a way for the light to report its state, nor am I sure it does.
I haven't come across the light being unresponsive for a short period of time, but you could be right in thinking that it might be rate limiting the number of requests it allows in a given minute.
Sorry I wasn't able to help more.

Just a thought on this -- I have not tried this particular project but I am sending commands on the same format using nc to my device, and I noticed that it was unreliable in changing colour.
Perhaps especially so if I kept sending quite frequent commands to it. Then I noticed that at https://haus-automatisierung.com/projekt/2019/04/05/projekt-cololight-fhem.html he speaks of one byte appearing to be a counter. Instead of always sending 0x01 there, I started sending alternating 0x01 and 0x02. From my quick testing, I would say this made it a lot more reliable, close to 100% from previously being as low as ~50%. I have not collected any proper statistics on this yet, and this was for colour changing (not tested on/off), but I thought it was worth mentioning anyway.

@jensandersson great find!
@carels I have implemented the fix mentioned above. This can be found in version v1.2.2, which will now alternate sending 0x01 and 0x02 with each call.

Great! The byte is probably an 8-bit command id, so even safer might be to send an incrementing value (mod 256), or even a random value, although alternating 0x01 and 0x02 was good enough for my purposes.


Localess as Docker Image

Is your feature request related to a problem? Please describe.
The process of installation is very complicated for a casual user.
Describe the solution you'd like
Install Localess as Docker Image

Completed


hz - fixed browser back button issue, issue with flak crashing the ga…

…me, added new title screen, optimized css for different sized displays.

LTGM


Predicate (Index)AttachLauncher

Looks like we don't support predicating (Index)AttachLauncher:
https://github.com/StanfordLegion/legion/blob/d5b7ddcf77368d62e67d5a7c83e616def2226638/runtime/legion.h#L2282-L2411
Any particular reason? I'd find it useful to have.

Wanting to predicate an attach/detach operation causes an impedance mismatch with how I would expect someone to use attach/detach operations. Attaches and detaches are much more expensive than normal operations because they have to deal with the outside world. They should be done infrequently. In the case of checkpointing, my expectation is that you do one or two attaches to create external checkpoints associated with logical regions, and then you overwrite them as you go, either overwriting the previous checkpoint (or overwriting one from two checkpoints ago if you want to A/B them to make sure you always have an intermediate good one).

Any particular reason? I'd find it useful to have.

The most obvious technical hurdle is that there is no way for Legion to poison an external instance creation in Realm. It's not even really clear what a poisoned instance actually means. If you predicate a task/copy/etc and it's predicate resolves to false, then any instances it might have mapped are still perfectly normal instances (without any valid data) but they can be used by the mapper for other tasks and don't disappear just because the task/copy predicated false. If you predicate an attach false though, then presumably that instance isn't even valid, and there's no machinery to go and clean it up right now and/or remap things that might have depended on that instance existing.


Alt-X No Longer Reads @set parameters

System information:

win10 ent 1803 - 17134.345
6.2.2

Connection specification:

MapR Drill
Apache Drill JDBC Driver 1.16.0

Describe the problem you're observing:
alt-x does not read @set parameters in a script
Steps to reproduce, if exist:
@set send_date = '2019-01-01'
SELECT *
FROM db.warehouse
WHERE sent_date = :send_date

Hi @drawnfallow ,
it seems issue is duplicate of #6969 that is already fixed in EA version.
You could check it here https://dbeaver.io/files/ea/


Middleware for user apps

It would be nice to provide middleware for user applications, in the form of another function, so that a user can add things like authentication for instance.

User adds route/function to app
User adds middleware to app (URL's to functions)
During execution, we call URL's before running the function
If response isn't 2XX, we respond early and don't run function.

Related: https://github.com/fnproject/fn/issues/34

Is this on the roadmap at all? It would be very useful!

At this moment, you can develop your own middleware along with the extensions to Fn.

Sure, I understand that I can write middleware for Fn in Go, but it would be nice to have a simple built-in way to use another function as middleware.

Thanks for the reply. I’m not sure if that’s something we’d do in short term.
Maybe you’re willing to contribute? Would be nice to start with detailed feature description, use cases, etc.
P.S.: The reason this feature is not available because Fn has changed significantly, at least I think so.

this one is relatively challenging to support at the fn level because it's hard for us to guarantee finality (at least, easily) and scale. there's lots of implications for how to schedule from an fn node back through whatever we'd use to schedule these to other nodes and correlate those (we can get into locality and all this too, eventually; opening the pandora's scheduler box is not wise), and for funsies since functions can themselves call functions, we can end up in a chain that never ends (this just highlights the complexities).
flow is a better/existing idea for this kind of thing, as it handles a lot of this client side and exists today. unfortunately, it's a bit more restrictive on current implementations language (no .net), and is considered somewhat experimental, none-the-less it does work in not too scaled up capacities and the API is open and can be implemented with relative ease.


Support generated secret_data

          This features gives a "key definition error" when supplying generated secret_data

module "secrets" {
  source = "../../modules/secrets"
  secrets = [
    {
      name        = "sa_secrets",
      secret_data = google_service_account_key.key.private_key
    }
  ]

  project_id = var.project_id
}
...
│ Error: Invalid for_each argument
│
│   on ../../modules/secrets/main.tf line 37, in resource "google_secret_manager_secret_version" "secret_version":
│   37:   for_each = { for secret in var.secrets : secret.name => secret if can(secret.secret_data) }
│     ├────────────────
│     │ var.secrets is list of object with 1 element
│
│ The "for_each" map includes keys derived from resource attributes that cannot be determined until apply, and so Terraform cannot determine the full set of keys that will identify the instances
│ of this resource.
│
│ When working with unknown values in for_each, it's better to define the map keys statically in your configuration and place apply-time results only in the map values.
│
│ Alternatively, you could use the -target planning option to first apply only the resources that the for_each value depends on, and then apply a second time to fully converge.

I don't fully understand why, since the secret_data is not in the key. Any advice for fixing this?
Originally posted by @DevoFalcon in https://github.com/GoogleCloudPlatform/terraform-google-secret-manager/issues/55#issuecomment-2051400067

Currently secret data needs to be known at plan time as it is inspected (empty or not) to know how many instances should be created. To support usecases where secret data is generated we should introduce a way to statically toggle secret version creation maybe as a boolean.


Build fails with cmake

Building fails with Clion based on the CMakeLists.txt file in the carla root directory. After running Setup.sh from /Utils/BuildToolsv to download all the dependencies.
Running on Linux Ubuntu 16.04
CMAKE flags: -G Ninja -DCMAKE_BUILD_TYPE=Server
Part of the log is listed below:
[ 95%] Building CXX object LibCarla/cmake/test/CMakeFiles/libcarla_test_server_release.dir///source/test/server/test_benchmark_streaming.cpp.o
[ 96%] Linking CXX executable libcarla_test_server_debug
CMakeFiles/libcarla_test_server_debug.dir///source/test/common/test_buffer.cpp.o: In function testing::AssertionResult testing::internal::CmpHelperEQFailure<unsigned int, unsigned long>(char const*, char const*, unsigned int const&, unsigned long const&)': /media/yan/Storage/GitRepos/carla/Build/googletest-1.8.0-ex-libcxx-install/include/gtest/gtest.h:1378: undefined reference to testing::internal::EqFailure(char const*, char const*, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, bool)'
It seems I am getting undefined references all related to gtest. From what I understand, the header file and the compiled gtest object file do not seem to match. This is weird because using the makefile instead of cmake works just fine. I also ran Setup.sh before building which compiled gtest from scratch. I tried cleaning and rebuilding gtest but it does not help.

Hi, @ykaganov !
Have you succeeded in building CARLA with CLion?
If so, could you tell me how to do it?

Hi, @youngsend and @ykaganov, I'm facing the same problem. The problem is due to the fact that no file was specified for the Toolchain.
-DCMAKE_TOOLCHAIN_FILE=${CARLA_ROOT}/Build/LibStdCppToolChain.cmake

In order to build a project, you need to call the following command in the command line (you can use the Makefile):
cd ${CARLA_ROOT}
make setup
mkdir build && cd build
cmake \
    -DCMAKE_GENERATOR="Unix Makefiles" \
    -DCMAKE_BUILD_TYPE=Client \
    -DLIBCARLA_BUILD_DEBUG=ON \
    -DLIBCARLA_BUILD_RELEASE=OFF \
    -DCMAKE_TOOLCHAIN_FILE=${CARLA_ROOT}/Build/LibStdCppToolChain.cmake \
    -DCMAKE_INSTALL_PREFIX=${CARLA_ROOT}/PythonAPI/carla/dependencies \
    -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
    ..
make -j12

In order to build the project in the CLion, I did the following steps:

I modified the root one CMakeLists.txt as follows:

cmake_minimum_required(VERSION 3.5.1)
project(CARLA)

set(LIBCARLA_BUILD_DEBUG ON)
set(LIBCARLA_BUILD_RELEASE OFF)
set(CMAKE_BUILD_TYPE Client)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/PythonAPI/carla/dependencies)

include("Build/CMakeLists.txt.in")

add_subdirectory("LibCarla/cmake")

This is strange, but CMake ignores the CMAKE_TOOLCHAIN_FILE variable via initialization in CMakeLists.txt, as:

set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Build/LibStdCppToolChain.cmake)

Therefore, we need to set this variable through the CLion settings: File - > Settings - > Build, Execution, Deployment - > CMake, and in the CMake options field, set the following for Debug and Release:
-DCMAKE_TOOLCHAIN_FILE=/path/to/carla/Build/LibStdCppToolChain.cmake

Unfortunately, CLion does not recognize the ${CARLA_ROOT} environment variable, so you need to specify an absolute path.
After doing the above steps, the project in CLion should be built.


🐛css issue with images and empty text

Description
🐛css issue with images and empty text
I'm a GSSoC'23 contributor please assign me this issue under gssoc label and level.
Steps to reproduce
go to website and check the post card
Screenshots
before :-

After :-

Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional information
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I have checked the existing issues
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

you mean their fitness? yes you can definitely work on this and please ensure, images don't get cropped out

Description
bugcss issue with images and empty text
I'm a GSSoC'23 contributor please assign me this issue under gssoc label and level.
Steps to reproduce
go to website and check the post card
Screenshots
before :-
After :-
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional information
No response
Record

[x]  I agree to follow this project's Code of Conduct
[x]  I have checked the existing issues
[x]  I'm a GSSoC'23 contributor
[x]  I want to work on this issue

I didn't understand the images you provided, you're just comparing two different images

bro @narayan954 if you see when there is no images only text on gride view images alignment get uneven so i have fix that issue i will raise mr for that and i will also ensure no to crop the images.

bro @narayan954 if you see when there is no images only text on gride view images alignment get uneven so i have fix that issue i will raise mr for that and i will also ensure no to crop the images.

Thanks bro, you can go ahead!


Verification for PHP 7 generator return values.

Relates to #94.

At the moment, I'm thinking that returned() will probably need to work for generator returns too. In order to allow the user to still assert that a call originally returned a generator, we will probably need to introduce something like generated():
$spy = spy(
    function () {
        yield 'a';
        return 'b';
    }
);

iterator_to_array($spy());

$spy->generated();
$spy->produced('a');
$spy->returned('b');

I think I was the one that was keen to use returned in this way, though looking at it now I wonder if it's wise to reuse returned(). If you had a verification that was simply:
$spy->returned('b');

The implementation of the spy could be either a regular function or a generator and the test would still pass, but usage of the two would be very different in reality.
That said, I don't think I've ever used return verification, since I rarely use spies outside of verification of callback functions, and the rest of the time the spy is also the stub that provides the behaviour.

Okay, so what would we call the verification method of a generator return value? The best I can think of is generatorReturned($value).

If you were faced with the edge case that a single method could return something via a generator OR normally, we could still allow for:
$spy->never()->generated();
$spy->returned('b');


Update version to 0.2.0

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/18495
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" 61988db44676faf58437f3787a8f34195c0c53f4
git push origin v0.2.0


Training error using train_text_prompt.py

First of all, thank you very much for open source such a great project. I am a novice.
I want to perform semantic segmentation on my 2D image data. These images are preprocessed through utils/pre_grey_rgb.py and then sent to extensions/text_prompt/train_text_prompt.py for training , the trained model then uses extensions/text_prompt/tutorial_text_prompt_seg.ipynb to try to perform semantic segmentation. In the Load pre-trained model section, medsam_text_demo.state_dict()[key].copy_(medsam_text_demo_weights[key]) appears such an error：
KeyError: 'image_encoder.pos_embed'
medsam_ckpt_path is the medsam_vit_b.pth you provided.
What is the problem that caused this error? Can you provide some help? Thanks! !

Hi there,
The tutorial_text_prompt_seg.ipynb was designed to run with the demo check point. To run this notebook with your own trained text prompt MedSAM checkpoint, could you please try modifying line 19 under the Load pretrained model section as below:
medsam_text_demo_weights = torch.load(medsam_text_demo_checkpoint)["model"] ## << line 19, add ["model"]
for key in medsam_text_demo.state_dict().keys():
    if not key.startswith('prompt_encoder.text_encoder.'):
        medsam_text_demo.state_dict()[key].copy_(medsam_text_demo_weights[key]) ## where the key error occured

Thanks for your help, now the program runs smoothly!


findAll ,WARN Room parse() on a empty rawObj

调用room.findall报错。
环境：
1.ubuntu 14.04
2.Docker version 17.12.0-ce, build c97c6d6
3.镜像是build自 wechaty的32f31b1056868fc211611da157fd5bcda9fb9e45的提交
 03:24:13WARN Room parse() on a empty rawObj?
2018-03-22T03:24:13.774205519Z 03:24:13 ERR Room contactGetter(@@5ce07ac48456e24705edf614e903637ff6e17960de9f321ed814e8fd3aeff5d2) exception: no this.obj set after contactGetter
2018-03-22T03:24:13.807309847Z (node:32) UnhandledPromiseRejectionWarning: Error: no this.obj set after contactGetter
2018-03-22T03:24:13.807356522Z     at Room._callee2$ (/wechaty/dist/src/room.js:120:27)
2018-03-22T03:24:13.807363527Z     at tryCatch (/wechaty/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:65:40)
2018-03-22T03:24:13.807367796Z     at Generator.invoke [as _invoke] (/wechaty/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:303:22)
2018-03-22T03:24:13.807372042Z     at Generator.prototype.(anonymous function) [as next] (/wechaty/node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js:117:21)
2018-03-22T03:24:13.807376387Z     at fulfilled (/wechaty/dist/src/room.js:4:58)
2018-03-22T03:24:13.807380515Z     at <anonymous>
2018-03-22T03:24:13.807403337Z (node:32) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

Need More Information
Sorry, you did not follow the ISSUE Template, and there's not enough information about your problem.
In order to help us to find the problem out, you should provide all the detail information about the issue. Please make sure you are following the ISSUE Template, answer all the question, and the more important: provide the steps to reproduce the problem.

Close this issue due to long time no activity and leak of the re-produce steps.


Bower version 2.5.0?

Currently the version in bower.json is listed as 2.4.2, but it is 2.5.0 according to breakpoint.rb. Should the version in bower.json be updated to 2.5.0?

The version property in bower.json is not used by bower at all. Bower is, as of now, entirely git-based, where a bower package's versions are its git tags (the tags that are semver-compliant). If anything - the version property should be removed from bower.json.

New version being published today