/etc/hosts file on guest is left with incorrect permissions

Vagrant: 1.7.4
Hostmanager: 1.6.0
Provider: Virtualbox 5.0.0
Host OS: OSX 10.10.4
Guest OS: Ubuntu 14.04
I recently noticed this happening and can't work out whats up, the same Vagrantfile was working and now its not.  I've only updated to virtual box 5 and host manager 1.6 in an attempt to fix the issue.  No different.
-rw------- 1 vagrant vagrant 342 Aug  6 15:57 /etc/hosts
If disable the plugin the hosts file permissions are fine.  Even existing boxes that were working before are now failing due to this problem.  When this happens the hosts file is not readable by php, hence my hostname lookups fail.
Any ideas?

I have this issue to. I get permission 700 with owner vagrant:vagrant. If I manually fix the permissions and chown to root everything works.
A workaround is to add the following provision to your vagrantfile:
  #the vagrant-hostmanager plugin has a bug where ownership and permissions for the guest /etc/hosts file will be changed. This workaround changes it back:
  config.vm.provision "fix-hostmanager-bug", type: "shell", run: "always" do |s|
    s.inline = <<-EOT
    sudo restorecon /etc/hosts
    sudo chown root:root /etc/hosts
    sudo chmod 644 /etc/hosts
    EOT
  end

I'm encountering this issue as well with a centos/7 guest. When I try to do anything as root, the hosts file is ignored unless I change the ownership back to root. I'm assuming that this is a security precaution—if the hosts file is writable by someone other than root, then the root account shouldn't use it.

@seth-reeser Why was this issue marked "more information needed"?

This is a small insight into the overall issue - there are n operating systems that are taken into account. We're always looking for volunteers to address the issue and create a pull request.

I believe the main issue being discussed is line 44 of updater.rb is what changes the SElinux context of /etc/hosts. By default on CentOS/7 the following context is used for /etc/hosts:
# ls -laZ /etc/hosts
-rw-r--r--. root root system_u:object_r:net_conf_t:s0  /etc/hosts

Because the hostmanager plugin is moving a file from /tmp to /etc it will also carry over with it the context established when the file was created in /tmp:
17:16:07 master ~ # cat /etc/hosts > /tmp/hosts.tmp
17:16:17 master ~ # ls -laZ /tmp/hosts.tmp
-rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 /tmp/hosts.tmp
17:16:23 master ~ # ls -laZ /etc/hosts
-rw-r--r--. root root system_u:object_r:net_conf_t:s0  /etc/hosts
17:16:36 master ~ # mv /tmp/hosts.tmp /etc/hosts
mv: overwrite ‘/etc/hosts’? y
17:16:50 master ~ # ls -laZ /etc/hosts
-rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 /etc/hosts

This interferes with the default selinux-policy rules on CentOS/7 if you use dnsmasq for a local caching nameserver:
type=AVC msg=audit(1453224496.765:1142): avc:  denied  { open } for  pid=9316 comm="dnsmasq" path="/etc/hosts" dev="dm-0" ino=14822337 scontext=system_u:system_r:dnsmasq_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0

The correct SElinux context can be shown/restored with the following command:
17:16:51 master ~ # restorecon -v /etc/hosts
restorecon reset /etc/hosts context unconfined_u:object_r:user_tmp_t:s0->unconfined_u:object_r:net_conf_t:s0
17:18:04 master ~ # ls -laZ /etc/hosts
-rw-r--r--. root root unconfined_u:object_r:net_conf_t:s0 /etc/hosts

It appears the fix is one of two options that both would involve changes to updated.rb -- either add the -Z flag in the move_cmd variable on line 30 or apply the following patch:
--- updater.rb.dist	2016-01-19 01:57:25.000000000 -0500
+++ updater.rb	2016-01-19 12:29:58.000000000 -0500
@@ -38,10 +38,8 @@
             machine.communicate.upload(file, '/tmp/hosts')
             if windir
               machine.communicate.sudo("#{move_cmd} /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
-            elsif machine.communicate.test('test -f /.dockerinit')
-              machine.communicate.sudo("cat /tmp/hosts > #{realhostfile}")
             else
-              machine.communicate.sudo("#{move_cmd} /tmp/hosts #{realhostfile}")
+              machine.communicate.sudo("cat /tmp/hosts > #{realhostfile}")
             end
           end


Unable to use master role on an agent

Version report
Jenkins and plugins versions report:

Jenkins 2.277.1
AWS Pipeline 1.43

What Operating System are you using (both controller, and any agents involved in the problem)?

Docker + EC2 plugin

Reproduction steps

Run on master - use awsIdentity() and see the correct role. Can run aws command via sh okay
Run on agent - use awsIdentity() and see the correct role. Get Unable to locate credentials. You can configure credentials by running "aws configure".

I am not using the new useNode config
Results
Expected result:
Should be able to use master role on agents

Actual result:
Cannot use master role on agents

With the EC2 plugin you need to have filled out roleArn with the role that's on the master for this to work


Library not translating, just returning input

Hello
I am running the following code
from easynmt import EasyNMT

model = EasyNMT('opus-mt')

print(model.translate("停", target_lang='en'))

The result of the code is just "停", which is the exact same thing as the input. How can i fix this?

It can be that the language detection steps identifies the wrong language.
You can try and also pass the source_lang parameter to the translate method.

That solved the problem!

Is there any way to improve the auto detection?

When you install these packages:
pip install langid langdetect

Then there are 3 language detection methods:
from easynmt import EasyNMT

model = EasyNMT('opus-mt')
t = "停"
print(model.language_detection_fasttext(t))
print(model.language_detection_langid(t))
print(model.language_detection_langdetect(t))

By default, fasttext is used.
You can change the method for the automatic language detection that is used for translation like this:
model._lang_detectors = [model.language_detection_langid]
print(model.language_detection(t))

Note:
language_detection_langdetect returns 'zh-cn' for the above example, however, the opus-mt model requires that the language code is 'zh' to work.

Thank you. That worked.


MOBDOC-14 Add Antora structure to xamarin repo for docs

Motivation
Add antora structure to sdk for docs
JIRA: https://issues.jboss.org/browse/MOBDOC-14

The changes look fine. Any particular instructions on how to verify the changes?

@wei-lee  I have some instructions at http://shiftgear.org/processes/latest/docs/antora.html
but  dunno if that helps

I followed the instructions and looks like it is working. Although I noticed that this is creating a new docs dir, even though there is already a Documentations dir in the SDK already. Is that necessary?

@wei-lee could I suggest that we have a follow on task, to convert the existing doc from markdown to asciidoc and include it in the docs directory?

@wei-lee  btw you could assign that follow on task to me ;) We could reuse documentation directory, but would make this repo different from all the others, that's what i'm trying to avoid

@finp we have a task this sprint to actually starting on writing the docs. I think we can progress the follow on task as part of that issue. Are you ok with that?

@wei-lee  perfect

@finp I have updated the description of the JIRA issue to include the follow on tasks you have mentioned.

@wei-lee @finp by the sounds of it this is done. can we merge it?

@StephenCoady I am ok to merge this if @finp is happy with it.


Helm Chart Fails to Deploy ssi-dim-wallet-stub Due to Missing managed-identity-wallet:0.0.1 Image

Describe the bug
The Helm Chart doesn't deploy the Wallet Stub. When I execute the Helm command, the Minikube dashboard shows the error: manifest for tractusx/managed-identity-wallet:0.0.1 not found.
To Reproduce
Steps to reproduce the behavior:

Run

helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev
helm repo update
kubectl create namespace wallet
helm install ssi-dim-wallet-stub tractusx-dev/ssi-dim-wallet-stub

Expected behavior
The ssi-dim-wallet-stub pod should be running in Kubernetes.
Screenshots/Error Messages

Context Informations
Add any other context about the probleme here.

Kubernetes version: v1.30.0
Helm version: v3.16.1

Possible Implementation
The deployment works locally when the image is replaced with the locally generated one. A possible solution is to upload the ssi-dim-wallet-stub image to the TractusX repository and set it as the default image, instead of managed-identity-wallet.

Thanks for reporting.
We already have a docker image on dockerhub: https://hub.docker.com/r/tractusx/ssi-dim-wallet-stub/tags
Values are wrong in the values.yaml file.  I will push it with the correct values

Hello everyone.
The Deployment regarding this issue failed due to the chart version not changed, ¿can you fix it?
Thanks beforehand.

Issue fixed
Please try to install it with the below command:
helm repo update
helm install ssi-dim-wallet-stub tractusx-dev/ssi-dim-wallet-stub --version 0.1.1


ServiceBusOutput does not seem to pass on a value assigned to Correlation ID

I am trying to get a ServiceBusOutput working on a Net 5 isolated function, where then output message needs a correlation ID assigned to it. Simple example of the code below. It appears that the Correlation ID is not being passing correctly out of the Function, so my listening subscriptions do not pick it up. Of course, this is stopping us transitioning to Net 5. Am I doing something wrong, or is there another way to set the correlation ID?
`        using Azure.Messaging.ServiceBus;
using Microsoft.Azure.Functions.Worker;
    [Function(nameof(LameFunction1))]
    [ServiceBusOutput("topicname" Connection = "ServiceBusConnection")]
    public ServiceBusMessage Run([TimerTrigger("0 * * * * *")] TimerInfo timerInfo,
        FunctionContext inContext)
    {
        var myLogger = inContext.GetLogger(nameof(LameFunction1));

        var myResultMessage = new ServiceBusMessage("HELLO!")
        {
            CorrelationId = "pipeline-step-complete"
        };

        return myResultMessage;
    }`

You can't use SDK type. I suspect you need to return a custom object with a property names CorrelationId for this to work but there's no info on the details.
@fabiocav could you point in the right direction? I don't mind to PR documentation to capture it. Thanks.

I guess this is similar (or maybe the same as?) #474. If so, sorry for the duplicate.

Looks like a dupe of #474.


Improve CloudFlare cache clear logging

This PR was made to help diagnose the CloudFlare cache purge issue we've been having, though Review Apps don't actually have CloudFlare credentials.
The changes of this PR move the CloudFlare cache cleaning logic into a regular Node module instead of a CLI-invoked script. This module is then used at the end of the deploy script. Effectively, this moves the CloudFlare cache clean to "the end of the deploy phase" as opposed to "the start of the runtime process".
As I understand it, this effectively doesn't change anything except for logs. The log changes, however, mean that the CloudFlare script outputs in the build logs instead of the runtime logs- this is good because runtime logs expire without add-ons, but build-time logs last forever by default.
You can see in the Deploy Preview for this PR that the cache clear module is being run, as it outputs the line Skipping CloudFlare cache purge because CONTEXT is not set to production.. To actually test it out, I just need to manually add keys to the deploy app's env vars. I'll do another update when I do.
Update: When testing with the keys in prod on the Heroku review app, this error appears:
Error: CloudFlare cache clear failed! {
  "status": 403,
  "errors": [
    {
      "code": 10000,
      "message": "Authentication error"
    }
  ]
}

When testing with a new token on a Review App, the CloudFlare cache is successfully cleared. This could either be because the token is invalid or deploy apps fail an auth check on the old key that prod passes. Either way, I think it's worth trying this new log behavior and a new key on the production Heroku instance.
Update: While working on this issue, I ran into a bug related to GitHub stars that would break our cache re-use occasionally and force a full rebuild- the fix was to turn the static stars GraphQL endpoint into a simple resolver instead of a true Node, solving the issue that necessitated the separate node as well as the cache issue the first iteration of the fix introduced.

do we want to merge this?

I believe we do want to merge this, the primary change will mean any future CloudFlare cache cleaner problems will be much more visible (i.e. if the new token I make ever expires for some reason)
On top of that, I managed to pin down and fix a hard-to-replicate bug while working with this PR on Heroku that would occasionally break Gatsby cache and trigger a full rebuild.


https access breaks the website

Browser error:
"Mixed Content: The page at 'https://amiinmiami.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://maps.googleapis.com/maps/api/geocode/json?address=9806+NE+2nd+Ave&bounds=25.25%2C-80|26%2C-79&sensor=false'. This request has been blocked; the content must be served over HTTPS."
If you access http://amiinmiami.herokuapp.com the website works correctly.

@ErnieAtLYD Stamen's tile server uses an invalid certificate. As such, they will not load over HTTPS.

/cc @mojodna

From maps.stamen.com:

If you'd like to display these map tiles on a website that requires HTTPS, use our tile SSL endpoint by replacing http://tile.stamen.com with https://stamen-tiles.a.ssl.fastly.net. Multiple subdomains can be also be used: https://stamen-tiles-{S}.a.ssl.fastly.net
If you need protocol-agnostic URLs, use //stamen-tiles-{s}.a.ssl.fastly.net/, as that endpoint will work for both SSL and non-SSL connections.

Thanks Seth!

Special thanks to @Tux64, @migurski and @mojodna (yay Seth long time no seeeee).

:cake:


private data attestation insecure

Where can I review the code for your private data attestations?
In the docs you outline how to create private data attestations.
If the data space size is low, the attestation can be easily guessed.
For example a schema of
Name, Gender, over100k, credit score
Assuming the verifier knows his customer name, he can easily iterate through the possible values and guess the merkle root as there are only
2(gender)*2(over100k)*1000 different options.
To make it resistant each data needs to be paired with a random nonce node. (can be made deterministic for example by using the hash of the signed value by the recipient private key)

Correct, that is what we do. Every leaf has its own random 256 bit salt. We will add the code for this into the sdk ASAP.

@slavik0329 when will this be part of the sdk?


Update Python SDK dependencies

R: @charlesccychen

Coverage increased (+0.007%) to 70.85% when pulling 28aa722b350fd26fe6352de33fbf3343c3863618 on aaltay:vt into 39c80f640749fed5f55a0c8f25c849e5f7c3d179 on apache:master.


Inbound Parse Webhook: Attachment-info link is not formatted correctly

https://sendgrid.com/docs/API_Reference/Webhooks/parse.html
The docs currently read:
A JSON string containing the attachmentX (see below) keys with another JSON string as the value. This string will contain the keys *filename*, which is the name of the file (if it was provided) and *type*, which is the [media type](http://en.wikipedia.org/wiki/Internet_media_type) of the file.
Note that "media type" is not a link, but shows the markdown formatting for links instead. It should be a proper link.

Hello @ealter,Thanks for your suggestion or question! In an attempt to clear out our backlog,                                              we are closing out issues over 90 days old.                                             If this is still an issue, please feel free to reopen it.                                             Team SendGrid DX-Docs


VBox management on MAC doesn't work. Failed with 0x80004005 error

Our application uses VBoxRT.dylib and VBoxXPCOM.dylib libraries. So when those files located in /Applications/VirtualBox.app/Content/MacOS/ and application has references to those files everything works fine. But after applying macdeployqt tool we have error 0x80004005 when we trying to get VirtualBox object. Need to figure out what's the problem and fix it.

Fixed. Problem was in wrong mac deployment.
After deployment added 2 steps :

install_name_tool -change @executable_path/../Frameworks/VBoxRT.dylib /Applications/VirtualBox.app/Contents/MacOS/VBoxRT.dylib SubutaiTray
install_name_tool -change @executable_path/../Frameworks/VBoxXPCOM.dylib /Applications/VirtualBox.app/Contents/MacOS/VBoxXPCOM.dylib SubutaiTray


[feature] Add SSL options to qBittorrent plugin

Motivation for changes:
The qBittorrent plugin is currently unable to add torrents over a secure web interface
Detailed changes:
This commit adds two new options to the qBittorrent plugin configuration:

use_ssl: if set to True, the plugin connects to the API using https (default: False)
verify_cert: if set to False, skips SSL certificate verification (for self-signed certificates) (default: True)

Config usage if relevant (new plugin or updated schema):
For example:
qbittorrent:
host: <IP_ADDRESS>
port: 8080
use_ssl: yes
verify_cert: no

Thanks. Can you update the wiki as well?

I have updated the wiki


trouble adding to a project

Hi, thanks for making this package.
I'm having trouble adding it as a dependency. I'm not able to see any logs in the stripe console. I confirmed my stripe is setup correctly because I see logs when using python.
I've made a repo that reproduces the issue here: https://github.com/geofflangenderfer/ihp-stripe-demo/blob/main/Application/Script/CheckoutSessionExample.hs
I would greatly appreciate any advice

I confirmed it was working by viewing the logs in the stripe console. I'm not sure why it won't print anything though..


clean_java target doesn't clean ortools/gen directory

Hello,
for building of ortools for java I use following sequence ...
tools\make third_party
tools\make java
for cleaning of working directory I use following sequence ...
tools\make clean_third_party
tools\make clean_java
During movement on commit tree between 7.1 and current master branch I experienced several times information about incompatible sources of protoc. Cleaning of ortools/gen directory helped but should be probably part of clean_java target.
Jan

Which part of ortools/gen java code is not cleaned ?
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le lun. 1 juil. 2019 à 13:16, gregy4<EMAIL_ADDRESS>a écrit :

Hello,
for building of ortools for java I use following sequence ...
tools\make third_party
tools\make java
for cleaning of working directory I use following sequence ...
tools\make clean_third_party
tools\make clean_java
During movement on commit tree between 7.1 and current master branch I
experienced several times information about incompatible sources of protoc.
Cleaning of ortools/gen directory helped but should be probably part of
clean_java target.
Jan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1384?email_source=notifications&email_token=ACUPL3OPWBNNZNU6NU3VCYLP5HRQTA5CNFSM4H4RKQ72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G4TSGLA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3N5NVXDD5OHGURJASLP5HRQTANCNFSM4H4RKQ7Q
.

Just checked
make cc
make java
make clean_java
no java artifacts are left in ortools/gen.

sources generated by protoc. for example
gen/ortools/glop/parameters.pb.[h|cc]
so no java artifacts but code used by 'make java', I checked that it is cleaned by clean_cc target.
right sequence is in this case is
clean_third_party
clean_cc
clean_java
installation instructions should probably be updated to mention clean_cc target.

Each clean_xx target cleans the artifacts created by make_xx.
I do not believe it depends on the order.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le lun. 1 juil. 2019 à 14:50, gregy4<EMAIL_ADDRESS>a écrit :

sources generated by protoc. for example
gen/ortools/glop/parameters.pb.[h|cc]
so no java artifacts but code used by 'make java', I checked that it is
cleaned by clean_cc target.
right sequence is in this case is
clean_third_party
clean_cc
clean_java
installation instructions should probably be updated to mention clean_cc
target.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1384?email_source=notifications&email_token=ACUPL3PQ7FKWA3PVXMG4MLLP5H4QPA5CNFSM4H4RKQ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY6ASMY#issuecomment-507250995,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3KPAWOPS262A5MXX7TP5H4QPANCNFSM4H4RKQ7Q
.

You are partially right. 'make java' calls internally 'make cc' and I didn't realized it. make 'make clean' target that cleans everything (useful when you move between commits) would be helpful.

'make clean' cleans everything.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le lun. 1 juil. 2019 à 15:50, gregy4<EMAIL_ADDRESS>a écrit :

You are partially right. 'make java' calls internally 'make cc' and I
didn't realized it. make 'make clean' target that cleans everything (useful
when you move between commits) would be helpful.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1384?email_source=notifications&email_token=ACUPL3M4IDCMMFUEEBQHWI3P5IDSVA5CNFSM4H4RKQ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY6F5VI#issuecomment-507272917,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3OAE7S5DVLDQ4LPP73P5IDSVANCNFSM4H4RKQ7Q
.

Great, I didn't notice that it is already present.


Tweaks to scr-top dist tarball

Given a "dist" tarball from scr-top, our current build instructions look like:
mkdir scr
cd scr
tar -xzf ../scr-top-v3.0rc1.tgz
make unpack
make build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
make -j install

For more conventional usage, it'd be helpful to change things so that one could instead do:
tar -xzf scr-top-v3.0rc1.tgz
cd scr-top-v3.0rc1
mkdir build install
cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
make -j install

Have the tarball create the scr-top-v3.0rc1 directory when it extracts.  Drop the internal source tarballs so a single tar command extracts all files to eliminate make unpack step.  Have user mkdir the build and install directories to replace the make build step.

question about the dist tarball: do you want the repos inside it to include the git files or not?

I ended up including a change for this issue with the PR you just merged, so we can close this now.
My goal for the dist tarball that we hand to users and the one I've attached to the SCR release page is that it's free of any git files -- it only has source files.  This is the case for make dist and make pack-lite, where dist still gives someone the most recent tagged version of each package and pack-lite gives the latest source code for each package.
The make pack still currently zips up all git files.


Manual Proxy Configuration + Default Configuration

I need to customize my proxy configuration because there is an upstream route for doing a standard form submission. The defualt proxy catches it because it the accept header has "text/html" in it. I was able to manually configure the proxy for that specific route and it is working as expected, but now the rest of the proxy has stopped working. What are the default settings I can use to merge into my overridden ones?
My current config looks like this
  "proxy": {
    "/annex": {
      "target": "http://localhost:5820",
      "ws": false
    }
  }

I see in WebpackDevServerUtils.js, there is a custom context function that checks for the "text/html" accept header. How can I duplicate this in package.json?

You should be able to create an additional entry targeting http://localhost:5820 for /.


Cell Type Descendants on Tissue Page

Based on our second round of external user feedback, users noticed that cell type descendants not in a tissue are able to be viewed on the tissue page.
User Story:
As a user, when I view a selected tissue page, I should not be able to view cell type descendants that are not present in the tissue.
Notes from (alec) Add a new property to tissue cell ontology tree state fixture indicating cell types that are able to be displayed. Cell types not in this list should have a different visual indicator.

@hthomas-czi need input here


HUE4.4 table data can't render

hi, We use hue4.4 to query,but the data can't render.please help me, thanks

Are you expanding many rows and columns?
But globally this one I would recommend to go to 4.6 or 4.7.1, some similar issues were fixed recently and it is pretty good now.

I am not expanding many rows and columns, just query the sql and the data can't render, but it happens occasionally.


Current pip release is broken

Hello  @gtfierro
Just wanted to give you a heads up that the current release (0.1.65) in pip is not working. I get an error telling me that I am missing the cffi library and when I install  it, it says that PyReasoner can't be imported.
Already tried both in linux and in windows

Ack, thought I fixed this! Sorry this is broken. I will take a look as soon as I can

Hi @Eugenio2192 can you try reasonable==0.2.0? I think I may have finally fixed this

Got a different problem now. In windows the package is being installed with no binaries (fails when callingimport reasonable telling you reasonable.reasonable does not exist. If you look at the installed packages it has an empty folder with an init file. In Linux pip tries to build from source and fails because of oxrocksdb-sys not being properly installed, i think the root problem might be in oxigraph but what do I know.
have you considered using abi3 instead of cffi? I think it works better in windows.

Can you be more specific about your linux setup? Are you on aarch64 by any chance? I was able to get it working fine on an x86_64 machine
I'm trying as much as possible to copy the pyoxigraph setup. Can you check if https://pypi.org/project/pyoxigraph/ installs ok for you?

Just wanted to update everyone -- I am still working on this! Busy with the end of the semester approaching but I'm slowly playing whack-a-mole with Github Actions to try and figure out how to get this to properly build again

@Eugenio2192 can you try pip install reasonable==0.2.2a3? I think I finally got it working

@Eugenio2192 can you try pip install reasonable==0.2.2a3? I think I finally got it working

Installation and importing the package objects seems to be working properly.


Meteor

The current repository is deprecated.

Thank you! I've updated the link to new repository location.


Invalid Uuid is still validated when using .AddType(new UuidType('D'))

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When HC server is configured with .AddType(new UuidType('D')), it seems to accept uuids that are in fact invalid.
Specifically, if you append something to a valid uuid, HC seems to simply ignore the excess and proceed as if everything is fine.
Steps to reproduce

Checkout https://github.com/hognevevle/HC-uuid-bug
dotnet run
Run curl:

curl 'http://localhost:5000/graphql/' \
  -H 'Referer: ' \
  -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36' \
  -H 'Content-Type: application/json' \
  --data-raw '{"operationName":"foo","query":"query foo {\n  foo(id: \"fbdef721-93c5-4267-8f92-ca27b60aa51f-foobar\")\n}\n","variables":{}}' \
  --compressed

Notice the appended -foobar at the end of the id variable, which makes the uuid invalid. Still, the server returns a valid response:
{"data":{"foo":"Hey fbdef721-93c5-4267-8f92-ca27b60aa51f"}}
So it basically seems to just strip away whatever is invalid.
Relevant log output
No response
Additional Context?
By commenting .AddType(new UuidType('D')) in Startup.cs, the uuid is validated as expected (does not accept the invalid uuid).
Product
Hot Chocolate
Version
11.3.7

public UuidType(char defaultFormat = '\0', bool enforceFormat = false)
by default we do not enforce the format on deserialization. you can pass enforceFormat = true along and it will start throwing.

@michaelstaib  Already tried that, but setting that to true doesn't make a difference.

However, even if you're not forcing the format on deserialization, I would still expect you should have to provide a valid Uuid (as long as it has a valid format)?

Please reopen :)

I can reproduce this issue.
It actually comes down to the Utf8Formatter from .NET
if (Utf8Parser.TryParse(valueSyntax.AsSpan(), out Guid g, out _, _format[0]))
{
    return g;
}

while this is a TryParse method it will just slice the data to the expected length.

The issue is now fixed and under test.

We will release it with the next rc build.

By the way, this indeed has nothing todo with enforce format. Enforce format will only enforce if something is deviating form the default format.

Awesome, thank you very much for confirming and fixing 🥳

https://github.com/ChilliCream/hotchocolate/releases/tag/11.3.8

we also created a patch release which should hit nuget in the next hour.


Appium Flutter driver not working with version 1.21

Error with Appium Flutter driver
Appium version - Appium v1.21.0
Flutter version Flutter 2.2.3
LOG from Appium server:

Description:
I try to test Flutter driver with Appium but when start test it show this error
TypeError: Cannot read property 'toLowerCase' of undefined
Not sure this is about Appium or Appium Flutter driver but when I test with other automation (UIAutomation etc) it work fine
Please help check about this error
Thank you

I guess this driver requires deviceName capabilities until 0.28.
Or I've improved some capabilities handler in a newer version. You could try out appium@beta.

After try appium@beta it working now
Thank you

Other question
I want to know that Why UiAutomation2 is open along with Appium Flutter driver ?

FlutterDriver depends on UIA2 driver to manage the app under test outside Dart VM world.
'FlutterDriver' handles only Dart VM (Flutter) communication over websocket connection ( https://www.headspin.io/blog/webinar/deep-dive-into-appium-for-flutter-app/ may help about this "websocket connection")


Add some versionUpToDate tests

Draft PR with failing tests mostly to elaborate on the naive version comparison issue at https://github.com/nao1215/gup/issues/160

I have created PR #162 to correct the issue addressed by this PR. I am closing this PR as it is no longer in use


Child class's methods can change parent return type

I created a child class that overrides its parent class's method, but doesn't specify the return type. I expected the compiler to know that the child return type had to be the same as the parent's. I also created an overridden method that changed the return type of the parent class, and did not get an error about that.

What's the outstanding issue here? Could someone update the title to clarify?

+1 on being able to continue to specify return types. The "catch errors early" is what is of interest here. I find it much easier to "lock down" the inference in key places - not all the time - to ensure getting an error in a reasonable place instead of a 10 mile long chain.
However, monkey patching is such a super thing, one of the good things Crystal's gotten from Ruby. So, sealing classes, or limiting the possibility of what you can do with super classes is unnecessary. Instead, if you want a strict type restriction on a method. Declare that type on the methods in overrides and/or subclasses too. I don't think that's an unreasonable demand. This gives the best of both worlds imo.

Reading some parts again, @asterite I would vote for either

explicit subclass check on return types, or
do the ducktype checking states in your mention to me at https://github.com/manastech/crystal/issues/160#issuecomment-48818326 only if that is consistent with other parts of the language. (ie: arguments type restrictions, casts, etc). Otherwise a compatible duck type return value will not work as an argument later.

Option 2 plays nicer with mocks. But implementing that now is too much effort, will probably slow the compiler. Is sound to start with option 1 and then migrate to 2 if, again, the effect of that is spread in the whole language.
Currently you can trust the type contract a base class states, in neither explicit subclass nor ducktype behavior.


[bug] toggle is broken

There is a function toggle in documentation https://tailwindest.vercel.app/3_learn/conditional-styling#implementation---toggle
But in my code it is not working as expected.
Version:
"tailwindest": "^1.1.1"

The documentation is wrong😅! That toggle API is version 2.0.0-alpha.0, which is in preparation, and for now you should use it like this.
const ThemeBtn = () => {
    const [isDarkMode, setIsDarkMode] = useState(false)

    return (
        <button
            className={toggle(isDarkMode, {
                base: {
                    display: "flex",
                    alignItems: "items-center",
                    justifyContent: "justify-center",
                    padding: "p-2",
                    "@lg": {
                        padding: "lg:p-3",
                    },
                    borderRadius: "rounded",
                    borderWidth: "border",
                },
                truthy: {
                    backgroundColor: "bg-white",
                    borderColor: "border-black",
                    color: "text-black",
                },
                falsy: {
                    backgroundColor: "bg-black",
                    borderColor: "border-white",
                    color: "text-white",
                },
            })}
        >
            {isDarkMode ? "light" : "dark"}
        </button>
    )
}

My mistake, I'll fix it quickly!🙂

Thank you, this works perfectly!

Document fixed!


FYI: unable to determine line number or type of error/warning for output: lockfile.rb

https://github.com/rubocop/rubocop/issues/12823 seems to cause an obscure error:
Unexpected output: unable to determine line number or type of error/warning for output:
/Users/bmulholland/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/rubocop-1.63.0/lib/rubocop/lockfile.rb:66:in `rescue in parser'
/Users/bmulholland/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/rubocop-1.63.0/lib/rubocop/lockfile.rb:60:in `parser'

Looks like they intend to fix that, but this error only happened on pre-commit hooks in overcommit, so posting here as an FYI.

As a workaround I made rubocop run using bundle exec with the config at https://github.com/sds/overcommit?tab=readme-ov-file#configuration

@ms-ati yes, see the workaround I posted


auto deploy OVA on nimbus, run CI against it.

get the latest OVA build from buildweb.
2, get an VC/Esxi with nimbus.
auto deploy OVA with ovftool.
4, invoke the existing tes script to test OVA.

defer to sprint 20.

Finish the auto deployment part, and still working on the CI phase.

Almost done the scripts implementation, PR is under review.

Close it as all things done.


added max-width to textarea tag

Are all the issues addressed?

Yes

There was no further work and comments were not addressed from very long, that's why closing this PR


position drifting happens when set v=0 in whole_body_controller_example.py

In this function,
_generate_example_linear_angular_speed(t)

I set the linear and angular  velocity both zero. When  simulated robot A1 marks time for tens of seconds, it drifts from the origin position  gradually. I want to  know the reason of this phenomenon, is it attributed to unprecise dynamic modeling? How do we fix it?

The mpc model (inertia, center of mass location) is not very accurate, probably causing some drift. Also, convex mpc ignores feet mass, but there is some mass. There maybe other reasons for drift (feet collision, bit of sliding perhaps).
One workaround (hack) could be to measure drift compensate through the velocity.


Add support for tag constraints when adding a package repo with kctrl

Describe the problem/challenge you have
I am trying to add a package repo using kctrl package repository add and I would like to make use of the .spec.fetch.imgpkgBundle.tagSelection.semver.constraints field available on the PackageRepository CRD.
Describe the solution you'd like
I would like to be able to do something like kctrl package repository add my-repo --url my-repo-without-passing-in-a-tag --semver-tag-constraints "1.8.x" which would generate something like this:
apiVersion: packaging.carvel.dev/v1alpha1
kind: PackageRepository
metadata:
  name: my-repo
spec:
  fetch:
    imgpkgBundle:
      image: my-repo-without-passing-in-a-tag
      tagSelection:
        semver:
          constraints: "1.8.x"

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

We need to also be careful that we are not accepting the tag and semver at the same time.


Trigger loading programmatically

Instead of having for the user to hover to show the loading.gif and then the actual clickable link, have a way to invoke that programatically. Maybe on document load, dom ready, etc.
In real world sites, hovering on icons and waiting for it to come will turn off users

README updated.


docs: add one more website to the showcase

Seeking to add my website to the showcase. It's built with qwik + Cloudflare Pages integration. :)
What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests

Description
Use cases and why
No reason. Qwik is pretty cool so far.
Checklist:

[ ] My code follows the [developer guidelines of this project] (n/a)(https://github.com/BuilderIO/qwik/blob/main/CONTRIBUTING.md)
[ ] I have performed a self-review of my own code (n/a)
[x] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality (n/a)

Amazing! thanks a lot for contributing. Disclaimer, they site will not be added automatically, since i need to manually execute a script to collect the screenshot / scores.
But it will show up soon!

Cool! Cheers.
On Thu, Nov 24, 2022 at 3:13 AM Manu MA @.***> wrote:

Amazing! thanks a lot for contributing. Disclaimer, they site will not be
added automatically, since i need to manually execute a script to collect
the screenshot / scores.
But it will show up soon!
—
Reply to this email directly, view it on GitHub
https://github.com/BuilderIO/qwik/pull/2268#issuecomment-1326093720, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABK3NAES3X6FL6WRV6Y3YRDWJ4PSRANCNFSM6AAAAAASJTL4T4
.
You are receiving this because you authored the thread.Message ID:
@.***>


Genesis addon/runtime support

Description would be super useful in what this is meant to accomplish...

Sorry was placeholder so I don't forget to have discussion about it.
https://share.polymail.io/v1/z/b/NTgzNzM5ODFlMWMw/tufxMGGxOXRYQQpoDf2Q7ymquLB-7pfdlWgCKBzbR61OukCv3mvO8plKOpItWPKFuBIfXR-NmS3WRw92laud3HlDlf89JswnS72sPhI-_bPumsntA4EDKikFuiJIElQWG7L9tg5Wbwvj9v8WcAWuuq9J_ngOtlr02oyhqD94ohf-qLBEb1eVGkswI6Jz7HUIi4ckrZCsASdyLHLj2Y092OAsMArRtVHWyg6VUC3Kc9yAqvpic3abz9CHU9SUBJ4xjHb-NgTEHPXq-ScB1ETEmRTAc2uwATfgRlV8CXMf2bzobWg1RXtAT-WYwoCbEg==
 for reference
On Thu, Nov 24, 2016 at 1:04 PM "Dennis J. Bell"
<
mailto:

wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }
Description would be super useful in what this is meant to accomplish...
—
You are receiving this because you authored the thread.
Reply to this email directly,
https://github.com/starkandwayne/genesis/issues/102#issuecomment-262826632
, or
https://github.com/notifications/unsubscribe-auth/AA4rDPoQThJCkcIN3bf-l3JVNaSyqXWHks5rBdGZgaJpZM4K71SE
.

Seems like this should be managed similarly to cloud config?

On Nov 24, 2016, at 2:05 PM, Long Nguyen<EMAIL_ADDRESS>wrote:
Sorry was placeholder so I don't forget to have discussion about it.
https://share.polymail.io/v1/z/b/NTgzNzM5ODFlMWMw/tufxMGGxOXRYQQpoDf2Q7ymquLB-7pfdlWgCKBzbR61OukCv3mvO8plKOpItWPKFuBIfXR-NmS3WRw92laud3HlDlf89JswnS72sPhI-_bPumsntA4EDKikFuiJIElQWG7L9tg5Wbwvj9v8WcAWuuq9J_ngOtlr02oyhqD94ohf-qLBEb1eVGkswI6Jz7HUIi4ckrZCsASdyLHLj2Y092OAsMArRtVHWyg6VUC3Kc9yAqvpic3abz9CHU9SUBJ4xjHb-NgTEHPXq-ScB1ETEmRTAc2uwATfgRlV8CXMf2bzobWg1RXtAT-WYwoCbEg==
for reference
On Thu, Nov 24, 2016 at 1:04 PM "Dennis J. Bell"
<
mailto:

wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }
Description would be super useful in what this is meant to accomplish...
—
You are receiving this because you authored the thread.
Reply to this email directly,
https://github.com/starkandwayne/genesis/issues/102#issuecomment-262826632
, or
https://github.com/notifications/unsubscribe-auth/AA4rDPoQThJCkcIN3bf-l3JVNaSyqXWHks5rBdGZgaJpZM4K71SE
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/starkandwayne/genesis/issues/102#issuecomment-262833118, or mute the thread https://github.com/notifications/unsubscribe-auth/AG2SUpXvRKZG_0eVL1VJxYEhaa16AAHoks5rBd_1gaJpZM4K71SE.

Closing - obviated by genesis-v2

(genesis-v2 makes use of cloud-config + runtime-config)


bug: Health option on filter menu must be removed.

Bug Definition
The health option on the filter menu must be removed since it has no matching filter on the backend.
-- Please add discord contact information
** discord username: nejatcanunlu | Coniun#5462 **
## Bug environment
rc.afetharita.com
afetharita.com
Describe how you are producing the bug step by step

Go to any env
Click Filter => All Reasons
Health option is displayed while it shouldn't exist.

Expected Behaviour
The option to not be there.
Screen shots
If possible, add screenshots to describe your bug.
Desktop Information

Operating System: [for example iOS]
Browser [for example, safari]
Version [for example 22]

Mobile Phone Information

Devıce: All
Operating System: All
Version: All
Browser Version: All

Additional Context
Add any other context about the bug here

Closing issue, since it's already handled elsewhere.


brew bundle dump needs updating for new mas list format

brew config output
HOMEBREW_VERSION: 3.1.3-107-g1157a97
ORIGIN: https://github.com/Homebrew/brew
HEAD: 1157a97d8be039db16e1c0bff5a48d372696c5a9
Last commit: 10 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: d9a1a62c7400b4cc3610b9ee65bba71e7dd7e880
Core tap last commit: 28 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: kak
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 12.0 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.3-x86_64
CLT: N/A
Xcode: 12.5

brew doctor output
Your system is ready to brew.

[X] I ran brew update and am still able to reproduce my issue.
[X] I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?
As of https://github.com/mas-cli/mas/pull/339, mas list gives a formatted list:
emily@yuyuko ~> mas list
1440147259  AdGuard for Safari       (1.9.13)
497799835   Xcode                    (12.5)
425424353   The Unarchiver           (4.3.1)

This confuses brew, which is expecting a format without all the whitespace padding and includes it in the brew bundle dump output. This will affect people who use brew's mas integration once a new mas release is cut, which will likely be soon as it fixes the unnecessary upgrade problems many people were having (indeed, I discovered this after building and installing the latest source from HEAD to fix this issue on my system).
What happened (include all command output)?
emily@yuyuko ~> brew bundle dump --file=- | rg '^mas'
mas "1Password 7             ", id:<PHONE_NUMBER>
mas "AdGuard for Safari      ", id:<PHONE_NUMBER>
mas "Affinity Photo          ", id: 824183456
…

What did you expect to happen?
mas "1Password 7", id:<PHONE_NUMBER>
mas "AdGuard for Safari", id:<PHONE_NUMBER>
mas "Affinity Photo", id: 824183456
…

Step-by-step reproduction instructions (by running brew commands)
# Install mas from git, e.g. with `brew install --HEAD` or cloning the repository and `script/install $prefix`
$ brew bundle dump

Moving this to https://github.com/Homebrew/homebrew-bundle/issues/952.


Traffic Portal: No Use in Table filled

When you navigate to the "Types" in Traffic Portal and create a type, there is no "Use in Table" filled. Would be nice to have a list to pick from.

this is because of the way types were implemented. you can create a type to use for any table. not the best design tbh.

actually it is now

it's set to server because in theory that's the only type of type you can create on the fly with any effect. I.e. You could create an EDGE_FOO type and it would work similar to an EDGE server.

actually it is now

it's set to server because in theory that's the only type of type you can create on the fly with any effect. I.e. You could create an EDGE_FOO type and it would work similar to an EDGE server.


Using -- on a class will throw an error

When trying to use classes with modifiers, like BEM, it throws the error:
SyntaxError: .../.../page.js: Unexpected token, expected } (12:35) at page.js:12:35
Example:
font.styl
.font
  color: red

  &__title
    color: green

  &--blue
    color: blue

page.js
// This works
<Text style={ styles.font }>Text</Text>

// This works
<Text style={ styles.font__title }>Text</Text>

// This won't work
<Text style={ styles.font--blue }>Text</Text>

I guess I fond the solution, it's required to call the class as an array:
<Text style={ styles['font--blue'] }>Text</Text>

If you'd like, I've opened a fork to add this information on README
https://github.com/wmerussi/react-native-stylus-transformer

@wmerussi Thanks!
styles.font--blue is something that Javascript does not support, and that's why you need the bracket syntax.
We can to add you example to the README, please make a PR and I will merge it 👍

Sweet, thanks for it, I'm quite new to JS and still learning.
Here is the PR: https://github.com/kristerkari/react-native-stylus-transformer/pull/5
If you'd like any changes, please, let me know :slightly_smiling_face:

It's ok, I want my projects to be easy to use even for beginners of Javascript, so it makes sense to make the documentation as clear as possible 👍

I'm closing this issue now as it is documented.
I'll add the same example to my other transformer repos (Sass, Less, PostCSS, CSS).


Near Validator node and RPC node

in this pull request i'm going to show you how to deploy validator node and rpc node easily on akash
Akash Address:
akash1xw6qvxd4lsmm8kwz8lv0gfsrzemlwnz9zcjly3

This pull request has been mentioned on Akash Community. There might be relevant details there:
https://forum.akash.network/t/akash-near-protocol-challenge/3416/20


[Incompatibility] Doctrine/dbal conflict

Hi @stefandoorn
I have a sylius 1.10 on php8, and sf5.4.
I initially added this plugin targetting dev-master#6b039dbb15e9c1c8c177e9af86609c5eb3815b22 as it's allow php8.
I can't update to latest release v2.0.0-alpha.6, because there is a conflict with doctrine/dbal >2.13. Some symfony packages (like cache) have conflicts with doctrine/dbal < 2.13.1 for 5.4 version
I was unable to find any reason for this conflict. Do you have any clue ?

Ah.. I think we can remove the conflict here, it's better that Sylius handles that, this plugin doesn't mind too much about it. I will take it out now and release v2.0.0-alpha.7.


Install private packages broken in 2023.8.19 version

Issue description
I am using a private repository for my python packages in AWS (service AWS CodeArtifact). I created my Pipfile according to the documentation. It works fine from versions 2022.7.4 to 2023.7.23, but from version 2023.8.19 and above it fails (it does not find my private packages).
I checked the release notes of version 2023.8.19, but I don't see any change or incompatibility.
Expected result
To install my private package successfully using pipenv install and to create the Pipfile.lock file using pipenv lock.
Actual result
This is the traceback of the error:
ERROR: No matching distribution found for aws_mypackage==0.1.0

Traceback (most recent call last):
  File "/usr/local/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pipenv/cli/options.py", line 58, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 84, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pipenv/cli/command.py", line 224, in install
    categories=state.installstate.categories,
  File "/usr/local/lib/python3.7/site-packages/pipenv/routines/install.py", line 184, in do_install
    categories=categories,
  File "/usr/local/lib/python3.7/site-packages/pipenv/routines/install.py", line 685, in do_init
    categories=categories,
  File "/usr/local/lib/python3.7/site-packages/pipenv/routines/lock.py", line 76, in do_lock
    old_lock_data=old_lock_data,
  File "/usr/local/lib/python3.7/site-packages/pipenv/utils/resolver.py", line 782, in venv_resolve_deps
    c = resolve(cmd, st, project=project)
  File "/usr/local/lib/python3.7/site-packages/pipenv/utils/resolver.py", line 651, in resolve
    raise RuntimeError("Failed to lock Pipfile.lock!")
RuntimeError: Failed to lock Pipfile.lock!

Steps to replicate
I am using the official image from dockerhub of python3.7, python3.8, python3.9, python3.10 and python3.11. The error is the same in all versions.
For example, to run the python3.7 container:
docker run -it --rm -e AWS_PIP_INDEX=$AWS_PIP_INDEX -v $(pwd):/  python:3.7 bash
Then install pipenv: python3 -m pip install pipenv==2023.8.19 and run pipenv lock
My Pipfile is:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "$AWS_PIP_INDEX"
verify_ssl = true
name = "aws"

[packages]
aws_mypackage = {version="0.1.0", index="aws"}

The command that returns the error is, for example AWS_PIP_INDEX=... pipenv lock, where you need to set the correct string for the env variable. I also tried to write the string directly in the Pipfile instead of the environment variable, but the error is the same.

I run the $ pipenv --support command using python3.7 and pipenv==2023.8.19:
$ pipenv --support
Pipenv version: '2023.8.19'
Pipenv location: '/usr/local/lib/python3.7/site-packages/pipenv'
Python location: '/usr/local/bin/python3'
OS Name: 'posix'
User pip version: '23.2.1'
user Python installations found:
PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.7.17',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.10.76-linuxkit',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP PREEMPT Mon Nov 8 11:22:26 UTC 2021',
 'python_full_version': '3.7.17',
 'python_version': '3.7',
 'sys_platform': 'linux'}

System environment variables:

_
OLDPWD
PATH
PYTHON_GET_PIP_URL
PYTHON_GET_PIP_SHA256
PYTHON_PIP_VERSION
SHLVL
TERM
GPG_KEY
LANG
HOME
PYTHON_SETUPTOOLS_VERSION
PWD
PYTHON_VERSION
HOSTNAME
AWS_PIP_INDEX
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG: C.UTF-8
PWD: /app

Contents of Pipfile ('/app/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[[source]]
url = "$AWS_PIP_INDEX"
verify_ssl = true
name = "aws"

[packages]
aws_mypackage = {version="0.1.0", index="aws"}

[dev-packages]

[requires]
python_version = "3.7"

2023.8.19 is not the latest version though.

Hi @matteius , thank you for your time!
I tried also with the latest version too (2023.10.3), but the problem is the same. I give you the first version where it crashes (2023.8.19), so you would have more information about where the problem is.

Unfortunately I don't have a  AWS CodeArtifact to test against, so its rather limiting.

Just adding I can confirm this issue on my systems too which have a pretty similar configuration.  If it would help to have access to a private PyPi server to help test this I am happy to provision one for debugging and validation purposes.

@ring-pete that would be great -- I don't have an AWS account and would rather not incur the expense of one (I run my projects in Digital Ocean).  I did create a GCP account to diagnose a similar issue but I got away with free credits and that issue was resolved.  Would be great to get AWS squared away since it sounds like there may be an issue there.

Hey there, I should have been more clear - I can reproduce this with our private PyPi repository (in this case its a Sonatype Nexus server).  There are no AWS specific bits used in our case.  I've created a repository on our server and will privately send you the credentials and an example of how we use it.

FWIW I am able to download files from our private nexus repo with the latest pipenv version on python 3.9:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[[source]]
name = "nexus"
url = "$NEXUS_URL"
verify_ssl = true

[packages]
my_package = {version=">=0.8.0", index="nexus"}

[requires]
python_version = "3.9"

And ran with NEXUS_URL=... pipenv lock
HOWEVER...
If I change the versions to be the same as in the OP, I get a failure
(ie. my_package = {version="0.8.0", index="nexus"} instead of my_package = {version=">=0.8.0", index="nexus"}
The error is a little different, but maybe that's just because of the version difference...
So maybe this is just an issue with needing == or similar?

@monkeyman192 yeah I would expect a specifier is required, so either ">=0.8.0 or "==0.8.0 but not 0.8.0

I am experiencing the same issue. If I revert back to 2023.7.23 everything works fine, if I update to 2023.8.19 or newer it fails. I can confirm that adding a specifier resolves the issue. This is an acceptable workaround, but this should still likely be considered a bug since just specifying a version number, without specifier, has always worked in the past and works with standard pip.

I tried again using version 2023.12.1 of pipenv and it works with AWS CodeArtifact. Thank you very much for your effort evolving and improving this awesome python package! :-)


[Bug]: Endpoint not found on huggingface space

What happened?
Throws an InvalidArgumentException "endpoint not found" on the https://ysharma-explore-llamav2-with-tgi.hf.space space. What does not found mean? Why does it look like the package "loads" endpoints? What is it loading even?
Thanks for your help
How to reproduce the bug
$client = new Client('https://ysharma-explore-llamav2-with-tgi.hf.space/');
$result = $client->predict(['Hey, what is chatgpt?'], apiName: '/chat');
Package Version
0.0.1
PHP Version
8.2.0
Which operating systems does with happen with?
Linux
Notes
No response

What happened?
Throws an InvalidArgumentException "endpoint not found" on the https://ysharma-explore-llamav2-with-tgi.hf.space space. What does not found mean? Why does it look like the package "loads" endpoints? What is it loading even?

The library is written starting from the Hugging Face python and js one, so it replicates their behaviour. When a new client is instantiated, is going to pull the space configuration with all the endpoints, required parameters and so on.
The error says that for some reason, it didnt find a matching apiName in the endpoint configuraton.
I'll take a look soon

The issue should be now solved, please check if its working on your side

Hi, sorry to come back to you so late - it is indeed fixed.
Nevertheless, the $result->getOutputs() yields the empty array. My guess is that the reply I get from the huggingface space is a stream coming from an LLM and this is not yet well supported in your package...
I am not sure if I should open a new issue.

Yes please, open a separate issue on how reproduce it.


Provide XSD for TrustFrameworkPolicy

Where can I find the XSD for the TrustFrameworkPolicy XML?
I found one in some Azure Samples github repository (https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack), but it obviously does not fully match the description in the Azure Documentation.
Just one example out of many: The XSD does not have an "Enabled" attribute on the "Localization" element, whereas the documentation lists it.

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

ID: 578ef1cc-087a-8f03-ec33-5c451e778d84
Version Independent ID: 42b674d2-5a04-4fac-d913-d8177e19488a
Content: TrustFrameworkPolicy - Azure Active Directory B2C
Content Source: articles/active-directory-b2c/trustframeworkpolicy.md
Service: active-directory
Sub-service: b2c
GitHub Login: @msmimart
Microsoft Alias: mimart

@jhyot Thanks for your feedback! We will investigate and update as appropriate.

@jhyot You are looking at the right GitHub repository.  I have created an issue against the StarterPack GitHub repo over here.


tsa trust_remote_code=True

trust_remote_code=True seems to be needed now,  for the config = AutoConfig.from_pretrained.
Hard-coding this seems not to be too dangerous.

OK. Maybe I'll change the default model in stead then, so that the script runs with default settings.

May be it makes sense for now to simply put if/else statements checking whether the model has ltg/norbert3 in its name, and if yes, then turn on trust_remote_code=True?


Remove the outline from the player button

Hello,
This is a small contribution, I thought the outline on the player button is disturbing the beautiful design.

@wesbos Yep, that is even butter, i've changed the outline colour to black = #1d1d1d.

Can you show a screenshot? I'm worried black on black won't be accessible either - something like yellow is probably better :)
Also a re-base on master would be great so we don't have all these commits coming along :D

The black out line looks like this :

The yellow one like this:

Hi Wes, in case here is the link for my commit, Please tell me if the $yellow work for you. :)
commit


feat: Share on Farcaster / Warpcast

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[x] Feature

Needs QA check

@kodadot/qa-guild please review

Context

[x] Closes #9679

Did your issue had any of the "$" label on it?

[x] My DOT address: Payout

Screenshot 📸

[x] My fix has changed UI

Copilot Summary
copilot:summary
copilot:poem

looking at the screenshot you've posted
X icon looks not aligned vertically

X icon looks not aligned vertically

close, Farcaster is down like 2-3px along others

Good catch! I have updated the icon of Farcaster for a better fit.

Minor

Move to svg Farcaster file in public
I thought so too, but moving to a separate svg file will cause the currentColor to be invalid.

Thanks!
pay 30 usd

😍 Perfect, I’ve sent the payout
💵 $30 @ 10.65 USD/DOT ~ 2.817 $DOT
🧗 16SjUbGKSdjCdWTy3NNT3JxbRVGGqD4mwkHpc6BD9U2Rp29Z
🔗 0x393350b8038c9c92325e7c031bdc337a9747ee374e34a3032b10849f8bc5b8e9
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

Let's add to the success modal share which # you've minted out of total supply, i.e. coinbase inspiration


Feature Request: Custom private network support

I deployed the openvpn on one host and its working as expected, later I installed openvon on another host and that is also working fine but the problem is I can nit use both openvpns simultaneously and seems like as they are using same private network settings which is conflicting with other setup.
Is it possible the support custom private network during the setup so we can deploy multiple openvpn with unique private network?

@azfarhashmi Hello! Thank you for your suggestion. Currently, there is no plan to support custom private networks, but you are welcome to customize the script to your needs, for example, edit it to change the private network before setup.


Improve strings encoding speed and add benchmarks

Given the fact that the encodeSize was calculated already when encoding, we can leverage the size and safely reserve the remaining capacity for writing to avoid resizing.
A set of benchmarks were taken to show the difference. For the long text, the change halves the string encoding time from 571.9 ns to 216.1 ns. The time is almost halves for the short text as well.
The improvement is because of avoiding the unnecessary resizing and data copy.
[java] Benchmark                                                  Mode  Cnt    Score    Error  Units
[java] Utf8StringEncodeBench.writeLongText                        avgt    6  571.949 ± 19.791  ns/op
[java] Utf8StringEncodeBench.writeLongTextWithExactSize           avgt    6  459.932 ± 27.790  ns/op
[java] Utf8StringEncodeBench.writeLongTextWithExactSizeSkipCalc   avgt    6  216.085 ±  3.480  ns/op
[java] Utf8StringEncodeBench.writeShortText                       avgt    6   62.775 ±  6.159  ns/op
[java] Utf8StringEncodeBench.writeShortTextWithExactSize          avgt    6   44.071 ±  5.645  ns/op
[java] Utf8StringEncodeBench.writeShortTextWithExactSizeSkipCalc  avgt    6   36.358 ±  5.135  ns/op

writeLongText: the original implementation that calls ByteBufUtils.writeUtf8. It over-estimates the size of string that causes resizing the buffer.
writeLongTextWithExactSize: calls TypeSizes.encodeUTF8Length to reserve the exact size of bytes to write.
writeLongTextWithExactSizeSkipCalc: optimize by removing calculating the UTF8 length. Because we calculated the encodeSize before encode for messages. Therefore, the size of the final bytes is known, we can leverage this information to just reserve using the remaining capacity.

Based on Aleksey's comment, a new write string method only for ASCII was added.
The latest benchmark shows similar performance between writeLongTextAsASCII and writeLongTextWithExactSizeSkipCalc
[java] Benchmark                                               Mode  Cnt    Score    Error  Units
[java] StringsEncodeBench.writeLongText                        avgt    6  570.920 ± 21.376  ns/op
[java] StringsEncodeBench.writeLongTextAsASCII                 avgt    6  291.466 ±  9.508  ns/op
[java] StringsEncodeBench.writeLongTextWithExactSize           avgt    6  467.222 ± 25.140  ns/op
[java] StringsEncodeBench.writeLongTextWithExactSizeSkipCalc   avgt    6  285.320 ± 10.883  ns/op
[java] StringsEncodeBench.writeShortText                       avgt    6   62.076 ±  2.107  ns/op
[java] StringsEncodeBench.writeShortTextAsASCII                avgt    6   32.121 ±  0.403  ns/op
[java] StringsEncodeBench.writeShortTextWithExactSize          avgt    6   41.929 ±  1.783  ns/op
[java] StringsEncodeBench.writeShortTextWithExactSizeSkipCalc  avgt    6   34.638 ±  0.455  ns/op


Variable viewer: Button in notebook is disabled

Testing #10170
Not sure why this is disabled because I can open the viewer fine in the panel:

Closed in favor of: https://github.com/microsoft/vscode-jupyter/issues/10208


Add a snapcraft build badge

Congrats on the snap, and thanks to @letozaf. This branch adds a badge for the current build status.

Thank you so much!


Trying to deploy to AWS Lambda - boto3 Module not found

Trying to deploy on AWS Lambda so I switched from init to def handler and started using SlackRequestHandler. Getting this Module not found error now.
Reproducible in:
pip freeze | grep slack
python --version
sw_vers && uname -v # or `ver`

The slack_bolt version
slack-bolt==1.16.1
slack-sdk==3.19.5
Python runtime version
Python 3.10.9
OS info
ProductName:    macOS
ProductVersion: 12.5
BuildVersion:   21G72
Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000

Hi @asontha, the modules under slack_bolt.adapter.aws_lambda indeed depends on boto3, which is the official AWS SDK for Python apps. Also, since boto3 is an optional module for this Slack SDK, you need to install it when you run the code in non-AWS environments such as your local machine (when you run an app on AWS Lambda, boto3 is automatically installed).
I hope this helps. Let us know if you have further questions on this.

Got it! Let's close this one for now.


set a bit darker and thicker trail stroke width

The darker color should use the shade verison of the colors, as defined here

The trails lines are too thin, they almost dissapear.
Use two pixel width,
Make it easy to set in state (as a hoookable) so the default is actually the default Uni-stroke-width
Later we start enable strokewidth by indicator, not now.

done setting a thicker stroke, setting it darker would require rethinking of color palletes. now we have one color that a palette can return, not an array of colors


Add python test of the minitwit application

which does not depend on flask.
Solves issue #12

I have tried testing it on branch "feature/#14-serve-register", but it seems like there is a problem with setting a cookie and redirecting. The python client does not seem to save the cookie and send it with it to the redirected path.
When I try to do the same in the browser, there is no problem.

Not ready to be merged


possible error? on conda install

on conda 4.6.2, python 3.6.9, OS X 10.13.6
Successfully built keras-resnet keras-retinanet psutil wrapt termcolor gast absl-py
ERROR: keras-retinanet 0.5.1 has requirement keras-resnet==0.1.0, but you'll have keras-resnet 0.2.0 which is incompatible.

installing 4.7.12 works to me (macOS 10.15.1)

Trying to determine if this is a conda version issue. Works on
(DeepForest_dask) MacBook-Pro:DeepForest ben$ conda --version
conda 4.7.12

will install 4.6.2 to check.

adding to FAQ for the moment.

Considering this closed until I can reproduce on travis or locally. Added better error handling to help users, but I'm going to guess this will reappear, hopefully as we come to a stable install I can find which dep is the key.


Scan of module leads to out of memory

Describe the bug
When scanning terraform code in docker with the terraform-aws security-group module the container consumes more than 10GB of memory.
To Reproduce
Steps to reproduce the behavior:

Save the example code from the official repo

module "vote_service_sg" {
  source = "terraform-aws-modules/security-group/aws"

  name        = "user-service"
  description = "Security group for user-service with custom ports open within VPC, and PostgreSQL publicly open"
  vpc_id      = "vpc-12345678"

  ingress_cidr_blocks      = ["<IP_ADDRESS>/16"]
  ingress_rules            = ["https-443-tcp"]
  ingress_with_cidr_blocks = [
    {
      from_port   = 8080
      to_port     = 8090
      protocol    = "tcp"
      description = "User-service ports"
      cidr_blocks = "<IP_ADDRESS>/16"
    },
    {
      rule        = "postgresql-tcp"
      cidr_blocks = "<IP_ADDRESS>/0"
    },
  ]
}

Run the hashicorp/terraform image: docker run --rm -it -v (pwd):/src --entrypoint /bin/sh hashicorp/terraform
Install tfsec

apk add --update-cache curl git
curl -LOs "https://github.com/tfsec/tfsec/releases/download/v0.37.0/tfsec-
linux-amd64" && chmod +x tfsec-linux-amd64 && mv tfsec-linux-amd64 /usr/local/bin/tfsec

Run the scan

cd /src
terraform init
tfsec . --no-color

Watch the memory consumption on the host machine

Expected behavior
I expect the memory consumption to be as low as running outside of the docker container.

@Jeinhaus  - I'm optimistic this is fixed now in the latest release. could you give it a go and report back?

I'm also hitting some kind of infinite loop with v0.37.3 that continually runs until it consumes all my RAM. I see that it does a "Loaded module" with a path to a module and then says "Requested at" with another path under that module and then "Starting iteration 1 of context evaluation..."  I'm seeing this with modules of mine that use the kubectl-wrapper submodule, which has a source path of "../.." in it. However, I'm not sure if this issue with with tfsec or with the google module. https://github.com/terraform-google-modules/terraform-google-gcloud/blob/v2.0.3/modules/kubectl-wrapper/main.tf#L22
Steps to reproduce:
git clone https://github.com/terraform-google-modules/terraform-google-kubernetes-engine cd terraform-google-kubernetes-engine terraform init -backend=false tfsec --verbose .

@bizrad - I can reproduce using by download v2.0.3 as a zip and running tfsec --verbose examples
can you confirm this slight variation on your instructions is still valid?

Yeah, if I check the examples from the terraform-google-gcloud repo like this I get the same error as my real code
wget https://github.com/terraform-google-modules/terraform-google-gcloud/archive/v2.0.3.zip
unzip v2.0.3.zip
cd terraform-google-gcloud-2.0.3/
terraform init -backend=false
tfsec --verbose examples

Here is the log loop from my actual terraform code that uses these modules:
[DEBUG][2021-02-08 20:07:41.889135 +0100 CET m=+11.203603704] Loaded module '/tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap' (requested at /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/modules/kubectl-wrapper/main.tf:21-36)
[DEBUG][2021-02-08 20:07:41.889178 +0100 CET m=+11.203646870] Starting iteration 1 of context evaluation...
[DEBUG][2021-02-08 20:07:41.891915 +0100 CET m=+11.206383513] Added 18 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/main.tf...
[DEBUG][2021-02-08 20:07:41.891926 +0100 CET m=+11.206394699] Added 5 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/outputs.tf...
[DEBUG][2021-02-08 20:07:41.891933 +0100 CET m=+11.206401658] Added 17 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/variables.tf...
[DEBUG][2021-02-08 20:07:41.891938 +0100 CET m=+11.206405922] Added 1 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/versions.tf...
[DEBUG][2021-02-08 20:07:41.892678 +0100 CET m=+11.207145947] Added 2 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/modules/kubectl-wrapper/main.tf...
[DEBUG][2021-02-08 20:07:41.892686 +0100 CET m=+11.207154331] Added 4 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/modules/kubectl-wrapper/outputs.tf...
[DEBUG][2021-02-08 20:07:41.892691 +0100 CET m=+11.207159647] Added 15 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/modules/kubectl-wrapper/variables.tf...
[DEBUG][2021-02-08 20:07:41.892696 +0100 CET m=+11.207163941] Added 1 blocks from /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/modules/kubectl-wrapper/versions.tf...
[DEBUG][2021-02-08 20:07:41.892744 +0100 CET m=+11.207211930] Loaded module '/tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap' (requested at /tmp/k8s/.terraform/modules/amg.gke.gke.gcloud_delete_default_kube_dns_configmap/modules/kubectl-wrapper/main.tf:21-36)

cool, looking now - its a beast

I ran a build from your branch and it all seems to be running properly when I run against the terraform-google-gcloud project or the examples directory in it. I do see a few warnings about modules that were not loaded. But I'm guessing this is expected. However, it's not clear why those modules didn't load or what to do about it. Is this because of an unsupported module path using relative syntax? Or were there other issues, like invalid syntax in the file? It would be nice if the warning was more informative as to why it did not load.
WARNING: Failed to load module: didn't load module terraform-google-modules/project-factory/google//modules/project_services
WARNING: Failed to load module: didn't load module terraform-google-modules/network/google
WARNING: Failed to load module: didn't load module terraform-google-modules/kubernetes-engine/google

When running against my own project it also appears to run successfully without any warnings. When I run against my module that my project is using it fails to load a few things from terraform-google-modules. I ran a terraform init before each tfsec run. But, I don't see any mention of the kubectl-wrapper module that was looping, so I'm not clear if this is being skipped or if it's just not part of my dependency tree. I can look at this a bit more tomorrow though and try to trace it down more.

I don't the the branch is the full solution, but think maybe we're circling closer.
Thanks for helping out

@bizrad  and @Jeinhaus  - v0.38.0 should resolve the memory issues experienced with v0.37.x

@owenrumney Awesome! v0.38.0 fixed it for me.

Works for me as well. Does seem to loop for a while, but maybe this is expected. Either way, thanks for the fix! I found two security items to fix now!
  disk i/o             3.293114759s
  parsing HCL          20.146451ms
  evaluating values    19.654595896s
  running checks       4.856487ms
  files loaded         72

Great - thanks guys. Will close
@bizrad  - the looping is highly likely to because it's no not loading everything from nested modules, just the modules that your modules need and so on. As a result it's going to keep dipping into ./terraform/modules/xxxxxx/modules/.... etc

Ahh, good to know. Makes sense. It's still a reasonable amount of time for a security scan. Thanks again!


FIXUP #2424: local_provisioner directory should be created only if enabled

Target:

Fix #2424, so scope the use of {{ local_volume_provisioner_base_dir }} in roles/kubernetes-apps/external_provisioner/local_volume_provisioner only

Testing Procedures
Create Ram Disks to Simulate Real Local Volumes
See https://github.com/kubernetes-incubator/external-storage/tree/master/local-volume#option-4-local-test-cluster
mkdir -p /mnt/disks
for vol in vol1 vol2 vol3; do
    mkdir -p /mnt/disks/$vol
    mount -t tmpfs $vol /mnt/disks/$vol
done

Deploy with local_volume_provisioner_enabled
Edit inventory/mycluster/group_vars/k8s-cluster.yml with something similar as below and deploy Kubespray:
# Local volume provisioner deployment
local_volume_provisioner_enabled: false
# local_volume_provisioner_namespace: "{{ system_namespace }}"
# local_volume_provisioner_base_dir: /mnt/disks
# local_volume_provisioner_mount_dir: /mnt/disks
# local_volume_provisioner_storage_class: local-storage

Check Result
e.g. kubectl -n kube-system logs -f local-volume-provisioner-l26hw
I0307 01:08:56.139270       1 common.go:294] Creating client using in-cluster config
I0307 01:08:56.159618       1 main.go:56] Starting controller
I0307 01:08:56.159638       1 controller.go:42] Initializing volume cache
I0307 01:08:56.171611       1 populator.go:85] Starting Informer controller
I0307 01:08:56.171636       1 populator.go:89] Waiting for Informer initial sync
I0307 01:08:57.171913       1 controller.go:73] Controller started
I0307 01:08:57.172311       1 discovery.go:207] Found new volume of volumeType "file" at host path "/mnt/disks/vol2" with capacity<PHONE_NUMBER>, creating Local PV "local-pv-5caec43d"
I0307 01:08:57.193946       1 cache.go:55] Added pv "local-pv-5caec43d" to cache
I0307 01:08:57.194413       1 cache.go:64] Updated pv "local-pv-5caec43d" to cache
I0307 01:08:57.194526       1 discovery.go:225] Created PV "local-pv-5caec43d" for volume at "/mnt/disks/vol2"
I0307 01:08:57.194589       1 discovery.go:207] Found new volume of volumeType "file" at host path "/mnt/disks/vol3" with capacity<PHONE_NUMBER>, creating Local PV "local-pv-e403cb66"
I0307 01:08:57.199867       1 discovery.go:225] Created PV "local-pv-e403cb66" for volume at "/mnt/disks/vol3"
I0307 01:08:57.199919       1 discovery.go:207] Found new volume of volumeType "file" at host path "/mnt/disks/vol1" with capacity<PHONE_NUMBER>, creating Local PV "local-pv-e68f5cf0"
I0307 01:08:57.200148       1 cache.go:55] Added pv "local-pv-e403cb66" to cache
I0307 01:08:57.204181       1 discovery.go:225] Created PV "local-pv-e68f5cf0" for volume at "/mnt/disks/vol1"
I0307 01:08:57.204255       1 cache.go:55] Added pv "local-pv-e68f5cf0" to cache
I0307 01:08:57.204267       1 cache.go:64] Updated pv "local-pv-e403cb66" to cache
I0307 01:08:57.211884       1 cache.go:64] Updated pv "local-pv-e68f5cf0" to cache

e.g. kubectl get pv
NAME                                       CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM                                                   STORAGECLASS    REASON    AGE
local-pv-5caec43d                          1972Mi     RWO            Delete           Available                                                           local-storage             10m
local-pv-e403cb66                          1972Mi     RWO            Delete           Available                                                           local-storage             10m
local-pv-e68f5cf0                          1972Mi     RWO            Delete           Available                                                           local-storage             10m

e.g. kubectl describe pv local-pv-e68f5cf0
Name:            local-pv-e68f5cf0
Labels:          <none>
Annotations:     pv.kubernetes.io/provisioned-by=local-volume-provisioner-anewsnode11-3253f1af-2066-11e8-a4ec-00163e00b641
                 volume.alpha.kubernetes.io/node-affinity={"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"kubernetes.io/hostname","operator":"In","values":["anewsno...
StorageClass:    local-storage
Status:          Available
Claim:
Reclaim Policy:  Delete
Access Modes:    RWO
Capacity:        1972Mi
Message:
Source:
    Type:  LocalVolume (a persistent volume backed by local storage on a node)
    Path:  /mnt/disks/vol1
Events:    <none>

@ant31 and @mattymo please kindly review and comment ;-)

hey @hswong3i thx for taking this on. there's one more place where this causes some problems. In the kubernetes pre-install tasks, directories are created and one of those is currently targeting the local_volume path. Any chance you could update your PR to include moving the creation of that path into the local_volume tasks as well? See here for where it's occurring. It would also fix #2426.

ci check this

@rsmitty ci seems passed but github pipeline seems not updated :-(

Yeah sometimes CI doesn't report back properly but we're all good. Merging.

Closed #2282


Add TLS and CA Certificate support for wins

add new functionality for fetching certificates from Rancher, external URL, and from a local file.

https://github.com/rancher/rancher/issues/37483

README updated and implementation in csiproxy added. Re-requesting reviews now.


Specifying data-dir fails on string conversion issue

When I do:
warn-scraper CT --data-dir data

I get the following error in the logs:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/warn/cli.py", line 80, in main
    runner.scrape(scrape)
  File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/warn/runner.py", line 52, in scrape
    data_path = state_mod.scrape(self.data_dir, self.cache_dir)
  File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/warn/scrapers/ct.py", line 82, in scrape
    data_path = data_dir / "ct.csv"
TypeError: unsupported operand type(s) for /: 'str' and 'str'

Anecdotally also recall this happening on other states.
@palewire Avoiding this why I was constructing the output path using string formation and later Path.

Sounds like a bug for sure!


IRetryAnalyzer is broken

I tend to use a lot of TestNG's more advanced features for integration testing, and I'd really like to be able to use IRetryAnalyzer with inherently non-deterministic tests that can fail spuriously. Unfortunately that feature appears to be fundamentally broken because of how it was integrated with TestNG's various callback APIs:

The Reporter(s) will be notified of each FAILED invocation attempt, even if the test method ultimately succeeds
Similarly, the ExitCodeListener in org.testng.TestNG calls m_mainRunner.setStatus(FAILED) as soon as a test invocation fails (the test method's ultimate success does not matter), so TestNG will exit with a nonzero exit code (resulting in, for instance, the overall Ant or Maven task failing), even if you use one of the hacks intended to fix the test report

I'm only aware of two ways around these fundamental deficiencies: reflection hacks to mutate the internal state of the TestNG instance, or writing a custom test runner to replace it.
I'm willing to do the design and coding work to fix this issue, but first I want to make sure everyone agrees with my statement of the problem.

I've recently run into the same issue. Our specific problem was that in addition to retries showing up multiple times in the report, the same retry handler is used across multiple runs of the test with different parameters using a data provider.
I'd love to see better support for the various possible configuration options.

Hi, how do you think about marking failed tests that are to be retried as 'SUCCESS_PERCENTAGE_FAILURE' and not 'SKIP' and test failed after the last retry - as usual 'FAILURE'?
In our tests we had to do this workaround, see inlined comments:
public class BaseTestngListener implements ITestListener, IInvokedMethodListener {
...
  @Override
  public void afterInvocation(IInvokedMethod method, ITestResult result) {
    if (method.isConfigurationMethod()
        && (result.getStatus() == ITestResult.FAILURE || result.getStatus() == ITestResult.SKIP)) {
      handleFailure(result);
    } else {
      // Workaround for testng behaviour (by the way, RetryAnalyzer feature is undocumented still).
      // TestNG marks a test to be retried as 'SKIP' and failed after retry - as 'SUCCESS_PERCENTAGE_FAILURE',
      // but it contradict 'invocationCount' feature that behave more intuitive
      // We simulate 'invocationCount' behaviour here:
      // a test to be retried is marked as 'SUCCESS_PERCENTAGE_FAILURE' (it should not look as skipped)
      // and failure after all retries must stay failure and not any special failure.
      final CommonRetryAnalyzer retryAnalyzer = (CommonRetryAnalyzer) result.getMethod().getRetryAnalyzer();
      if (retryAnalyzer != null) {
        // Here we try not to change "true skip" status for tests that are skipped due to config methods failures.
        // We think if result does not have any throwable it means the test didn't fail and was "truly skipped".
        if(result.getStatus() == ITestResult.SKIP && result.getThrowable() != null) {
          result.setStatus(ITestResult.SUCCESS_PERCENTAGE_FAILURE);
          Reporter.setCurrentTestResult(result);
        } else if (result.getStatus() == ITestResult.SUCCESS_PERCENTAGE_FAILURE) {
          result.setStatus(ITestResult.FAILURE);
          Reporter.setCurrentTestResult(result);
        }
      }
    }

And I think "failures-to-be-retried" should be reported (with some "non-final-failure-status"), user can ignore such status, but other users wish to track such non-final-failures. For example, we log such failures as ordinary failures (with stack traces and screenshots) with just a little (but clearly visible) addition to the message like "ERROR: Test <class.method(params)> failed but WILL BE RETRIED"

@nmiroshnichenko @davefp @rschmitt Hi Guys! Have You faced with such issue during using DataProvider with IRetryAnalyzer:
"I'm running into an issue with our test suite where my tests that use dataproviders are not using the original data parameter from the first run of the test when they get retried."
More information You could find here:
https://github.com/cbeust/testng/issues/763
Thanks in advance for Your help

@rschmitt Is #698 fixing this issue or do you want to keep it open for any reason?


Introducing: chatgpt-demo v2

Clear and concise description of the problem
In recent times, we received some very interesting feature requests one after another. Like #63, #87, #90, #231 and so on.
However, the UI we initially provided was designed to be minimalistic and not able to carry so much features.
Therefore, we plan to update our major UI to provide more panels for more features.
Here's our rough sketch:

Our Figma file
https://www.figma.com/file/LupJ77idVjxFHq4Ox54KiG/Chatgpt-demo-v2
Development
We started a new branch and started work on the new UI.
V2 Branch: feat/v2
V2 Branch preview: https://v2.chatgpt.ddiu.me/v2
Contribution
Feel free to make your further suggestions in this issue, it will help us a lot.
Suggested solution

Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

#228 Hope to have voice input function.

nice

cool! 希望UI可以支持中文或者多语言的自适应和切换

重新生成按钮会放在MessageItem外面吗？目前要是fetch failed就得刷新页面，用户消息还在历史记录里面，但是处于没有调用api的状态，就不得不删除记录重新发送或者再发一次。

希望能添加针对之前对话的编辑功能，对话数据有法子缓存嘛？

新UI会兼容手机端显示吗


The TestZeroViewShapeTracker isn't a real test

Improve it!

I think the issue should be closed?

Nah, it's still fake. It should confirm the behavior with the testing shape tracker

hey just trying to know if this is still an issue?


Unsupported operation: Platform._operatingSystem

Describe the bug
When running on the web, the above problem will be reported.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

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

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

Smartphone (please complete the following information):

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

Additional context
Add any other context about the problem here.

I have found the cause of the problem and need to modify the chatui_textfield.dart
if (sendMessageConfig?.allowRecordingVoice ??
                            true &&
                                Platform.isIOS &&
                                Platform.isAndroid &&
                                !kIsWeb)

为
if (sendMessageConfig?.allowRecordingVoice ??
                            true &&
                                !kIsWeb && Platform.isIOS &&
                                Platform.isAndroid
                                )

Because the above problem will occur if you use Platform directly on the web side.


Added a warning in fanofactor function when the input spiketrains vary in their durations

Fixes #336

Coverage increased (+0.01%) to 88.998% when pulling 3bfcfc8413c113386395fd6024d85628ae297a30 on INM-6:fix/fano_factor into fe7b86d336dd7da47ce42f7d8e1b4778d932a72c on NeuralEnsemble:master.


Swashbuckle.AspNetCore.Cli RC5 not released to NuGet

Hi,
Just to make you aware the cli package has not yet been deployed to nuget
Example:
dotnet tool install swashbuckle.aspnetcore.cli --version 5.0.0-rc5
Response
error NU1102: Unable to find package swashbuckle.aspnetcore.cli with version (>= 5.0.0-rc5)
error NU1102:   - Found 15 version(s) in NuGet official package source [ Nearest version: 5.0.0-rc4 ]
error NU1102:   - Found 0 version(s) in Microsoft Visual Studio Offline Packages
error NU1102:   - Found 0 version(s) in C:\Program Files\dotnet\sdk\NuGetFallbackFolder
The tool package could not be restored.
Tool 'swashbuckle.aspnetcore.cli' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

Regards,
Joe

Addressed by d1597ce2c5747a1a7d361dccb4f65eaca39e7523. Working to get a few other fixes done, and then will publish as part of an rc6 release.


Collapse multiple provide statements into a single one

Racket makes it possible to scatter provide forms at the toplevel of a module. When this is actually done, though, I find it makes code harder to read. Ideally, I'd like to open a Racket file and find a single provide form that tells me what the module provides. It would be great if resyntax could merge multiple provides into a single one.

Collapsing require forms would be handy too, though contract-out makes that a little trickier.

Collapsing require forms would be handy too, though contract-out makes that a little trickier.


virtual-scroll: support using elements that have parent requirements as virtual scroll items

Add support for using tags such as <li>, <tr>, and <td> that have constraints on legal parent tags as items in a virtually scrolling list.

If you make the component a attribute selector, this will work fine. I'm doing this with SVG elements.


gltf example seems to be not loading the microphone anymore

https://dev.markuslerner.com/three.interactive/examples/gltf.html

Hi @Palm-Web , for me it's loading in Chrome, Safari and Firefox on MacOS, pretty much all in the latest version. Maybe you need to refresh the page so that the latest version is loaded (using three 0.38.0 in the source code).
If it still doesn't work for, please let me know your browser and OS version.


Configuring certificates - known tips

Is your request for enhancement related to a problem? Please describe.
This is related to the potential challenges that users might have when configuring certificates in a key ring (zowe.yaml file)
Describe the solution you'd like

Add some instructions or tips to remind users of double checking the keyring name, certificate name, alias.
Review the instructions for configuring yaml.file and see if we can make some enhancements to better help users finish the configuration. (e.g., uncommenting code, changed default keyring name?)

Related doc pages

Additional context

#2822 open to solve this issue

#2853 #2854 are linked to this topic


Upgrade com.fasterxml.jackson:jackson-bom 2.14.2 -> 2.15.0

This PR contains the following updates:

Package
Type
Update
Change

com.fasterxml.jackson:jackson-bom
import
minor
2.14.2 -> 2.15.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Jackson 2.14.2 -> 2.15.0

See https://github.com/FasterXML/jackson-bom/compare/jackson-bom-2.14.2...jackson-bom-2.15.0


debug-java-actions-remotely

The following line is not good, place the line to paste in the Extra JVM parameters on a new line rather, I missed the hyphen - that is on the previous line's end, this line:

Go to the Server tab of the configuration, add the following line to the Extra JVM parameters field: - agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Will be better like this:

Go to the Server tab of the configuration, add the following line to the Extra JVM parameters field:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Hi Elize,
Thanks for reporting this issue. Sorry about the delay in getting back to you.
I've tested it in Firefox and I don't get the strange wrapping which you identified. But I see that it wraps differently in Chrome and Edge and causes confusion.
Thanks for reporting this, I'd never have seen it in my reviews. I've updated the latest two versions of the document in this commit: https://github.com/mendix/docs/commit/b2c9a5b42a2fb5874a7060904d172442876a268e
Thanks for taking the trouble to report this and improve our documentation.
Please let us know if you see anything else which could be improved.
Yours
Mark van Ments.


bugreport: collect more ingress & control plane info

Description:
Collects more information pertaining to ingress by
avoiding early termination, and fetches control
plane namespace scoped resources.

Testing done:
$ osm support bug-report --app-namespaces httpingress --app-deployments httpingress/httpbin --ingress  --osm-namespace kube-system
[+] Created staging dir /tmp/osm_bug_report_1586314353 to generate bug report

[+] Collecting information about meshed namespaces
✓ Finished generating report for meshed namespaces

[+] Collecting information from individual app namespaces
✓ Collected report from Namespace "httpingress"
✓ Finished generating report for individual app namespaces

[+] Collecting information from individual app pods
✓ Collected report for Pod "httpingress/httpbin-69dc7d545c-brbcf"
✓ Finished generating report for individual app pods

[+] Collecting information from control plane
✓ Collected report for Pod kube-system/osm-bootstrap-55ff95f96b-cxm67
✓ Collected report for Pod kube-system/osm-controller-5bc989994c-kcbx2
✓ Collected previous report for Pod kube-system/osm-controller-5bc989994c-kcbx2
✓ Collected report for Pod kube-system/osm-controller-5bc989994c-mcmxt
✓ Collected previous report for Pod kube-system/osm-controller-5bc989994c-mcmxt
✓ Collected report for Pod kube-system/osm-injector-7dfcd68fd4-7qjmx
✓ Collected report for Pod kube-system/osm-injector-7dfcd68fd4-d9zkr
✓ Finished generating report for control plane

[+] Collecting ingress information
✓ Collected report for ingress httpbin/httpbin
✓ Collected report for ingress backend httpbin/httpbin
✓ Collected report for ingress controller ingress-nginx/ingress-nginx-controller-867c9b9ddb-5frmj
✓ Finished generating report for ingress

[+] Collecting information from individual app namespaces
✓ Bug report successfully archived to /tmp/36131790_osm-bug-report.tar.gz

Affected area:

Functional Area

CLI Tool
[X]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? no

Did you notify the maintainers and provide attribution?

Is this a breaking change? no

Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? n/a

Codecov Report

Merging #4703 (34885a9) into main (f922b5c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #4703   +/-   ##
=======================================
  Coverage   69.48%   69.48%
=======================================
  Files         217      217
  Lines       15495    15495
=======================================
  Hits        10767    10767
  Misses       4678     4678
  Partials       50       50

Flag
Coverage Δ

unittests
69.48% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Continue to review full report at Codecov.

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


PLAT-84903:  Added Galluim theme (based on Carbon)

Also updated applySkins to allow the assignment of a "base" skin, which other skins can leverage for overrides, so they don't all need to be updated when a single variable is added.

Are the two Button changes cruft?

"Cruft" may be harsh. Not directly related to this task, sure, I'll grant that. One was, I think, due to trying to improve compatibility with ui, since I think ui was exporting a non-kind-generated component for Button, so it didn't have inline any more. The other, backdrop-filter, was to implement the feature somewhere and behind a transparent button seemed to make the most sense. I'd included them in the first commit of this when I was expecting this to be more of a "cleanup general things" PR.

ui/Button.ButtonBase is a kind component so inline() should be safe. Okay with reverting that part? Not worried about the backdrop filter change.

Yes, we can drop all of the changes to that file. It adds little-to-no value.


Reverse In and Out type parameter in superForm return type

[x] Before posting an issue, read the FAQ and search the previous issues.

Description
When using valibot with transform function that produces a schema with an input type differing from the output type, passing the schema into the superform() function returns a SuperForm type that uses the output type as its first type parameter. As a result, when consuming the form store returned by the superform() object, the types become the output type whereas I expected them to be the input types.
If applicable, a MRE
https://stackblitz.com/edit/superforms-2-testing-valibot-824118?file=src%2Froutes%2F%2Bpage.svelte

Sorry, the Stackblitz example only has a three-line schema, did you save the correct one?
export const schema = object({
  digit: date()
});