[devtools] doesn't log actions since v2

When updating from 1.0.7 to 2.2.1, I lose the tracking of all actions in the Redux devtools:
2.2.1

1.0.7

The app works just fine and the store updates correctly when using the app, it just doesn't log out the commits any more.
Using it like:
import create, { StateCreator } from 'zustand'
import { devtools } from 'zustand/middleware'

export const DefaultStoreState: DefaultStateGetters = {
  lastDataUpdate: new Date(),
  loading: false,
  showDrawer: false,
  message: null,
  ...
}

const store: StateCreator<DefaultState> = (set, get) => ({
  ...DefaultStoreState,
  ...
})

export const [useStore, Store] = create<DefaultState>(devtools(store, 'WACHS App Store'))

Any pointers would be appreciated. Let me know if you need more detail and I will update this post.
Cheers & thanks
Patrik

Hey @pzi,
As you can see on the line https://github.com/react-spring/zustand/blob/master/src/middleware.ts#L33, you need to put name of your function that you want to track in Redux dev tools.
For example:
const [useStore] = create(devtools(set => ({
  count: 1,
  inc: () => set(state => ({ count: state.count + 1 }), 'inc'),
  dec: () => set(state => ({ count: state.count - 1 }), 'dec')
})))

I had the same problem too! Hope this help.

thanks for the suggestion @vuhg, however, it seems that the types in typescript are not up-to-date as it's complaining about set only accepting 1 argument, not 2.

do you know what types it would need? im still struggling with TS. i can update and cut a release to fix this.

Yeah, you need to update set's signature in middleware or index.

Can you try this this @pzi:
import create, { State, PartialState } from './zustand'
import { devtools } from './zustand/middleware'

type NamedSetState<T extends State> = (partial: PartialState<T>, name?: any) => void

interface Count {
  count: number
}

const [useStore] = create<Count>(devtools((set: NamedSetState<Count>) => ({
  count: 1,
  inc: () => set((state: any) => ({ count: state.count + 1 }), 'inc'),
  dec: () => set((state: any) => ({ count: state.count - 1 }), 'dec')
})));

@drcmda, should we export this in middleware.ts
export type NamedSetState<T extends State> = (partial: PartialState<T>, name?: any) => void

i guess, would you make the PR?

Hey drcmda, i'm struggling with TS too  😅 .
I can't get (partial: PartialState<T>, name: any = "action") fallback.
This is popular library (can affect a lot of devs) so i think it better to wait for some TS expert helping us here.

Yeah with the type override it works :) Will use that for now. thanks

I was considering submitting a PR to change the following line:
const namedSet = (state: any, name?: any)
in https://github.com/react-spring/zustand/blob/master/src/middleware.ts#L33 to
const namedSet = (state: any, name: any = 'action')
but that would mean it would always log for to devtools for everyone. Unsure if that's desired?

@JeremyRH what do you think?

@pzi Your issue Expected 1 argument but got 2 is caused by this:
const store: StateCreator<DefaultState>

The StateCreator type shouldn't be used with the middleware's devtools function.
Try this:
type DevToolsStateSetter<T> = (partial: PartialState<T>, name?: string) => void

const store = (
  set: DevToolsStateSetter<DefaultState>,
  get: GetState<DefaultState>
): DefaultState => ({
  ...DefaultStoreState,
  ...
})

We should export a DevToolsStateCreator type in middleware to solve this. We should also default name to 'action' like you said.

For anyone who comes here looking for a quick fix, my solution was to make a type based on the normal StateCreator:
import { State, StateCreator } from 'zustand';

/** To allow named functions when using devtools */
type StateCreatorDev<T extends State> = (
  set: Parameters<StateCreator<T>>[0] & { name?: string },
  get: Parameters<StateCreator<T>>[1],
  api: Parameters<StateCreator<T>>[2]
) => T;

Can we get this in the docs?

I followed the naming suggestions in this thread, but was still not seeing actions.
I found a quick fix... see PR #117

Does anybody know what's the status of this issue?

Hey @dai-shi,
@vuhg Solution works. But however, if we use immer we have to pass args like below otherwise it will not show state updates in the dev tools.
const immer = (config) => (set, get, api) =>
  config((fn, args) => {
	// args equals to the name we passed to the function in our store ("SET_CART_OPEN", "SET_BACKDROP_OPEN")
    return set(produce(fn), args), get, api;
  });

const [useStore] = create<Store>(
  devtools(
    immer((set) => ({
      cart: {
        open: false,
        setOpen: (value) =>
          set((state) => {
            if (typeof value !== "undefined") {
              state.cart.open = value;
            } else {
              state.cart.open = !state.cart.open;
            }
          }, "SET_CART_OPEN"),
      },
      backdrop: {
        open: false,
        setBackdropOpen: (value) => {
          set((state) => {
            state.backdrop.open = value;
          }, "SET_BACKDROP_OPEN");
        },
      },
    }))
  )
);

@vuhg Thanks for the note. Let me read the thread again.
So, the issue can be divided into three pieces, correct?

namedSet should have default name
TS type in devtools doesn't allow adding set names.
Typing with immer middleware needs a workaround

BTW, I have some questions about typing with immer. #96

v3 has replace flag in the second argument. we need to find a better way for the devtools middleware. cc @drcmda

Now v3 is out, We need to fix this. Does anyone have ideas?

Very helpful issue thread! Saved me some hours

I think I fixed it fully. #167


Mindmap functionality

Add Mindmap functionality to collaborate around.
(See FreeMind or MindMaster)

Building a mindmap experience for VS Code would be out of scope for Live Share, and so  our preferred solution would be to integrate with an existing extension. As a result, I'm going to close this issue as "won't fix", in favor of us filing an issue with a mind map extension, to add VS Live share support. Let us know if there's an extension you're using, that we should look into. Thanks!

Building a mindmap experience for VS Code would be out of scope for Live Share, and so  our preferred solution would be to integrate with an existing extension. As a result, I'm going to close this issue as "won't fix", in favor of us filing an issue with a mind map extension, to add VS Live share support. Let us know if there's an extension you're using, that we should look into. Thanks!


fix: Fixed uischema backup extension filename in update-schema.ps1

Description
The backup filename for the sdk schema and UI schema are the same in the update-schema.ps1 script.  This is not a bug in the sh script.  Updated the extension to .uischema in the ps1.
Task Item
#minor
Screenshots
N/A

Coverage remained the same at 56.425% when pulling c3932a5473fd82a4a577b53fdd8cfecf10e53e42 on gcox/updateSchemaNitFix into 66f5d14a0122527714e25205151e9d2017833018 on main.


404 problem on page load

Hello community,
I have a Notion site that redirects to uk.gojob.tech using Mayne's script as shown in the process.
But when I load the site, it directly detects a 404 when looking for my Notion site ID. But the site still loads. However, Google is showing me a 404 error when it crawls the site.
Have you had this problem before? What are the ways to solve it?
Thanks in advance,

interesting , if I see everything works normally , I think that for the browser to search for you I think you have to add the configuration when creating the scrip where the Google* section. @kevin-gojob

I noticed that your site no longer has the 404 error problem, how did you solve this problem?

Facing this problem. How did you solve it? Thanks!

What's up @kevin-gojob  , I see that everything is working properly if so close the thread. and share the experience in solving for future similar problems, greetings.


update Gemfile and remove ruby 1.9.3 support

Kudos @atomic111 for this contribution, see https://github.com/dev-sec/tests-ssh-hardening/pull/68/files

@arlimus thanks for the improvement


Synced data does not process as expected

After updating the immunization records of baby Victor Beyan. The original device shows that Vitamin A is overdue and the master device shows BCG is overdue.
To replicate,fill in immunization details of child, and then sync the data.

[ ] Fixing misalignment and processing of synced data

@hmakandi Can you post the screenshots of the two upcoming services pages as well? If the information displayed is the same for both, then this becomes a lower priority issue.

This has been reported to the CHW team which is investigating and working on thiss

This has been reported to the CHW team since it is not a peer-to-peer issue.
Cc @rkodev

@cafootitt the upcoming services pages do not show the same information
This issue has been moved to https://github.com/OpenSRP/opensrp-client-chw/issues/438


Questions about joint training with html and bbox.

unitable uses two different models to predict html tokens and bbox tokens separately. I want to know if you have tested a model that outputs html+bbox tokens at the same time, with the data structure as follows:

html only output:      ["", "	"]
bbox only output:     ["bbox-1", "bbox-2", "bbox-3", "bbox-4"]
html+bbox output:   ["", "bbox-1", "bbox-2", "bbox-3", "bbox-4", "	", "	"]

The main points for doing this are:

The inference efficiency can be improved.
Hopefully, the correspondence between html tags and bbox will be more accurate.

I would love to know your thoughts on this, thank you.

Hi @Sanster, thanks for the question! There are two main reasons that UniTable is not combining html+bbox right now:

UniTable v1.0 is based on vanilla transformer, so longer input length will significantly increase the memory consumption and decrease the training batch size.
The html branch and bbox branch are independent to each other. Thus, we can infer in parallel in real-world production instead of sequentially if merged in one output sequence.

Btw, thanks for the PR. I will check that later in the fall. 😊

@ShengYun-Peng, for the point 2, in case that the no. of detected bbox and the no. of detected [] are not aligned, if missing the bbox in html branch, the function build_table_from_html_and_cell is not able to match the correct cell with content when building the html.


Getting "Failed to start ... The filename or extension is too long." when running with gauge-maven-plugin

From @olejkavn on July 17, 2017 10:12
When trying to run my specs with gauge-maven-plugin, I'm getting the following(in terminal):
Failed to start C:\Java\jdk1.8.0_131\jre\bin\java.exe. fork/exec C:\Java\jdk1.8.0_131\jre\bin\java.exe: The filename or extension is too long.
Failed to start gauge API: Runner with pid 5552 quit unexpectedly(exit status 1).
Versions

IntelliJ version and edition(Ultimate): 2017.1.5
OS information: windows 10
Gauge IntelliJ plugin version: 0.3.4

Gauge version: 0.8.5

Plugins
-------
html-report (4.0.1)
java (0.6.4)

Issue connected to limited classpath length on windows OS(my classpath length is 33714 chars)
As workaround I set my user.home variable to "C:\"(my classpath length was reduced to 28054 chars), but I think it should work without it.
Copied from original issue: getgauge/Intellij-Plugin#277

From @olejkavn on July 17, 2017 11:38
@BugDiver yes, you are right
How I can move this issue to https://github.com/getgauge/gauge-maven-plugin?

@olejkavn It doesn't look like an issue with Gauge IntelliJ plugin.
As per MSDN the MAX_PATH can not be more than 32767.

@olejkavn This issue belongs to gauge-java. @mdolinin has already raised a PR which address this issue but currently it's breaking the builds. We are looking into it.

From @olejkavn on July 17, 2017 11:41
@BugDiver Also want to say that same issue reproduced whan i'm trying to run specs via  Gauge IntelliJ plugin, I'm sure that plugin should handle such situation without user adjustments

Fixed via #102. Should be available in nightly >= 18-7-2017

@olejkavn - Can you please confirm if this issue is resolved.

@olejkavn: Closing this issue, as it is resolved. Please feel free to reopen it incase you face the issue again.


Window visibility not working as expected with FLET_APP_HIDDEN

Description
I am encountering an issue when trying to implement the code documented in the Flet.dev documentation regarding controlling window visibility (referencing the section at https://flet.dev/docs/controls/page/#window_visible). Specifically, I'm experimenting with the view=ft.AppView.FLET_APP_HIDDEN option to hide the application window as described.
However, it appears that this feature is not functioning as expected in recent versions of the Flet library (including but not limited to version 0.20.2). Upon applying FLET_APP_HIDDEN, the window does not get hidden as documented.
Code example to reproduce the issue:
from time import sleep

import flet as ft

def main(page: ft.Page):
    print("Starting the process...")
    page.add(
        ft.Text("Hello!")
    )

    sleep(3)
    print("Waking up from sleep...")
    page.window_visible = True
    page.update()

ft.app(target=main, view=ft.AppView.FLET_APP_HIDDEN)

Describe the results you received:
The window appears immediately upon program execution and does not get hidden during that period.
Describe the results you expected:
The program starts with a hidden window and makes it visible in 3 seconds.
Additional information you deem important (e.g. issue happens only occasionally):
This feature functions as intended on another computer running Flet version 0.10.
Flet version (pip show flet):
flet 0.20.2

Operating system:
Windows 11 22H2
Please let me know if you need any more details or have suggestions for further troubleshooting steps. Thank you!

Same problem here.

Yeah same

I figured it out, For some reason in app.py the tcp socket server is started that listens for flet client calls instead of a web server

@ositoMalvado, it will be nice if you could provide more information (Flet version, OS, etc).

@ositoMalvado, it will be nice if you could provide more information (Flet version, OS, etc).

Sorry I have forgotten.
Flet 0.22.1
Python 3.11.9
Microsoft Windows [10.0.22631.3593]

+1

Same problem
Python 3.12.1
Flet 0.22.1
Windows 10 Pro 22H2

Same problem =)
Python 3.12.2
Flet 0.22.1
Windows 101Pro 24H2
and even with this code, the window is visible)
import flet as ft
def main(page: ft.Page):
    page.add(ft.Text("hello world"))
ft.app(main, view=ft.FLET_APP_HIDDEN)

Any update on this issue?

If I may propose a temporary solution to the window visibility bug. Could we set the window to minimized as the invisible state and if it is not minimized then it is in the visible state ?

Python 3.12.2
Flet 0.24.1
Windows 11 专业版 24H2

@FeodorFitsner @ndonkoHenri  sorry for the mention, but is this on progress?
The beauty of the final applications I'm making on windows is being ruined by the white window until I load flet


add vulkan kompute section

hello, I'm seeing a comment by occam stating users on the vulkan backend only need to run:
    sudo apt install libvulkan-dev

https://github.com/ggerganov/llama.cpp/pull/2059#issuecomment-1912328034
I'm not sure if it applies to only certain gpus, should we add a note of this to the readme?


Implement support for multiple pages in one GUI

Not very trivial how this should be done..
One idea is to export several json documents, each for a different page.
Another idea is to package pages inside one GUI document.

The latter idea of packaging pages inside one document is probably ideal considering the implementation on the embedded side and this issue Large documents in persistant memory #15


Support for log4j 2.8

This is the earliest version to support builders and has first been released in January 2017
closes #96

:broken_heart: Build Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: [Pull request #100 opened]

Start Time: 2020-10-30T17:19:11.518+0000

Duration: 4 min 32 sec

Steps errors
Expand to view the steps failures

Name: Shell Script

Description: [2020-10-30T17:22:09.234Z] + ./mvnw clean install -DskipTests=true -Dmaven.javadoc.skip=true
[2020-

Duration: 1 min 30 sec

Start Time: 2020-10-30T17:22:08.938+0000

log

Log output
Expand to view the last 100 lines of log output

[2020-10-30T17:22:37.432Z] [WARNING] The failOnNotUptodateHeader has no effect if the property dryRun is not set.
[2020-10-30T17:22:37.432Z] [INFO] adding extra resolver file:////var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/../licenses
[2020-10-30T17:22:37.432Z] [INFO] Will search files to update from root /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/src/main/java
[2020-10-30T17:22:37.432Z] [INFO] Will search files to update from root /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/src/test/java
[2020-10-30T17:22:37.432Z] [INFO] Scan 9 files header done in 11.833ms.
[2020-10-30T17:22:37.432Z] [INFO] All files are up-to-date.
[2020-10-30T17:22:37.432Z] [INFO]
[2020-10-30T17:22:37.432Z] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ log4j2-ecs-layout ---
[2020-10-30T17:22:37.432Z] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[2020-10-30T17:22:37.432Z] [INFO] Copying 1 resource
[2020-10-30T17:22:37.432Z] [INFO]
[2020-10-30T17:22:37.432Z] [INFO] --- copy-rename-maven-plugin:1.0:copy (copy-file) @ log4j2-ecs-layout ---
[2020-10-30T17:22:37.432Z] [INFO] Copied /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/LICENSE to /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/target/classes/META-INF/LICENSE
[2020-10-30T17:22:37.432Z] [INFO]
[2020-10-30T17:22:37.432Z] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ log4j2-ecs-layout ---
[2020-10-30T17:22:37.699Z] [INFO] Changes detected - recompiling the module!
[2020-10-30T17:22:37.699Z] [INFO] Compiling 3 source files to /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/target/classes
[2020-10-30T17:22:37.957Z] Processing annotations
[2020-10-30T17:22:37.957Z] Annotations processed
[2020-10-30T17:22:37.957Z] Processing annotations
[2020-10-30T17:22:37.957Z] No elements to process
[2020-10-30T17:22:38.217Z] [INFO]
[2020-10-30T17:22:38.217Z] [INFO] --- maven-compiler-plugin:3.1:compile (log4j-plugin-processor) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.217Z] [INFO] Changes detected - recompiling the module!
[2020-10-30T17:22:38.217Z] [INFO] Compiling 3 source files to /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/target/classes
[2020-10-30T17:22:38.217Z] Processing annotations
[2020-10-30T17:22:38.217Z] Annotations processed
[2020-10-30T17:22:38.217Z] Processing annotations
[2020-10-30T17:22:38.217Z] No elements to process
[2020-10-30T17:22:38.217Z] [INFO]
[2020-10-30T17:22:38.217Z] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.217Z] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[2020-10-30T17:22:38.217Z] [INFO] Copying 1 resource
[2020-10-30T17:22:38.217Z] [INFO]
[2020-10-30T17:22:38.217Z] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.217Z] [INFO] Changes detected - recompiling the module!
[2020-10-30T17:22:38.217Z] [INFO] Compiling 6 source files to /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/target/test-classes
[2020-10-30T17:22:38.217Z] Processing annotations
[2020-10-30T17:22:38.477Z] Annotations processed
[2020-10-30T17:22:38.477Z] Processing annotations
[2020-10-30T17:22:38.477Z] No elements to process
[2020-10-30T17:22:38.737Z] [INFO]
[2020-10-30T17:22:38.737Z] [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.737Z] [INFO] Tests are skipped.
[2020-10-30T17:22:38.737Z] [INFO]
[2020-10-30T17:22:38.737Z] [INFO] --- maven-source-plugin:3.1.0:jar-no-fork (generate-source-jar) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.737Z] [INFO] Building jar: /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/target/log4j2-ecs-layout-0.5.3-SNAPSHOT-sources.jar
[2020-10-30T17:22:38.737Z] [INFO]
[2020-10-30T17:22:38.737Z] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.737Z] [INFO] Building jar: /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/target/log4j2-ecs-layout-0.5.3-SNAPSHOT.jar
[2020-10-30T17:22:38.737Z] [INFO]
[2020-10-30T17:22:38.737Z] [INFO] --- maven-javadoc-plugin:3.1.1:jar (default) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.737Z] [INFO] Skipping javadoc generation
[2020-10-30T17:22:38.737Z] [INFO]
[2020-10-30T17:22:38.737Z] [INFO] --- animal-sniffer-maven-plugin:1.18:check (signature-check) @ log4j2-ecs-layout ---
[2020-10-30T17:22:38.737Z] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[2020-10-30T17:22:39.305Z] [ERROR] /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/src/main/java/co/elastic/logging/log4j2/EcsLayout.java:267: Undefined reference: ReflectiveOperationException
[2020-10-30T17:22:39.305Z] [ERROR] /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100/src/github.com/elastic/ecs-logging-java/log4j2-ecs-layout/src/main/java/co/elastic/logging/log4j2/EcsLayout.java:73: Undefined reference: ReflectiveOperationException
[2020-10-30T17:22:39.305Z] [INFO] ------------------------------------------------------------------------
[2020-10-30T17:22:39.305Z] [INFO] Reactor Summary for co.elastic.logging:ecs-logging-java-parent 0.5.3-SNAPSHOT:
[2020-10-30T17:22:39.305Z] [INFO]
[2020-10-30T17:22:39.305Z] [INFO] co.elastic.logging:ecs-logging-java-parent ......... SUCCESS [ 18.408 s]
[2020-10-30T17:22:39.305Z] [INFO] ecs-logging-core ................................... SUCCESS [  5.039 s]
[2020-10-30T17:22:39.305Z] [INFO] co.elastic.logging:log4j-ecs-layout ................ SUCCESS [  0.933 s]
[2020-10-30T17:22:39.305Z] [INFO] co.elastic.logging:log4j2-ecs-layout ............... FAILURE [  2.074 s]
[2020-10-30T17:22:39.305Z] [INFO] co.elastic.logging:logback-ecs-encoder ............. SKIPPED
[2020-10-30T17:22:39.305Z] [INFO] co.elastic.logging:jul-ecs-formatter ............... SKIPPED
[2020-10-30T17:22:39.305Z] [INFO] co.elastic.logging:jboss-logmanager-ecs-formatter .. SKIPPED
[2020-10-30T17:22:39.305Z] [INFO] ------------------------------------------------------------------------
[2020-10-30T17:22:39.305Z] [INFO] BUILD FAILURE
[2020-10-30T17:22:39.305Z] [INFO] ------------------------------------------------------------------------
[2020-10-30T17:22:39.305Z] [INFO] Total time:  26.638 s
[2020-10-30T17:22:39.305Z] [INFO] Finished at: 2020-10-30T17:22:39Z
[2020-10-30T17:22:39.305Z] [INFO] ------------------------------------------------------------------------
[2020-10-30T17:22:39.305Z] [ERROR] Failed to execute goal org.codehaus.mojo:animal-sniffer-maven-plugin:1.18:check (signature-check) on project log4j2-ecs-layout: Signature errors found. Verify them and ignore them with the proper annotation if needed. -> [Help 1]
[2020-10-30T17:22:39.305Z] [ERROR]
[2020-10-30T17:22:39.306Z] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[2020-10-30T17:22:39.306Z] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[2020-10-30T17:22:39.306Z] [ERROR]
[2020-10-30T17:22:39.306Z] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[2020-10-30T17:22:39.306Z] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[2020-10-30T17:22:39.306Z] [ERROR]
[2020-10-30T17:22:39.306Z] [ERROR] After correcting the problems, you can resume the build with the command
[2020-10-30T17:22:39.306Z] [ERROR]   mvn <goals> -rf :log4j2-ecs-layout
[2020-10-30T17:22:40.735Z] Stage "Tests" skipped due to earlier failure(s)
[2020-10-30T17:22:40.840Z] Stage "Unit Tests" skipped due to earlier failure(s)
[2020-10-30T17:22:40.850Z] Stage "Javadoc" skipped due to earlier failure(s)
[2020-10-30T17:22:40.860Z] Stage "Sanity checks" skipped due to earlier failure(s)
[2020-10-30T17:22:40.943Z] Failed in branch Unit Tests
[2020-10-30T17:22:40.950Z] Failed in branch Javadoc
[2020-10-30T17:22:40.958Z] Failed in branch Sanity checks
[2020-10-30T17:22:42.125Z] Running on worker-1095690 in /var/lib/jenkins/workspace/java_ecs-logging-java-mbp_PR-100
[2020-10-30T17:22:42.230Z] [INFO] getVaultSecret: Getting secrets
[2020-10-30T17:22:42.320Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-30T17:22:44.434Z] + chmod 755 generate-build-data.sh
[2020-10-30T17:22:44.434Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-100/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-100/runs/1 FAILURE 211505
[2020-10-30T17:22:44.435Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-100/runs/1/steps/?limit=10000 -o steps-info.json
[2020-10-30T17:22:47.589Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/ecs-logging-java-mbp/PR-100/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-10-30T17:22:48.287Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2020-10-30T17:22:49.733Z] Retry 2/3 exited 22, retrying in 2 seconds...


Add IronCore Labs partner blog

Description
Adds a new blog post
Signed-off-by: Bob Wall<EMAIL_ADDRESS>Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Hi Bob - Thank you for the submission. I will get the review process started.

Bob - Once you have a chance to review and make edits (as you see fit), the goal would be to publish this Monday, 11/14 if possible.


could you pls provider required depe required in docker?

could you pls provider required dependencies required in docker? because i have to "yarn start" my application in the docker and then run e2e test, i need base docker image provider by my company which contains some environment that need to start my application。so beg for something like cypress provide（https://docs.cypress.io/guides/getting-started/installing-cypress.html#System-requirements）

TestCafe has an official Docker image: Use TestCafe Docker Image Guide. It comes with two browsers (Chromium and Firefox) and all the required dependencies for work (nodejs, tools for managing virtual display for running non-headless browsers and more). You can examine them yourself: Dockerfile.
However, since it can be difficult to determine which dependencies you need to install for a custom image, we've created the following issue: Document how to setup Testcafe on custom docker image. Thank you for your suggestion.

TestCafe has an official Docker image: Use TestCafe Docker Image Guide. It comes with two browsers (Chromium and Firefox) and all the required dependencies for work (nodejs, tools for managing virtual display for running non-headless browsers and more). You can examine them yourself: Dockerfile.
However, since it can be difficult to determine which dependencies you need to install for a custom image, we've created the following issue: Document how to setup Testcafe on custom docker image. Thank you for your suggestion.


[BUG] openai ChatRequestUserMessage deserialization loses internal state

Describe the bug
ChatRequestUserMessage loses its internal state during deserialization. The following fields are set to null:
    private final String stringContent;

    private final List<ChatMessageContentItem> chatMessageContentItems;

When these fields are null, subsequent requests fail.
To Reproduce
    @Test
    public void test() throws IOException {
        String userMessage = """
                    {
                      "role": "user",
                      "content": "this is test message"
                    }
                """;

        ChatRequestUserMessage u = BinaryData.fromString(userMessage).toObject(new TypeReference<>() {
        });
        System.out.println(u.toJsonString());
    }

it will output:
{"role":"user"}

Code Snippet
Add the code snippet that causes the issue.
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):

OS: windows
IDE: IntelliJ
Library/Libraries: com.azure:azure-ai-openai:1.0.0-beta.12
Java version: 21

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

verbose dependency tree (mvn dependency:tree -Dverbose)
exception message, full stack trace, and any available logs

Additional context
    @Override
    public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
        jsonWriter.writeStartObject();
        jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString());
        if (stringContent != null) {
            jsonWriter.writeStringField("content", stringContent);
        } else if (chatMessageContentItems != null) {
            jsonWriter.writeArrayField("content", chatMessageContentItems, JsonWriter::writeJson);
        }
        //  or set the content back here？👉
        jsonWriter.writeStringField("name", this.name);
        return jsonWriter.writeEndObject();
    }

    public static ChatRequestUserMessage fromJson(JsonReader jsonReader) throws IOException {
        return jsonReader.readObject(reader -> {
            BinaryData content = null;
            ChatRole role = ChatRole.USER;
            String name = null;
            while (reader.nextToken() != JsonToken.END_OBJECT) {
                String fieldName = reader.getFieldName();
                reader.nextToken();
                if ("content".equals(fieldName)) {

                    // here 👇 forget to set the stringContent or chatMessageContentItems
                    if (reader.currentToken() == JsonToken.STRING) {
                        content = BinaryData.fromString(reader.getString());
                    } else if (reader.currentToken() == JsonToken.START_ARRAY) {
                        content = BinaryData.fromObject(
                            reader.readArray(arrayReader -> arrayReader.readObject(ChatMessageContentItem::fromJson)));
                    } else {
                        throw new IllegalStateException("Unexpected 'content' type found when deserializing"
                            + " ChatRequestUserMessage JSON object: " + reader.currentToken());
                    }
                } else if ("role".equals(fieldName)) {
                    role = ChatRole.fromString(reader.getString());
                } else if ("name".equals(fieldName)) {
                    name = reader.getString();
                } else {
                    reader.skipChildren();
                }
            }
            ChatRequestUserMessage deserializedChatRequestUserMessage = new ChatRequestUserMessage(content);
            deserializedChatRequestUserMessage.role = role;
            deserializedChatRequestUserMessage.name = name;
            return deserializedChatRequestUserMessage;
        });

During serialization, the internal stringContent and chatMessageContentItems fields are used. However, during deserialization, these internal states are not set properly. As a result, after one round of deserialization and serialization, the content is completely lost. This bug has existed for a long time.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[ ] Bug Description Added
[ ] Repro Steps Added
[ ] Setup information Added

I've noticed that ChatRequestUserMessage, ChatRequestSystemMessage, ChatRequestAssistantMessage and other similar message types all lose their internal state during deserialization. Is the API design of ChatRequest messages not intended for deserialization?


final commit for this branch includes language based and non-language…

… based domain and problem definition. Merge into main so that we have the first working domain in repo. This will be refactored for easier mapping of action, event (and eventually the most specific label of the dialog agent).

This PR is the working domain I first created. This domain was originally
based on language, then refactored to have actions that are not
language-based but are easily refactored back into language-based. It's in
relation to the discussion you and I had earlier in the week about it (it
does run with the planner, not the perceptual system). This domain is not
the same domain that I am currently working on, (direct mapping events and
actions).
On Thu, Dec 1, 2022 at 10:23 PM Loren Rieffer-Champlin <
@.***> wrote:

External Email
@.**** commented on this pull request.
Can you explain further what the goal of this PR was? Your commit comment
states that these are working domains.
By "working" do you just mean that they are runnable by the planner? Or
did you mean that these could be used for integrating with the perceptual
system and running plan recognition on the SAR3 data?
If you meant the latter case, I do still have some concerns about some of
the actions here. Some of these I don't think would readily map with a
message from the message bus (e.g., locate_teammate). Some of these as we
discussed before will be abstracted away by the perceptual system (e.g.,
see_victim). Others can be abstracted away by relying on the declarative
programming (e.g., select_vic_to_carry).
—
Reply to this email directly, view it on GitHub
https://github.com/ml4ai/tomcat-planrec/pull/59#pullrequestreview-1201985948,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANUDNJW6GE4RLQJ7QLB6YUDWLGBTVANCNFSM6AAAAAASPIMJG4
.
You are receiving this because you authored the thread.Message ID:
@.***>


[Snyk] Security upgrade python from 3.6 to 3.12.3

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 2 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):

base/django/3.0.3/Dockerfile

We recommend upgrading to python:3.12.3, as this image has only 205 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Out-of-bounds Write SNYK-DEBIAN11-LIBWEBP-5893094
  829

Resource Exhaustion SNYK-DEBIAN11-NGHTTP2-5953384
  829

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Resource Exhaustion

Checkmarx One – Scan Summary & Details – aa5f9cf7-33f7-43fc-bffe-c60f67174b40
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

Path_Traversal
/base/oracle-java/utils/list-versions.py: [57](https://github.com/TheRedHatter/vulhub/blob/snyk-fix-c056b6ea5dedd374f837623af8fd6304//base/oracle-java/utils/list-versions.py# L57)
Attack Vector

Fixed Issues

Severity
Issue
Source File / Package

Client_DOM_XSS
/electron/CVE-2018-15685/src/index.html: [17](https://github.com/TheRedHatter/vulhub/blob/snyk-fix-c056b6ea5dedd374f837623af8fd6304//electron/CVE-2018-15685/src/index.html# L17)

Client_Potential_XSS
/electron/CVE-2018-15685/src/index.html: [17](https://github.com/TheRedHatter/vulhub/blob/snyk-fix-c056b6ea5dedd374f837623af8fd6304//electron/CVE-2018-15685/src/index.html# L17)

Path_Traversal
/python/PIL-CVE-2017-8291/app.py: [37](https://github.com/TheRedHatter/vulhub/blob/snyk-fix-c056b6ea5dedd374f837623af8fd6304//python/PIL-CVE-2017-8291/app.py# L37)

Path_Traversal
/base/oracle-java/utils/list-versions.py: [57](https://github.com/TheRedHatter/vulhub/blob/snyk-fix-c056b6ea5dedd374f837623af8fd6304//base/oracle-java/utils/list-versions.py# L57)


[core] Add fontWeightBold as 700(default)

Fix for #15801

The failure is because I changed 600 to Strong and added fontWeightBold wherever necessary. Otherwise I think it is much better to use this way of define fontWeights.

@eps1lon what are your thoughts on this PR?

@aditya1906 It's a great start! I have tried to push it one step further. Let me push the changes. Unfortunately, I can't do it here as you have removed  the remote branch:

Let's continue the changes in #16036. This initial effort was continued in #16038 by @merceyz. It supersedes the initial request. Instead, we can recycle the remote branch :).

Okay @oliviertassinari surely We can do that

I'm extremely sorry that I accidentally deleted that branch

@aditya1906 Don't worry about it, we learn by doing things wrong :).

Thanks @oliviertassinari :-)


Any chance to change this tool more generic? For any textarea on any page?

Thank you for making this script.
Don't know why there's not much users on the greasyfork for such a good script. Maybe coders don't like emoji? It would be better if we can use custom emojis on more pages!

Hi @waldens!
Thanks! I'm glad you're finding the script useful.
What do you mean by more generic? And which textareas, other than the comments, are you referring to extending this functionality into?

@Mottie If I knew the reply is so fast, I might ask this feature half a year ago when I begin to use it.
At first, I mean ANY textarea at any (at least ordinary) pages when saying 'generic', but it may not be as easy as I thought. So it would also be great if it's available in most forums, especially the phpbb type forums like this one, and discuz type is also good like this one. (If it doesn't offensive mentioning a forum only used by Chinese...)

Oh, well the userscript could be set to process and render emojis for the specific emoji code on all websites; but targeting all inputs and/or textareas would be a bit more troublesome. The dropdown script that is being used requires jQuery and using the dropdown may interfere with any other autocomplete dropdowns or other scripts, like masked inputs etc.
I'm not sure what the best solution would be here... maybe we could try to generalize it more and only target specific forums formats like phpbb, discuq and discourse sites. This would need a bit more investigation and free time.

Most of the time we use emoji to communicate and comment, so I think only matching <textarea> is enough, rather than dealing with <input>, whose role is more in search or <form> area, and by which less interference from other scripts may be encountered relatively? As far as I know, in phpbb and discuz, the script that  depends on is relatively few, especially phpbb whose does not support WYSIWYG, but not sure.
In addition, because phpbb uses bbcode, and discourse uses markdown, perhaps it can be designed to insert html tags when holding down shift, insert bbcode tags when holding down alt, insert markdown tags when holding down ctrl?
Just thought. Only can be used on the github is very grateful already.


Don't try to build compiler-rt when cross-compiling

What's in this pull request?
This PR makes build-script skip building compiler-rt when cross-compiling.
A user has reported a build-time failure when building swift-compiler-rt along with --cross-compile-tools-deployment-targets set. We should have a workaround in place before investigating a longer-term fix.

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    OS X platform               | @swift-ci Please test OS X platform
    Linux platform              | @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

@llvm-beanz Could you take a look?

The option you want to be turning Off is LLVM_TOOL_COMPILER_RT_BUILD. LLVM_BUILD_EXTERNAL_COMPILER_RT is just what controls whether or not you use an in-tree built clang.

Updated. I think the bugfix to false_true should be its own commit. Is it ok apart from that?

LGTM.


OLS-671: /readiness - LLM check

Description
Add LLM check for /readiness probe.
Type of change

[x] New feature

/approve
looks like some test fixes are needed

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

Project coverage is 95.48%. Comparing base (10be3e2) to head (f3e496f).
Report is 19 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1081      +/-   ##
==========================================
+ Coverage   95.40%   95.48%   +0.07%
==========================================
  Files          55       56       +1
  Lines        2352     2393      +41
==========================================
+ Hits         2244     2285      +41
  Misses        108      108

Files
Coverage Δ

ols/app/endpoints/health.py
100.00% <100.00%> (ø)

... and 7 files with indirect coverage changes

/lgtm


Update capi tag to v1.0.1 and port patches

Issue #, if available: https://github.com/aws/eks-anywhere-build-tooling/issues/173
Description of changes:

Update CAPI to v1.0.1 tag
Update capi golang version to 1.16
Add patches for BR, external etcd, proxy and registry mirror changes. These patches are for all commits cherry-picked from capi fork's branch-0.3.19, and added to this new capi fork rebased on capi v1.0.1 tag: https://github.com/mrajashree/cluster-api/tree/branch-1.0.1

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Same comment, lets add an updating section to the readme.


Cannot run Jest unit tests due to import statements

This library does not seem to play well with Jest, which is what Facebook recommends for unit-testing React Native projects. I believe this is due to this library's usage of import statements.
Any chance the import statements could be transpiled away before being published to npm?
Repro script
npm install -g react-native-cli@latest
react-native init testproject
cd testproject
npm install pouchdb-react-native
echo "import PouchDB from 'pouchdb-react-native'" >> __tests__/index.android.js
npm test

npm test output

This is correct, problem in es6 code in node_modules
You can modify the jest property in package.json in order to transpile pouchdb-react-native
  "jest": {
    "preset": "react-native",
    "transformIgnorePatterns": [
      "node_modules/(?!(jest-)?react-native|react-clone-referenced-element|pouchdb-react-native|pouchdb-adapter-asyncstorage)"
    ]
  },

See more at:
https://facebook.github.io/jest/docs/tutorial-react-native.html#transformignorepatterns-customization
https://github.com/facebook/jest/blob/master/packages/jest-react-native/jest-preset.json#L18-L20


Additional options to r.http

See #36. Still not the complete list, but this adds support for:

resultFormat
timeout (needs test)
redirects (needs test)
header
params

There are currently three failing test cases. I think this is because Query::evaluate is stripping out all the options passed to r.http. I haven't had time to figure out why that's the case and I'm also not sure whether I should expect options or internalOptions to be populated with the user-supplied options. Let me know and I'll update this PR.
The reason I don't have tests for timeout and redirects is because (AFAIK) there's no way to emulate that with httpbin.

Thanks @marshall007, I've been quite busy these past weeks and didn't have much time to work on reqlite, so I really appreciate your help :)
What you probably want to populate is options. internalOptions is currently only used to track if a query is atomic (for writes).
For example for update, we set deterministic: true.
https://github.com/neumino/reqlite/blob/master/lib/document.js#L36
Let me know if you have more questions.
For timeout/redirects, it's fine if there are no tests. If you can manually check it, it's cool, else we'll just pay attention when merging :)

No problem! One other thing: when I call r.http(..., { header: [ 'User-Agent: ...' ] }) from the tests, the options passed to me are { header: [ 2, [ 'User-Agent: ...' ] ] }. Is this a bug?

@marshall007 -- arrays are represented with the MAKE_ARRAY from the proto-def.js file:
[2, [x1, x2, ...]]

If you want it as [x1, x2, ...], you can call util.toDatum(<value>)

@neumino if I call util.toDatum([ 2, [ 'User-Agent: ...' ] ]) I just get back a copy of the array.
Could you explain what Query.prototype.evaluate is doing and why some terms call it with args[0] and others pass their options argument?

Sure, first sorry for the lack of comments/doc. I'll try to improve that.
Then basically Query.prototype.evaluate evaluates a term. Baring primitives, terms are what the JSON object that the drivers build.
For example [2, ["foo", "bar"] is r.expr(["foo", "bar"]) and where 2 is MAKE_ARRAY. We basically carry terms everywhere and evaluates them (to datum) only when we need.
In the case of r.http and its options, we can have:
r.http("www.example.com", { timeout: 200})

In this case it's trivial to evaluate the options, it's {timeout: 200}. The reason why we need to evaluate the options is because this is allowed:
r.http("www.example.com", { timeout: r.random()})
// or
r.http("www.example.com", { timeout: r.table('constant').get('httptimeout')('value')})

Added a few comments in your commits, hopefully it make things more clear. Let me know if you have more questions.

Oh also self.evaluate(args[0], internalOptions) means that we are going to evaluate the first argument of a given method.
self.evalute(options, internalOptions) means that we are going to evaluate the options of the given method.
So for example for r.random(3, 4, {float: true}), args is [3, 4] and options is {float: true}


Fail to complete the activity of uploading a VHD file with 0B size

Storage Explorer Version: 1.5.0
Platform/OS Version: Windows 10/ Linux Ubuntu 16.04/ MacOS High Sierra
Architecture: ia32/x64
Build Number: 20180927.3
Commit: 42803a93
Regression From: Not a regression
Steps to Reproduce:

Navigate to 'Experimental' menu -> Check 'Use AzCopy for Improved Blob Upload and Download'.
Open one blob container and try to upload a vhd file with 0B.
Check the result.

Expected Experience:
Succeed to complete the uploading activity at a short time.
Actual Experience:
Fail to complete the uploading activity(More than 30 minutes).

More Info:

The empty vhd file shows well after refreshing the editor.
This issue doesn't reproduce when downloading the same vhd file.

It looks like this is only happens when AzCopy is asked to output JSON. I'll need to report this to the AzCopy team.

Opened a bug against AzCopy https://github.com/Azure/azure-storage-azcopy/issues/67

Hi @MRayermannMSFT ,This issue still reproduces in 20181025.6.

@v-xuanzh can you try repro'ing this again? Thanks!

Per CTI email from 3/27 this is fixed.


fix [docs]: Replace pub score badges, update project README

Description
Saw that our pub score badges were not showing. It is related to the fact that https://badges.bar/ doesn't work anymore. So created new badges via shields.io
Before:

After:

Also added these new badges to every plugin's README for convenience.
Finally, updated the main README to drop redundant link at the very top and align Flutter Favorites image as it was intended originally (at least understood so from looking at the markdown) and remove outdated info about original Flutter plugins, since there is no mention anymore in one of provided links as well as no original plugins in the flutter/plugins repo anymore, so don't see a point in having this mention now.
Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

UPD: Removed also those As of January 2021, the Flutter team is no longer accepting non-critical PRs  foot notes as they also make no sense anymore.


Added Resources in RoadMap on a new Page with /roadmap route

Fixes Issue: #691
Describe the changes you've made
Earlier I was asked to make the Roadmap occur on a New Page instead of the Home Page so, I made it link to a new page with Route: "/roadmap"
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

###UPDATED :
https://drive.google.com/file/d/1aGE97xeKw8mF1cVKTZAevn0KJhFRBQ1R/view?usp=sharing

@MridulTi resolve conflicts

done

@MridulTi since inactive so closing it


MMseqs stuck at prefilter step for days

Hi everyone,
Expected Behavior
I would to construct clustering or align sequences with cluster or search. I'm following the example of uniclust to create different family.
Current Behavior
When I try to align my sequences from a subdatabase, the prefiler stay at the index table : fill step. At the begin I though to a memory problem, because my code work on a little dataset (100 000 proteins) but not on biggest (3 billions). So I add --split-memory-limit. On one test it was working but not on the other (maybe by chance).
Steps to Reproduce (for bugs)
`mmseqs prefilter $DB_name $DB_name "$TMP/pref" --max-seqs 300 -c 0.8 --comp-bias-corr 1 -s 2 --split-memory-limit 250G --threads 32
mmseqs align $DB_name $DB_name "$TMP/pref" "$TMP/align" -c 0.8 --alignment-mode 2 --min-seq-id 0.8 --comp-bias-corr 1 --threads 32 -e 0.001 --max-seq-len 32768 --max-rejected<PHONE_NUMBER>
mmseqs clust $DB_name $DB_name "$TMP/align" "$TMP/clust" --cluster-mode 0 --threads 32
awk '{ print $1 }' "$TMP/clust.index" > "$TMP/clust_order"
mmseqs createsubdb "$TMP/clust_order" $DB_name "$subDB"
mmseqs prefilter "$subDB" "$subDB" "$TMP2/pref" --max-seqs 300 -c 0.8 --comp-bias-corr 1 -s 5 --split-memory-limit 250G --threads 32
mmseqs align "$subDB" "$subDB" "$TMP2/pref" "$TMP2/align" -c 0.8 --alignment-mode 3 --min-seq-id 0.3 --comp-bias-corr 1 --threads 32 -e 0.001 --max-seq-len 32768 --max-rejected<PHONE_NUMBER>`
MMseqs Output (for bugs)
MMseqs Version:                 8ea08f0c75b9f08049fd8f01eb65f90d6fbdd93d
Substitution matrix             nucl:nucleotide.out,aa:blosum62.out
Seed substitution matrix        nucl:nucleotide.out,aa:VTML80.out
Sensitivity                     5
k-mer length                    0
k-score<PHONE_NUMBER>
Alphabet size                   nucl:5,aa:21
Max sequence length             65535
Max results per query           300
Split database                  0
Split mode                      2
Split memory limit              250G
Coverage threshold              0.8
Coverage mode                   0
Compositional bias              1
Diagonal scoring                true
Exact k-mer matching            0
Mask residues                   1
Mask lower case residues        0
Minimum diagonal score          15
Include identical seq. id.      false
Spaced k-mers                   1
Preload mode                    0
Pseudo count a                  1
Pseudo count b                  1.5
Spaced k-mer pattern
Local temporary path
Threads                         32
Compressed                      0
Verbosity                       3
Query database size: 1480080 type: Aminoacid
Estimated memory consumption: 5G
Target database size: 1480080 type: Aminoacid
Index table k-mer threshold: 118 at k-mer size 6
Index table: counting k-mers
[=================================================================] 1.48M 3s 585ms
Index table: Masked residues: 4728698
Index table: fill
Your Environment
I'm using the latest release of MMSeqs2.

That sounds super puzzling. 1.4M sequences is quite small, that shouldn't happen.
If this happens again could you do the following:
# get the process id of the mmseqs (you can also use something like ps, htop, etc)
PID=$(pidof mmseqs)
#attach debugger
gdb -p $PID
# press CTRL+C and wait for a prompt to appear the enter
bt
# press enter and copy paste the printed stack trace
# CTRL+D to detach again, confirm with y

Result of bt
#0  0x00000000006c9ef3 in IndexTable::sortDBSeqLists () #1  0x00007efc5116705f in GOMP_parallel () from /env/ig/soft/ig/gcc-7.3.0/el6-x86_64-generic/lib64/libgomp.so.1 #2  0x00000000006c5935 in IndexBuilder::fillDatabase(IndexTable*, SequenceLookup**, SequenceLookup**, BaseMatrix&, Sequence*, DBReader<unsigned int>*, unsigned long, unsigned long, int, bool, bool) () #3  0x00000000004e0049 in Prefiltering::getIndexTable () #4  0x00000000004ebdcd in Prefiltering::Prefiltering(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, int, Parameters const&) () #5  0x00000000004df035 in prefilter(int, char const**, Command const&) () #6  0x00000000004587f0 in runCommand(Command*, int, char const**) () #7  0x000000000044a1f0 in main ()
Result of ps
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ jarnoux   96787 99.4  0.7 5468368 2884544 ?     Rl   Dec07 993:48 mmseqs prefilter /dev/shm/U5yXKTXUDw/FRAG/panfam_frag_subDB /dev/shm/U5yXKTXUDw/FRAG/panfam_frag_subDB /dev/shm/U5yXKTXUDw/CLUST/PanFam8080/panfam_pref --max-seqs 300 -c 0.8 --comp-bias-corr 1 -s 2 --split-memory-limit 250G --threads 32 jarnoux  150328  0.0  0.0 103360   920 pts/0    S+   10:14   0:00 grep mmseqs
Others
I try to simplify like this prefilter+align = search and prefilter+align+clust=cluster. It's look working for the time.

Would it be possible to send me the input FASTA file? This looks very puzzling.

Would it be possible to send me the input FASTA file? This looks very puzzling.

Sure where I could sent to you ?

@milot-mirdita Please find the fasta here

I can't reproduce the issue locally. It doesn't get stuck in the index building. How did you install MMseqs2 (condo, self-compiled etc?) Whats your hardware specs?
If your computer supports AVX2, please try using the avx2 binary at https://mmseqs.com/latest.

I use the source code available here.
Here the specs :
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                36
On-line CPU(s) list:   0-35
Thread(s) par coeur :  1
Coeur(s) par support CPU :18
Socket(s):             2
Noeud(s) NUMA :        2
ID du vendeur :        GenuineIntel
Famille CPU :          6
Modèle :              79
Model name:            Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
Version :              1
CPU MHz :              2300.113
BogoMIPS:              4599.34
Virtualisation :       VT-x
L1d cache :            32K
L1i cache :            32K
L2 cache :             256K
L3 cache :             46080K
NUMA node0 CPU(s):     0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34
NUMA node1 CPU(s):     1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35

You should be able to use the AVX2 binary https://mmseqs.com/latest/mmseqs-linux-avx2.tar.gz.
Ah another thing: You probably should not create the intermediate files on /dev/shm/. Especially the prefiltering results can become very large and then will starve your system of memory. I guess that could also be the issue.

Okay I will try to change the temporary directory.
I will see to install the avx2 binary too.
Thanks for your help, I will test all this.

Hi,
I use a new install of mmseqs2 and I change the temporary directory. Now it's work.
Thanks for your help.


Could not find a suitable TLS CA certificate bundle, invalid path: 0

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "D:\project\SMARTHOME\tinytuya-master\tinytuya_main.py", line 76, in
wizard.wizard(color=color, retries=retries, forcescan=force, quicklist=assume_yes)
File "D:\project\SMARTHOME\tinytuya-master\tinytuya\wizard.py", line 157, in wizard
cloud = tinytuya.Cloud( **config )
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\SMARTHOME\tinytuya-master\tinytuya\Cloud.py", line 117, in init
self._gettoken()
File "D:\project\SMARTHOME\tinytuya-master\tinytuya\Cloud.py", line 261, in _gettoken
response_dict = self._tuyaplatform('token?grant_type=1')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\project\SMARTHOME\tinytuya-master\tinytuya\Cloud.py", line 217, in _tuyaplatform
response = requests.get(url, headers=headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\shee.cho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\shee.cho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\api.py", line 59, in request
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\shee.cho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\adapters.py", line 458, in send
self.cert_verify(conn, request.url, verify, cert)
File "C:\Users\shee.cho\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\adapters.py", line 261, in cert_verify
raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid path: 0
with this error
"python -m tinytuya wizard" does not run.
If I need to install the certificate separately, where should I do that?!
The "python -m tinytuya wizard" commands were working fine until a few days ago. Suddenly it doesn't work.

It was confirmed to be a firewall issue. I'll close this issue


Cluster explorer 2.5.6 - useless and misleading PersistentVolumes page

the PersistentVolumes page is displaying wrong and less relevant information than the information in the old version 2.5.5
here is a screenshot:

These volumes are not provisioned by longhorn and all the useful information about the volumes present in v2.5.5 is missing.

It's the same in 2.5.7

so no fix for 2.5.x versions? It is really breaking the entire "persistent volumes" page, making it useless

@ZleFox

what were those volumes provisioned by? In the general case I'm seeing the appropriate provisioner listed.
what information would you like to see present? In the old UI I see the persistent volume claim present when available. Is there anything else that would be helpful to you?

I went ahead and added the PVC field to the list page to make it more consistent with the old UI https://github.com/rancher/dashboard/pull/3277
If there's anything more you'd like to have added or have more details about which source you were having an issue with feel free to reopen and add more details.

thanks, the format in 2.5.5 was more useful. It had information about storage class, reclaim policy, etc ..

I had a quick comparison on some of the diffs
PVC List

We show more information in the latest dashboard than in Cluster Manager
Volume and storage need to link to their respective resource

PV List

No comparison in Cluster Manager
From the screenshot in previous comment it looks like in a previous version of the dashboard where we have additional info. Need to understand why these were removed

I had a quick comparison on some of the diffs
PVC List
* We show more information in the latest dashboard than in Cluster Manager

* Volume and storage need to link to their respective resource

PV List
* No comparison in Cluster Manager

* From the screenshot in previous comment it looks like in a previous version of the dashboard where we have additional info. Need to understand why these were removed

It was removed while we were making it more consistent with Cluster Manager. What was shown in 2.5.5 is the default which is defined by the schema.

Here's the Cluster Manager comparison

I'll bring it up in our meeting this morning.

Re-opening this ticket  after speaking to @codyrancher on slack - Reclaim policy and Reason to be added

Verified on rancher v2.6-head 6c14c33
Created a PV and verified the required fields added in the PV


Add new taker-frontend

-rename frontend to maker-frontend
-building maker and taker will use the respective frontend

законный!

Gesundheit!

bors r+

bors r+

bors retry

bors r+

bors ping

bors ping

bors r+

bors ping

bors ping


Added support for Exoscale.

I needed support for Exoscale. They are using Cloudstack as platform, but we use their own terraform plugin that is not yet supported (https://github.com/exoscale/terraform-provider-exoscale).
This small patch is sufficient to build an inventory from terraform's tftate file produced with this plugin.

Thank you! Would you mind adding an example of an Exoscale resource to parser_test.go, so we can be sure not to break this in the future?

I have updated parser_test.go


Audit whitelist for Cassandra 4 and later

Now we support audit whitelist for Cassandra 4 and later, thus updating the doc accordingly.

@TheovanKraay
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Due to the upcoming Ignite conference, all merging and publishing is on hold until the morning of 11/15.
This PR is ready for merge on 11/15.
#label: "event-triaged-to-10AM"
#label: "missed-content-complete"
#label: "aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Unexpected output

What version of Go are you using (go version)?

$ go version

play.golang.org
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

What did you do?
play not showing current time

https://play.golang.org/p/Z8j-Ca32HDO
What did you expect to see?
time.Now()
What did you see instead?
but golang play shows 2009-11-10_23:00:00

Thanks for reporting this.
On the playground, time is frozen. If you click on the "About" button, you can read this:

In the playground the time begins at 2009-11-10 23:00:00 UTC (determining the significance of this date is an exercise for the reader). This makes it easier to cache programs by giving them deterministic output.

So this is working as expected. Closing here.


Error running config for noice.nvim: ...ck/packer/opt/noice.nvim/lua/noice/config/highlights.lua:34

Describe the bug
This commit causes packer throws an error:
packer.nvim: Error running config for noice.nvim: ...ck/packer/opt/noice.nvim/lua/noice/config/highlights.lua:34: invalid key:

If I revert that commit it works fine.
Which version of Neovim are you using?
It happens with Nightly and Stable
To Reproduce
Steps to reproduce the behavior:

Install noice with default config
Open nvim

Screenshots

Noice Log
Because this error noice does not initialize

Noice log

paste log here

I can also replicate this error on latest nightly.

Not home right now. Indeed that commit. There must be a special key in one of the highlight group links for the colorscheme you're using. Will check once I'm home.
Would help to know what key is causing this issue.can you run Noice log?

Can't run Noice log because I don't think it was able to setup.

I commented the colorscheme and I got this.

Got the same issue, it seems caused by Noice linking not defined hl groups. For example, Mini is linked to MsgArea but in my case it is not defined (MsgArea        xxx cleared).   So opts returned by vim.api.nvim_get_hl_by_name does not contain the mandatory foreground and background keys. As a workaround, make sure that all the highlight groups linked in highlights.lua exists in your color theme

I think I just fixed it. Can you check?

Unfortunately 3e6bc74b662fcf1058a423b55be0717a66e89e3d doesn't seem to fix the issue.
Adding a simple print (this is in highlights.lua):
function M.setup()
  for hl, link in pairs(M.defaults) do
    local ok, opts = pcall(vim.api.nvim_get_hl_by_name, link, true)

    -- Debug
    print(hl, link, vim.inspect(opts))

    if not ok then
      opts = { link = link }
    end
    opts.default = true
    vim.api.nvim_set_hl(0, "Noice" .. hl, opts)
  end
end

If a highlight group is not defined, opts looks like this:
Mini MsgArea {
  [true] = 6
}

Right, forgot about these special vim.type_idx keys. Should be fixed now.

Can confirm it is indeed fixed. Thank you so much!


fix: dont let double titles or zero titles appear

Description
This PR is a follow-up on MOPLAT-408
more workaround code on that lib bug. the bug here is that the collapsible-tabs lib renders in some way that the header appears and goes away and appears and goes away again, and then its all fine.
until now, I had this workaround that if the header "scrolled" more than 40pixels (which is what the lib bug was doing, it was making it seem like the titles is scrolling up and down 2 times), then ignore that. that worked ok, but if someone scrolls too quickly up or down, and they move more than 40pixels in one frame, then they would end up with no titles (if they scrolled up) or two titles (if they scrolled down).
the way I fix this here is that this check (of the 40pixels) will only happen the first second after the screen mounts. the lib bug (the wrong up down scroll) happens always about 200-600ms after first mount. so I added 1 second that this check will be taking place, and after that there is no check.
that means that after the first second, the user can go crazy with their scrolls, and they will always only have one title, the small or the big one. never zero, never two. during that first second, it might still happen that if the user scrolls hard right after mount, they might still get two or zero, but I think that is a fine tradeoff.
PR Checklist

[ ] I tested my changes on iOS and Android.
[ ] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Need help with something? Have a look at our docs, or get in touch with us.

@admbtlr - can this be merged?

Apparently, yes :)


Add emailjs - a suite for IMAP/SMTP and email parsing

Thanks for the suggestion, but I'm going to pass on this.


user docs: Add doc for "Video calls" #7449

user doc: "Videos calls" section added

Squashed and merged with a few minor changes, thanks @AlloulDorian!
Biggest change is removed the image in the end, since I think it'll go stale quickly.


Is it possible to write not interleaved buffers?

The BufferBuilder::AddAccessors API seems to rely on data being an interleaved buffer. I was wondering if it is possible to write also non-interleaved buffers with the same API or other APIs?
Something along these lines:
std::vector<float> vertices ={
        -1.0f, 1.0f, 0.0f, // pos0
         1.0f, 1.0f, 0.0f,  // pos1
        -1.0f, -1.0f, 0.0f, // pos2
         1.0f, -1.0f, 0.0f, // pos3
         0.0f, 0.0f, -1.0f, // norm0
         0.0f, 0.0f, -1.0f, // norm1
         0.0f, 0.0f, -1.0f,  // norm2
         0.0f, 0.0f, -1.0f, // norm3
};

const size_t componentSize = sizeof(decltype(vertices)::value_type);     // 4
const size_t stride = 3 * componentSize;                                 // 12
const size_t count = 4;                                                  // ?8

AccessorDesc descs[2] =
{
          { TYPE_VEC3, COMPONENT_FLOAT, false, { -1.0f, -1.0f, 0.0f }, { 1.0f, 1.0f, 0.0f }, 0 },
          { TYPE_VEC3, COMPONENT_FLOAT, false, { 0.0f, 0.0f, -1.0f },{ 0.0f, 0.0f, -1.0f },  48},
 };

 bufferBuilder.AddBufferView(BufferViewTarget::ARRAY_BUFFER);
 bufferBuilder.AddAccessors(vertices.data(), count, stride, descs, ArrayCount(descs), nullptr);

This code doesn't seem to work. Setting count to 8 is not correct either as then the accessors count is wrong.
Thank you for your help!

Sorry for the slow response. If you are capable, please debug the code and contribute a fix. Thanks!


[GitHub Repository Search]  "cookies must be enabled for github"

Extension
https://www.raycast.com/thomas/github-repository-search
Description
doesn't work, I get "cookies must be enabled for github"
Steps To Reproduce
Add personal access token
add github base url
search for anything
you'll get "cookies must be enabled for github"
Current Behaviour
No response
Expected Behaviour
No response

Hi @BrennerSpear,
I haven't encountered this issue yet but according to e.g. the following StackOverflow answer it seems like your API endpoint is not correct: https://stackoverflow.com/questions/22275080/solving-cookies-must-be-enabled-to-use-github-using-gae-webapp2-urllib2-python
It is hitting the GitHub website instead of the API endpoints.
Have you set up a custom base URL for an enterprise server? If yes does it also contain the suffix /api/v3?
If you want to use the public GitHub, just omit the base URL config option entirely.


Need clarification.

Needs additional clarity on the "Alert time (seconds)" and how this interacts with the "Enable queue time-out" and "Time-out period (seconds)" Which has priority? If there are two agents in the Group with 10s Alert time and the Queue has a 15s time-out, which will take precedence? Will it be combined 20s for two agents or the absolute 15s of the queue?

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

ID: 9bc2f908-32e9-6ca8-b949-11f8bb14caa5
Version Independent ID: 1b4d835e-34ab-7334-c5d4-07c853dc01d2
Content: Create or modify an agent group in Skype for Business 2015
Content Source: Skype/SfbServer/deploy/deploy-enterprise-voice/create-or-modify-an-agent-group.md
Product: skype-for-business-itpro
GitHub Login: @kenwith
Microsoft Alias: kenwith

Thank you for this feedback and for contributing to the wellness of the content! This is a good idea and we have added it into our backlog for triage and prioritization.

@tseward Is investigating this.

As this is inter transfer of issues so can be closed


[bump]: Bump Iroha version to RC20

Description

Linked issue

Closes #{issue_number}

Benefits

Checklist

[ ] I've read CONTRIBUTING.md
[ ] I've used the standard signed-off commit format (or will squash just before merging)
[ ] All applicable CI checks pass (or I promised to make them pass later)
[ ] (optional) I've written unit tests for the code changes
[ ] I replied to all comments after code review, marking all implemented changes with thumbs up

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
6879 unchanged lines in 128 files lost coverage.
Overall coverage decreased (-3.4%) to 56.003%

Files with Coverage Reduction
New Missed Lines
%

client/src/lib.rs
1
0.0%

cli/src/torii/pagination.rs
1
98.9%

config/src/block_sync.rs
1
95.0%

config/src/network.rs
1
93.75%

config/src/torii.rs
1
96.43%

config/src/wasm.rs
1
87.5%

core/src/smartcontracts/isi/block.rs
1
87.5%

config/base/derive/src/proxy.rs
2
98.11%

config/src/kura.rs
2
79.41%

config/src/lib.rs
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-3.4%

Covered Lines:
21909

Relevant Lines:
39121

💛  - Coveralls


doc: proposal enhancement template for major changes

What this PR does / why we need it:
For we have a template to follow up and began to the better discuss and granulate the proposals for major changes.

Due to the issues I called out above, primarily this isn't the right way to have this discussion I'm going to close this PR.


Update resource estimation demo for non-cubic systems

Title:
Update resource estimation demo for non-cubic systems.
Summary:
The resource estimation demo is updated to use the new algorithm implemented in PR3956.
Relevant references:
Possible Drawbacks:
Related GitHub Issues:

Looks good

Thanks @mojishoki, could you please approve the PR is changes look good?


Issue adding -arch to RawModule options

CuPy Version          : 7.3.0
CUDA Root             : /usr/local/cuda
CUDA Build Version    : 10020
CUDA Driver Version   : 10020
CUDA Runtime Version  : 10020
cuBLAS Version        : 10202
cuFFT Version         : 10102
cuRAND Version        : 10102
cuSOLVER Version      : (10, 3, 0)
cuSPARSE Version      : 10301
NVRTC Version         : (10, 2)
cuDNN Build Version   : 7605
cuDNN Version         : 7605
NCCL Build Version    : 2406
NCCL Runtime Version  : 2507

When I try and add "--gpu-architecture=compute_X0", where X is a compute major version, I get the following message. The whole command looks like module2 = cp.RawModule(             code=src, options=("-std=c++11", "-use_fast_math","--gpu-architecture=compute_30",)
Traceback (most recent call last):
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 438, in compile
    nvrtc.compileProgram(self.ptr, options)
  File "cupy/cuda/nvrtc.pyx", line 101, in cupy.cuda.nvrtc.compileProgram
  File "cupy/cuda/nvrtc.pyx", line 111, in cupy.cuda.nvrtc.compileProgram
  File "cupy/cuda/nvrtc.pyx", line 56, in cupy.cuda.nvrtc.check_status
cupy.cuda.nvrtc.NVRTCError: NVRTC_ERROR_INVALID_OPTION (5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cusignal-0.14.0a0+179.g639fccf.dirty-py3.8.egg/cusignal/__init__.py", line 15, in <module>
    from cusignal.signaltools import (
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cusignal-0.14.0a0+179.g639fccf.dirty-py3.8.egg/cusignal/signaltools.py", line 54, in <module>
    from ._upfirdn import upfirdn, _output_len
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cusignal-0.14.0a0+179.g639fccf.dirty-py3.8.egg/cusignal/_upfirdn.py", line 509, in <module>
    _populate_kernel_cache()
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cusignal-0.14.0a0+179.g639fccf.dirty-py3.8.egg/cusignal/_upfirdn.py", line 311, in _populate_kernel_cache
    module2 = cp.RawModule(
  File "cupy/core/raw.pyx", line 252, in cupy.core.raw.RawModule.__init__
  File "cupy/core/carray.pxi", line 146, in cupy.core.core.compile_with_cache
  File "cupy/core/carray.pxi", line 194, in cupy.core.core.compile_with_cache
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 286, in compile_with_cache
    return _compile_with_cache_cuda(source, options, arch, cache_dir,
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 308, in _compile_with_cache_cuda
    base = _preprocess('', options, arch, backend)
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 246, in _preprocess
    result = prog.compile(options)
  File "/home/belt/anaconda3/envs/cusignal/lib/python3.8/site-packages/cupy/cuda/compiler.py", line 442, in compile
    raise CompileException(log, self.src, self.name, options, 'nvrtc')
cupy.cuda.compiler.CompileException: nvrtc: error: --gpu-architecture (-arch) defined more than once

Hi Matt, I think it's because CuPy internally sets the arch for you: https://github.com/cupy/cupy/blob/e3ad9d44c15bf39b125ff85b9538e7b50c4dc2c4/cupy/cuda/compiler.py#L56-L70
(note the error message is error: --gpu-architecture (-arch) defined more than once).
Is there a use case in which overwriting the arch is a must? I guess this snippet could potentially have an issue with heterogeneous GPUs.

Hi Leo, that's what I was expecting but I couldn't find where it was occurring. Thanks.
I'll close the issue.


Add ability to configure cluster wide kafka configurations when using multiple broker groups

Is your feature request related to a problem? Please describe.
Currently kafka-operator supports rack-awareness in the sense that the broker rack is inferred from the underlying node failure domain.
It would be useful to also support ability to span brokers in different racks defined upfront.
This can be achieved now by using different brokerConfigGroups, one for each AZ, in combination with nodeAffinity but it has the drawback that the whole kafka broker configs needs to be repeated for each broker group.
Hence I am proposing we add a new defaultBrokerConfig field of type BrokerConfig at the cluster.spec level that can be used to define common values reused across all broker groups.
Describe the solution you'd like to see
defaultBrokerConfig:
  kafkaHeapOpts: ...
  kafkaJvmPerfOpts: ....
  storageConfigs: ...
....
brokerConfigGroups:
    rack1:
       nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: failure-domain.beta.kubernetes.io/zone
                  operator: In
                  values:
                    - us-east1
    rack2:
       nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: failure-domain.beta.kubernetes.io/zone
                  operator: In
                  values:
                    - us-east2
    rack3:
       nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: failure-domain.beta.kubernetes.io/zone
                  operator: In
                  values:
                    - us-east3

Describe alternatives you've considered
Using different brokerGroups but I have to repeat all kafka broker configuration

Renamed the issue title to better capture the feature request

@baluchicken @stoader what's your thought  on adding a new field in KafkaCluster CRD to define clusterDefaultBrokerConfig ? Something similar to clusterImage but for all broker configs?

Haven't heard about this anchor before but that's pretty cool. 👍

It also works with our existing YAML handling libraries it seems, so I would support implementing it this way.

yaml anchors sounds like a neat idea. Do you know if kubectl apply understands though for example?

Based on my quick search and manual test:
Anchors are a YAML 1.0 feature.
There is a blog post about K8s supporting YAML anchors in resource descriptors, but according to community, there is a limitation for only supporting in-file anchors, not cross-file ones.
I did a quick manual test on an EKS 1.23 cluster of mine and I can confirm, at least in-file YAML anchors are supported by K8s (I don't think the K8s version is relevant due to the information following).
However it is important to note when saving resource descriptors, K8s stores the expanded version of the YAML, not the original one. Because of this, K8s probably doesn't explicitly handle it, it rather lets its YAML parsers deal with parsing and expanding at creation/submission time.
# Manually written yaml_anchor_test_configmap.yaml.
apiVersion: v1
data:
  test1: &content |
    this is a test
  test2: *content
  test3: *content
kind: ConfigMap
metadata:
  name: test

kubectl apply -f ~/yaml_anchor_test_configmap.yaml
# kubectl get configmap test -o yaml
apiVersion: v1
data:
  test1: |
    this is a test
  test2: |
    this is a test
  test3: |
    this is a test
kind: ConfigMap
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","data":{"test1":"this is a test\n","test2":"this is a test\n","test3":"this is a test\n"},"kind":"ConfigMap","metadata":{"annotations":{},"name":"test","namespace":"default"}}
  creationTimestamp: "2022-09-06T09:18:02Z"
  name: test
  namespace: default
  resourceVersion: "591146"
  uid: 7aabfd63-5af5-40e1-9f2e-27712949e77f

Also I expect this to be a supported feature for a long time because
a, K8s repo/release notes don't mention support for YAML anchors explicitly, and
b, related YAML processing libraries such as go-yaml/yaml (and thus sigs.k8s.io/yaml transitively) are supporting this feature for a long time (5+ years based on past issues). go-yaml/yaml issue from 2015, sigs.k8s.io/yaml using go-yaml/yaml.


[Swap] L2 Bridges

LIFI was exploited. I know it was only for infinite approvals, but it can harm us somehow IMO, especially if they find out the exploit is far beyond that.

This should be team decision. We'll discuss it asap
Incident Report:
https://li.fi/knowledge-hub/incident-report-16th-july/


[ASCII-1318] Add WithSkipAPIKeyInAgentConfig option

What does this PR do?
The framework implicitly adds an api key to the agent config.
This PR adds an option to disable that behavior, leaving the user responsible for adding the api key by itself.
Which scenarios this will impact?
Agent E2E tests.
The default behavior is unchanged.
Motivation
Testing various features around the secret refresh of the API key requires having a dynamic API key.
Additional Notes

/merge

/merge


ReferenceError not being caught by page.onError and phantom.onError

Consider the following code:
var page = require('webpage').create(),
    system = require('system'),
    address, set = {};
try {

        if (system.args.length === 1) {
            console.log('Usage: netdomain.js <some URL>');
            phantom.exit(1);
        } else {
            address = system.args[1];

            page.onResourceReceived = function (res) {
                var data = JSON.stringify(res.url, undefined, 4).split("/")[2];
                if (~data.indexOf(".")) {  // Check if String contains "." (if not, it is a false positive)
                    if (data.substring(0,4) == "www.") { // Remove www., if it is there
                        data = data.substring(4);
                    }
                    set[data] = true; // Save data
                }
            };
            page.onError = function(err) {
            };
            phantom.onError = function(err) {
            };

            page.open(address, function (status) {
                if (status !== 'success') {
                    console.log('FAIL to load the address');
                    phantom.exit(1);
                }
                console.log(Object.keys(set).toString());
                phantom.exit();
            });
        }
        // END Modified netlog.js example
}
catch(err) {
        console.log(Object.keys(set).toString());
        phantom.exit();
}

It works well on many pages (almost 50 000 tried so far) but on very few pages (victoriassecret.com, hsamuel.co.uk and a few others, I can provide a full list, if needed) it will still throw errors that are not caught. The error type that still comes through is a  ReferenceErrors ("Can't find variable: [varname]" on victoriassecret.com, for example).
This might be related to #10511, although the user over there theorized that phantom.onError should work for this, which it does not.
Please let me know if you need any further information.

Also seeing this for TypeError error.  Not being caught by phantomjs onerror.
example script that is nosense.
document.xxxx.indexOf(234).jerry;
I see a TypeError in the logs but OnError is not catching it.

I too am experiencing this issue with a few select sites.  They are internally hosted sites, so there is no use in me providing the extra examples.  But, if it helps, I have duplicated the issues with my specific examples in 1.9.1, 1.9.2, 1.9.7, 1.9.8.  These are the only versions I currently have set up to test.

Yup, same issue here.
It's not capturing the following error message as an error:
ReferenceError: Can't find variable: MutationObserver

It is however displaying this when you set a onConsoleMessage, but there is no way of knowing if it's actually an error or not.

I am getting page.onError
[ERROR - 2016-02-29T15:24:34.204Z] Session [8948d0-def8-11e5-a2ac-398cdabea00d] - page.onError - msg: SyntaxError: Parse error
[ERROR - 2016-02-29T15:24:34.204Z] Session [8948d0-def8-11e5-a2ac-398cdabea00d] - page.onError - stack:
[WARNING] JavaScript Console Errors:

SyntaxError: Parse error

i don't have any console error while running my app or tests.
I figured issue is coming from jQuery extend in my case which i am using for adding functions into shared object inside closure.
$.extend(shared,{a,b,c,d});
I am not getting this error while i am updated extend to this.
shared.a = a;
shared.b= b;
...
I'm using jQuery 1.7.2. Jasmine 2.0 for tests and phantom version 1.9.8.
Any help appreciated.

Never mind. It seems phantom js doesn't have prototype in version 1.9.8 that i was using.
(https://github.com/ariya/phantomjs/issues/10522)

Hello,
I don't know if this is the right place, but I get the following error when I enter for example this url
http://www.ihg.com/destinations/us/en/united-states/texas/texas-city-hotels
[ERROR - 2016-03-28T20:49:42.576Z] Session [02315ce0-f526-11e5-94b3-bda7c3a7e7f9] - page.onError - msg: ReferenceError: Can't find variable: TEXT_FIND_HOTEL

  phantomjs://platform/console++.js:263 in error
[ERROR - 2016-03-28T20:49:42.576Z] Session [02315ce0-f526-11e5-94b3-bda7c3a7e7f9] - page.onError - stack:
  (anonymous function) (http://www.ihg.com/destinations/us/en/wro/scripts-city-page.js?BUILD_TIME=1458232780943:1)

  phantomjs://platform/console++.js:263 in error


SubmitBar not showing i keyboard is shown when switching step.

I've tried to figure out exactly what happens but I'm not quite sure. The Next-button (SubmitBar) is not showing on some Steps. It seems to be related to whether or not the software keyboard was showing or not when Next was pressed on the previous step and if the next step is one that requires the keyboard or not.
Since anything related to the visibility of the software keyboard is sketchy (to say the least) on Android, this might not be reproducible on all devices.
To reproduce it, create a Task with at least 2 Steps: First an IntegerAnswerFormat step (requires keyboard) and after that a ChoiceAnswerFormat step (no Keyboard).
If I leave the keyboard open after typing in the first step the second steps does not have a SubmitBar.
If I start over again and this time type in the value, close the keyboard, and then press next, the SubmitBar is showing on the second step.
Anyone experience the same?

I have experienced other issues with the "Next" button since the 1.1.0 release; I'm looking into it now.

I've been using both. The problem with Next not showing happens on both.
With 1.1.0 code was added to the StepSwitcher to toggle the keyboard. This code is not working as intended since isActive and isAcceptingText returns true even if the keyboard has been hidden. So this is really two issues, one with the SubmitBar not showing and one with keyboard being toggled to show even when not needed.
line ~161 in StepSwitcher (1.1.0):
if(imm.isActive() && imm.isAcceptingText()){
    imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);
}

Regarding detection of the software keyboard, here is a rather old stackoverflow question about it. I have not been able to find any relevant updates on this. It seems like the best way to detect if the keyboard is visible is to measure the screen. Having done that in the past I recommend not doing it unless absolutely necessary. It is way easier to force show/hide instead of detecting status and toggle.
http://stackoverflow.com/questions/4745988/how-do-i-detect-if-software-keyboard-is-visible-on-android-device

I am experiencing the keyboard showing on custom non-text entry steps as well.

I'm having this issue too

Is there an update to this task, we're having this same issue.


feat(table): add multi-sort columns to table

Closes #1376
Summary
Adds the ability to multi-sort columns within a table. A new option.hasMultiSort prop is added. The view.table.sort prop now accepts both a single sort objects { columnId: string; direction: 'ASC' | 'DESC' | 'NONE' } or an array of sort objects. The order of this array determines the order the multi-sort is applied to the table. There are new callback actions for interacting with the multi-sort column data:  onSaveMultiSortColumns, onCancelMultiSortColumns, onAddMultiSortColumn, and onRemoveMultiSortColumn.
Change List (commits, features, bugs, etc)

added TableMultiSortModal component
updated snapshots
add documentation
cleaned up Table stories by adding knobs and removing duplicates
renamed stories for ListBuilder/MenuButton to add number prefix, so they appear in correct location

Acceptance Test (how to verify the PR)

The StatefulTable with multi-sort story should allow selecting and sorting by different columns
The Table with multi-sort story should show the multi-sort modal and callbacks fire in the action panel when clicking save/cancel or add/remove buttons.

Regression Test (how to make sure this PR doesn't break old functionality)

Existing Table stories using single-column sorting should function as previously expected

There are some layout issues with RTL

I think we should have a story where this is combined with column resize since this change affects the column headers and there might be some unforeseen conflicts.

I think we should have a story where this is combined with column resize since this change affects the column headers and there might be some unforeseen conflicts.

Added columnSelection and resizing to the stateful table with multi-sort story. Seems fine.

The outline gets cut out from the new overflow menu.

The outline gets cut out from the new overflow menu.

@davidicus Nice catch. However, it raises a couple of issues. 1) The styling issue already exists for any overflow menu added to the head. see https://deploy-preview-2336--carbon-addons-iot-react.netlify.app/?path=/story/1-watson-iot-table-statefultable--simple-stateful-example-with-column-overflow-menu Easy enough to fix with css, but 2) The usage of sorting and overflow menu together causes a <button> within a <button> warning on the console when in DEV. I can fix it my changing the main button (for sorting) to an , but that'll almost certainly break downstream tests (it breaks 2 in our code). What do you think the best plan of action is?

The outline gets cut out from the new overflow menu.

@davidicus Nice catch. However, it raises a couple of issues. 1) The styling issue already exists for any overflow menu added to the head. see https://deploy-preview-2336--carbon-addons-iot-react.netlify.app/?path=/story/1-watson-iot-table-statefultable--simple-stateful-example-with-column-overflow-menu Easy enough to fix with css, but 2) The usage of sorting and overflow menu together causes a <button> within a <button> warning on the console when in DEV. I can fix it by changing the main button (for sorting) to an , but that'll almost certainly break downstream tests (it breaks 2 in our code). What do you think the best plan of action is?
EDIT: I could change the code to make the arrows the button and only change sort when clicking the arrows specifically, but that breaks the currently expected behavior of being able to click anywhere on the name of the column to re-sort it.

@davidicus I pushed this up yesterday. I adjusted the css, so that the focus outline on the cell doesn't get hidden, but to fix the button-within-a-button I switched that cell from using a <button> when sortable to using an  instead. It keeps existing functionality and fixes the console warnings; however, it did break 2 tests--both enzyme tests looking for specific parts of the DOM--and it changes the markup from a button to an a tag. LMK if you think I should revert and switch the button to the sort arrows instead and break expected functionality when using sort and overflow menus together.

@kevinsperrine is there a way to use React.portals to avoid this button within button scenario? I would rather not change the markup if we can help it. Especially since it already broke our test. Chances are it will do the same for others.

@kevinsperrine is there a way to use React.portals to avoid this button within button scenario? I would rather not change the markup if we can help it. Especially since it already broke our test. Chances are it will do the same for others.

I'll give it a shot.

@dianatran18 do you have any feedback for @stuckless comments above?

I can provide some feedback, but just a note that the pattern defined here was from the original EDS/IoT PAL, so I wasn't involved in the original pattern/nor have I thoroughly looked into the multi-sort pattern myself.

1). It would seem that once I create a sort, then clicking a table column will remove ALL sorts. This does not feel right. I would expect that clicking a table column that is sorted would just invert the sort of that table column, and not remove all the sorts from the table. Perhaps if I clicked a table column that is NOT sorted it might remove all other sorts, although I expect that customers would likely expect that action to just add another sorted column automatically.

I briefly spoke with the the PAL team on this, and I think it's fine that if you click to sort on an already sorted column, it would invert the sort, and not remove all sorts from the table. And agreed that if you clicked on a column that is not already sorted, then it would remove all other sorts.

2). The modal should allow the sorted columns to be reordered.
3). The modal should have a clear/remove all option, no?

Again I'm not deeply familiar with the pattern defined, but these statements make sense to me.
I'm fine moving forward with this so we can close this out, but I would ask that the teams that will be implementing this in their products to get feedback on their users on what the expected behavior is for everything listed above.

@stuckless @dianatran18

Modal in RTL is not correct. X is in the wrong location and the input components are not aligned correctly.
I've fixed the alignment, but the X we will tackle with another issue, as that's in the ComposedModal component not directly related to this feature. https://github.com/carbon-design-system/carbon-addons-iot-react/issues/2396

If I add more than 4 items it blows out of the dialog.
This has been addressed.  We had to resort to using Select components instead of Dropdown because there's currently no good solution for handling the overflow of dropdown menus within a modal. There are multiple issues in Carbon. See https://github.com/carbon-design-system/carbon/issues/6288 and https://github.com/carbon-design-system/carbon/issues/7565#issuecomment-786921600.

On a small screen if I open the dropdown in the dialog I can't select all the items, and keyboard navigation appears to now work either. Not sure if it's a dropdown issue or a dialog issue.
Keyboard navigation was working, but the modal wasn't grabbing focus, so you had to tab through all the items on the table in the background to get to the modal. The save button now grabs focus when the modal opens, so keyboard navigation is easier.

I also added testIds to the select menus and to the modal itself. Clicking on the sort button (for a column that's selected for multi-sort) will now invert the sort for that column, but clicking sort on a new column not included in multi-sort will reset the sort and only use that single column. The modal window now also has a "Clear sorting" button to wipe it all out.

@stuckless Friendly bump on the updates to this PR. Can you give it another look now with @davidicus's https://github.com/carbon-design-system/carbon-addons-iot-react/pull/2336#issuecomment-859756617 in mind?


Added gotham colorscheme for xfce4-terminal

Hey @asafonov, thanks for the contribution! We need documentation in the README too though :)

Hey @whatyouhide Thanks for the review, README updated

Thank you @asafonov! :hear