ENOENT while running vite preview

Describe the bug
I've just created a new project, but when I try to run "npm run serve" on the project, Vite throws an exception about the "dist" directory not being present.
Manually creating the "dist" directory solves the problem.
Reproduction

Create a new project with npm init @vitejs/app, using the vanilla template
Run npm install
Run npm run serve

System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
  System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz
    Memory: 11.61 GB / 23.92 GB
  Binaries:
    Node: 14.16.1 - C:\Program Files\nodejs\node.EXE
    npm: 6.14.12 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.906.0), Chromium (90.0.818.46)
    Internet Explorer: 11.0.19041.1
  npmPackages:
    vite: ^2.2.3 => 2.2.3

Used package manager: npm
Logs

> npm run serve

><EMAIL_ADDRESS>serve E:\vite-project
> vite preview

error when starting preview server:
Error: ENOENT: no such file or directory, scandir 'E:\vite-project\dist'
    at Object.readdirSync (fs.js:1021:3)
    at list (E:\vite-project\node_modules\vite\dist\node\chunks\dep-994e0558.js:59821:17)
    at Object.sirv (E:\vite-project\node_modules\vite\dist\node\chunks\dep-994e0558.js:60119:3)
    at preview (E:\vite-project\node_modules\vite\dist\node\cli.js:13803:32)
    at async CAC.<anonymous> (E:\vite-project\node_modules\vite\dist\node\cli.js:13971:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>serve: `vite preview`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\ipid\AppData\Roaming\npm-cache\_logs\2021-04-28T08_44_09_345Z-debug.log

Before submitting the issue, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the docs.
[x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[x] Provide a description in this issue that describes the bug.
[x] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[x] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

You need to run build before you can run preview, since it depends on that output. This is expected.

Thank you so much. I've just realized that this is not a bug.


JSX tag highlighting broken

VSCode Version: 1.30
OS Version: Mac OS 10.14.2

Previously when selecting an opening tag in any JSX only the corresponding closing tag would be highlighted. As of version 1.30 (November) ALL corresponding JSX tags are highlighted across the file. I.e If you select any opening View tag for example, all View tags across the file are highlighted. It's almost like the tags are being treated like variables.
Steps to Reproduce:

Open any JS file with JSX, in my case I was working with React Native JSX
Click on any opening tag

Does this issue occur when all extensions are disabled?: Yes

VSCodeInsiders Version: 1.31.0-insider (user setup)
Windows 10 Pro:  10.0.17763 Build 17763

I am experiencing the same issue.
When highlighting any tags in the jsx file vscode seems to select all corresponding tags that are the same.

I have the same issue. I am using Ubuntu 18.10.

I have the same issue when working with a plain react app. I am using Ubuntu 18.10 .

Confirming the same! Tried disabling/uninstalling all extensions still this issue is happening. For now i have rolled back to 1.29.1


Issue with IOS 16.5.1

Anybody else having issues with the plugin on the latest IOS version (16.5.1)?

Could you specify more, what type of issue do you have? If there are errors, also send them

here's the full error message from xcode -
NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: Whisper.Native.whisper_progress_callback::Invoke
at Whisper.WhisperWrapper.InferenceWhisper (System.Single[] samples, Whisper.Native.WhisperNativeParams param) [0x00000] in <00000000000000000000000000000000>:0
at Whisper.WhisperWrapper.GetText (System.Single[] samples, System.Int32 frequency, System.Int32 channels, Whisper.WhisperParams param) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
at Whisper.WhisperWrapper.GetTextAsync (System.Single[] samples, System.Int32 frequency, System.Int32 channels, Whisper.WhisperParams param) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
at Whisper.WhisperManager.GetTextAsync (System.Single[] samples, System.Int32 frequency, System.Int32 channels) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].SetException (System.Exception exception) [0x00000] in <00000000000000000000000000000000>:0
at Whisper.WhisperWrapper.GetTextAsync (System.Single[] samples, System.Int32 frequency, System.Int32 channels, Whisper.WhisperParams param) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
at Whisper.Samples.MicrophoneDemo.Transcribe (System.Single[] data, System.Int32 frequency, System.Int32 channels, System.Single length) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.Tasks.Task.TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].SetException (System.Exception exception) [0x00000] in <00000000000000000000000000000000>:0    at Whisper.WhisperManager.GetTextAsync (System.Single[] samples, System.Int32 frequency, System.Int32 channels) [0x00000] in <00000000000000000000000000000000>:0    at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0    at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0    at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback callback, System.Object state, System.Threading.Tasks.Task& currentTask) [0x00000] in <00000000000000000000000000000000>:0    at System.Threading.Tasks.Task.FinishContinuations () [0x00000] in <00000000000000000000000000000000>:0    at System.Threading.Tasks.Task.TrySetException (System.Object exceptionObject) [0x00000] in <00000000000000000000000000000000>:0    at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1[TResult].SetException (System.Exception exception) [0x00000] in <00000000000000000000000000000000>:0
at Whisper.WhisperWrapper.GetTextAsync (System.Single[] samples, System.Int32 frequency, System.Int32 channels, Whisper.WhisperParams param) [0x00000] in <00000000000000000000000000000000>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.UnitySynchronizationContext.Exec () [0x00000] in <00000000000000000000000000000000>:0

@wyworx try downloading latest master and see if it fixed by recent update

unfortunately updating the package with the most recent changes did not fix the issue.  same error message.

The problem caused by this code (missing static keyword on method callback):
https://github.com/Macoron/whisper.unity/pull/38/files
There is no way you can receive same error after updating package. Please double check that you updated package and clear all cache and previous builds. You can even check or add it yourself in Packages/Whisper/Runtime/WhisperWrapper.cs:175.

Will close this for now, reopen if you have more info

@wyworx turns out, you've been right! I finally get my hands on iOS device and recreated this error.
Try to check latest master and see if recent update fixed that.

According to report from the forum, this error should be fixed. Reopen if it isn't.


sidecar does not build out of tree

the sidecar example https://github.com/kubevirt/kubevirt/blob/main/cmd/sidecars/smbios/smbios.go
does not build when pulled out of tree.
go mod tidy
go: finding module for package kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api
go: found kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api in kubevirt.io/kubevirt v1.2.0
go<EMAIL_ADDRESS>reading github.com/openshift/api/go.mod at revision v0.0.0: unknown revision v0.0.0

there is a nice https://github.com/kubevirt/api package that would work just fine,
but its missing the virt-launcher/virtwrap/api
so currently to implement a sidecar, you need to fork kubevirt itself

actually the sidecar doesnt even work in tree.
the args in the example deployment  dont match the pflags in the code.
and the example just dies with hooksidecar2024/04/29 Bad input vmi=0, domain=0  presumably because the interface has changed but its undocumented

/cc @victortoso

The current usage of kubevirt.io/kubevirt/pkg/virt-launcher/virtwrap/api is only related to schema.go which means it can be replaced by libvirtxml, which is actually preferred. I'm working on doing that from virt-launcher side already too.
somewhat related: https://github.com/kubevirt/kubevirt/issues/10844
/assign


Support recommended in schemas

Rather than just required and optional, also support recommended and suggested in schemas, and include a note that the HXL Proxy can show to the user as an explanation.

Implemented. There is now a severity property (#x_severity) for all schema rules, and it gets passed on through the exception.


[Task]: Subsequent fixes for Anvil Layout System

Is there an existing issue for this?

[X] I have searched the existing issues

SubTasks

[x] When hovering in between two buttons in the Form footer, no highlights are visible
[x] Disallow widgets in presets
[ ] UX for entity explorer showing layout preset droptarget groupings
[ ] #28193
[x] Layout borders should not be visible in preview and deploy mode.
[x] Remove listeners in deploy and preview mode.
[ ] Store positions data relative to the parent Canvas, and use that to only compute for siblings when something changes. Revisit useCanvasActivation
[ ] Discuss with @sbalaji1192 regarding the zIndex: 9 in ConnectDataOverlay
[x] Remove autoDimension
[ ] Try to use the resizeobserver singleton instead of a new import from the polyfill
[x] Add id to FlexLayout.
[ ] Fix getDropTargetLayoutId(state: AppState, canvasId: string) implementation
[ ] Fix abstraction leak const AnvilOverlayWidgetTypes = ["MODAL_WIDGET"];
https://github.com/appsmithorg/appsmith/pull/27966/files#r1365583248
[ ] https://github.com/appsmithorg/appsmith/pull/28202/files#r1365604313
[ ] https://github.com/appsmithorg/appsmith/pull/28202/files#r1365611302
[ ] https://github.com/appsmithorg/appsmith/pull/28202/files#r1365621385
[ ] https://github.com/appsmithorg/appsmith/pull/27980/files#r1365626875
[ ] https://github.com/appsmithorg/appsmith/pull/28204/files#r1365714083
[ ] https://github.com/appsmithorg/appsmith/pull/28202#discussion_r1365602854
[ ] LayoutElementPositionObserver is registering multiple entries per layout.
[ ] SetDragginStateFnType or SetDraggingStateActionPayload use only one of the interface types

Major

[ ] Spawn only the layout system specific sagas
[ ] Break withWidgetProps to be layout system specific

Issues:

[ ] First row's widget name component is cut off.
[ ] Drag icon doesn't show
[ ] Dragged widget needs to have lower opacity
[ ] When modal is in the page, highlights don't work
[ ] Modal widget height isn't correct
[ ] Modal Overlay scrolls (Also revisit useCanvasDragging)
[ ] Test legacy apps that don't have appPositioningType
[ ] Drag from widget name doesn't drag the right widget if the widget is not selected @riodeuno
[ ] Shift + select widgets follows the order in the entity explorer, even though we're selecting on the canvas.

Observations in DP: @riodeuno
https://www.loom.com/share/383598e0565848749b73e17c3a92e580

When we try to add third widget we are not able to see the highlights, existing widget in canvas when we try to drag it we are able to see highlighters on the top and to the left of the widget and if we drop when left highlighter appear we are able to see the widget disappears

Observations in DP: @riodeuno

https://www.loom.com/share/383598e0565848749b73e17c3a92e580
when we try to add third widget we are not able to see the highlights, existing widget in canvas when we try to drag it we are able to see highlighters on the top and to the left of the widget and if we drop when left highlighter appear we are able to see the widget disappears

https://www.loom.com/share/d26a1e5327d4455abf52252308002032
Widgets after scroll in canvas doesnt have the widget name card, able to see a cut on the Button widget in the above loom

RTE , List widgets broken

Initial observations:

The placement indicator glitches when DnDing a widget:

https://github.com/appsmithorg/appsmith/assets/39921438/529ff232-d882-4210-9c0f-db56992ec4a4

Placement indicators not visible at appropriate positions once we perform undo or remove widgets:

https://github.com/appsmithorg/appsmith/assets/39921438/41284529-5140-4d57-ac1c-7ecc3ccca3d8

Placement indicator not prominent when we try to drop a widget below an already placed widget inside a container:

https://github.com/appsmithorg/appsmith/assets/39921438/7593eb70-1da5-417a-9ed5-6132c9568224

Not able to place widgets inside a container within a container: (This leads to placement indicators not being clearly visible inside the parent container)

https://github.com/appsmithorg/appsmith/assets/39921438/56e84446-de70-4ce5-a12f-7622fa681a0c

Widgets are not vertically aligned:

https://github.com/appsmithorg/appsmith/assets/39921438/5b6a5252-0d67-46cd-b362-74f3867deeea

Divider widget not visible in Vertical direction:

https://github.com/appsmithorg/appsmith/assets/39921438/af03be81-2e88-470d-8300-8d7b8e1197f3

Issues in Firefox:

Not able to relocate widgets using by clicking on their tags:

https://github.com/appsmithorg/appsmith/assets/39921438/88feb33f-8076-43b7-8728-0e8db328d874

Not able to select the desired widget & relocate it on the canvas:

https://github.com/appsmithorg/appsmith/assets/39921438/35ab90cf-3fe0-48d9-8dd9-26910b8d72fc

Placement indicators appear after we drag the widget very slowly. Takes a lot of patience:

https://github.com/appsmithorg/appsmith/assets/39921438/e13f8e04-5482-44f5-865d-ac6659cf7c19

Horizontal scroll:


[Feature Idea] Scripting editor with Common Lisp

How about using SBCL for editor scripting. Like Emacs does use C for the core and Elisp for business logic and plugins, the Parrot might use Rust for the core and Common Lisp for plugins.
What do you think?

Hi,
In general, I would like to go in a direction that is decidedly "not-Emacs", so a simple out-of-the box experience + some limited customizability. Definitely less of a hackable super-customizable Lisp editor and more of a simple editor that just works reasonably well for CL. That means a plugin system falls out of scope currently.


gradle-runner 1.9.8 - Step always fail

Troubleshooting

[ ] I've searched discuss.bitrise.io for possible solutions.
Which version of the step is effected? 1.9.8
Is the issue reproducible with the latest version? YES
Does the issue happen sporadically, or every time? EVERY TIME
Is the issue reproducible locally by following our local debug guide? YES

Useful information

FAQ
devcenter.bitrise.io

Issue description

Bitrise info

Build URL: app.bitrise.io/build/61e73fc2051659b0
Bitrise Support enabled: YES / NO
Log: [21:42:29] Step (gradle-runner) failed: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 2

+------------------------------------------------------------------------------+
| (8) gradle-runner                                                            |
+------------------------------------------------------------------------------+
| id: gradle-runner                                                            |
| version: 1.9.8                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| toolkit: go                                                                  |
| time: 2021-06-02T21:42:28Z                                                   |
+------------------------------------------------------------------------------+
|                                                                              |
github.com/bitrise-io/steps-gradle-runner/vendor/github.com/hashicorp/go-cleanhttp
src/github.com/bitrise-io/steps-gradle-runner/vendor/github.com/hashicorp/go-cleanhttp/cleanhttp.go:35:3: unknown field 'ForceAttemptHTTP2' in struct literal of type http.Transport
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | gradle-runner (exit code: 1)                                  | 2.49 sec |
+---+---------------------------------------------------------------+----------+
ERRO[21:42:29] Step (gradle-runner) failed: Failed to prepare the step for execution through the required toolkit (go), error: Failed to install package, error: exit status 2
| Issue tracker: https://github.com/bitrise-io/steps-gradle-runner/issues      |
| Source: https://github.com/bitrise-io/steps-gradle-runner                    |
+---+---------------------------------------------------------------+----------+

Steps to reproduce

Update gradle-runner to 1.9.8 version
gradle-runner step will fail with error

Fix
Downgrade to 1.9.7

Hello @fedesenmartin,
Sorry for the caused inconvenience. Please update to the Ubuntu 20.04 stack (or the non LTS Ubuntu 16.04 stack). Ubuntu 16.04 stacks still continue to work but are deprecated and are planned to be removed.

Hi @lpusok
Updating stack to 20.04 & using gradle-runner 1.9.8 works fine!


[New dataset] Will provide the support for SemanticKitti datasets in the future?

Model/Dataset/Scheduler description
semantickitti official webseit: http://www.semantic-kitti.org/
Open source status

[ ] The model implementation is available
[ ] The model weights are available.

Provide useful links for the implementation
No response

We have supported Semantickitti and more segmentation methods in dev-1.x branch.

Thanks a lot!

How can I generate infos files? Any documentation or resources please provide

Is there any config file for SemanticKitti for any model?


tests: net: sockets: tcp: add a tls tests

Is your enhancement proposal related to a problem? Please describe.
Currently I'm attempting to use mbedTLS in a custom application and am creating a test to verify TLS in CI. The test is multi-threaded and uses TCP sockets with the TLS extensions; the server server socket is managed by one thread and the client socket is managed by the main thread.
My reference(s) for the application were the echo_server / echo_client sample applications and I'm just using the certificates / keys from those sample applications as-is. However, I'm experiencing a handshake error in TLS.
Describe the solution you'd like
It might be useful to have it a test that verified this kind of functionality in Zephyr CI
Describe alternatives you've considered
Have looked around for existing tests that exercise this particular setup, but have found none.
Additional context
Current handshake error:
*** Booting Zephyr OS build zephyr-v2.4.0-2547-gb68f47fdb9a0  ***
W: No entropy device on the system, TLS communication may be insecure!
I: Initializing network
I: Initializing built-in certificates
D: Adding CA Certificate (783 bytes)
D: Adding Server Certificate (Public Key) (693 bytes)
D: Adding Server Certificate (Private Key) (1219 bytes)
...
D: (main): Allocated TLS context, 0x2000189c
D: (main): socket: ctx=0x20005840, fd=1
I: CPort 0 mapped to TCP/IP port 4242
D: (main): Allocated TLS context, 0x20001c74
D: (main): socket: ctx=0x200058c8, fd=3
I: CPort 1 mapped to TCP/IP port 4243
...
D: (main): Allocated TLS context, 0x2000204c
D: (main): socket: ctx=0x20005950, fd=5
D: (rx_q[0]): parent=0x200058c8, ctx=0x200059d8, st=0
D: (main): there are 1 tags
D: (main): tag[0]: 0
D: (main): found tag
E: returning tls_add_ca_certificate()
E: calling mbedtls_x509_crt_parse(0x200021b4, 0x2e047, 783)
D: (main): found a CA cert
D: (rx_q[0]): ctx=0x200059d8, pkt=0x2000ba60, st=0, user_data=(nil)
D: (greybus): accept: ctx=0x200059d8, fd=7
D: (greybus): Allocated TLS context, 0x20002424
D: (greybus): there are 1 tags
D: (greybus): tag[0]: 1
D: (greybus): found tag
E: returning tls_set_own_cert()
E: tls_set_credential() failed (-22)
E: tls_mbedtls_set_credentials() failed (-22)
E: tls_mbedtls_init() failed (-22)
D: (greybus): close: ctx=0x200059d8, fd=7
D: (greybus): discarding pkt 0x2000ba60
D: (rx_q[0]): ctx=0x20005950, pkt=(nil), st=-104, user_data=(nil)
D: (rx_q[0]): Marked socket 0x20005950 as peer-closed
D: (main): NULL return from fifo
E: TLS handshake error: -7280
ASSERTION FAIL [r == 0] @ CMAKE_SOURCE_DIR/src/gpio.c:147
	connect: 113
E: r0/a1:  0x00000004  r1/a2:  0x00000093  r2/a3:  0x90000000
E: r3/a4:  0x0002880b r12/ip:  0x00000000 r14/lr:  0x00000c6f
E:  xpsr:  0x41000000
E: Faulting instruction address (r15/pc): 0x0001ca2a
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Current thread: 0x20001300 (main)
E: Halting system
qemu-system-arm: terminating on signal 2
ninja: build stopped: interrupted by user.

How this is different from #30936, do we need two TLS issues that look identical?

Looks line I made a duplicate issue.

Looks line I made a duplicate issue.


Circular reference detected when changing play time limit

System Health details
System Information

version
core-2024.3.1

installation_type
Home Assistant OS

dev
false

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.12.2

os_name
Linux

os_version
6.1.73-haos-raspi

arch
aarch64

timezone
Europe/Brussels

config_dir
/config

Home Assistant Community Store

GitHub API
ok

GitHub Content
ok

GitHub Web
ok

GitHub API Calls Remaining
4994

Installed Version
1.34.0

Stage
running

Available Repositories
1407

Downloaded Repositories
30

HACS Data
ok

AccuWeather

can_reach_server
pending

remaining_requests
47

Home Assistant Supervisor

host_os
Home Assistant OS 12.1

update_channel
stable

supervisor_version
supervisor-2024.03.0

agent_version
1.6.0

docker_version
24.0.7

disk_total
109.3 GB

disk_used
12.8 GB

healthy
true

supported
true

board
rpi4-64

supervisor_api
ok

version_api
ok

installed_addons
AdGuard Home (5.0.4), AirCast (4.2.0), Duck DNS (1.15.0), Glances (0.21.0), Node-RED (17.0.9), Advanced SSH & Web Terminal (17.2.0), Samba share (12.3.1), Studio Code Server (5.15.0), InfluxDB (5.0.0), AirSonos (4.2.0), Grafana (9.2.0), EMHASS (0.8.4), Paradox Alarm Interface (3.4.0), Mosquitto broker (6.4.0), go2rtc (1.8.5)

Dashboards

dashboards
2

resources
15

views
15

mode
storage

Recorder

oldest_recorder_run
February 16, 2024 at 20:03

current_recorder_run
March 15, 2024 at 14:08

estimated_db_size
6866.42 MiB

database_engine
mysql

database_version
10.11.2

Solcast PV Forecast

can_reach_server
pending

used_requests
23

rooftop_site_count
1

Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..

Nintendo Parental Controls mobile app

[X] I have checked the configuration of the mobile app and the switch device is registered.
[ ] I experience this issue if I test again with the tested configuration in the readme.
[ ] This issue does not happen when tested with the tested configuration in the readme.

Describe the issue
Hi all,
When trying to change the play time limit with the input range an error occured "Circular reference detected"
G.
Reproduction steps

Drag & drop the input range of the play time limit field
Error occured

Debug logs
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:239
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:28:14 (1 occurrences)
Last logged: 14:28:14

[546820242880] Circular reference detected
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 111, in async_set_value
    await entity.async_set_native_value(native_value)
  File "/config/custom_components/nintendo_parental/number.py", line 79, in async_set_native_value
    await self._device.update_max_daily_playtime(minutes=value)
  File "/usr/local/lib/python3.12/site-packages/pynintendoparental/device.py", line 164, in update_max_daily_playtime
    await self._set_parental_control_setting()
  File "/usr/local/lib/python3.12/site-packages/pynintendoparental/device.py", line 115, in _set_parental_control_setting
    await self._api.send_request(
  File "/usr/local/lib/python3.12/site-packages/pynintendoparental/api.py", line 79, in send_request
    async with session.request(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1194, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 434, in _request
    data = payload.JsonPayload(json, dumps=self._json_serialize)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/payload.py", line 396, in __init__
    dumps(value).encode(encoding),
    ^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/json/encoder.py", line 200, in encode
    chunks = self.iterencode(o, _one_shot=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/json/encoder.py", line 258, in iterencode
    return _iterencode(o, 0)
           ^^^^^^^^^^^^^^^^^
ValueError: Circular reference detected

Diagnostics dump
No response

Hi,
Thanks for reporting.
Does this happen all the time?
Thanks

At least as from this morning it always failed .. Never tried before to edit the value so not sure if yesterday it was working or not

New user with a fresh install. Mine has done this since I installed it a week or so ago.

Possibly related to https://github.com/pantherale0/pynintendoparental/issues/5

@Gunth @South1paw can I check, how have you configured the parental controls in the Nintendo Switch app? Do you have restrictions set by weekday?

Yes each days has is dedicated schedule, like this  ( sorry it it french :-) ) :

Ok, thats probably why I haven't yet seen it. I moved all my schedules into Home Assistant and let it control it via the schedule helper and some automation.

Just published a new release, should be fixed now (at least I'm not seeing an error anyway). Please test and let me know how you get on :+1:

Hum well there is no more this circular exception but in the nintendo switch app it switch to "no restrictions" instead of the new time limit

But in home assistant the new value is correct and remain the same

Hum well there is no more this circular exception but in the nintendo switch app it switch to "no restrictions" instead of the new time limit

This is normal if you have set a time that does not exist in the mobile app. The API itself takes the play time limit (regardless if set individually for each day or not) as a integer in minutes, the mobile app just has a drop down configured for 15 minute intervals. I think there is another issue somewhere where this was spoken about, I'll see if I can find it.

Also on the above - the Switch does appear to respect the value you have set regardless what the mobile app itself says and this is one of the reasons why I decided to replace the app with Home Assistant.

That's good to know, I hadn't thought about managing the timing via ha, i will also do that..
May I ask you to share the automation script ?

Sure thing, its something I've been meaning to do for a while, and probably best to do it now before I wipe my Home Assistant install clean.

Requirements:

Schedule helper configured with the times that you would like to allow the Switch to be used (https://www.home-assistant.io/integrations/schedule/)

Automation YAML:
description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - schedule.joe_bloggs_screentime
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state == 'on' }}"
        sequence:
          - service: number.set_value
            metadata: {}
            data:
              value: "360"
            target:
              entity_id: number.switch_1_play_time_limit
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state == 'off' }}"
        sequence:
          - service: number.set_value
            metadata: {}
            data:
              value: "0"
            target:
              entity_id: number.switch_1_play_time_limit

I have a number of more complicated controls that are pretty specific to my environment and pull data from all sorts of places to control the actual allowed screentime.
You could achieve similar by using a input_number that defines how many minutes (max) you want to allow screentime for, and then do an automation that checks to see if the time remaining entity is equal to or higher than that input_number. If so set the play time limit entity to "0" to disable the switch, when it isn't set it to "360" to set the screentime to 6 hours on the switch which is the absolute max the API will allow, in the future you will be able to set to -1 to set the screen time limit to "no restrictions" (#76)

Yep it was because I was set to every day individually. That was a temporary fix and tested then the update came out and that works either way. Thank you very much!

Requirements:

Schedule helper configured with the times that you would like to allow the Switch to be used (https://www.home-assistant.io/integrations/schedule/)

Automation YAML:
description: ""
mode: single
trigger:
  - platform: state
    entity_id:
      - schedule.joe_bloggs_screentime
condition: []
action:
  - choose:
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state == 'on' }}"
        sequence:
          - service: number.set_value
            metadata: {}
            data:
              value: "360"
            target:
              entity_id: number.switch_1_play_time_limit
      - conditions:
          - condition: template
            value_template: "{{ trigger.to_state == 'off' }}"
        sequence:
          - service: number.set_value
            metadata: {}
            data:
              value: "0"
            target:
              entity_id: number.switch_1_play_time_limit

I have a number of more complicated controls that are pretty specific to my environment and pull data from all sorts of places to control the actual allowed screentime.
You could achieve similar by using a input_number that defines how many minutes (max) you want to allow screentime for, and then do an automation that checks to see if the time remaining entity is equal to or higher than that input_number. If so set the play time limit entity to "0" to disable the switch, when it isn't set it to "360" to set the screentime to 6 hours on the switch which is the absolute max the API will allow, in the future you will be able to set to -1 to set the screen time limit to "no restrictions" (#76)

Thanks for the script and for the great job !


Error while creating test resources. this.Client.SubscriptionId cannot be null

using PowerShell 7
Az Module 5.3.0
When running command  .\eng\common\TestResources\New-TestResources.ps1 tables
gives me the error:  Exception calling "Invoke" with "0" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'this.Client.SubscriptionId' cannot be null."
Full output:
 .\eng\common\TestResources\New-TestResources.ps1 tables
4:26:41 PM - BaseName was not set. Using default base name: 'xxx'
4:26:41 PM - Detected .NET repository. Defaulting OutFile to true. Test environment settings would be stored into the file so you don't need to set environment variables manually.
4:26:41 PM - TestApplicationId was not specified; creating a new service principal
WARNING: Assigning role 'Owner' over scope '/subscriptions/xxx' to the new service principal.
4:27:14 PM - Created service principal 'Microsoft.Azure.Commands.Resources.Models.Authorization.PSADServicePrincipalWrapper'
4:27:15 PM - Logging into service principal 'xxx'
4:27:17 PM - Creating resource group 'xxx' in location 'westus2'
WARNING: Attempt 1 failed: Exception calling "Invoke" with "0" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'this.Client.SubscriptionId' cannot be null.". Trying again in 10 seconds...
WARNING: Attempt 2 failed: Exception calling "Invoke" with "0" argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 'this.Client.SubscriptionId' cannot be null.". Trying again in 20 seconds...

@pakrym

cc @heaths @benbp
Have you ever seen something like this? I was on the call with the partner teams when this occurred and we tried all the usual steps of running Connect-AzAccount/Select-Subscription/restarting powershell etc.

cc @heaths @benbp
Have you ever seen something like this? I was on the call with the partner teams when this occurred and we tried all the usual steps of running Connect-AzAccount/Select-Subscription/restarting powershell etc.

I've seen something similar before when using the Az PowerShell cmdlets if you're authenticated to an account without an associated subscription. I forget under what circumstances that could happen, so it's hard to know how to fix it.
@TimothyMothra how did you log into Azure via the Az cmdlets, if at all? If you run Get-AzContext | select *, do you see a value for Subscription? If you run Get-AzContext | select -expand Account, what value do you see for Type?

I've seen something similar before when using the Az PowerShell cmdlets if you're authenticated to an account without an associated subscription. I forget under what circumstances that could happen, so it's hard to know how to fix it.
@TimothyMothra how did you log into Azure via the Az cmdlets, if at all? If you run Get-AzContext | select *, do you see a value for Subscription? If you run Get-AzContext | select -expand Account, what value do you see for Type?

Using the command Connect-AzAccount to auth.
Here's the output of the commands you requested:
PowerShell 7.1.0
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS C:\Users\xxx>  Connect-AzAccount -Subscription 65b2f83e-xxx

Account             SubscriptionName     TenantId                             Environment
-------             ----------------     --------                             -----------
<EMAIL_ADDRESS>AzureMonitor_SDK_RnD 72f988bf-xxx                         AzureCloud

PS C:\Users\xxx> Get-AzContext | select *

Name               : AzureMonitor_SDK_RnD (65b2f83e-xxx) - 72f988bf-xxx -<EMAIL_ADDRESS>Account<EMAIL_ADDRESS>Environment        : AzureCloud
Subscription       : 65b2f83e-xxx
Tenant             : 72f988bf-xxx
TokenCache         :
VersionProfile     :
ExtendedProperties : {}

PS C:\Users\xxx> Get-AzContext | select -expand Account

Id<EMAIL_ADDRESS>Type                  : User
Tenants               : {72f988bf-xxx}
AccessToken           :
Credential            :
TenantMap             : {}
CertificateThumbprint :
ExtendedProperties    : {[HomeAccountId, b63ceae6-xxx.72f988bf-xxx],[Tenants, 72f988bf-xxx], [Subscriptions, 65b2f83e-xxx]}

Using the command Connect-AzAccount to auth.
Here's the output of the commands you requested:
PowerShell 7.1.0
Copyright (c) Microsoft Corporation.

https://aka.ms/powershell
Type 'help' to get help.

PS C:\Users\xxx>  Connect-AzAccount -Subscription 65b2f83e-xxx

Account             SubscriptionName     TenantId                             Environment
-------             ----------------     --------                             -----------
<EMAIL_ADDRESS>AzureMonitor_SDK_RnD 72f988bf-xxx                         AzureCloud

PS C:\Users\xxx> Get-AzContext | select *

Name               : AzureMonitor_SDK_RnD (65b2f83e-xxx) - 72f988bf-xxx -<EMAIL_ADDRESS>Account<EMAIL_ADDRESS>Environment        : AzureCloud
Subscription       : 65b2f83e-xxx
Tenant             : 72f988bf-xxx
TokenCache         :
VersionProfile     :
ExtendedProperties : {}

PS C:\Users\xxx> Get-AzContext | select -expand Account

Id<EMAIL_ADDRESS>Type                  : User
Tenants               : {72f988bf-xxx}
AccessToken           :
Credential            :
TenantMap             : {}
CertificateThumbprint :
ExtendedProperties    : {[HomeAccountId, b63ceae6-xxx.72f988bf-xxx],[Tenants, 72f988bf-xxx], [Subscriptions, 65b2f83e-xxx]}

@heaths i sent an email with more detailed information.

@heaths i sent an email with more detailed information.

Replacing variables as needed, can you just run https://github.com/Azure/azure-sdk-tools/blob/94a29f6dedf49ffbad6d13f51b86140c428e2080/eng/common/TestResources/New-TestResources.ps1#L332 and see if that works?

Replacing variables as needed, can you just run https://github.com/Azure/azure-sdk-tools/blob/94a29f6dedf49ffbad6d13f51b86140c428e2080/eng/common/TestResources/New-TestResources.ps1#L332 and see if that works?

@TimothyMothra any update on this and/or can you forward me that email?

@TimothyMothra any update on this and/or can you forward me that email?

@benbp Added you to the email thread. Thanks

@benbp Added you to the email thread. Thanks

As a workaround, you can create a service principal and always pass it. In fact, I do that to avoid creating a ton of service principals (apps) since I use this a lot. For example,
$sp = New-AzADServicePrincipal -DisplayName "${env:USERNAME}app" -SkipAssignment

# setx on Windows creates env vars; use whatever is appropriate on other platforms/shells
$env:AZURE_CLIENT_ID = $sp.ApplicationId
setx AZURE_CLIENT_ID $env:AZURE_CLIENT_ID
$env:AZURE_CLIENT_SECRET = $sp.Secret | ConvertFrom-SecureString -AsPlainText
setx AZURE_CLIENT_SECRET $env:AZURE_CLIENT_SECRET

# pass that each time to New-TestResources
New-TestResources -ServiceDirectory keyvault -TestApplicationId $env:AZURE_CLIENT_ID -TestApplicationSecret $env:AZURE_CLENT_SECRET

As a workaround, you can create a service principal and always pass it. In fact, I do that to avoid creating a ton of service principals (apps) since I use this a lot. For example,
$sp = New-AzADServicePrincipal -DisplayName "${env:USERNAME}app" -SkipAssignment

# setx on Windows creates env vars; use whatever is appropriate on other platforms/shells
$env:AZURE_CLIENT_ID = $sp.ApplicationId
setx AZURE_CLIENT_ID $env:AZURE_CLIENT_ID
$env:AZURE_CLIENT_SECRET = $sp.Secret | ConvertFrom-SecureString -AsPlainText
setx AZURE_CLIENT_SECRET $env:AZURE_CLIENT_SECRET

# pass that each time to New-TestResources
New-TestResources -ServiceDirectory keyvault -TestApplicationId $env:AZURE_CLIENT_ID -TestApplicationSecret $env:AZURE_CLENT_SECRET

The issue here is an empty subscription ID on the service principal login call, because the default subscription ID is stored in a separate variable $defaultSubscriptionId. Coincidentally, this PR should address the issue.
Problem code from eng/common/TestResources/New-TestResources.ps1
  245
  246         # Use the given subscription ID if provided.
  247         $subscriptionArgs = if ($SubscriptionId) {
  248             @{SubscriptionId = $SubscriptionId}
  249         } else {
  250             @{}
  251         }
  252
  253         $provisionerAccount = Retry {
  254             Connect-AzAccount -Force:$Force -Tenant $TenantId -Credential $provisionerCredential -ServicePrincipal -Environment $Environment @subscriptionArgs
  255         }


test-branch/execute-job/wrong-commit-sha-on-pr/02886cc1-d880-48cc-8250-387e25bb93ff

PR for testing 6300a8aa7d8eed3a60d7968ed3d9299d6452c21b

/canonical/self-hosted-runners/run-workflows 931ad21dd9ace68aaa0a7d341e94de96ad93fa6b


Add env variables for the e2e tests

This enable the user to keep using the Build CRS instances examples, but with a
customize registry. Not the default openshift one.
This allows the user to provide three env variables:

A registry namespace(REGISTRY_NAMESPACE)
A registry endpoint(REGISTRY_ENDPOINT)
A registry secret(REGISTRY_SECRET)

Added instructions on how to run e2e tests with
environment variables for a customize registry.

/ok-to-test

Hi!
We already have TEST_IMAGE_REPO and TEST_IMAGE_REPO_SECRET environment variables for overriding the output image, curious why we are introducing new ones for the same?

@sbose78 I totally missed that, however the usage of those existing variables are not applied to all of the 5 build strategies that are ran in e2e, they only take place for the buildpacks-v3.
I think my main goal with this PR is that the user can run all of the e2e tests, with another registry(e.g no need to manually tweak the build YAML examples when running on IKS clusters or Kind)
This PR also added more flexibility on the *.Spec.Output.ImageURL , by allowing the user to define not only a single URL(TEST_IMAGE_REPO env variable), but rather a customize registry host and registry namespace(REGISTRY_ENDPOINT and REGISTRY_NAMESPACE env variables). Would you like to keep this flexibility, or should I go back to the single _TEST_IMAGE_REPO_?

@sbose78 one more thing, in my previous comment I mentioned about having the flexibility
to define the registry hostname and namespace, while keeping the application name intact. I think this is needed because of the following:

The following build examples, https://github.com/redhat-developer/build/blob/master/samples/build/build_source-to-image_cr.yaml#L15 and https://github.com/redhat-developer/build/blob/master/samples/build/build_buildah_cr.yaml#L14 use a different application name, having a single TEST_IMAGE_REPO will not work while it will override always the *.Spec.Output.ImageURL to the same application. In this PR I tackle that problem.

We would eventually need to have environment variables to indicate

private git repo
authenticated 'output' container image repository

How do you plan to do the same?

having a single TEST_IMAGE_REPO will not work while it will override always the *.Spec.Output.ImageURL

For testing purposes this is OK, I feel, because we only need to validate if the push worked and hence I would use a single 'test' image repo  ( something like quay.io/ibm/build-test-do-not-use:latest ) . I didn't have any plans of doing anything with that image afterwords.
What do you think?

@sbose78 hi, let me clarify your comments:

We would eventually need to have environment variables to indicate
- private git repo
- authenticated 'output' container image repository
For the authenticated output , is this not what I call REGISTRY_SECRET in the current PR? For the private git repo, I can add that in this PR also.

For testing purposes this is OK, I feel, because we only need to validate if the push worked and hence I would use a single 'test' image repo ( something like quay.io/ibm/build-test-do-not-use:latest ) . I didn't have any plans of doing anything with that image afterwords.
Yes, I agree with you. I can reuse then the existing env variables.

@sbose78 so I could extend this PR to add the missing functionalitites(private git repo), keep the same env vars you have, remove the new ones I added. Not sure what else would you suggest?

so I could extend this PR to add the missing functionalitites(private git repo), keep the same env vars you have, remove the new ones I added. Not sure what else would you suggest?

That'll be awesome!

@sbose78 I continued today on this, it took me a while to make the private registry to work with examples, some questions to you:

Are you aware that the secret used under spec.source.credential.name needs to have specific Tekton annotations, something like:

apiVersion: v1
kind: Secret
metadata:
  name: github-ssh-auth
  annotations:
    tekton.dev/git-0: github.com
type: kubernetes.io/ssh-auth
data:
  ssh-privatekey: ***

Also, we will need a new Build CRD instance example, similar to build_buildah_cr.yaml, but where we modify the spec.source.url to not use https:// but rather git@ . What do you thing on this?

For the above 2 questions, I think we also need a fake github account with a private key and a taxi private repo, I didnt spend too much time thinking on alternatives for this, what do you think?

Yes, didn't try it of late though :)

Are you looking to have sample CRs for tests? Maybe create a new test/data and put different samples that you want to use in tests?

While developing the test, you could use some internal Gitlab repo to do so? Doesn't matter what the repo it is as long as we parameterize the test well enough to accept the values from the environment variables.
We'll need to decide on a repo when we onboard this to our CI.
The same thing needs to be solved for the 'output' image that would be used to push images to, in all our tests.

@sbose78 yes, I think I know what u meant. Also, adding gitlab samples is a good idea. I will request a review once this is done, thanks.

@sbose78 I just added a new commit to simplify the e2e test cases, adding a new sample under a test/data end ups doing too much code repetition. I was not able to resist on doing a cleanup in the setup, refactoring some code and putting everything under the validators.go. I believe in this new approach, adding new e2e test cases will more easy to maintain. I will follow later today with a commit for the private repos test cases(github/gitlab).
I usually dont do PR comments until the PR is not fully ready, but I´m not sure how to contact someone from your side in case of questions.

I really like the changes!  Keep going.( Could you update the docs too )
Would you comfortable catching up on slack? Otherwise I will respond to GitHub asap anyway :)

Good point. Is there any good shared slack we can use for better communication?

@sbose78 PR is updated, for the private repos, in order to not break CI I added the TEST_WITH_PRIVATE_REPO env variable, only when this is set to true, e2e tests will run for private repositories.
For the private repositories tests, we will need a set of environment variables to customize different private URLS depending on the Build strategy, therefore I needed to introduce:

BUILDAH_PRIV_GITHUB and BUILDAH_PRIV_GITLAB
KANIKO_PRIV_GITHUB
SRC_PRIV_GITHUB
BUILDPACKS_PRIV_GITHUB

For now, I only added one test for gitlab in Buildah, if we want more, we can add them on a future PR. Please take a look!

Thank you!
You might want to keep kaniko better tested since we ran into some "privileged" issues with buildah the other day, making kaniko a lot more usable at the moment.
Also, could we use the same git repo for all?

@sbose78 when you say

You might want to keep kaniko better tested since we ran into some "privileged" issues with buildah the other day, making kaniko a lot more usable at the moment.

can you give more context on what you mean? e.g. adding a gitlab test or similar? I might be missing some context

Also, could we use the same git repo for all?

do you mean the same spec.source.url for all the new examples? I thought we needed to use specific apps for specific strategies, e.g git@github.com:qu1queee/new-nodejs-ex.git vs git@github.com:qu1queee/newtaxi.git

For now, I only added one test for gitlab in Buildah

Since you've said Buildah, I was wondering if you could have a test for kaniko?

do you mean the same spec.source.url for all the new examples

If possible, yeah. In a super ideal situation, we should be able to have the same project built with different strategies.

@sbose78 sure, I can do these changes, it will actually simplify the setup.

@sbose78 the PR have now all changes you requested, pls review one more time.

Thank you, let me review!

Hi, are we preserving this behaviour ?
operator-sdk test local ./test/e2e --up-local --namespace build-examples

causes
INFO[0000] Testing operator locally.
time="2020-04-06T19:13:30-04:00" level=info msg="Started local operator"
--- FAIL: TestBuild (596.77s)
    --- FAIL: TestBuild/build-group (0.00s)
        --- FAIL: TestBuild/build-group/Build_e2e_tests (554.44s)
            main_test.go:69: Initialized cluster resources
            wait_util.go:48: Operator is running locally; skip waitForDeployment
            client.go:62: resource type ClusterBuildStrategy with namespace/name (/kaniko) created
            client.go:62: resource type Build with namespace/name (build-examples/example-build-kaniko) created
            client.go:62: resource type BuildRun with namespace/name (build-examples/example-build-kaniko) created
            client.go:62: resource type ClusterBuildStrategy with namespace/name (/source-to-image) created
            client.go:62: resource type Build with namespace/name (build-examples/example-build-s2i) created
            client.go:62: resource type BuildRun with namespace/name (build-examples/example-build-s2i) created
            client.go:62: resource type ClusterBuildStrategy with namespace/name (/buildah) created
            client.go:62: resource type Build with namespace/name (build-examples/example-build-buildah) created
            client.go:62: resource type BuildRun with namespace/name (build-examples/example-build-buildah) created
            client.go:62: resource type ClusterBuildStrategy with namespace/name (/buildpacks-v3) created
            client.go:62: resource type Build with namespace/name (build-examples/example-build-buildpacks-v3) created
            client.go:62: resource type BuildRun with namespace/name (build-examples/example-build-buildpacks-v3) created
            validators.go:175:
                        Error Trace:    validators.go:175
                                                                main_test.go:139
                        Error:          Should be true
                        Test:           TestBuild/build-group/Build_e2e_tests
            client.go:82: resource type BuildRun with namespace/name (build-examples/example-build-buildpacks-v3) successfully deleted

sbose-mac:olm-catalog sbose$ oc get buildruns
NAME                          SUCCEEDED   REASON      STARTTIME   COMPLETIONTIME
example-build-buildah         True        Succeeded   3m23s       2m7s
example-build-buildpacks-v3   False       Failed      2m4s        94s
example-build-kaniko          True        Succeeded   6m2s        5m12s
example-build-s2i             True        Succeeded   5m3s        3m32s

TEST_IMAGE_REPO=quay.io/shbose/nodejs-ex:latest TEST_IMAGE_REPO_SECRET=regcred  operator-sdk test local ./test/e2e --up-local --namespace build-examples --go-test-flags "-timeout=20m"
works.
Re-testing the previous one with a better timeout.

It isn't the timeout, buildpacks-v3 test shouldn't run if the private quay repo details aren't provided. Could you please fix that ?
client.go:62: resource type BuildRun with namespace/name (build-examples/example-build-buildpacks-v3) created
            validators.go:175:
                	Error Trace:	validators.go:175
                	            				main_test.go:139
                	Error:      	Should be true
                	Test:       	TestBuild/build-group/Build_e2e_tests
            client.go:82: resource type BuildRun with namespace/name (build-examples/example-build-buildpacks-v3) successfully deleted

@sbose78 I never ran them with quay references, therefore they were always green to me. Let me fix the test shouldn't run if the private quay repo details aren't provided .

@sbose78 fixed it, pls review.

@sbose78 I´m wondering about your above statement(although I already fix this PR to align with what you mentioned).

buildpacks-v3 test shouldn't run if the private quay repo details aren't provided

I think the above will block us for running buildpacks v3 tests, because of the following:

the default buildpacks Build samples point to image-registry.openshift-image-registry.svc:5000/build-examples/taxi-app, where we dont have access to.
we do not use quay registry, so when the TEST_IMAGE_REPO is set, it will only run when the value of TEST_IMAGE_REPO contains quay.io. We will never hit this use case, because we do not have quay registries.

Could you elaborate why the buildpacks-v3 should only run with quay? AFAIK, the buildpack v3 e2e tests run for us successfully when using our IBM container registry.

@sbose78 sorry for the back and forth, but I might be know understanding what you meant(hard to do this via comments sometimes).
I think your buildpacks-v3 test shouldn't run if the private quay repo details aren't provided was more in the direction of what you said before, Hi, are we preserving the behaviour that we skip the buildpack build if no env variables are provided ? .
I added this logic now, it was not there as you reported. So basically if the TEST_IMAGE_REPO and the TEST_IMAGE_REPO_SECRET are not set, the buildpacks v3 will never run. This also is good for us, because then we can just populate those 2 env variables with our specific registry endpoint and secret.
Apologize for the confusion.

Yeah, the buildpacks builds need a secure remote registry to push the output image too, hence we can't run it without the private 'output' image options.

/lgtm
/approve


License updates for dependabot/github_actions/actions/download-artifact-3

This PR was auto generated by the licensed-ci GitHub Action.
It contains updates to cached github/licensed dependency metadata to be merged into dependabot/github_actions/actions/download-artifact-3: (branch, PR).
The licensed-ci action will add comments to this PR with the status of license checks.  Please make any changes needed to fix any status failures on this branch, then merge license updates into your branch.
If updates are unexpected, please check the github/licensed changelog for recent updates.

The licensed-ci GitHub Action updated cached license metadata based on changes to dependabot/github_actions/actions/download-artifact-3: (branch, PR).
licensed status result: SUCCEEDED
All status checks succeeded, please merge when ready.
Checking cached dependency records for licensed
.............................
29 dependencies checked, 0 errors found.

/cc @dependabot[bot]


Implement error handling/timeout on readLine from LoRa module

I sometimes experience that the LoRa module(RN2483) does not send anything back after a sendBytes. The current implementation will wait forever until a return signal is send. This will result in deadlock unless a WDT is externally used. On many MCU's the WDT will have less than 8s count which is not always enough for a message to send.
https://github.com/TheThingsNetwork/arduino-device-lib/blob/23c933f7c3434fb8fc32a46855e8376ce271feee/src/TheThingsNetwork.cpp#L360-L369
I propose that a timeout is implemented to handle if there is no response from RN2483 within reasonable time.

Yeah I see your point about returning too early. RN module as you say should work 100% of the time, however sometimes we see it locks up, not knowing why or what triggered it. I would agree that fixing the root cause would be the best solution, but unfortunately we cant access the raw firmware of the RN module to figure out what goes wrong. So then we though about how to handle this error.
If the function is returning a zero, as you suggest, it will give the application the possibility to handle the error which is an enhancement to now.
Have you been working on such a solution already?

I see two approaches to handle the timeout.

Using milis() to measure the time spend in the while loop.

size_t TheThingsNetwork::readLine(char *buffer, size_t size, uint8_t timeout = 10000) // Default timeout vallue TBD
{
  size_t read = 0;
  uint8_t start_time = milis();
  while (read == 0 && milis()-start_time<timeout)
  {
    read = modemStream->readBytesUntil('\n', buffer, size);
  }
  if(milis()-start_time<timeout)){ // If timeout is activated return 0 to inform the application
    return 0;
  }
  else{
    buffer[read - 1] = '\0'; // set \r to \0
    return read;
  }
}

Using modemStream timeout. This assumes that somewhere we set modemStream->setTimeout(x). Then if x = 1, then we will achive approximately 10s timeout as in option 1.

size_t TheThingsNetwork::readLine(char *buffer, size_t size, uint8_t attempts = 10) // Default timeout attempts TBD
{
  size_t read = 0;
  while (read == 0 && attempts>0)
  {
    read = modemStream->readBytesUntil('\n', buffer, size);
    attempts--;
  }
  if(attempts<=0){ // If timeout attempts is activated return 0 to inform the application
    return 0;
  }
  else{
    buffer[read - 1] = '\0'; // set \r to \0
    return read;
  }
}

I think we have to use a timeout, as readBytesUntil() should simply not return otherwise. To my understanding, the only reason for it to return 0 is on timeout.
The timeout could be set in the application sketch by the user, so that's why it's expecting and looping over 0 response now. I agree this is not nice.
Instead, I think we need to have some invalid state marker in the class, to inform the application that the RN module needs to be reset.
Can you work on a PR?

I have created a PR. Let me know your thoughts about it.


Create proof-of-concept for using a new pagination API

In the long term, we would like the Steve API to support calling an action fetchPage with the following page arguments:

number of resources
sort
filter

We should create a proof-of-concept to see if we can create a clean and simple implementation that preserves reactivity as resources are watched.
It may take a while for sorting and filtering features to be added to Steve. (The backend ticket is here: https://github.com/rancher/rancher/issues/38427) In the meantime, as an intermediary step, we could try offloading the sorting capability to a web worker that has the same API for sorting and filtering that is planned for Steve. There are implementation notes on the web worker in Confluence.
The backend ticket about sorting and filtering in Steve is here: https://github.com/rancher/rancher/issues/38427

Closing as duplicate of https://github.com/rancher/dashboard/issues/6541


Sparse matrix

Hi there,
Does DecontX take sparse matrix as input?
Thank you!

Hi @ltosti,
Right now DecontX only takes matrix object as input. However, you can read in sparse matrix in R using the readMM function in Matrix package and then convert it to a matrix object using as.matrix function.

Hey @ltosti
Sparse matrix cannot be taken by DecontX yet, but it will definitely be in the near future.
For now please do as @zhewa suggested.


Constraint the observer to be class

'''
public static func register(_ protocolType: T.Type, observer: T)
'''
better constraint the T to be class, though no error reported when registering a struct.

Thanks for your advice, but this will limit the protocol type.


Questions about the port forwarding

Hi Sakra,
Thanks for sharing Tunnel, it helped me a lot!
I have a question about the SSH port forwarding used in Tunnel. In the Tunnel, the ssh server is the same machine that the remote kernel is running on. Is it possible to use a different machine as the SSH server? For example, the front end is running on my local machine A, and the kernel is running at B behind a firewall. And Tunnel applies in this situation. Consider if the kernel is required to run on a different machine C, and B and C have unblocked TCP/IP access between them. Is it possible to create a tunnel between A and C through B, so that the remote kernel runs on C? Thanks

This is doable by using machine B as an SSH jump host to get to machine C. You are logging in to machine B from from A and then B is instructed to forward all SSH traffic to machine C.
The following prerequisites apply:

The involved machines use OpenSSH and run Linux or OS X. I don't think this works with Windows.
OpenSSH server must be running on host B and C.
On machine A you have to set up a ProxyCommand host configuration for getting to machine C in ~/.ssh/config, e.g. named C_through_B.
The host C_through_B can then be used as the remote machine name with the Tunnel package.

See https://wiki.gentoo.org/wiki/SSH_jump_host for more information.

Thank you very much, that solves my problem.


Report with wrong query_payload on meltano.meltanodata.com

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1446
Originally created by @iroussos on 2019-12-13 14:10:25

While checking meltano.meltanodata.com, I found out that the Meltano Web Traffic dashboard was not loading due to errors:
https://meltano.meltanodata.com/dashboard/meltano-web-traffic
After investigating the issue, I found out that the origin of the problem was in the Google Analytics > Google Analytics Locations > Audience Stats by Location - High to Low Total User Count report:
https://meltano.meltanodata.com/analyze/model-google-analytics/google_analytics/google_analytics_locations/reports/report/audience-stats-by-location-high-to-low-total-user-count
By checking the Meltano UI logs in meltano.meltanodata.com, I can see the following error is generated while trying to load the report:
... ... ...
  File "/var/meltano/.venv/lib/python3.6/site-packages/meltano/api/controllers/dashboards.py", line 64, in get_dashboard_reports_with_query_results
    post_data
  File "/var/meltano/.venv/lib/python3.6/site-packages/meltano/api/controllers/dashboards_helper.py", line 42, in get_dashboard_reports_with_query_results
    sql_dict = sqlHelper.get_sql(design, report["query_payload"])
  File "/var/meltano/.venv/lib/python3.6/site-packages/meltano/core/sql/sql_utils.py", line 8, in get_sql
    definition=incoming_json, design_helper=design, schema=schema
  File "/var/meltano/.venv/lib/python3.6/site-packages/meltano/core/sql/base.py", line 686, in __init__
    self.parse_definition(definition)
  File "/var/meltano/.venv/lib/python3.6/site-packages/meltano/core/sql/base.py", line 776, in parse_definition
    table_def = self.design.find_table(related_def["name"])
  File "/var/meltano/.venv/lib/python3.6/site-packages/meltano/core/sql/base.py", line 98, in find_table
    raise ParseError(f"{name} not found in design {self.name}")

meltano.core.sql.base.ParseError: google_analytics_website_overview not found in design google_analytics_locations

That's very strange, cause there is no google_analytics_website_overview defined in the google_analytics_locations design (which only uses the google_analytics_locations table) or the table for that design:
https://gitlab.com/meltano/model-google-analytics/blob/master/models/google_analytics.topic.m5o
The google_analytics_website_overview table is only referenced in google_analytics_website_overview.table.m5oand its respective design which also uses only that table.
So there should be no cross reference to that table from reports generated for Google Analytics > Google Analytics Locations
So, I went and checked this report:
analyze/reports/audience-stats-by-location-high-to-low-total-user-count.report.m5o
{"chart_type": "LineChart", "created_at":<PHONE_NUMBER>.6846542, "design": "google_analytics_locations", "filters": {"aggregates": [], "columns": []}, "id": "F53GC4RPNVSWY5DBNZXS64DSN5VGKY3UF5QW4YLMPF5GKL3SMVYG64TUOMXWC5LENFSW4Y3FFVZXIYLUOMWWE6JNNRXWGYLUNFXW4LLINFTWQLLUN4WWY33XFV2G65DBNQWXK43FOIWWG33VNZ2C44TFOBXXE5BONU2W6===", "model": "google_analytics", "name": "Audience Stats by Location - High to Low Total User Count", "namespace": "model-google-analytics", "order": {"assigned": [{"attribute": {"description": "Total Users", "label": "Total Users", "name": "total_users", "selected": true, "source_label": "Location Stats", "source_name": "google_analytics_locations", "sql": "{{table}}.users", "type": "sum"}, "direction": "desc"}], "unassigned": [{"attribute": {"description": "Full Date", "hidden": false, "label": "Date", "name": "report_date", "primary_key": true, "selected": true, "source_label": "Location Stats", "source_name": "google_analytics_locations", "sql": "{{table}}.report_date", "type": "string"}, "direction": "asc"}, {"attribute": {"description": "City", "hidden": false, "label": "City", "name": "city", "primary_key": true, "selected": true, "source_label": "Location Stats", "source_name": "google_analytics_locations", "sql": "{{table}}.city", "type": "string"}, "direction": "asc"}]}, "path": "/var/meltano/project/analyze/reports/audience-stats-by-location-high-to-low-total-user-count.report.m5o", "query_payload": {"name": "google_analytics_website_overview", "columns": ["report_date"], "aggregates": ["total_users"], "timeframes": [], "joins": [], "order": [{"direction": "desc", "source_name": "google_analytics_locations", "attribute_name": "total_users"}], "limit": 50, "loader": "target-postgres", "filters": {"aggregates": [], "columns": []}}, "slug": "audience-stats-by-location-high-to-low-total-user-count", "version": "1.0.0"}

formatted version of the file for easy reading
{
   "chart_type":"LineChart",
   "created_at":1575508419.6846542,
   "design":"google_analytics_locations",
   "filters":{
      "aggregates":[

      ],
      "columns":[

      ]
   },
   "id":"F53GC4RPNVSWY5DBNZXS64DSN5VGKY3UF5QW4YLMPF5GKL3SMVYG64TUOMXWC5LENFSW4Y3FFVZXIYLUOMWWE6JNNRXWGYLUNFXW4LLINFTWQLLUN4WWY33XFV2G65DBNQWXK43FOIWWG33VNZ2C44TFOBXXE5BONU2W6===",
   "model":"google_analytics",
   "name":"Audience Stats by Location - High to Low Total User Count",
   "namespace":"model-google-analytics",
   "order":{
      "assigned":[
         {
            "attribute":{
               "description":"Total Users",
               "label":"Total Users",
               "name":"total_users",
               "selected":true,
               "source_label":"Location Stats",
               "source_name":"google_analytics_locations",
               "sql":"{{table}}.users",
               "type":"sum"
            },
            "direction":"desc"
         }
      ],
      "unassigned":[
         {
            "attribute":{
               "description":"Full Date",
               "hidden":false,
               "label":"Date",
               "name":"report_date",
               "primary_key":true,
               "selected":true,
               "source_label":"Location Stats",
               "source_name":"google_analytics_locations",
               "sql":"{{table}}.report_date",
               "type":"string"
            },
            "direction":"asc"
         },
         {
            "attribute":{
               "description":"City",
               "hidden":false,
               "label":"City",
               "name":"city",
               "primary_key":true,
               "selected":true,
               "source_label":"Location Stats",
               "source_name":"google_analytics_locations",
               "sql":"{{table}}.city",
               "type":"string"
            },
            "direction":"asc"
         }
      ]
   },
   "path":"/var/meltano/project/analyze/reports/audience-stats-by-location-high-to-low-total-user-count.report.m5o",
   "query_payload":{
      "name":"google_analytics_website_overview",
      "columns":[
         "report_date"
      ],
      "aggregates":[
         "total_users"
      ],
      "timeframes":[

      ],
      "joins":[

      ],
      "order":[
         {
            "direction":"desc",
            "source_name":"google_analytics_locations",
            "attribute_name":"total_users"
         }
      ],
      "limit":50,
      "loader":"target-postgres",
      "filters":{
         "aggregates":[

         ],
         "columns":[

         ]
      }
   },
   "slug":"audience-stats-by-location-high-to-low-total-user-count",
   "version":"1.0.0"
}

As you can see, google_analytics_website_overview is referenced in this report for query_payload.name while it should have been google_analytics_locations (at least that's how other reports behave)
We should investigate why and how this report was generated and also fix the issue on meltano.meltanodata.com

View 13 previous comments from the original issue on GitLab


data

Can you tell me where that the fajsp data comes from ：）

Hi, thanks for showing interest in the project!
The both the problem variants for fajsp are coming from:
Ernesto G Birgin, Paulo Feofiloff, Cristina G Fernandes, Everton L De Melo, Marcio TI Oshiro, and D´ebora P Ronconi. A milp model for an extended version of the flexible job shop problem. Optimization Letters, 8:1417–1431, 2014.

Thank you for your response, and also for your public project! :-)

I'm glad to hear that you appreciate our work :-).
We will update the paper of the work shortly (hopefully within 2 weeks). In the paper, we will include all the references to the solution methods/data resources, and will also provide best-known/optimal solution values on the different instances used in the work.
In the meantime, if you find our repository helpful or interesting, we would greatly appreciate it if you could star it, helping others to discover our work as well. 😊


[WR] remove validation from contest type

Pivotal Card
Updates data-spec to not worry about formatting for contest type.

LGTM


add sttp

fyi @adamw

test run: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2077/consoleFull (404 til Jenkins finishes brushing the dust and cobwebs off this newly discovered cache of vintage Typesafe swag)

let's try again, with sbt.version set appropriately this time: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2078/consoleFull

and again, after some scalafmt-related tweaking: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2079/consoleFull

these should be easy enough to address, either by disabling the subprojects in question, or adding the libraries:

[sttp] [warn] **** Missing dependency: the library com.github.zainab-ali#fs2-reactive-streams is not provided (in space "default") by any project in this configuration file.
[sttp] [warn] **** Missing dependency: the library io.circe#circe-parser is not provided (in space "default") by any project in this configuration file. are easy enough to understand

but I don't know wtf this is:
[sttp] [error] Modules were resolved with conflicting cross-version suffixes in {file:/home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.9/project-builds/sttp-e1fdb9bddff73c71fe68ffdfb5cfe4444cb2dc77/}tests:
[sttp] [error]    org.typelevel:cats-macros <none>, _2.12
[sttp] [error]    org.typelevel:cats-effect <none>, _2.12
[sttp] [error]    org.typelevel:cats-kernel <none>, _2.12
[sttp] [error]    org.typelevel:machinist <none>, _2.12
[sttp] [error]    org.typelevel:cats-core <none>, _2.12

new test run: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2096/consoleFull (404 til Jenkins finishes swimming with the manatees)

let's try that again with merged changes from 2.12.x head: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2099/consoleFull (404 til Jenkins finishing picking a big of hunk of he doesn't even want to know what it is out of his teeth)

[sttp] [warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[sttp] [warn] 	::          UNRESOLVED DEPENDENCIES         ::
[sttp] [warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[sttp] [warn] 	:: com.softwaremill.sttp#async-http-client-backend-fs2;0.0.20-dbuildx98c95f489f1d4f1bfc0c4451cee79baee72091be: not found
[sttp] [warn] 	::::::::::::::::::::::::::::::::::::::::::::::

https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2101/consoleFull

really not sure what that error is about. further commits haven't helped

well, I wanted to finish this up, but there's just too much else on my plate right now. I threw it on the list at https://github.com/scala/community-builds/issues/161 and linked to this PR in case I decide to take it back up (or somebody else wants to work on it)

"I just noticed this & a (so far failed) attempt to add sttp. No idea how this works, but if you would need some help on the sttp's build, let me know :)", says @adamw

@adamw I was confused before, I think.... there is no mysterious problem here, it's just that fs2-reactive-streams needs be in there first before we can add sttp. I'll try it sometime soon-ish and see how it goes

new test run: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2395/consoleFull

tons of compile errors in fs2-reactive-streams, e.g.:
[fs2-reactive-streams] [error] /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.9/project-builds/fs2-reactive-streams-5fb9cbb5bebf7cef2afd2cf8e7e4e97f82d7964c/core/src/main/scala/fs2/interop/reactivestreams/StreamSubscriber.scala:8:8: object Promise is not a member of package fs2.async
[fs2-reactive-streams] [error] import fs2.async.{Promise, Ref}
[fs2-reactive-streams] [error]        ^

ticket on the cats 1.0 upgrade: #653

zainab-ali/fs2-reactive-streams@c534a8f3bf3348a8cf85c78bfe594b968031e48a has the upgrade, so this is now worth a try-again

https://github.com/zainab-ali/fs2-reactive-streams/pull/43 should enable a try-again on this

@adamw I think you'll need to upgrade sttp to fs2 0.10 to make this error go away. currently you're on 0.10.0-M10. I think the way to fix it is to move to "com.github.zainab-ali" %% "fs2-reactive-streams" % "0.5.0"
[sttp] [error] /Users/tisue/community.212/target-0.9.9/project-builds/sttp-b0a17e3b67acebf6e11f3c2d33519f5590682631/tests/src/test/scala/com/softwaremill/sttp/streaming/AsyncHttpClientFs2StreamingTests.scala:27:8: value runFoldMonoid is not a member of fs2.Stream[cats.effect.IO,String]
[sttp] [error] possible cause: maybe a semicolon is missing before `value runFoldMonoid'?
[sttp] [error]       .runFoldMonoid
[sttp] [error]        ^

for now I'll simply exclude your tests subproject from the community build, so we can get this merged

fyi @zainab-ali

@SethTisue updated to latest fs2-reactive-streams

@adamw where? did you push the change?

@SethTisue there was a connection error during push, now it's pushed :)

thanks! 7f64fdc01ecd421732ce7cae6e946e4987b5baec re-adds the subproject in question


ARROW-1595: [Python] Fix package dependency resolution issue causing broken builds

One of the dependencies installed in the docs requirements is causing NumPy to get downgraded by the SAT solver, and this is then causing an ABI conflict with the pyarrow build (which was built with a different version of NumPy). This installs everything in one conda install call

+1. thanks @jreback -- if the build failures reappear we can apply this fix


Javascript: TypeError: ":".split is not a function

Error on foundation.js:503 (Foundation.utils.data_options) version 5.3.3 and 5.4
Fails when a param on data-options attribute is a float
Example:

This is the line:
opts_arr = (cached_options || ':').split(';');

the solution, add toString() method:
opts_arr = (cached_options || ':').toString().split(';');

I'm not sure to pull this change. would be my first commit on foundation repo :)

@jtouza I'm not sure that this issue is coming from the utils object. I think it might be a problem with whatever component you're using it with. It looks like that since this issue was reported, there is a way of sanitizing options after the options have been passed through.
Closing this issue for now.


[BUG] Cannot confirm 0 selected assets

If you are passing in a list of selectedAssets, and you deselect them all, the confirm button is disabled.
You should be able to confirm that you want to deselect all items.

The request seems valid, but please submit a feature request following the issue template so we can track this properly. Thanks.


The specified mapping 'snapshot_20161129' does not exist!

Attempting to clone the repo and setup the workspace, however, I'm getting the error specified in the title. I've followed the steps as shown in the readme. Any ideas why I'm getting this error?

Raises an issue concerning single-points-of-failure.

Raises an issue concerning single-points-of-failure, really.

To be honest, the mappings repository being down would affect far more than just sponge at this point, since it's the backbone for forge modding and other modding development communities. That being said, it's the internet, sometimes things go down.


BST-56247 TCTR : Add "Save as draft" button to all forms. FORDataCaptureController

In RALD user can do "Save as draft" after filling any form and saving this data in session. So any data that exists in session can ca be saved as draft. Why we can't keep this logic?


Migrate e2e test for Value metricType to Go

Proposal
Relates to https://github.com/kedacore/keda/issues/2357, https://github.com/kedacore/keda/issues/2737.
Use-Case
No response
Anything else?
We should port this test to another simpler upstream to check it as internal feature
https://github.com/kedacore/keda/blob/main/tests/scalers/prometheus-value-metric-type.test.ts

+1 probably using Kubernetes Workload Scaler or some similar, that doesn't require addional service.
The current internal e2e tests should be transfered to this simple scaler as well.


chore(packages): upgrade fs-promise and inquirer

Have you read the section in CONTRIBUTING.md about pull requests?
Yes
Are your changes appropriately documented?
N/A
Do your changes have sufficient test coverage?
N/A
Does the testsuite pass successfully on your local machine?
Yes
Summarize your changes:
Upgrade fs-promise and inquirer.
I wonder if it would be worth it to add $DEPENDENCY_UPDATER (I've been lazy about it in Electron Packager - list of candidates in https://github.com/electron-userland/electron-packager/issues/343).

@malept I'm not sure why the build failed.  Checking it out now.


BUILD FAILED at Task :Utility:compileJAVA

Describe the bug
I cannot compile ghidra by following the installation guide.
To Reproduce
Steps to reproduce the behavior:

download source code and run the commands found on the README:

git clone https://github.com/NationalSecurityAgency/ghidra.git
cd ghidra
gradle -I gradle/support/fetchDependencies.gradle
gradle buildGhidra

getting an error when running the command gradle buildGhidra:

> Configure project :
Java: 17
Gradle: 8.7
Python3 command:  python3 (version 3.12)
Python3 pip version: 24.1.2
OS: Linux
Arch: amd64 (gradle: x86-64)
Using platform: linux_x86_64

> Configure project :Debugger-agent-dbgeng
WARNING: dbgmodel.tlb omitted from ghidradbg python package

> Task :Utility:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':Utility:compileJava'.
> error: invalid source release: 21

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1s
3 actionable tasks: 1 executed, 2 up-to-date

Expected behavior
Succesfully Compile Ghidra
Screenshots

Attachments
If applicable, please attach any files that caused problems or log files generated by the software.
Environment (please complete the following information):

OS: Gentoo GNU/Linux
Java Version: 17.0
Ghidra Version: 11.1.2 (latest)
Ghidra Origin: official GitHub distro
JAVA_HOME: /usr/lib/jvm/openjdk-bin-17
Gradle Version: 8.7

Additional context
I installed every single dependency needed (at least all noted on the README file)

* What went wrong:
Execution failed for task ':Utility:compileJava'.
> error: invalid source release: 21

you're using 17, change to 21

* What went wrong:
Execution failed for task ':Utility:compileJava'.
> error: invalid source release: 21

you're using 17, change to 21

Thanks, works all fine now !


Rename factory

coverage: 98.604% (+0.06%) from 98.541%
when pulling 15023a766ed28c92453791fc55182f6b7ccc6adf on users/alexpeck/factory
into af2ce79100ca078aa01c682956a0ab9f06bd9df2 on main.


Allow glob composes

This is a pretty big change and duplicates some work in postcss-easy-import (glob import). Maybe postcss-modules, postcss-import and postcss-easy-import should be merged (or based off one another) as postcss-modules is basically a class based @import with optional mapping to localized classes.
Consider
.title {
	composes: * from './prefix*.css';
}

@nwmcsween There's different mechanism under the hood. They can't be just merged. Also your example has a lot of implicits which reduces mainainability of your modules. You can get large classname in browser which can look like inline styles.

@nwmcsween PostCSS-modules is just a wrapper around CSS Modules core, so it won't introduce any syntax changes, sorry. Regarding the proposal, I agree with @TrySound.


init testground

testground is plain cra, used for testing ground all the packages

Codecov Report

Merging #15 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master    #15   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines          56     56
  Branches       10     10
=====================================
  Hits           56     56

Continue to review full report at Codecov.

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


Different upstreamProxy based on headers

Is this possible?

Nope, no out-of-the-box way to do this.


Add nameid and loa to log_logins

This issue is imported from pivotal - Originaly created at Feb 21, 2020 by Thijs Kinkhorst
We log each successful authentication as a JSON. Please add two new pieces of information to this:

The actual issued NameID for the user (regardless of type (persistent, transient or unspecified))
If any loa will be asserted in the assertion, that loa string.

Example log entry with the issued name id value
Feb 27 09:22:09 apps.vm.openconext.org EBAUTH[8330]: {"channel":"authentication","level":"INFO","message":"login granted","context":{"login_stamp":"2020-02-27T09:22:09.812254+01:00","user_id":"urn:collab:person:example.com:test_user","issued_name_id_value":"c336551ef5ab251d07407f19795e1a62d7426a7d","sp_entity_id":"https://profile-dev.vm.openconext.org/authentication/metadata","idp_entity_id":"http://mock-idp","key_id":null,"proxied_sp_entity_ids":[],"workflow_state":"prodaccepted"},"extra":{"session_id":"m7jqgt2kkt2f2ji4vn7asf398j","request_id":"5e577c301693d"}}

I picked the issued_name_id_value for a label. The name id format that was issued is not logged. Would that be a useful addition @thijskh ? (Michiel Kodde - Feb 27, 2020)

Adding the format seems a bit verbose to me at this point so let’s add that only when a need arises (Thijs Kinkhorst - Feb 27, 2020)

@thijskh, if I understand the logging of the LOA correctly only the requested LOA should be logged and not the given LOA. Is that correct? (bstrooband - Apr 29, 2020)

I would say given/attained loa. Or is that difficult? (Thijs Kinkhorst - Apr 29, 2020)

To get the LOA were it's going to be logged is a bit difficult because all state is cleared and after that the logging takes place. But If I have the given LOA I'll also have the attained LOA so that part would be easy.
The story description in the story mentions 'any LOA that will be asserted' but I reckoned that if the attained LOA wouldn't be logged that could be very misleading. So that's why i asked this question (bstrooband - Apr 29, 2020)

It’s not essential right now which one of the two it is. So in the agile spirit we should choose the one that’s simplest to implement (and change it later when requirements are more specific) (Thijs Kinkhorst - Apr 29, 2020)

This does not work as expected for both pieces of information. Two examples
May 13 11:19:21 t06.ams.surfconext.nl EBAUTH[12567]: {"channel":"authentication","level":"INFO","message":"login granted","context":{"login_stamp":"2020-05-13T11:19:21.565084+02:00","user_id":"urn:collab:person:surfnet.nl:kinkhorst","sp_entity_id":"https://teams.test2.surfconext.nl/shibboleth","idp_entity_id":"https://idp.surfnet.nl","key_id":null,"proxied_sp_entity_ids":[],"workflow_state":"prodaccepted","original_name_id":"kinkhorst","attained_loa":null},"extra":{"session_id":"fpl542f1qr4ld1ke5e5th3urhc","request_id":"5ebbbb9972e4c"}}

May 13 11:21:09 t06.ams.surfconext.nl EBAUTH[12570]: {"channel":"authentication","level":"INFO","message":"login granted","context":{"login_stamp":"2020-05-13T11:21:09.081561+02:00","user_id":"urn:collab:person:surfnet.nl:kinkhorst","sp_entity_id":"urn:thki:sid:ee1","idp_entity_id":"https://idp.surfnet.nl","key_id":null,"proxied_sp_entity_ids":[],"workflow_state":"prodaccepted","original_name_id":"kinkhorst","attained_loa":null},"extra":{"session_id":"c8g9j69ebdkn9mvg9ac08rv6oe","request_id":"5ebbbc04f09f3"}}

Both log not the NameID value that is released to the SP but the NameID value that was incoming from the IdP. In the first case, an unspecified nameid in the form urn:collab:person:surfnet.nl:kinkhorst was sent to the SP. In the second one a persistent nameID: <saml:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">6ff03967cea7899726c52f4054f6cdb31ad7c43f</saml:NameID>
The first authentication has been done with stepup, the loa is correct in the assertion:
<saml:AuthnContextClassRef>http://test2.surfconext.nl/assurance/loa3</saml:AuthnContextClassRef>
But not logged.
(Thijs Kinkhorst - May 13, 2020)

I indeed implemented the logging of the NameID issued from the IdP. I'll change it to the one sent to the SP. It's sufficient for a persistent NameID to only log the value, so 6ff03967cea7899726c52f4054f6cdb31ad7c43f should be sufficient in your first example?
I'm only currently unable to reproduce the missing LOA in the log on my local dev machine. If I run the functional tests it seems to work as expected and the given LOA gets logged. Is there currently a possibility I can test this myself on test2? (bstrooband - May 13, 2020)

Yes
teams.test2.surfconext.nl (Thijs Kinkhorst - May 13, 2020)

I've tested it and it seems that GW was using the EB acs location and not the EB sfo acs location. This seems to be happening because the configured stepup.gateway.sfo.entity_id was used as internal EB SFO entity.  This is ultimately used so GW knows which acs location to post the callout back to.
I've changed the parameters.yml on test2 to use:
stepup.gateway.sfo.entity_id: \'https://engine.test2.surfconext.nl/authentication/sfo/metadata
Are you able to verify if the  logging is now working as expected?
If so, I think it's better to remove this configuration option completely. (bstrooband - May 14, 2020)

I'm not sure I follow, but when testing I now get the "unknown idp" error on test2. (Thijs Kinkhorst - May 15, 2020)

You're right, the problem was that the sso_location was wrong. OpenConextDeploy  uses gateway as hostname in Ansible. In OpenConext (our dev env) gateway is used while in SurfConext this should be sa-gw. I've changed it on test2. Could you verify if you are still able to reproduce the issue?
Currently I'm also working on a feature so you don't need a valid Stepup config if you don't use Stepup. Do you want a custom error page for when a config is needed while not configured? I saw that this wasn't implemented when both an IdP and a SP have Stepup configured in Manage either.
(bstrooband - May 19, 2020)

Specific error page not needed (Thijs Kinkhorst - May 19, 2020)

The problem which prevented logging the LOA level was because when the AM filtering was triggered a decorator was being serialized and deserialized. The deserialization was done without the decorator so all decorated values were lost. This is now being circumvented by logging the authncontextclassref. Currently this is a good solution and shouldn't interfere with other EB use cases. (bstrooband - May 25, 2020)

It works now as requested.
One detail I missed is that the json key is still original_name_id. But it does not contain what inside EB is referred to as the "original nameid". So that can be confusing in the future.
The functionality works now so let's accept this release for us but I propose to pay back this technical debt by changing the name in the next release (also means that not many other users will already be depending on the name). (Thijs Kinkhorst - May 26, 2020)

On second inspection I don't get a clear view of what the EB code intends with the word "original" in original name ID. Let's just leave it for now. We'll refactor it when it turns out to be a problem. (Thijs Kinkhorst - May 26, 2020)

That was because it did initially log the incoming NameId from the IdP and I fixed the value but I forgot to change the key. (bstrooband - May 26, 2020)


[NETBEANS-1074] module review javaee.api

Added license header in binaries-list, pointed to maven repository.
Changed to license CDDL 1.1 : https://javaee.github.io/glassfish/LICENSE
VerifyLibsandLicenses has open failure : enterprise/javaee.api/external/javax.annotation-api-1.2.jar and jaxrs-ri/ext/javax.annotation-api-1.2.jar in enterprise/websvc.restlib/external/jaxrs-ri-2.5.1.zip are identical
I believe this can be corrected by updated ignored-overlaps file after websvc.restlib module review is complete.

Great, once the above are done, let's merge.

Thanks Matthias, included both changes.


Fix styling issues in gene association column

@WilliamRichards2017 this fixes the same issue that you had noticed in clin.iobio PR:https://github.com/iobio/clin.iobio/pull/204

quarantest build successful. Demo link at
http://d0bf4ef3.quarantest.iobio.io


Added available method to all wink components

Description:
This is the final requirement to fix issue #861 with this PR any Wink device that reports as "Offline" in the Wink iOS or Android Apps will now be disabled in the front-end with a grey icon and the text "unavailable" in place of the switch or sensor status.
Related issue (if applicable): #861
Example entry for configuration.yaml (if applicable):

Checklist:

[X] Local tests with tox run successfully.
[x] TravisCI does not fail. Your PR cannot be merged unless CI is green!
[X] Fork is up to date and was rebased on the dev branch before creating the PR.
[X] Commits have been squashed.
If code communicates with devices:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[X] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

:+1: :dolphin:


Add support for currentDirectoryPath in Process class

This patch adds support for the currentDirectoryPath property on Process
Since posix_spawn doesn't make it easy to change the working directory, a
call to chdir is issued just before the process executes. It looks like
lldb follows a similar pattern in one of its tools
(tools/darwin-debug/darwin-debug.cpp).
This also addresses SR-3524

@parkera please review the revised commit.

Looks good, thanks. Can you just do one more thing for me and add a couple lines to the test to 1. get the CWD before/after and comparing, to verify that we did that correctly too.

@parkera: Done! Please re-review the latest commit.

@swift-ci please test

@parkera Good to go?

Yes, thanks for taking this one on!

@swift-ci test and merge


Algolia Integration - Unable to add Document Types on Create Index Definition panel

I'm using Umbraco 10.3.2 and I can't select Document Types on the Create Index Definition panel because the editor is not loading:

Thanks
Tony

Hi Tony,
Could you tell me which version of Umbraco are you using?

Hi Adrian,
I'm using Umbraco 10.3.2 and Umbraco.Cms.Integrations.Search.Algolia 1.0.0.
Thanks
Tony

Hey @acoumb, can you reproduce this issue in Umbraco v11? We have similar problem, although I don't see any console errors, the document types control just doesn't load.
Thanks

That does indeed seem to be the problem as if I create a content type at the root it appears in the control as expected:

I think it needs to account for folders/nesting for it to work correctly.
Thanks

Thanks for clarifying this, I will take your input into consideration and address the matter.

Hi @d-gibbs ,
I've release version 1.1.1 of the package with updates to content type retrieval.
I am closing this now, let me know if you have other input.