Model's save() not work

It doesn't work due to wrong validation error. Is there any debugging function for why save() not work?
| ---------------- | ---
| Yii version | 2.0.12?
| PHP version | 7.14
| Operating system | Mac

Have you tried with:
var_dump($model->errors);
after $model->save() ?

I found this: 'file can't be blank'
Actually I am still dealing with the err mentioned in this link https://github.com/yiisoft/yii2/issues/16163
But still don't know why and still not find the solution

Have you a rule with 'required' validator applied to a field named 'file' ?

Yes, only adding 'required' give problem. But there is one thing that according to need, at first page, I do uploading process and at sec page, I do saving process. Does that make me prevent from saving?
And when I debug with var_dump($model->file) , it's empty really. Is file variable removed from memory when it reaches to other page?
For the process of upload-save via 2 page, here is the reference: https://github.com/yiisoft/yii2/issues/16080
I did as that suggestion.

If you have a 'required' validator applied to 'file' field and you save the model after processing file upload, it is normal that you get the error, because the model is not receiving the file.
You could set the scenario used by the model to require the file only on the first action (where the file is really uploaded).


Add user-confirmation on success when submitting Add API Backend form

When a user successfully submits the Add API Backend form, display a confirmation message.
Definition of done

[x] Add autoform onSuccess hook to Add API backend form.
[x] Using onSuccess hook  display success message on UI.
[ ] Redirect to API view.

onSuccess message added.

I am assigning Mauricio (@mauriciovieira) to this task.

"Redirect to API view." is done.

We determined the UI message was not necessary, so removed it from the onSuccess callback.


[Feature Request] Add Plugins to List

Rather than git cloning extra plugins, allow users to list their custom plugins in my_config.vim, and then have Amix install or update them!

What @alphaCTzo7G said :)


Upload logo not working

It doesn't allow me to press upload logo, nor uplaod background image or any position settings

Yup, seems the loadLogo function doesn't even exist

'Future updates are going to let you put images in the background, or make a color gradient on the background.'

in readme.md
It does not seem to be implemented yet, which should explain your issue

I'm indeed looking for a good algorithm which would convert an image into GLSL code that would be efficient and optimized. I may work on that later

since that first comment i actually asked around and got help making something work
Titruc made some code that turns images into GLSL and got it working togheter with your ImgToShader gen for a pack of his:
https://www.mediafire.com/file/3lj7cmcdglh3bgz/gen.zip/file
But this doesn't display at all on anything but mac and has a lot of issues constantly breaking and not centering. So I got a friend of mine, Maxboxx to try to fix it. Which he actually did!
And if you'd like to take a look at how its done they probably don't have anything agaisnt you basing your gen on this, maybe credit them.
This texture pack has the fully working shader. The only problem is that it cannot from what I've seen load the shader if any of the files has more than 712 lines of code

Titruc told me about his method to display his image on screen
I took a look at the resource pack and I seems to be more or less the same concept. The way it's implemented though is not really optimized for higher res images (Actually it's the same method I used in my code in the beginning). But I should implement this algorithm for pixel art or small res images, and implement another algorithm for bigger images

Okay, I updated the generator to allow image upload. Only the background upload is available for now but I will add the logo upload soon. I also credited Maxboxx for the bit of code he wrote.
Though, the shader algorithm is also different as I will make multiple algorithms to have the choice of which one to use like I said in my pervious message.
Thanks for the feedback 👍


git lfs with ssh

To get git-lfs working with ssh/scp it can be redirected to http/https as native ssh support is not implemented upstream, below is related info:
https://github.com/git-lfs/git-lfs/blob/master/docs/custom-transfers.md#using-a-custom-transfer-type-without-the-api-server
https://github.com/git-lfs/git-lfs/issues/1044

Those transfer-hooks are client-side so we can't make that happen unfortunately. Only way to get real SSH-support is to get it upstream in the issue you linked :(

The only solution today is to have SSH return a JSON-payload for redirecting it to HTTP(S) https://github.com/git-lfs/git-lfs/issues/1044#issuecomment-188893647 which is fairly straight forward to add:

If the command is git-lfs-authenticate
https://gitlab.com/gitlab-org/gitlab-shell/blob/master/lib/gitlab_shell.rb#L121-126
Verify user permissions:
https://gitlab.com/gitlab-org/gitlab-shell/blob/master/lib/gitlab_shell.rb#L214-220
And return the payload:
https://gitlab.com/gitlab-org/gitlab-shell/blob/master/lib/gitlab_lfs_authentication.rb

I can not get ssh authentification to work so I guess this is still an open issue
I don't know where to start for the solution proposed by @bkcsoft .
https://github.com/go-gitea/gitea/blob/b03d780ccb9e7c1926c13b88180512b491858d48/cmd/serv.go#L137-L147
Can you look again at ssh authentification for lfs in gitea @fabian-z @lunny

Well, we should already be doing what @bkcsoft suggested and it worked in my original tests.
This code is responsible for implementing server discovery by returning the proper URL and authentication token if called via SSH: https://github.com/go-gitea/gitea/blob/b03d780ccb9e7c1926c13b88180512b491858d48/cmd/serv.go#L292-L326
It seems there is some confusion about the subject of this issue.
One aspect is server discovery / authentication using SSH. This should be implemented and working according to the LFS API docs.
Another one is transfer of data with SSH instead of HTTPS. This is currently not part of the LFS specification and therefore also not implemented, still to be decided upstream (see https://github.com/git-lfs/git-lfs/issues/1044)
@ukos-git: Could you elaborate on what part of SSH authentication is not working for you? What did you do, what errors are you getting? Please make sure your server has a working TLS configuration.
@laoshaw: Are you referencing a pure SSH based transport without HTTPS (as in the linked git-lfs issue)? Do you experience issues when using SSH remotes? Please also make sure your server has a working TLS configuration.

Authentification is working now.
ssh ssh://git@mygitproject git-lfs-authenticate user/repo download

{
  "header": {
    "Authorization": "Bearer XYZ"
  },
  "href": "https://mygitproject/user/repo.git/info/lfs"
}

I got probably confused during the setup.
Since the gitea implementation is actually working, we should close this issue here. implementation of scp is an upstream git-lfs problem.


[BugFix]Forbid operate warehouse

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

[FE PR Coverage Check]
:disappointed: fail : 0 / 5 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/DDLStmtExecutor.java
0
5
00.00%
[861, 866, 871, 876, 882]

@Mergifyio backport branch-3.0

@Mergifyio backport branch-2.5


Updates CoreOS cloud-configs to use Kubernetes 0.19.3.

Fixes #9075
Added instrumentation and configuration for service account tokens.
Removed standalone stuff.
Removed  Docker proxy cache stuff because it makes deployments slower and its usage is very limited.

/cc @thockin @AntonioMeireles @liggitt
This has been tested with GCE and AWS. I did not update Azure, AWS CloudFront and other cloud-configs because I'm unable to test them. Please, CC their maintainers.

LGTM (&& thanks @pires !!!!)

Want to learn how you deal with service account tokens to apply it to ubuntu k8s deployment.

@WIZARD-CXY See https://github.com/GoogleCloudPlatform/kubernetes/issues/9075#issuecomment-115042337

Thanks a lot!
May the force be with you

On Jun 25, 2015, at 11:49 PM, Paulo Pires<EMAIL_ADDRESS>wrote:
@WIZARD-CXY See #9075 (comment)
—
Reply to this email directly or view it on GitHub.

@thockin for triage, first review, and (hopefully) finding the second

@mbforbes looks like @thockin lost track of this cause he's still looking for it. Care to ping him again?

Whoops sorry about that.
(BTW needs rebase)
Let me assign to our current oncall to possibly multiplex better

Needs rebase.

Yeah, but now 3 newer versions have been released. So please, merge this and I'll take care of testing when 1.0 is out and update accordingly.

GSG only fix. Merging.

Can you please explain why you removed kube-register? Is that integrated into core Kubernetes now?

I found https://github.com/GoogleCloudPlatform/kubernetes/pull/9303#issuecomment-109327392, which explains that kube-register is not needed since self-registration works. This was merged for 0.19.0.


ToDos are completely gone

Bug description:

The ToDo sidebar is gone, I can't activate it. The menu bar only shows "(empty)" on clicking the "Todos" element. The shortcut doesn't activate it, the entry in the settings is also completely gone.
Steps to reproduce:

Update to v5.6.1-nightly.10.
Expected behavior

Having my Todo sidebar, specifically Todoist.
Environment:

OS: Linux 5.13 Arch/EndeavourOS

Ferdi: 5.6.1-nightly.10

Electron: 13.1.7

Chrome: 91.0.4472.124

Node.js: 14.16.0

Server: Ferdi, using an account

Debug information:

{"host":{"platform":"linux","release":"5.13.6-arch1-1","screens":[{"id":2785062953156691,"bounds":{"x":0,"y":0,"width":1920,"height":1080},"workArea":{"x":0,"y":0,"width":1920,"height":1080},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":1920,"height":1080},"displayFrequency":60,"workAreaSize":{"width":1920,"height":1080},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}]},"ferdi":{"version":"5.6.1-nightly.10","electron":"13.1.7","installedRecipes":[{"id":"discord","version":"1.1.4"},{"id":"element","version":"1.0.4"},{"id":"facebook","version":"1.0.2"},{"id":"franz-custom-website","version":"1.0.4"},{"id":"github","version":"2.0.1"},{"id":"gmail","version":"1.3.9"},{"id":"irccloud","version":"1.0.2"},{"id":"messenger","version":"1.1.2"},{"id":"proton-mail","version":"1.2.2"},{"id":"roundcube","version":"1.0.2"},{"id":"slack","version":"1.0.17"},{"id":"telegram-react","version":"1.1.2"},{"id":"todoist","version":"1.2.1"},{"id":"toggl","version":"1.0.2"},{"id":"trello","version":"1.0.3"},{"id":"tutanota","version":"1.0.1"},{"id":"whatsapp","version":"3.0.2"},{}],"devRecipes":[],"services":[{"id":"ca8b3596-7262-4dba-b12a-573a970660e9","recipe":"whatsapp","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"e4f3f3e2-6a2b-4886-ac23-7f7bee9640c8","recipe":"todoist","isAttached":true,"isActive":true,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"b7c97f18-86d4-4c1d-87f9-e7d122be681d","recipe":"telegram-react","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"88fd7382-d5c1-46df-9e61-239d28becf85","recipe":"toggl","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"0569159f-99fb-4d98-beef-9217969ea8f0","recipe":"gmail","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"9166e18f-9aea-4fc5-ac5b-879a355327f1","recipe":"gmail","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"9a777f06-fd13-4fd3-b32a-ee70adc6612e","recipe":"proton-mail","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"69747c3c-e2f6-4a16-a708-43bba19098fb","recipe":"discord","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"1850dd39-df43-4a21-bac4-9b1a3b117581","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"d4b2f0e0-664e-4f4f-a54d-fa9d5f5e2d28","recipe":"franz-custom-website","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"95176632-31ef-40d1-b206-874880cd06aa","recipe":"trello","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"8d7460aa-4135-45e0-82d2-677f48acd074","recipe":"slack","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"864c1fc3-1f47-4dd1-9e59-db526a187378","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"0f4360c7-3f18-4d20-9b3e-ba3d133987a8","recipe":"slack","isAttached":true,"isActive":false,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"771d416b-9cce-4028-854b-ca54456bc026","recipe":"messenger","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"e363b564-7bc0-4019-845f-0d8e16c1aaad","recipe":"tutanota","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"034e0bdf-6413-4fb3-b089-6a33c17ac8f9","recipe":"element","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"e9a4739e-f726-40b6-84eb-96c10dc69088","recipe":"franz-custom-website","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"3194a70a-78d5-4357-9733-68d4dcfcde3f","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"fc9cd6b6-6897-4980-80b9-5e34209f9215","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"bc612d9e-45bd-464c-9845-9fa37ddac7dd","recipe":"roundcube","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"a43bb37f-6433-41b5-a4dc-2b87e935ec80","recipe":"roundcube","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"fe62a943-3531-4f0b-89be-757415fe65b3","recipe":"facebook","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"00b22af4-fa4d-484b-acfe-4e704dc33e37","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"254c8277-00bc-49f9-8be7-0add5c8caac1","recipe":"github","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"2fc601cd-a61f-43e5-913a-cfa6c2c1b546","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"9d09656a-186c-43da-98d0-5f3e9827e45f","recipe":"gmail","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true},{"id":"6a543db9-95b0-4a69-929e-c4add89d5ac7","recipe":"franz-custom-website","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":true}],"messages":[{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.service` of type `Object` supplied to `_class2`, expected instance of `_class`.\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.settings` of type `Object` supplied to `_class2`, expected instance of `_class`.\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by _class2)\n    in div (created by _class2)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: The prop `stores.app.accentColor` is marked as required in `_class2`, but its value is `undefined`.\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by WithTheme(Jss(_class2)))\n    in WithTheme(Jss(_class2)) (created by inject-WithTheme(Jss(_class2))-with-stores)\n    in inject-WithTheme(Jss(_class2))-with-stores (created by _class2)\n    in _class2 (created by WithTheme(_class2))\n    in WithTheme(_class2) (created by Jss(WithTheme(_class2)))\n    in Jss(WithTheme(_class2)) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"getInfo"},"error":{},"response":{},"server":"https://api.getferdi.com"},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"features"},"error":{},"response":{},"server":"https://api.getferdi.com"},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"all"},"error":{},"response":{},"server":"https://api.getferdi.com"},{"type":"error","info":["error","Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.%s","the componentWillUnmount method","\n    in WithTheme(Jss(_class2)) (created by inject-WithTheme(Jss(_class2))-with-stores)\n    in inject-WithTheme(Jss(_class2))-with-stores (created by _class2)\n    in _class2 (created by WithTheme(_class2))\n    in WithTheme(_class2) (created by Jss(WithTheme(_class2)))\n    in Jss(WithTheme(_class2)) (created by _class2)"]},{"type":"error","info":["error","Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in %s.%s","the componentWillUnmount method","\n    in WithTheme(_class2) (created by Jss(WithTheme(_class2)))\n    in Jss(WithTheme(_class2)) (created by _class2)"]}],"workspaces":[],"windowSettings":{"width":1894,"height":1005,"x":13,"y":36,"isMaximized":false,"isFullScreen":false,"displayBounds":{"x":0,"y":0,"width":1920,"height":1080}},"settings":{"autoLaunchInBackground":false,"runInBackground":false,"reloadAfterResume":true,"enableSystemTray":false,"startMinimized":false,"minimizeToSystemTray":"","closeToSystemTray":"","privateNotifications":false,"clipboardNotifications":false,"notifyTaskBarOnMessage":false,"showDisabledServices":true,"showMessageBadgeWhenMuted":true,"showDragArea":false,"enableSpellchecking":true,"spellcheckerLanguage":"[\"en-US\"]","darkMode":true,"locale":"en-US","fallbackLocale":"en-US","beta":false,"isAppMuted":false,"enableGPUAcceleration":true,"server":"https://api.getferdi.com","predefinedTodoServer":"https://todoist.com/app","autohideMenuBar":false,"lockingFeatureEnabled":false,"locked":false,"lockedPassword":"******","useTouchIdToUnlock":true,"scheduledDNDEnabled":false,"scheduledDNDStart":"17:00","scheduledDNDEnd":"09:00","hibernateOnStartup":false,"hibernationStrategy":"3600","wakeUpStrategy":"300","inactivityLock":0,"automaticUpdates":true,"showServiceNavigationBar":false,"universalDarkMode":true,"userAgentPref":"","adaptableDarkMode":true,"accentColor":"#268bd2","serviceRibbonWidth":"68","iconSize":"20","sentry":false,"nightly":false,"navigationBarBehaviour":"never","searchEngine":"duckDuckGo","useVerticalStyle":false,"alwaysShowWorkspaces":false,"serviceLimit":5,"todoServer":"isUsingCustomTodoService","customTodoServer":""},"features":{"isServiceProxyEnabled":false,"isAnnouncementsEnabled":true,"isWorkspaceEnabled":false},"user":"82c1cf9d-ab58-4da2-b55e-aaa41d2142d8"}}

+1 for this issue. It was present yesterday, but today both the settings, menu options and shortcuts are unavailable:.
OS: Windows 10 Pro - 20H2
Ferdi: 5.6.1-nightly.8
Electron 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
Debug Info:
{"host":{"platform":"win32","release":"10.0.19042","screens":[{"id":2528732444,"bounds":{"x":0,"y":0,"width":2560,"height":1080},"workArea":{"x":0,"y":0,"width":2496,"height":1080},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":2560,"height":1080},"displayFrequency":75,"workAreaSize":{"width":2496,"height":1080},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"},{"id":2779098405,"bounds":{"x":-1920,"y":0,"width":1920,"height":1080},"workArea":{"x":-1920,"y":0,"width":1920,"height":1080},"accelerometerSupport":"unknown","monochrome":false,"colorDepth":24,"colorSpace":"{primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}","depthPerComponent":8,"size":{"width":1920,"height":1080},"displayFrequency":60,"workAreaSize":{"width":1920,"height":1080},"scaleFactor":1,"rotation":0,"internal":false,"touchSupport":"unknown"}]},"ferdi":{"version":"5.6.1-nightly.8","electron":"13.1.7","installedRecipes":[{"id":"discord","version":"1.1.3"},{"id":"franz-custom-website","version":"1.0.2"},{"id":"googlecalendar","version":"1.0.3"},{"id":"slack","version":"1.0.17"},{"id":"telegram","version":"3.0.3"},{"id":"whatsapp","version":"3.0.2"}],"devRecipes":[],"services":[{"id":"91a82626-1b20-4689-9c33-a3586d752b15","recipe":"whatsapp","isAttached":true,"isActive":true,"isEnabled":true,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"2e5dd5da-1d38-48d3-be53-673ae3bf348d","recipe":"whatsapp","isAttached":false,"isActive":false,"isEnabled":true,"isHibernating":true,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"642c6048-32e1-409e-8789-4758f3d580d9","recipe":"slack","isAttached":false,"isActive":false,"isEnabled":false,"isHibernating":false,"hasCrashed":false,"isDarkModeEnabled":false},{"id":"c9b62d93-a601-4483-89e6-beaef7d4c467","recipe":"telegram","isAttached":false,"isActive":false,"isEnabled":true,"isHibernating":true,"hasCrashed":false,"isDarkModeEnabled":false}],"messages":[{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.service` of type `Object` supplied to `_class2`, expected instance of `_class`.\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.settings` of type `Object` supplied to `_class2`, expected instance of `_class`.\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by _class2)\n    in div (created by _class2)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: The prop `stores.app.accentColor` is marked as required in `_class2`, but its value is `undefined`.\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by WithTheme(Jss(_class2)))\n    in WithTheme(Jss(_class2)) (created by inject-WithTheme(Jss(_class2))-with-stores)\n    in inject-WithTheme(Jss(_class2))-with-stores (created by _class2)\n    in _class2 (created by WithTheme(_class2))\n    in WithTheme(_class2) (created by Jss(WithTheme(_class2)))\n    in Jss(WithTheme(_class2)) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"getInfo"},"error":{},"response":{},"server":"You are using Ferdi without a server"},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"features"},"error":{},"response":{},"server":"You are using Ferdi without a server"},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"all"},"error":{},"response":{},"server":"You are using Ferdi without a server"},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"getAnnouncement"},"error":{},"response":{},"server":"You are using Ferdi without a server"},{"type":"error","request":{"result":null,"wasExecuted":true,"method":"getAnnouncement"},"error":{},"response":{},"server":"You are using Ferdi without a server"},{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.ui` of type `Object` supplied to `_class`, expected instance of `_class`.\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions (created by RouterContext)\n    in div (created by _class2)\n    in div (created by _class2)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.app` of type `Object` supplied to `_class2`, expected instance of `_class`.\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in div (created by _class2)\n    in CSSTransitionGroupChild (created by TransitionGroup)\n    in span (created by TransitionGroup)\n    in TransitionGroup (created by CSSTransitionGroup)\n    in CSSTransitionGroup (created by Appear)\n    in Appear (created by _class2)\n    in _class2 (created by _class)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions (created by RouterContext)\n    in div (created by _class2)\n    in div (created by _class2)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.workspaces` of type `Object` supplied to `_class2`, expected instance of `_class`.\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in div (created by _class2)\n    in CSSTransitionGroupChild (created by TransitionGroup)\n    in span (created by TransitionGroup)\n    in TransitionGroup (created by CSSTransitionGroup)\n    in CSSTransitionGroup (created by Appear)\n    in Appear (created by _class2)\n    in _class2 (created by _class)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions (created by RouterContext)\n    in div (created by _class2)\n    in div (created by _class2)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]},{"type":"error","info":["error","Warning: Failed prop type: Invalid prop `actions.app` of type `Object` supplied to `_class`, expected instance of `_class`.\n    in _class (created by inject-_class-with-actions)\n    in inject-_class-with-actions (created by RouterContext)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in div (created by _class2)\n    in CSSTransitionGroupChild (created by TransitionGroup)\n    in span (created by TransitionGroup)\n    in TransitionGroup (created by CSSTransitionGroup)\n    in CSSTransitionGroup (created by Appear)\n    in Appear (created by _class2)\n    in _class2 (created by _class)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions (created by RouterContext)\n    in div (created by _class2)\n    in div (created by _class2)\n    in div (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in _class2 (created by Jss(_class2))\n    in Jss(_class2) (created by _class2)\n    in ThemeProvider (created by _class2)\n    in _class2 (created by inject-_class2-with-stores-actions)\n    in inject-_class2-with-stores-actions (created by RouterContext)\n    in RouterContext (created by Router)\n    in Router (created by _class)\n    in _class (created by inject-_class-with-stores-actions)\n    in inject-_class-with-stores-actions\n    in IntlProvider (created by _class)\n    in _class (created by inject-_class-with-stores)\n    in inject-_class-with-stores\n    in Provider"]}],"workspaces":[],"windowSettings":{"width":1295,"height":1088,"x":-1928,"y":0,"displayBounds":{"x":-1920,"y":0,"width":1920,"height":1080},"isMaximized":false,"isFullScreen":false},"settings":{"autoLaunchInBackground":false,"runInBackground":true,"reloadAfterResume":true,"enableSystemTray":true,"startMinimized":true,"minimizeToSystemTray":false,"closeToSystemTray":false,"privateNotifications":false,"clipboardNotifications":true,"notifyTaskBarOnMessage":true,"showDisabledServices":false,"showMessageBadgeWhenMuted":true,"showDragArea":false,"enableSpellchecking":true,"spellcheckerLanguage":"en-us","darkMode":false,"locale":"en-US","fallbackLocale":"en-US","beta":true,"isAppMuted":false,"enableGPUAcceleration":true,"server":"You are using Ferdi without a server","predefinedTodoServer":"https://todo.microsoft.com/?app#","autohideMenuBar":true,"lockingFeatureEnabled":false,"locked":false,"lockedPassword":"******","useTouchIdToUnlock":true,"scheduledDNDEnabled":true,"scheduledDNDStart":"22:00","scheduledDNDEnd":"09:00","hibernateOnStartup":true,"hibernationStrategy":"1800","wakeUpStrategy":"300","inactivityLock":0,"automaticUpdates":true,"showServiceNavigationBar":false,"universalDarkMode":false,"userAgentPref":"","adaptableDarkMode":true,"accentColor":"#7367f0","serviceRibbonWidth":"35","iconSize":"20","sentry":false,"nightly":true,"navigationBarBehaviour":"never","searchEngine":"duckDuckGo","useVerticalStyle":false,"alwaysShowWorkspaces":false,"serviceLimit":5,"hibernate":true,"todoServer":"isUsingCustomTodoService","customTodoServer":""},"features":{"isServiceProxyEnabled":false,"isAnnouncementsEnabled":true,"isWorkspaceEnabled":false},"user":"82c1cf9d-ab58-4da2-b55e-aaa41d2142d8"}}

I have just triggered a build for 5.6.1-nightly.11 - please update to it in a couple of hours.


Prototype implementation of approximate pool performance

Issue Number
#713
Overview

[x] Very quick prototype implementation of approximate performance (AP).
[x] Performance is included in the stake-pool-metrics served by the api.

Comments

Should make sure corner-cases are handled correctly (numbers may be 0)
On the jormungandr testnet one pool has a performance of 53, while the others have 0 🤔 . (There is only one pool that is actually producing blocks.)

@Anviking I continued with this branch, reviewed the API type and computed the performances over past epochs, averaged.
It'll need some integration tests to confirm that everything is okay but I did some smoke tests with current testnet:
$ cardano-wallet stake-pool list | jq 'map(select(.metrics.produced_blocks.quantity > 0))'
[
  {
    "metrics": {
      "controlled_stake": {
        "quantity":<PHONE_NUMBER>0000,
        "unit": "lovelace"
      },
      "produced_blocks": {
        "quantity": 91,
        "unit": "block"
      }
    },
    "apparent_performance": 0.105298698879894,
    "id": "f3b35041dda7a98eb3f7ac7cb24eb8344875c33fc54781b51e2372745720584a"
  },
  {
    "metrics": {
      "controlled_stake": {
        "quantity":<PHONE_NUMBER>700,
        "unit": "lovelace"
      },
      "produced_blocks": {
        "quantity": 5,
        "unit": "block"
      }
    },
    "apparent_performance": 0.03616026758232789,
    "id": "62550ee71694fce07d2ed24e46c8cdfd7e1632e843e0f0f881835720e7395a56"
  },
  {
    "metrics": {
      "controlled_stake": {
        "quantity":<PHONE_NUMBER>3400,
        "unit": "lovelace"
      },
      "produced_blocks": {
        "quantity": 16,
        "unit": "block"
      }
    },
    "apparent_performance": 0.03564508627884418,
    "id": "3b83a5af4ad23f5cddc2806569adc054aa1282d836ca59bc5153a35efbdba3f6"
  }
]

Also:

bors r+

Wow. Hadn't seen that one in a long time.. The encoding issues are back it seems..

bors retry


ActionView::Template::Error: Return value: Expected type T.nilable(T.any(Float, Integer, String)), got type TrueClass

Issue summary
On accessing Object.value of boolean metafields we are getting https://d.pr/i/TGyM8r
Specifications

shopify_api version: 12.2.1
Shopify API version used (example: 2022-10):

We are also having this issue. Is there any plan to fix this?


Using groups in custom loss function

Hi all,
Is there a plan to make groups available on DMatrix so that they can be used in customized objective functions and eval functions?
For instance, using the example in here
def logregobj(preds, dtrain):
    labels = dtrain.get_label()
    preds = 1.0 / (1.0 + np.exp(-preds))
    grad = preds - labels
    hess = preds * (1.0-preds)
    return grad, hess

could we add a method dtrain.get_group()?
Thanks

Current solution is to use closure in your loss function.
https://github.com/dmlc/xgboost/issues/574#issuecomment-161806666


Adding tests of test_http_client and test_certs to top level testing.

Current dependencies on/for this PR:

main

PR #179   👈

This stack of pull requests is managed by Graphite.


Switch apns to use Gun, add support for CONNECT proxies

Work in progress, it's missing a CONNECT test. Still would love if you could give a first quick review and see if I messed up anything.
While reverting to Gun I tried to keep some of the changes of the original switch, like returning before the connection is up. This works better in our case because we have pools of APNS connections and they're created at startup. But waiting for the connection_up can be useful so I moved it in a separate function instead of entirely removing it.
CONNECT requires Gun 1.2 which is not yet on hex. I am not pushing to hex myself yet, but I probably will before the end of the year once a couple barriers are taken down.

hey Loïc, Thanks for your contribution, we really appreciate it.
I took a look on your changes and they look good for me, the code is getting simpler using gun and we don't have the memory issue we had previously with chatterbox.
About the CONNECT stuff, I am completely new with that. Is there an rfc or resource to take a look in order to learn?

A few sections:

https://tools.ietf.org/html/rfc7231#section-4.3.6
https://tools.ietf.org/html/rfc7230#section-3.3.3
https://tools.ietf.org/html/rfc7230#section-5.3.3
https://tools.ietf.org/html/rfc7235#section-4.4

It's not working properly right now though, I messed up something in Gun. I'll get back to you.

There's some more issues with the way it currently is done, what would work best would be to change apns_connection from a gen_server to gen_statem and have different states like wait_for_up, wait_for_connect_response, connected, wait_for_reconnect and so on as needed.

Pushed the most up to date version I got. I can confirm it is working in my customer's test environment.  I will try to rework it into a gen_statem next week if there are no objections. And will also issue a new Gun release with some of the issues I worked around in the current iteration of this PR through configuration.

I like the idea of having the apns_connection processes being a state machine instead of a pure gen_server, thanks for the contribution!

I've just pushed the commit converting apns_connection to a gen_statem. If you can give that a quick review on the style that'd be much appreciated. I've cleanly separated the different steps in establishing the connection, including some states that immediately transition to the next so they won't receive any event other than the internal one that is expected. I like it as it separates the different connection steps but opinions may vary. The handle_common/5 function takes care of all common events.
The tests currently fail because mocking rules need to be heavily updated, and I have not tested sending actual push notifications yet, that'll be for tomorrow. I also noticed some additional things that could be improved.
If you like it I'll continue polishing and cleaning up in the next week or two.

I have taken a look and I like the approach you are following. Thanks for the effort

I believe the changes are ready for a full review. I still need to rebase, but that can be done once I address any of the comments you may have.

@essen I think your changes are fine, thanks for the huge effort.
If there are no more changes you can remove the WIP label and rebase, then we will merge it :)

Will do tomorrow!

Rebased into two commits, reverting to Gun and adding CONNECT.

@essen thanks for the contribution!

Cheers. Please ping once a release is up!


[Stacked Borrows] Recent miri reports failed retag converting a BitSlice to a BitSpan

Not 100% sure how this would be fixed, it appears to be due to pulling a field pointer out of the ZST slice stored in BitSpan. However, due to the comment on the _mem field, this looks like it may be UB to do any other way as well. Feel free to close this if this is considered out-of-scope.
The full error I'm getting (running just miri):

Miri Output
cargo +nightly miri test --features atomic,serde,std -q --lib --tests
Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... done

running 149 tests
...error: Undefined Behavior: trying to retag from <488660> for SharedReadOnly permission at alloc191983[0x0], but that tag does not exist in the borrow stack for this location
    --> src/ptr/single.rs:776:3
     |
776  |         (*self.ptr.to_const()).load_value().get_bit::<O>(self.bit)
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |         |
     |         trying to retag from <488660> for SharedReadOnly permission at alloc191983[0x0], but that tag does not exist in the borrow stack for this location
     |         this error occurs as part of retag at alloc191983[0x0..0x1]
     |
     = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
     = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
help: <488660> would have been created here, but this is a zero-size retag ([0x0..0x0]) so the tag in question does not exist anywhere
    --> src/slice.rs:1563:30
     |
1563 |         BitSpan::from_bitslice_ptr(self)
     |                                    ^^^^
     = note: backtrace:
     = note: inside `ptr::single::BitPtr::<wyz::Const, u8>::read` at src/ptr/single.rs:776:3
note: inside closure at src/slice/iter.rs:578:39
    --> src/slice/iter.rs:578:39
     |
578  |         self.range.next().map(|bp| unsafe { bp.read() })
     |                                             ^^^^^^^^^
     = note: inside `std::option::Option::<ptr::single::BitPtr<wyz::Const, u8>>::map::<bool, [closure@src/slice/iter.rs:578:25: 578:29]>` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:929:29
note: inside `<slice::iter::BitValIter<u8, order::Lsb0> as std::iter::Iterator>::next` at src/slice/iter.rs:578:3
    --> src/slice/iter.rs:578:3
     |
578  |         self.range.next().map(|bp| unsafe { bp.read() })
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: inside `<std::iter::Map<slice::iter::BitValIter<u8, order::Lsb0>, [closure@src/slice/traits.rs:384:39: 384:42]> as std::iter::Iterator>::next` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/iter/adapters/map.rs:103:9
     = note: inside `std::fmt::DebugList::entries::<i32, std::iter::Map<slice::iter::BitValIter<u8, order::Lsb0>, [closure@src/slice/traits.rs:384:39: 384:42]>>` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/builders.rs:642:22
note: inside `slice::traits::<impl std::fmt::Display for slice::BitSlice<u8>>::fmt` at src/slice/traits.rs:383:3
    --> src/slice/traits.rs:383:3
     |
383  | /         fmt.debug_list()
384  | |             .entries(self.iter().by_vals().map(|b| if b { 1 } else { 0 }))
     | |__________________________________________________________________________^
note: inside `array::traits::<impl std::fmt::Display for array::BitArray<u8>>::fmt` at src/devel.rs:21:5
    --> src/devel.rs:21:5
     |
21   |                   core::fmt::$fmt::fmt(self.as_bitslice(), fmt)
     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
    ::: src/array/traits.rs:261:1
     |
261  | / easy_fmt! {
262  | |     impl Binary
263  | |     impl Display
264  | |     impl LowerHex
...    |
267  | |     for BitArray
268  | | }
     | |_- in this macro invocation
note: inside `array::traits::<impl std::fmt::Debug for array::BitArray<u8>>::fmt` at src/array/traits.rs:257:3
    --> src/array/traits.rs:257:3
     |
257  |         Display::fmt(self, fmt)
     |         ^^^^^^^^^^^^^^^^^^^^^^^
     = note: inside `std::fmt::write` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:1202:17
     = note: inside `<std::string::String as std::fmt::Write>::write_fmt` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:192:9
     = note: inside `std::fmt::format::format_inner` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/fmt.rs:612:9
     = note: inside closure at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/fmt.rs:616:34
     = note: inside `std::option::Option::<&str>::map_or_else::<std::string::String, [closure@std::fmt::format::{closure#0}], for<'r> fn(&'r str) -> <str as std::borrow::ToOwned>::Owned {<str as std::borrow::ToOwned>::to_owned}>` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/option.rs:1023:21
     = note: inside `std::fmt::format` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/fmt.rs:616:5
note: inside `array::tests::format::render` at /home/jwiesmore/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/macros.rs:118:19
    --> src/array/tests.rs:152:16
     |
152  |         let render = format!("{:?}", BitArray::<u8, Lsb0>::ZERO);
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside closure at src/array/tests.rs:151:2
    --> src/array/tests.rs:151:2
     |
150  |       #[test]
     |       ------- in this procedural macro expansion
151  | /     fn render() {
152  | |         let render = format!("{:?}", BitArray::<u8, Lsb0>::ZERO);
153  | |         assert!(render.starts_with(&format!(
154  | |             "BitArray<u8, {}>",
...    |
174  | |         );
175  | |     }
     | |_____^
     = note: this error originates in the macro `easy_fmt` which comes from the expansion of the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)

note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace

error: aborting due to previous error

error: test failed, to rerun pass '--lib'
error: Recipe `miri` failed on line 92 with exit code 1

Every now and then, Miri decides that my attempts to construct an empty range pointer are invalid. The relevant line is

help: <488660> would have been created here, but this is a zero-size retag ([0x0..0x0]) so the tag in question does not exist anywhere

I'll double check what pointers are being created here; BitArray in particular loves to cause me trouble about this when it shouldn't ever be creating any pointers to less than a full element. Thank you for the report.

Just tried this on macis aarch64 as I was looking into miror erros in a downstream crate. Was there any conclusion here?
Miri output:
test array::tests::format::render ... error: Undefined Behavior: trying to retag from <190198> for SharedReadOnly permission at alloc6140[0x0], but that tag does not exist in the borrow stack for this location
    --> src/ptr/single.rs:776:3
     |
776  |         (*self.ptr.to_const()).load_value().get_bit::<O>(self.bit)
     |         ^^^^^^^^^^^^^^^^^^^^^^
     |         |
     |         trying to retag from <190198> for SharedReadOnly permission at alloc6140[0x0], but that tag does not exist in the borrow stack for this location
     |         this error occurs as part of retag at alloc6140[0x0..0x1]
     |
     = help: this indicates a potential bug in the program: it performed an invalid operation, but the Stacked Borrows rules it violated are still experimental
     = help: see https://github.com/rust-lang/unsafe-code-guidelines/blob/master/wip/stacked-borrows.md for further information
help: <190198> would have been created here, but this is a zero-size retag ([0x0..0x0]) so the tag in question does not exist anywhere
    --> src/slice.rs:1579:30
     |
1579 |         BitSpan::from_bitslice_ptr(self)
     |                                    ^^^^
     = note: BACKTRACE (of the first span):
     = note: inside `ptr::single::BitPtr::<wyz::Const, u8>::read` at src/ptr/single.rs:776:3: 776:25
note: inside closure
    --> src/slice/iter.rs:578:39
     |
578  |         self.range.next().map(|bp| unsafe { bp.read() })
     |                                             ^^^^^^^^^
     = note: inside `std::option::Option::<ptr::single::BitPtr<wyz::Const, u8>>::map::<bool, {closure@src/slice/iter.rs:578:25: 578:29}>` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1072:29: 1072:33
note: inside `<slice::iter::BitValIter<'_, u8, order::Lsb0> as std::iter::Iterator>::next`
    --> src/slice/iter.rs:578:3
     |
578  |         self.range.next().map(|bp| unsafe { bp.read() })
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: inside `<std::iter::Map<slice::iter::BitValIter<'_, u8, order::Lsb0>, {closure@src/slice/traits.rs:384:39: 384:42}> as std::iter::Iterator>::next` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/iter/adapters/map.rs:104:9: 104:25
     = note: inside `std::fmt::DebugList::<'_, '_>::entries::<u8, std::iter::Map<slice::iter::BitValIter<'_, u8, order::Lsb0>, {closure@src/slice/traits.rs:384:39: 384:42}>>` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/builders.rs:694:22: 694:29
note: inside `slice::traits::<impl std::fmt::Display for slice::BitSlice<u8>>::fmt`
    --> src/slice/traits.rs:383:3
     |
383  | /         fmt.debug_list()
384  | |             .entries(self.iter().by_vals().map(|b| b as u8))
     | |____________________________________________________________^
note: inside `array::traits::<impl std::fmt::Display for array::BitArray<u8>>::fmt`
    --> src/devel.rs:21:5
     |
21   |                   core::fmt::$fmt::fmt(self.as_bitslice(), fmt)
     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
    ::: src/array/traits.rs:261:1
     |
261  | / easy_fmt! {
262  | |     impl Binary
263  | |     impl Display
264  | |     impl LowerHex
...    |
267  | |     for BitArray
268  | | }
     | |_- in this macro invocation
note: inside `array::traits::<impl std::fmt::Debug for array::BitArray<u8>>::fmt`
    --> src/array/traits.rs:257:3
     |
257  |         Display::fmt(self, fmt)
     |         ^^^^^^^^^^^^^^^^^^^^^^^
     = note: inside `core::fmt::rt::Argument::<'_>::fmt` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/rt.rs:142:9: 142:40
     = note: inside `std::fmt::write` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:1120:17: 1120:40
     = note: inside `<&mut std::string::String as std::fmt::Write::write_fmt::SpecWriteFmt>::spec_write_fmt` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:211:17: 211:34
     = note: inside `<std::string::String as std::fmt::Write>::write_fmt` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:215:9: 215:34
     = note: inside `std::fmt::format::format_inner` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/fmt.rs:612:9: 612:31
     = note: inside closure at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/fmt.rs:616:34: 616:52
     = note: inside `std::option::Option::<&str>::map_or_else::<std::string::String, {closure@std::fmt::format::{closure#0}}, for<'a> fn(&'a str) -> <str as std::borrow::ToOwned>::Owned {<str as std::borrow::ToOwned>::to_owned}>` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/option.rs:1173:21: 1173:30
     = note: inside `std::fmt::format` at /.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/fmt.rs:616:5: 616:87
note: inside `array::tests::format::render`
    --> src/array/tests.rs:152:16
     |
152  |         let render = format!("{:?}", BitArray::<u8, Lsb0>::ZERO);
     |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside closure
    --> src/array/tests.rs:151:13
     |
150  |     #[test]
     |     ------- in this procedural macro expansion
151  |     fn render() {
     |                ^
     = note: this error originates in the macro `easy_fmt` which comes from the expansion of the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)

Have people tried running this under Tree Borrows yet? I'm not sure this is generally legal under SB, but with TB's lack of provenance narrowing I think this might become legal.

Just given the unit tests a spin with tree borrows and I get different errors:
test domain::tests::domain ... error: Undefined Behavior: write access through <732191> is forbidden
    --> /Users/pcwizz/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/mem/mod.rs:922:9
     |
922  |         ptr::write(dest, src);
     |         ^^^^^^^^^^^^^^^^^^^^^ write access through <732191> is forbidden
     |
     = help: this indicates a potential bug in the program: it performed an invalid operation, but the Tree Borrows rules it violated are still experimental
     = help: the accessed tag <732191> is a child of the conflicting tag <731818>
     = help: the conflicting tag <731818> has state Frozen which forbids this child write access
help: the accessed tag <732191> was created here
    --> src/access.rs:48:3
     |
48   |         self.fetch_and(!mask.into_inner(), Ordering::Relaxed)
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: the conflicting tag <731818> was created here, in the initial state Frozen
    --> src/ptr/span.rs:527:3
     |
527  |         &*self.into_bitslice_ptr()
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
     = note: BACKTRACE (of the first span):
     = note: inside `std::mem::replace::<u8>` at /Users/pcwizz/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/mem/mod.rs:922:9: 922:30
     = note: inside `std::cell::Cell::<u8>::replace` at /Users/pcwizz/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cell.rs:473:9: 473:61
     = note: inside `<std::cell::Cell<u8> as radium::Radium>::fetch_and` at /Users/pcwizz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/radium-0.7.0/src/lib.rs:554:13: 554:45
note: inside `<std::cell::Cell<u8> as access::BitAccess>::clear_bits`
    --> src/access.rs:48:3
     |
48   |         self.fetch_and(!mask.into_inner(), Ordering::Relaxed)
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `domain::PartialElement::<'_, wyz::Const, std::cell::Cell<u8>, order::Lsb0>::store_value_aliased`
    --> src/domain.rs:887:14
     |
887  |         let prev = this.clear_bits(self.mask);
     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `domain::tests::domain`
    --> src/domain.rs:1056:14
     |
1056 |         assert_eq!(partial.store_value_aliased(!0), 0);
     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside closure
    --> src/domain.rs:1002:13
     |
1001 |     #[test]
     |     ------- in this procedural macro expansion
1002 |     fn domain() {
     |                ^
     = note: this error originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info)


Empty passwords for http proxy is forbidden

Hello,
unfortunately the latest version broke our setup since it suddenly does not allow empty proxy passwords.
We are using an http proxy without any authentication. This is now causing this error:
1 error(s) found in the Dynakube
 1. The DynaKube's specification has an invalid Proxy password value set. Make sure you don't use forbidden characters: space, apostrophe, backtick, comma, ampersand, equals sign, plus sign, percent sign, backslash.): error when creating "dynakube.new.yaml": admission webhook "webhook.dynatrace.com" denied the request:

This is caused by this Regex:
https://github.com/Dynatrace/dynatrace-operator/blob/94ca5ca11138aaeddf5b778cbf96a4d11c95bfaa/src/webhook/validation/proxy_url.go#L65-L79
Please fix this by allowing empty proxy passwords.

Fixed in v0.7.1


need to intergrate with readthedocs.org

to aid in documentation of the project integrating the project with readthedocs.org would be helpful

the project appearers integrated but i'm not certian,
TESTING REQUIRED

add a quickstart guide to your documentation. Push the changes, and check that they go live.
Read the contents of the .readthedocs.yml file in your repository. What is it doing?
[optional] Read more about Sphinx and Read the Docs.


For in loop over Arrays breaks when using JS libraries which extend the native

The google platform api, cb=gapi.loaded_0 script fails and throws an error:
Uncaught TypeError: f.indexOf is not a function

on line 206 when the native Array has been extended. The code in question splits a string into an array, then iterates through the array using
for(var g in c) {
  f = c[g];
  f.indexOf("plus.");
}

This will break if the Array prototype has been extended as it will loop through all the prototypes, which is the case with some javascript libraries (eg: mootools). Changing the code to check hasOwnProperty, or using a regular for loop would fix it.

The same for me. Do you know any quick fix for that?

Taking a look at the bug and hope to have a fix soon.
In the meantime, you may be able to work around it with an instance method:
Function.prototype.indexOf = function(ignored){return -1}
Give it a try and let us know whether that helps.


stuck at joining nodes to the master node

What happened:

What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Pharos version (use pharos --version):
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release; both for the client and for the used nodes):
Others:

cluster.yml:

@Harold2017 we need more information.

@jakolehm
detailed:
    xxx.xxx.xxx.xxx: [preflight] Running pre-flight checks
    xxx.xxx.xxx.xxx:        [WARNING DirAvailable--etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
    xxx.xxx.xxx.xxx:      [WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service'
    xxx.xxx.xxx.xxx:        [WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service'
    xxx.xxx.xxx.xxx: [discovery] Trying to connect to API Server "localhost:6443"
    xxx.xxx.xxx.xxx: [discovery] Created cluster-info discovery client, requesting info from "https://localhost:6443"
    xxx.xxx.xxx.xxx: [discovery] Trying to connect to API Server "localhost:6443"
    xxx.xxx.xxx.xxx: [discovery] Created cluster-info discovery client, requesting info from "https://localhost:6443"
    xxx.xxx.xxx.xxx: [discovery] Failed to request cluster info, will try again: [an error on the server ("") has prevented the request from succeeding (get configmaps cluster-info)]
    xxx.xxx.xxx.xxx: [discovery] Failed to request cluster info, will try again: [an error on the server ("") has prevented the request from succeeding (get configmaps cluster-info)]
    xxx.xxx.xxx.xxx: [discovery] Failed to request cluster info, will try again: [an error on the server ("") has prevented the request from succeeding (get configmaps cluster-info)]
    xxx.xxx.xxx.xxx: [discovery] Failed to request cluster info, will try again: [an error on the server ("") has prevented the request from succeeding (get configmaps cluster-info)]

@jakolehm
after recreate 3 new instances for several times, the cluster is created successfully now..
it happens at least 3 times.. every time i can make it succeed by re-creating instances but i have no idea why it kept stuck at some point...
please close this issue if you think it's not a problem.
thanks!

ok, i think i found the reason... the limited PC resources i used (aws micro ec2 instance) is not enough for all components running smoothly... just use medium as master node and small as work node, all annoying problems disappear...


[kernel] Fix excessive index calculation logic

Currently we are generating excessive index calculation logic due to affine map usage. This is suspected to cause low performance. Investigate it and avoid such.

As a first step, if we have various boundary checks, we need to see if we can avoid them by setting alignments and/or compiler hints.


Invest modal transition animations

Currently there is no animation when transitioning between one view to the next. Would be awesome to spice it up.

Added some basic fade in/out animations. going to close this for now.


Node rollup jest 2

Codecov Report

:exclamation: No coverage uploaded for pull request base (msal-browser-v3@3a1e022). Click here to learn what that means.
The diff coverage is n/a.

Flag
Coverage Δ

*Carryforward flag

msal-common
85.32% <0.00%> (?)

msal-node
82.70% <0.00%> (?)

Carriedforward from b90d326

msal-react
94.82% <0.00%> (?)

node-token-validation
87.28% <0.00%> (?)

*This pull request uses carry forward flags. Click here to find out more.


No such file or directory, /vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php↵[line] 312

Hi,
I have installed and try to connect a Rest API with Post, but i am getting "No such file or directory, /vendor/guzzlehttp/guzzle/src/Handler/StreamHandler.php↵[line] 312".
Please tell me the solution for the above issue.

Without further context I am not sure we can help. Have you checked if the file is there? What causes the error? Is autoloading correctly configured?

@manojsharma20 Can you post your request here? I guess the URI in the request is not set or does not exist.

Oh, I missed that comma...

Has anyone found a solution to this error, am having same issue

Can you please provide more context? Without your Guzzle setup we can't really help...

Hi, This error occured in my app because base_uri option was missing protocole. I hope it helps someone (and exception message should probably be corrected).

This issue was automatically classified as stale because it lacks information or cannot be reproduced.
If you think the issue is still valid and/or misclassified, please comment on the issue thread
and provide additional information (if possible).
Also, since the time maintainers can spend on the project is limited, please provide
a possible solution if possible, especially if it involves a platform that we cannot
test ourselves (Windows, very old/specific PHP versions, etc).
Issues marked as stale with no further activity will be marked as rotten
at some point and will automatically be closed within 14 days.
We do this so that we can focus on high priority issues. Thank you for your understanding.

This issue still exists when you try making installations of drupal 8 versions

In my case it was because I forgot to add my variables to .env file.


Options property clobbered by restangular

I have a resource which has a property named options. This property is being overwritten by restangular's options method on the restangular element. What should I do? For now i have commented out the options method in restangular.

+1 on this issue. I think you guys should prefix all your methods in a later release

+1

+1

That sounds like a possibly good idea. In my own REST library, I've actually put all the methods on the prototype so that they don't get broken like this.
There are a lot of things to take into account though if the method signatures are changed. It would probably required a 2.0 release.


Use "import * as ___" with a separate "export { ___ }" declaration

Use
import type * as factories from "./factories";
export type { factories };

instead of
export * as factories from "./factories";

A workaround because api-exporter does not support the one-liner export.
Fixes #742
Passed all the unit tests.

@krzkaczor Hi! Any chance there will be a new release soon containing this PR?


improvement Optimize get available mv logic to avoid unnecessary rewrite (#39734)

Proposed changes
commitId: 55ed1277
pr: https://github.com/apache/doris/pull/39734

run buildall


Load liblas and liblapack with a cling pragma

xtensor-blas requires blas and lapack runtimes.
For these runtimes to be loaded by cling when including an xtensor-blas header, we need to use
#pragma cling load("libblas")
#pragma cling load("liblapack")

Also, cling is confused by the two include paths #include "flens/cxxblas/foobar.h and #include <cxxblas/foobar.h>. This changes the CMakelist to use the latter only. Not using the former so that we don't need to modify the flens headers that we vendor.
Screenshot of xtensor-blas working in xeus-cling after this change:

cc @wolfv .


⚠ ClamAV has degraded performance

In 10f3054, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 107 ms

Resolved: ClamAV performance has improved in ea6a001 after 20 minutes.


fix: allow undefined properties in boxed values

see https://github.com/MrWolfZ/ngrx-forms/issues/186

It was a little bit more complicated, since the revive parameter of JSON.parse can't set undefined. Instead it removes the property if you return undefined.
There would be a way to still do it in that function, which is to listen for an empty ('') key that indicates the last call of that revive-function. In there you need to modify the whole object, so I decided to revive the undefined properties of the object outside of JSON.parse.
I noteced a test glitching around (fails sometimes but not always without changes):
 RadioTestComponent should select the correct option initially FAILED
Not sure if this is related to the PR.

I have found a different way of doing this, which may be a bit more performant even. I have simply added an option to deepEquals that allows to specify that undefined property values and missing properties should be treated the same. I have released that fix as version 6.3.1.


Lack of verbosity in verbose test display (environment variables)

When testing verbosly, we do display every program invocation that's being done, and its exit code.  As an example, I use a test output from #11926:
$ make -j8 test TESTS=test_provider_fallback V=1
make depend && make _tests
make[1]: Entering directory '/home/levitte/gitwrk/openssl.net/official/_build'
make[1]: Leaving directory '/home/levitte/gitwrk/openssl.net/official/_build'
make[1]: Entering directory '/home/levitte/gitwrk/openssl.net/official/_build'
( SRCTOP=../master \
  BLDTOP=. \
  PERL="/usr/bin/perl" \
  EXE_EXT= \
  /usr/bin/perl ../master/test/run_tests.pl test_provider_fallback )
04-test_provider_fallback.t ..
# The results of this test will end up in test-runs/test_provider_fallback
1..1
    # Subtest: ../../test/provider_fallback_test
    1..2
    ok 1 - test_fallback_provider
    ok 2 - test_explicit_provider
../../util/wrap.pl ../../test/provider_fallback_test => 0
ok 1 - running provider_fallback_test
ok
All tests successful.
Files=1, Tests=1,  1 wallclock secs ( 0.01 usr  0.00 sys +  0.15 cusr  0.02 csys =  0.18 CPU)
Result: PASS
make[1]: Leaving directory '/home/levitte/gitwrk/openssl.net/official/_build'

The line showing the program invocation is this:
../../util/wrap.pl ../../test/provider_fallback_test => 0

However, what is not displayed is that in test/recipes/04-test_provider_fallback.t, the environment variable OPENSSL_CONF is set to the NUL device (/dev/null on Unix).  In this case, that's a fairly small things, but there are other tests that rely on quite a few others, and it becomes a burden to remember which ones should be set (how many remember to set CTLOG_FILE=PATH/TO/test/ct/log_list.cnf when you should?).
So, verbose display of tests should display the important environment variables.

How do we decide in code which ones are important (we don't want to just printenv)?  Set something in test/run-tests.pl that OpenSSL::Test picks up on (an environment variable listing environment variable names, for example)?  Specify in the test recipes what environment variables are important for that one specifically?

How do we display those variables are their values?  Just list them as comments, like this?
# OPENSSL_MODULES=PATH/TO/providers
# CTLOG_FILE=PATH/TO/test/ct/log_list.cnf
../../util/wrap.pl ../../test/provider_fallback_test => 0

Or do we display them in command form, adapted for the command shell we expect, like this?

Unix:
OPENSSL_MODULES=PATH/TO/providers CTLOG_FILE=PATH/TO/test/ct/log_list.cnf  ../../util/wrap.pl ../../test/provider_fallback_test => 0

Windows:
SET OPENSSL_MODULES=PATH\TO\providers
SET CTLOG_FILE=PATH\TO\test/ct/log_list.cn
..\..\test/provider_fallback_test => 0

VMS:
DEFINE/USER OPENSSL_MODULES [.PATH.TO.providers]
DEFINE/USER CTLOG_FILE [.PATH.TO.test.ct]log_list.cnf
MCR [--.test]provider_fallback_test => 0

I'd suggest adding the variables listed below:
PATH
LD_LIBRARY_PATH
HARNESS_OSSL_PREFIX
OPENSSL_ENGINES
OPENSSL_CONF

These are the ones run_tests.pl already knows about:
https://github.com/openssl/openssl/blob/2b584ff372b2b25bb6801172bbeb90074b26f88c/test/run_tests.pl#L30-L34

@beldmit suggested:

PATH
LD_LIBRARY_PATH
HARNESS_OSSL_PREFIX

I don't consider them "important" in that way.  And specifically LD_LIBRARY_PATH is already take care of by wrap.pl, so really doesn't need being mentioned.

OPENSSL_ENGINES
OPENSSL_CONF

Yup, fully agree (@mattcaswell mentions them as well)

Well, HARNESS_OSSL_PREFIX is used for test purposes and is set in tests.

Well, HARNESS_OSSL_PREFIX is used for test purposes and is set in tests.

The tests will not behave differently because of this variable, so it's not important in that sense.

All OpenSSL runtime environment variables are now documented (you're welcome :).  So display what is in doc/man7/openssl-env.pod, and perhaps the pages it references.  Then include appropriate sys values.

No, @richsalz. I'm after the actual values used with each program invocation.

Yes, I know. I pointed you to a list of openssl env vars (unless someone added a new getenv calls since that page was written).  Clearly you print the name and value. :)

Ah, sorry for misreading you.
For the sake of maintainability, I would prefer something that lists those variables in code, at a minimum in the same spot those variables are defined.

I remember running into the need to set BLD_TOP and SRC_TOP when regenerating ssl-test inputs, too.

I remember running into the need to set BLD_TOP and SRC_TOP when regenerating ssl-test inputs, too.

Thanks.  They are usually not important anywhere else, 'cause most programs we run do not need to build paths, so this is a bit of a special case, but worth keeping in mind none the less.

For the sake of maintainability, I would prefer something that lists those variables in code, at a minimum in the same spot those variables are defined.

@levitte to restate the conversation, you had asked

how do we decide in code which ones are important

and that's what Rich was answering with his list of runtime environment variables

and that's what Rich was answering with his list of runtime environment variables

[sigh] yeah.  I'm looking at having a mechanism that dynamically registers what envvars are modified, rather than having to maintain yet another list of stuff somewhere deep in our code.

(mind you, I had an idea or two on the matter lately)

Marking as inactive, to be closed at the end of 3.4  dev, barring further input


Allow more data from matches and new operators to extract this data

MODSEC-143: It would be nice to get a list of all the matches from an operator within a collection.  Additionally more info on each match would be nice (ie location in target, etc) and operators to flatten this data and extract this and other data would be helpful.  Probably easier if this was all exported so Lua could get at it easily.
Some ideas for metadata to store:

Offset of each match
How many times a particular pattern matched
Order of the match (ie did a "select" match prior to a "from"# Use a huge prequal static list of values

Match a huge list of static phrases compiled from the rules in use
SecRule REQUEST_BODY "@pmf hugePrequalList.dat" "metacol:PM,..."
Now check if "select" matched within 30 bytes of "from"
SecScript "foo.lua" "..."
Rules and/or Lua would then be able to see if "select" was matched prior to
"from" and within 30 bytes of each other, then perform some other more expensive matches
if all this checked out.
The examples above suck, but the idea here is to be able to optimize matches.

Within v3.0 the offset of the matches are registered as part of the logging allowing the user to easily identify where the match came from. Including all the transformations applied on the content.


[BLAS] change reference iamin to avoid nan comparison issues/warnings

Description
Change iamin reference implementations to avoid "tautological constant compare" warnings and also correctly/consistently handle NaN in input.
Fixes #157
Checklist
All Submissions

[x] Do all unit tests pass locally? Attach a log.
[x] Have you formatted the code using clang-format?

Bug fixes

[ ] Have you added relevant regression tests?
[x] Have you included information on how to reproduce the issue (either in a
GitHub issue or in this PR)?

It would be possible and probably desirable to add tests with NaN input, but currently the comparisons would give spurious failures on GPU because of similar issues in oneMKL.
test.txt

@andrewtbarker Do you know if sycl::is_nan() works as expected? I mean, if it was always returning false like std::is_nan(), we would see similar warnings, right?

I did some experiments and sycl::isnan always behaved as expected for me, compared with std::isnan which did not. I can't say my tests were exhaustive but it seems fine.

/intelci: run

/intelci: run


virus masked human genome

Do you have plan to create the reference genome with virus masked?

Thanks @xiaoli-dong, I am also curious about accuracy with viral genomes, and I plan to investigate.
My expectation is that the default (human-t2t-hla) reference genome will already perform well for viruses, but I will reply to this issue once I have made some progress. Thanks for reminding me.

Hi @xiaoli-dong,
My testing shows that a small number of sequences (below 0.00% of viral RefSeq 150mers) are not retained when using the default human-t2t-hla reference. These almost exclusively belong to Herpesvirales.
To eliminate viral retention, I have made a new masked reference that masks 0.18% of the human genome. I will make this available in coming days and update this issue when ready.

Apologies for delay, I plan to publish virus masked databases imminently. In the process of building them I made improvements to the masking protocol, which have been committed to the main branch.
As well as viral RefSeq, I will be making available a database masked against the phage genome collection produced by members of Andrew Millard's lab: https://millardlab.org/phage-genomes-jan-2024

I have added two human genomes masked against viral and phage genomes (link to readme):

human-t2t-hla.rs-viral-202401_ml-phage-202401 (human masked against virus and phage)
human-t2t-hla.argos-bacteria-985_rs-viral-202401_ml-phage-202401 (human masked against bacteria, virus and phage)

With the latest version of Hostile, you can use these by running e.g.
hostile clean --index human-t2t-hla.rs-viral-202401_ml-phage-202401 --fastq1 reads.fastq.gz

The first time you run this command, the index will be downloaded.
Feedback welcome

Hi @bede,
In case it's of use, I can provide some feedback on the performance of hostile using the human-t2t-hla.argos-bacteria-985_rs-viral-202401_ml-phage-202401 reference. My sample comprises paired-end reads where I know the majority of them will be from respiratory syncytial virus A (RSVA), a herpesvirus.
My initial human (host) decontamination was performed with bowtie2 like so:
INDEX=GRCh38
bowtie2 \
    -x $INDEX \
    -1 sample_R1.fastq.gz -2 sample_R2.fastq.gz \
    --threads 12 \
    --un-conc-gz sample.host_unmapped.fastq.gz \
    --very-sensitive-local \
    1> /dev/null \
    2> >(tee R1399.bowtie2.log >&2)

mv sample.host_unmapped.fastq.1.gz sample.host_unmapped_1.fastq.gz
mv sample.host_unmapped.fastq.2.gz sample.host_unmapped_2.fastq.gz

Results:
255485 reads; of these:
  255485 (100.00%) were paired; of these:
    251866 (98.58%) aligned concordantly 0 times
    1599 (0.63%) aligned concordantly exactly 1 time
    2020 (0.79%) aligned concordantly >1 times
    ----
    251866 pairs aligned concordantly 0 times; of these:
      14 (0.01%) aligned discordantly 1 time
    ----
    251852 pairs aligned 0 times concordantly or discordantly; of these:
      503704 mates make up the pairs; of these:
        503331 (99.93%) aligned 0 times
        170 (0.03%) aligned exactly 1 time
        203 (0.04%) aligned >1 times
1.49% overall alignment rate

I ran hostile like so:
hostile clean --fastq1 R1399_trimmed_1.fastp.fastq.gz --fastq2 R1399_trimmed_2.fastp.fastq.gz --index human-t2t-hla.argos-bacteria-985_rs-viral-202401_ml-phage-202401 > log.json

Results:
[
    {
        "version": "1.1.0",
        "aligner": "bowtie2",
        "index": "human-t2t-hla.argos-bacteria-985_rs-viral-202401_ml-phage-202401",
        "options": [],
        "fastq1_in_name": "sample_R1.fastq.gz",
        "fastq1_in_path": "/Users/charles/Programs/hostile/sample_R1.fastq.gz",
        "fastq1_out_name": "sample_R1.clean_1.fastq.gz",
        "fastq1_out_path": "/Users/charles/Programs/hostile/sample_R1.clean_1.fastq.gz",
        "reads_in": 510970,
        "reads_out": 504656,
        "reads_removed": 6314,
        "reads_removed_proportion": 0.01236,
        "fastq2_in_name": "sample_R2.fastq.gz",
        "fastq2_in_path": "/Users/charles/Programs/hostile/sample_R2.fastq.gz",
        "fastq2_out_name": "sample_R1.clean_1.fastq.gz",
        "fastq2_out_path": "/Users/charles/Programs/hostile/sample_R2.clean_2.fastq.gz",
    }
]

After some renaming and comparing:
Total reads in bowtie2.host_unmapped_1.fastq.gz: 251866
Total reads in hostile.host_unmapped_1.fastq.gz: 252328
Unique reads in bowtie2.host_unmapped_1.fastq.gz: 130
Unique reads in hostile.host_unmapped_1.fastq.gz: 592
Common reads: 251736

I took the first read that was unique to each method and blasted them against the nt database. Results:

Manual bowtie2 with GRCh38: the read matched "Homo sapiens 3 BAC RP11-406M8 (Roswell Park Cancer Institute Human BAC Library) complete sequence"
hostile: equally best hit with a few of the same/essentially the same things, e.g. "PREDICTED: Pan paniscus interleukin 1 receptor associated kinase 4 (IRAK4), transcript variant X1, mRNA", "Homo sapiens 12 BAC RP11-210N13 (Roswell Park Cancer Institute Human BAC Library) complete sequence"

Thoughts: looks like both hostile and bowtie2 are retaining some host reads. hostile is discarding less reads as contamination, without further in-depth searching it's hard to say whether these are extra retained non-host reads or extra erroneously retained host reads.
I do note that the following is said in the Limitations section of the README:
Hostile prioritises retaining microbial sequences above discarding host sequences. If you strive to remove every last human sequence, other approaches may serve you better

But I just thought this might be useful nonetheless.
Cheers


Cannot access environment variables from config/database.yml in Rails app

I am having much the same problem described in this Stack question: Rails 4.2 database.yml not reading rbenv-vars variables
rbenv vars yields my SECRET_KEY_BASE as expected and I can access it from the rails console, but not from within database.yml.
I realise this may be a problem with the order in which Rails sets up its environment rather than a bug in rbenv-vars, but it would still be super-helpful if rbenv-vars could provide help on how to configure a Rails app so that they work together.
I'm using Rails 4.2.6 and Ruby 2.3.1.

Generally, database.yml should have access to environment variables. But, for the sake of clear communication, let's remember that database.yml doesn't evaluate itself; rather, the process that starts Rails loads database.yml and evaluates variables within it. So, my question for you is, who/what starts that process and how?
How are you starting your Rails app and determining that database.yml is broken? Are you using rails server, or bundle exec, or unicorn, or something else?  Thanks

Thanks a lot for the quick response.  My app is being run by Passenger/Apache, which is started as a Debian service.  Does that mean that rbenv is not a viable tool for this purpose?

No, that's just means that you have to teach Passenger to start your Rails app through rbenv, so rbenv plugins such as this one can have effect, and so that the correct local version of Ruby can be used:
PassengerDefaultRuby /home/repent/.rbenv/shims/ruby

If your RBENV_ROOT is custom or something other than $HOME/.rbenv of the user that the Passenger process runs at, then it needs to be reflected in the line above, and RBENV_ROOT also needs to be configured within Apache config file too (somehow).

Thanks!  I had PassengerRuby set to /home/repent/.rbenv/versions/2.3.1/bin/ruby within the Apache config for that particular app.  I can't remember where I took that from.  Anyway, switching to /home/repent/.rbenv/shims/ruby has fixed the problem.  I will post this info on that StackOverflow question.

Glad you solved it!


Uicatalog tweaks:  Sorted catagories, renamed ListAndCombos, tweaked Progress UI

I realized I never put the code in to sort catagories & scenarios. Tweaked name and description to ListAndCombos. made Progress UI prettier (in prep for more work  I'm going to do to it hopefully today).

I'm going to hold off accepting this PR as I add more to it, all within UI Catalog...


Failing spec:  CassandraSnapshotStoreSpec.SnapshotStore_should_not_load_a_snapshot_given_an_invalid_persistence_id

Currently failing on master/dev:  CassandraSnapshotStoreSpec.SnapshotStore_should_not_load_a_snapshot_given_an_invalid_persistence_id
http://petabridge-ci.cloudapp.net/viewLog.html?tab=buildLog&logTab=tree&filter=debug&guest=1&expand=all&buildId=1812#_focus=386

I've got a change to the tests to try and improve the stability of them (I'd like to see if not creating/tearing down the entire Cassandra Keyspace between tests helps since that's not the ideal thing to do). My change was based on Akka.Persistence and the related libraries being at 1.0.3. Looks like we upgraded to 1.0.4 while I was working on it and when I pull down those changes and try to run tests, I'm running into https://github.com/akkadotnet/akka.net/issues/1235.
My guess is that Akka.Persistence.Cassandra 1.0.4 is probably broken because of that bug (not just the tests). Once that gets figured out, I'll try applying changes again and we can see if that helps.


App is rejected in play store

@geordyvcErasmus My app is rejected in play store due to these permissions
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.RECEIVE_SMS"/>

@DennisMuchiri
Hello,
The library needs these permissions. I do not maintain this fork of the original repository anymore because of time constraints.
If you find why, you can always post it here. Other people could have the same issue.
Also a little extra information is always welcome.

sms length limit is 160 only. how to increase length

@DennisMuchiri Found any solutions for this?

@aruns2896 not yet...removed the lib from my code

@DennisMuchiri Did you got any other solution to implement this feature?


Fixed asan leak issues with RegexContext

If you don't copy in these comments, https://github.com/apache/trafficserver/pull/11164/files#diff-8b89b132c9c9eb8fa6f58b050dd7bd3c47d55fd217d00239f4e13e21b270d679R161 , somebody may say "oh, I can just make these thread_local!" six months from now.

Unfortunately, there is a race condition, if an object with static storage uses a DbgCtl object for the first time in its destructor.  (That requires checking if its tag matches the enabled tag regex.)  I think @cmcfarlen (persumably working in league with Satan) was able to generate a scenario like that.

Brian, were you going to change this so that all match requests will return false after the cleanup object is destroyed?

[approve ci autest]


Added Cropping, Permute, and multiple activation layers to Tensorflow.Keras

Layers added:
Cropping1D, Cropping2D, Cropping3D, Permute
ELU, SELU, Softmax, Softsign, Softplus, Exponential, Swish, Tanh, Hard Sigmoid

@KevinOfCathay Thanks for your contribution.
Can you fix the error: https://ci.appveyor.com/project/Haiping-Chen/tensorflow-net/builds/40114211/job/62cap3onelrktb5n ?


Room unreadCount not filtering the unread messages just for current user

What?
The unreadCount parameter on a room is returning the total unread messages (for all users in that room) instead on the unread messages for the currentUser only.
Environment

**PusherChatkit version: 1.8.3
**Xcode version: 11.3.1
**Swift version: 5
**Platform(s) running PusherChatkit: iOS

Hi @victormihaita
Could we ask you to get in touch with<EMAIL_ADDRESS>please. If possible, provide steps to reproduce or some samples from your testing showing the expected and actual output?
Thanks

I wrote an email. Thanks.

This issue has been solved by support.


Pointer double free in OpenSSL 1.0.2n err.c

Apologies if this is dealt with somewhere, but a search of issues found no mention of a crash by double free of a pointer as described below.
OS/X 10.3.1
XCode 9.2
cURL 7.57.0 using OpenSSL 1.0.2n
Synchronisation functions are set by:
  CRYPTO_set_locking_callback(&lockCallback);
  CRYPTO_set_id_callback(&threadIdCallback);

We maintain a static array (number of elements set by call to CRYPTO_num_locks()) mutexes for OpenSSL's use.
We experience a crash in openssl-1.0.2n/crypto/mem.c CRYPTO_free(void* str) running our own stress tests for our own software. To that end we have turned on the CRYPT debugging malloc/free functions and built with LEVITTE_DEBUG_MEM defined.
This illustrates what we have found:
LEVITTE_DEBUG_MEM:         > 0x0x7f9e0a4303a0 (600) err.c:1036 in thread 0x700027859000
INFO    Looks like file err.c:453 in thread 0x700036886000 already owns mux 1. Thread 0x700027859000 blocking.
LEVITTE_DEBUG_MEM:         > 0x0x7f9e0a67e810 (600) err.c:1036 in thread 0x70003c898000
INFO    Looks like file err.c:453 in thread 0x700036886000 already owns mux 1. Thread 0x70003c898000 blocking.
LEVITTE_DEBUG_MEM:         > 0x0x7f9e0a5068b0 (176) lhash.c:138 in thread 0x700036886000
LEVITTE_DEBUG_MEM:         > 0x0x7f9e0a5069d0 (128) lhash.c:140 in thread 0x700036886000
INFO    err.c:453 in thread 0x700027859000 acquired mux 1 from thread 0x700036886000.
INFO    err.c:453 in thread 0x70003c898000 acquired mux 1 from thread 0x700036886000.
LEVITTE_DEBUG_MEM:         > 0x0x7f9e0a679f90 (24) lhash.c:210 in thread 0x700036886000
LEVITTE_DEBUG_MEM:         < 0x0x7f9e0a506290 err.c:655 in thread 0x700036886000`
LEVITTE_DEBUG_MEM:         < 0x0x7f9e0a4303a0 err.c:655 in thread 0x700027859000
LEVITTE_DEBUG_MEM:         > 0x0x7f9e0a664600 (72) dso_lib.c:106 in thread 0x700036886000
INFO    Looks like file eng_table.c:259 in thread 0x700036886000 already owns mux 30. Thread 0x700027859000 blocking.
LEVITTE_DEBUG_MEM:         < 0x0x7f9e0a4303a0 err.c:655 in thread 0x70003c898000
unit_tests(10949,0x70003c898000) malloc: *** error for object 0x7f9e0a4303a0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Assuming (as appears to be the case) LEVITTE_DEBUG_MEM indicates memory allocation by '>' and memory freed by '<' we have the following (with our additional debugging added):
Memory address 0x7f9e0a4303a0 is allocated in thread 0x700027859000. Then it is
is first freed in thread 0x700027859000. Then again in thread 0x70003c898000 where upon we segfault (as we should with a double free).
We are going to move up to OpenSSL 1.1 and depending upon the results will not be investigating the crash above further - except to provide additional information as you request.
If we find the issue in OpenSSL 1.1 we will resume our analysis there.
Feel free to direct us to the fix if it has already been made!

Hmmm...not aware of any fixes made in this area, or any other reports of this. The 1.1.0 threading approach is quite different so it is quite likely that you will not experience this issue there (assuming the problem is in OpenSSL code).

Is this a dynamically loaded ENGINE?

Forgive my belated response. The emails finished up in junk and tis a long time since I checked.
Our CURL source appears to define this:
/* Define to 1 if you have the `ENGINE_load_builtin_engines' function. */
#define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1
Presumably then a dynamically loaded engine is only there if it is bundled with OpenSSL?

1.0.2 branch is out of regular support. Closing.


x/net/http2: TestTransportRetryAfterGOAWAY failures on dragonfly and android builders

--- FAIL: TestTransportRetryAfterGOAWAY (1.02s)
    transport_test.go:3626: server1 got [FrameHeader HEADERS flags=END_STREAM|END_HEADERS stream=1 len=32]
    transport_test.go:3676: timed out
    transport_test.go:3650: server2 got [FrameHeader HEADERS flags=END_STREAM|END_HEADERS stream=1 len=32]
FAIL
FAIL	golang.org/x/net/http2	23.262s

2020-10-31T05:49:03-ff519b6/dragonfly-amd64
2020-10-31T05:49:03-ff519b6/dragonfly-amd64-5_8
2020-10-29T22:17:08-28c70e6/dragonfly-amd64
2020-10-20T06:53:57-d65d470/android-amd64-emu
2020-10-16T16:51:38-7b1cca2/dragonfly-amd64-5_8
2020-10-09T03:24:41-dbdefad/dragonfly-amd64-5_8
2020-09-30T14:50:03-4acb6c0/dragonfly-amd64
2020-09-27T03:25:02-5d4f700/dragonfly-amd64
2020-09-27T03:25:02-5d4f700/dragonfly-amd64-5_8
2020-09-04T19:48:48-62affa3/dragonfly-amd64-5_8
2020-08-22T12:43:28-c890458/dragonfly-amd64
2020-05-28T22:51:25-3c3fba1/dragonfly-amd64
2020-05-20T00:47:42-59133d7/dragonfly-amd64
2020-05-20T00:47:42-59133d7/dragonfly-amd64-5_8
2020-05-06T14:57:44-7e3656a/dragonfly-amd64-5_8
2020-04-25T23:01:54-ff2c4b7/android-386-emu
2019-12-06T10:30:17-1ddd1de/android-386-emu
2019-11-05T08:49:25-a882066/android-386-emu
2019-11-05T08:49:25-a882066/android-amd64-emu
2019-09-21T01:59:27-1a5e07d/android-386-emu
2019-08-27T16:04:01-ba9fcec/android-386-emu
2019-08-13T14:13:03-74dc4d7/android-amd64-emu
CC @neild @bradfitz @tombergan @empijei

cc @fraenkel

All we can do is bump the timeout in the test to deal with slower boxes.

Looks like that part of the test is here?
https://github.com/golang/net/blob/ff519b6c91021e6316e1df005bc19f266994ddda/http2/transport_test.go#L3669-L3678
Is the failure mode of this test a deadlock, or just a moderately-long delay? If the former, I'd be inclined to remove the select and time.After case entirely: if the test deadlocks, you ideally want a goroutine dump (which is exactly what a timed-out test would give you).

So its neither. All the test is doing is sending a single request, where the first server, responds with a GOAWAY and the client retries the request which goes to the second server that processes it.
Yes, we can ditch the timing aspect since its just there to bound how long 2 requests should take.


Catalog update [infoscale-operator] [v4.15,v4.16,v4.14,v4.18,v4.12,v4.17,v4.13]

Remove infoscale-operator stale directory from Github

@Allda thanks for working on this pr.
[Veritas Technologies LLC] team is asking the status of it. They need to  migrate their project to a different organisation in this month, so they hope this can be finished before that.

@Allda thanks for working on this pr. [Veritas Technologies LLC] team is asking the status of it. They need to migrate their project to a different organisation in this month, so they hope this can be finished before that.

The bug was fixed the PR was successfully processed and the given operator was removed.