Is it possible to get the name of the generated color ?

Would it be possible to get the name of the color generated ?
Naming would follow wikipedia color naming
Wikipedia color names

Hello, this is not possible with randomColor right now.
However, it would be a fun project to take a random color and find the nearest named color... but I'm going to consider this outside the scope of this particular script. Let me know if you have any questions!

@minedun6 Checkout https://github.com/zeke/color-namer

I'll consider this closed for now, thank you Aleksey!

@davidmerfield,
Would it be possible for randomColor to use the luminosity and hue names? e.g. Light blue, dark red, bright green. I feel like there should be a way to do this and I'm sure it's an easy reverse engineer, but I just can't figure it out.
#104

Hi there! You should be able to modify Color Namer to do this. Just define your own colors in a file like basic.js. I consider this beyond the scope of randomColor though and will keep this closed for now


What are the use cases for HITCOUNT_HITS_PER_IP_LIMIT and HITCOUNT_HITS_PER_SESSION_LIMIT?

Please help me understand the real world usage of the following options:

HITCOUNT_HITS_PER_IP_LIMIT
I don't understand the use cases for "Only count 3 hits from IP xxx.xxx.xxx.xxx, and then no more." I understand the use case for blocking a specific IP, but not for limiting the counting of hits from a specific IP to an arbitrary upper limit.

HITCOUNT_HITS_PER_SESSION_LIMIT
I don't understand the use of this parameter, either. What is the use case for saying "Only count 3 hits from this session, then no more."

Thanks!
Mark

Let me try to recall, it been pretty long since i worked on this project.
One of the rationales that come to my mind are, you want to count just one count from a set of IPs(may be your locally group of editors for a blogging website).


Proposal to provide an api for sharing secrets

An Api for sealing and un-sealing secrets could be useful for a locally encrypted payload. As such someone could use the tool from any programming language.
An example APi could be an endpoint with TTL and a payload with the encrypted text as in :

POST /v1/seal/
body:
{
  ttl: 2,
  ttlTyp: "hours",
  encText: "EWRYERTYER",
}

Feel free to change the payload and the url. This is just an example

This would be simply storing pre-encrypted data right?
I would assume it simply returns an id, where you can later retrieve it like this:
GET /v1/{id}

{
  "remainingReads": 4,
  "expires": 129417238
  "encText": "EWRYERTYER"
}

Or am I misunderstanding the idea?

That is correct ! The get should return whatever was stored in the {1} . But maybe with a /v1/unseal/{id} endpoint to be future consistent. Naming things is hard ! and so is naming endpoints !

ok got it, makes sense

I was saying the same thing on twitter, If you want to implement a serverless function for that, I'm open to help

Yeah let's do it.
I'm just not 100% sure on the path names yet.
Do you have a suggestion?

POST /api/v1/secret and GET /api/v1/secret/{id}

I'm for these route names. Keeps it RESTful.
POST /v1/seal/ and GET /v1/unseal/{id} isnt really good because RESTful resources should be named after the resource noun not a verb per the standard. It also makes assuming what the POST/GET route is very easy for new users

I will say we will have the two option as an interface, and as a endpoint
POST /api/v1/secret and GET /api/v1/secret/{id}
and we could build a small CLI to make it really easier, so we should plan those two options
it will be cool tool, cuz it's quite harder to pass env from CI/CD to an instance
let me know if you are ready to make those happen, I can handle both and work on them together

A cli tool would be cool, but I think that would warrant another proposal so we can design it separately, properly should the Andreas want to support/maintain that.
I'm currently working on the public API routes for POST /api/v1/secret and GET /api/v1/secret/{id}

I would like to create the CLI, I have a previous expreiance to build it, also consider the options
That I told you about that, api can response text
As we could make it export the env and inject them to the system or we can leave this to the CLI,
This is would make a point for us cause there's  no tool for that

I see two options for the POST /api/v1/secrets endpoint

Treat the request body as the secret in plain text or json or whatever the user wants, configuration like ttl will be in http headers (ENVSHARE_TTL: 60)
Require the request to be json, similar to the existing api route

not 100% sure what's better here

This is would be clear and good to pass those to the header, it would be a better option


Readd highlighting for InlineFeedbacks

Highlighting now works the same way it did with Runestone

The rounded corners that we had with Runestone aren't that easy to do, since NSAtrributedString background takes no argument. We should find a solution for that in a future PR since the current highlighting looks very plain.
(CodeViewSelect is for testing purposes only, will comment it out when merging)

Looks good in principle, but I still cannot test in simulator:
https://user-images.githubusercontent.com/9006596/207165752-e1c1f032-b334-4aa1-a87e-1ddad7ed18bc.mp4

I cannot select on my physical iPad either. Still approving so that we don't get a mess with our multiple branches here.

I'm not at home atm, so cannot tell you if that's really the issue, but I always tested in LightMode.

For documentation: We discussed this and it turned out we still had test behavior in place, which caused selection not to work in dark mode and which is now fixed


Add random string at the end of BigQuery query job name to make this resilient to retries

#4869 added a random string to the end of query job names to make this step resilient to retries. This query step creates a temp destination + table to output the query to. The next step would be to export data from this temp table to files, then delete the temp table+destination and read from those files. The problem was if a retry happened right after/during temp table+destination deletion, we would need to retry the query job. However, BQ would see the old successful query job name and return as so without actually querying and creating the temp table. The next step, export to files, would always fail because the table we are trying to export from does not exist.
The solution introduced by #4869 was written over in a code refactor in #12082 and the random string was lost here. This re-introduced the problem of having a deterministic query job name that was vulnerable to retries.
This PR just adds back that string to the end of the query job name.

R: @pabloem

Run Java PostCommit

Run PostCommit_Java_Dataflow

Run Java Examples on Dataflow Runner V2

LGTM, though I don't have context here

Thanks. LGTM.

Run PostCommit_Java_Dataflow

Run Spotless PreCommit

Run Java PostCommit


Service Templating

I need a feature where you can override a service with another. I've started the implementation and will create a pull request once I have a good set of tests done.
Here are the details:
Allows the ability to have templates, where your fig.yml can override another
service, optionally in another file (e.g. template.yml).
template can either be a string or dictionary.
When template is a string, it specifies the path to the template, where the
same service name will be used.
When template is a dictionary, you may specify path and service as the
keys. path is the path to the template and service is the name of the
service to override in the specified template. path or service may be
omitted defaulting to the same template file, or same service name.
For example, this would use busybox:latest with the command /bin/bash (same as the other examples below):
fig.yml
myservice:
  template: template.yml
  command: /bin/bash

template.yml
myservice:
  image: busybox:latest
  command: /bin/sleep 10

Another example, this one runs in a single file:
fig.yml
template_service:
  image: busybox:latest
  command: /bin/sleep 10
myservice:
  command: /bin/bash
  template:
    service: template_service

A final example, referencing another file and service:
fig.yml
myservice:
  template:
    path: template.yml
    service: template_service
  command: /bin/bash

template.yml
template_service:
  image: busybox:latest
  command: /bin/sleep 10

I made a choice to have the "string" point to a template file rather than a service name (in the same file), only because that's how I plan to structure my fig files, so it was more appropriate as a default for my project.

Have you looked at #318 and #758? There seems to be a lot of overlap. How does your proposed solution compare?

-> #988 may solve your issue.

I guess this is a common feature request. :)
I'm not bothering to pursue my patch since my implementation is a very small change, and there are more well thought out variations to it, especially #988. Closing.


Print the canonical path of wasm/abi when not found

Change Description
Fixes #6343.
This patch makes cleos print the canonical path of wasm or abi when they are not found. Showing the canonical path for contract-dir can help users find out wrong configuration or option set by themselves.
Consensus Changes
None
API Changes
None
Documentation Additions
None

@heifner
if( cpath.filename().generic_string() == "." ) cpath = cpath.parent_path();

I've tested above code, but it just converts path to empty one when given condition is true, so with the current version of cleos, the next command fails:
cleos set contract testaccount1 .

By converting path to canonical one, I found the command cleos set contract testaccount1 . work well, so removed checking . lines.


Feature/optimize upload

@yulrizka here is a somewhat optimised version for speedier uploading

@jorishjanssen couple of points:

there's now three functions which start with "singleUpload". The could have better names to make clear what they are supposed to do. Also I think singleUpload() might be superfluous atm.
I don't like resolving sensors for INT_MAX datapoints only. Better way would be to have one call to obtain all sensors from CommonSense, so we're sure that the cache is valid, and then just resolve per 1000 datapoints.
The resolveSensors tries to resolve with a cache it just invalidated, but this was already in the code.


PowerToys Run Time & Date FileTime conversion century incorrect

Microsoft PowerToys version
0.75.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
Enter: (ft133443573654258605
✔ Expected Behavior
Result: 13 November 2023 13:56
❌ Actual Behavior
Result: 13/11/0423 13:56
Screenshot with PowerShell vs PowerToys Run conversion below:

Other Software
No response

We should rework the parser for file time (and unix epoch time) to use the official methods instead of custom calculations:
[DateTime]::FromFileTime(Int64)
[DateTimeOffset]::FromUnixTimeSeconds(Int64).LocalDateTime
[DateTimeOffset]::FromUnixTimeMillieconds(Int64).LocalDateTime

@bmrussell
The fix is ready:

The work associated with this issue has been released as part of the 0.76 sprint. Please update PowerToys to the latest. https://github.com/microsoft/PowerToys/releases


Build Fixes

Motivation and Context
A collection of small issues with the pubsub adapter build:

Use the same go version as the image is built with, currently 1.16
Add GCR config/auth in travis
Use our own pubsub emulator image (currently it's using the massive big true image)

What has changed
Updated image name
Go versions updated
Updated travis file
How to test?
Build image and check it works ok
Links
https://trello.com/c/qoAU28OW

 SSDC pubsub adapter build fixes (5)


Build Error

I get the following error when I try to build this using Carthage. I am running Xcode 7.2  and Swift 2.1. I also tried compiling the Xcode project directly from Xcode to no avail.
 I already pushed a change to it.

I got these errors last night, but decided to update Xcode. Using Xcode 7.3.1 this morning, I was able to build with no errors, using version 0.10.1.
This issue can probably be closed.

I Face the same issue and am in a situation, where i cannot update my xcode. So, is there any other previous version which will work in Xcode 7.2

Only Xcode8.x is supported at the moment.


Schema list of gates is too broad

We currently define a number of allowed gates in the core schema that we should restrict and allow backends to define new gates that are allowed.
Fix once we've merged a few of the schema PRs

What is the expected enhancement?

One idea would be to make the core schema allow every gate that is defined in https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/qasm/libs/qelib1.inc

@dcmckayibm Yes let's do that ^. Assigned to you.

Yes, that sounds like a good compromise for the release - probably related to (and likely a very similar solution to the transitional_qobj_schema.json at https://github.com/Qiskit/qiskit-terra/pull/807). Looking forward to see the schemas for 0.6 finalized, as we need to update the other teams as well :tada:

closed via #843

I think we should not close this bug. The list continues being too broad, now more than before and after #807 they will include all the simulator instructions which are extensions to Qobj but not part of Qobj itself. Does it make sense?


Out of memory on player.connect()

not sure if i did something wrong but any time i try connect a player to a channel i get an Out of memory error
 Error: Out of memory
at Object.func (C:\Users\Gamer\Desktop\code\Asuna-Eris\node_modules\eris\lib\gateway\Shard.js:1999:52)
at Bucket.check (C:\Users\Gamer\Desktop\code\Asuna-Eris\node_modules\eris\lib\util\Bucket.js:61:22)
at Bucket.queue (C:\Users\Gamer\Desktop\code\Asuna-Eris\node_modules\eris\lib\util\Bucket.js:41:14)
at Shard.sendWS (C:\Users\Gamer\Desktop\code\Asuna-Eris\node_modules\eris\lib\gateway\Shard.js:2008:31)
at Manager.send (C:\Users\Gamer\Desktop\code\Asuna-Eris\src\asuna\functions\lavalink\index.js:22:36)
at Player.connect (C:\Users\Gamer\Desktop\code\Asuna-Eris\node_modules\lavaclient\dist\structures\Player.js:48:35)

I have never encountered this issue... can you show me your send function?

send: (id, data) => {
let guild = this.client.bot.guilds.get(id);
if(guild) guild.shard.sendWS(data.op, data.d, false);
return
}
ive tried with / without the arrow function same issue every time ive followed the docs for everything

how much memory does your system have?

16GB

I have no clue what is causing this... this might be an Eris issue. I have an Eris bot with a similar configuration and it works completely fine, I doubt this is an issue with your code

you could try logging the data in the send function, that might help

yeah ill try and let u know what i get


DOC-945: Add details about PARTITION ALL BY

Fixes the following:

DOC-945
DOC-946
DOC-947
DOC-1047

This change is

Canceling per discussion with Andrew.


A couple suggestions

It appears the data structure being defined here is actually one of the nodes in a linked list. Unless I'm reading it wrong 😀.

Implements the data structure as a generic class so the value can be of any type.
Makes .next nullable since the tail node of a linked list will not have a next node to point to.
Adds return types to the instance methods.
Updates instance method signatures with generics.
Resists the urge to write the whole thing as

interface Node<T> extends Readonly<{
  value: T
  next: Node<T> | null
}> {}

😉
Stoked to have you on the TypeScript crew!!!

@kylecorbelli your pr was so solid. Thanks for it. Feel free to pr based on the updates that have been made. 🙏


Not able to proceed with TextInput || iOS release

New Version
0.72.0
Old Version
0.68.5
Build Target(s)
iOS simulator release mode
Output of react-native info
System:
OS: macOS 14.1.1
CPU: (8) arm64 Apple M1 Pro
Memory: 77.88 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 15.0.1/15A507 - /usr/bin/xcodebuild
Languages:
Java: 17.0.7 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.72.0 => 0.72.0
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Issue and Reproduction Steps
Hi! I have updated the react native version from 0.68.5 to 0.72.0 the flipper and other dependencies are updated successfully.
I am facing this issue
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID
while I am running the iOS app in release mode in Simulator (iPhone 15 - iOS 17.0), due to which I am not able to proceed further in the application.
The debug build works fine.
Attached screenshot is of the log that I am getting while clicking on a button after giving input to a TextInput

also dealing with this issue. I believe the same issue has been addressed on Apple forum https://forums.developer.apple.com/forums/thread/731700 and on StackOverflow https://stackoverflow.com/questions/77165006/searchable-swiftui-on-ios-17-cause-an-error-invalid-numeric-value
but no solution has been proposed yet.
I get the same log when I click a TextInput on the simulator.

Getting this too, in release mode I can't input text, works fine in development
Expo 50
RN 0.73.2

Also getting this:
[RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID
Expo 50.0.4
RN 0.73.2

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID
Expo 50.0.4 RN 0.73.2

same

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID
Expo 50.0.4 RN 0.73.2

same

anyone looking into this issue?

@geekabhinavp I'm facing the same issue in .NET MAUI. Got some folks looking into it - I'll try to post helpful content here once the solution is found.

Also getting this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID
Expo 50.0.4 RN 0.73.2

same

Same

Bummer, I have this same issue in my app when I try to use my "sell" button in the simulator which should subtract from an array I made..hopefully we can solve it.

You are likely destroying/recreating the component on re-rendering.  Hard to say for sure what the issue is without any reproduction code.
If you are doing something like this where you define an input inline, i.e.
App() {
 const InlineInput = () => <TextInput /> // Move this outside of the function definition.

  return (
   <InlineInput />
  )
}

You will see this error.
Previous versions of RN/iOS didn't seem to mind this, but now it's causing problems. My opinion is this is not a bug, but an implementation issue.  Native devs see this too when they use LazyVStacks that recycle.
Hope that helps

Same thing happens to me even with HTML textarea/inputs.
Tried with webview element in as root level (app/_layout.tsx) but it didn't help.

same issue, "react-native": "0.71.14", expo 0.7.3
even if nothing but  will still get error when press on text input:
[RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a
valid sessionID

@joshuagodwin can you elaborate your solution please, currently having the same issue in development

Seems that issue only happens when you use physical keyboard on ios simulator, try to use "Software keyboard" from simulator. Menu bar > I/O > Keyboard > Toggle Software Keyboard.

"Software keyboard"

I tried it... It still remain... But if its just a development warning, then no problem. :)

Same problem here. In release mode I can't input text. The keyboard display and i can't do anything after. The screen is fixed, blocked.  I can only close the app.
Works fine in development.

"Command" + "Shift" + "K" alternates between software or hardware keyboard.

You are likely destroying/recreating the component on re-rendering. Hard to say for sure what the issue is without any reproduction code.
If you are doing something like this where you define an input inline, i.e.
App() {
 const InlineInput = () => <TextInput /> // Move this outside of the function definition.

  return (
   <InlineInput />
  )
}

You will see this error.
Previous versions of RN/iOS didn't seem to mind this, but now it's causing problems. My opinion is this is not a bug, but an implementation issue. Native devs see this too when they use LazyVStacks that recycle.
Hope that helps

I had the same structure as below. When separating some components as function expressions within the same component, the same error occurs, and there's an issue with losing focus after typing.
const MyComponent = () => {

  const HeaderComponent = () => <TextInput />;

  return (
    <>
      <HeaderComponent />
    </>
  );
};

export default MyComponent;

The problem was resolved by modifying it as follows, but I'm not sure about the exact cause either.
const MyComponent = () => {
  return (
    <>
      <TextInput />;
    </>
  );
};

export default MyComponent;

I am facing the same issue. I found that first mount is ok, then I used expo-router to navigate back, and navigate to data entry page again that is when I see this message

I found that first mount is ok, then I used expo-router to navigate back, and navigate to data entry page again that is when I see this message

I am seeing the same error when navigating back to a previous page after entering data on a dedicated data-entry page in .Net MAUI 8 via MAUI's Shell as well.  Seems to only be happening on my Sim's, not real devices.  Tried iOS-sim v17.2/17.5 with/without physical keyboard and didn't seem to change.   iPhone XR with iOS 17.5.1 and iPhone 12-iOS 16.6 had no issues.

I am facing the same issue when using in-app-payments-react-native-plugin. Happens when I enter card information and tap "Pay". on React Native CLI 0.74.3, iOS 17.

I get this: [RemoteTextInput] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:]  perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations

+1

+1

I am getting the same warning, AI assistants say that it's not important and I should learn to live with and accept it being part of my log outputs
[RemoteTextInput] -[RTIInputSystemClient
remoteTextInputSessionWithID:performInputOperation:]  perform input
operation requires a valid sessionID. inputModality = Keyboard,
inputOperation = <null selector>, customInfoType =
UIEmojiSearchOperations```

@periwinkleFTW
🤔 I got that warning while trying to programmatically interface with AI, hmmm...


No enum constant com.wrapper.spotify.models.AlbumType.NULL

When i try to get a very large playlist i get this error because some of the tracks may lack the album information. I have seen that this was an issue in some of the wrappers for other languages.

Thanks for reporting it @vmunozre!

Hey Guys,
I was wondering if this bug got fixed already and a new version is going to be published on Maven Central?
Tanks a lot :)

Version 2.0.0-RC1 was just released.


Certain URLs cause Maximum call stack size exceeded

Filing a new issue as I can't reopen #6
Some URLs cause a RangeError: Maximum call stack size exceeded
An example of URL is https://lnkd.in/gVeYnv7
The error message is below (the stack trace is truncated, shoing only the snippet below)
/<redacted>/node_modules/domutils/lib/querying.js:83
function findAll(test, elems){
                ^

RangeError: Maximum call stack size exceeded
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:83:17)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)
    at findAll (/<redacted>/node_modules/domutils/lib/querying.js:90:27)

Just experienced the same problem. And although I have wrapped the call to "urlMetadata" in a try-catch, it made the whole nodejs app shut down. Is there anything I can do to prevent this happening today already?

This is because the URL is not a text file. To avoid that, I change the code a bit to process only when the response header content-type matches /^text\//, for example text/html.
chienwen@f3df208

@chienwen  Do you plan to submit the fix from your forked repo back in here?

@mauronr yes, this fix is included in PR #37

Great! I'm sorry I missed checking the PRs before asking. And thanks for looking into it.

Any update on when this PR will be merged, experiencing the same issue it's kind of blocking?

Custom headers are now available as an option in new version 3.0.1
https://www.npmjs.com/package/url-metadata


[Bugfix][Frontend][TF] Fix tutorial for TF<=1.12 compatible

The doc https://docs.tvm.ai/frontend/tensorflow.html says tvm support tf 1.12 and below, however, the from-tf tutorials https://docs.tvm.ai/tutorials/frontend/from_tensorflow.html#tutorials failed for tf 1.12 or below because of tf.compat.v1 module.
I notice this PR for TF 2.x compatibility https://github.com/apache/incubator-tvm/pull/4104, it would be very nice not to break the compatibility for lower TF 1.xx versions, because most of our platform users are TF 1.10

@yzhliu @yongwww @tqchen  would you pls take a look?


Zipkin error tag sanitizer

Fixes #184

Coverage remained the same at 100.0% when pulling 6f2a8880d57492f79f1ad9e99685e49121d4ca0f on pavolloffay:zipkin-error-tag-sanitizer into 43ef964c095bb3c4f08a620f0b5171342be0435a on uber:master.

Coverage remained the same at 100.0% when pulling 71b7a322592b1340fb23322e3641a69a7a76c9c4 on pavolloffay:zipkin-error-tag-sanitizer into 43ef964c095bb3c4f08a620f0b5171342be0435a on uber:master.

Coverage remained the same at 100.0% when pulling 71b7a322592b1340fb23322e3641a69a7a76c9c4 on pavolloffay:zipkin-error-tag-sanitizer into 43ef964c095bb3c4f08a620f0b5171342be0435a on uber:master.

Coverage remained the same at 100.0% when pulling a7a79d459029216b0095190f7b125a33fdf5f9b6 on pavolloffay:zipkin-error-tag-sanitizer into 43ef964c095bb3c4f08a620f0b5171342be0435a on uber:master.

I think we're considering several different use cases here. One is instrumentation doing span.SetTag("error", "true"), which is sort-of OT-compliant except for the value type being string. Another is instrumentation doing it right with a Boolean but the tracer converting the value to string, for whatever reason. And the third one is a native Zipkin instrumentation sending spans to Jaeger that is equivalent to span.SetTag("error", "<error message.") (which is not an OT-compliant way).
For the first two use cases we should simple parse the value as boolean and convert the binary annotation to BOOL type with the converted value as 0 or 1.
For the latter use case the only sensible thing I see doing is to convert that single binary annotation to two: ("error", BOOL, 0x1) and ("error.message", STRING, <error message>). We cannot do "logs" here because we don't have a timestamp (the OT-compatible way would be to record the error message in the log, separate from the error=true tag).

We cannot do "logs" here because we don't have a timestamp (the OT-compatible way would be to record the error message in the log, separate from the error=true tag).

We could do it. Native zipkin instrumentation sets annotation (with timestamp) to error and creates binary annotation with error and error string. I will try to include this use case if it gets too messy we could skip it.

We could do it. Native zipkin instrumentation sets annotation (with
timestamp) to error and creates binary annotation with error and error
string.

this is not quite correct. the error timestamp annotation is not always
present and when present it is often a substring not an exact string. I
wouldn't rely on finding an "error" timestamped annotation. The closest
would be the end of the span (timestamp+duration or last annotation)

@adriancole thanks for the clarification. Let's better not add a log entry.
PR updated, It does mostly what @yurishkuro described.

Coverage remained the same at 100.0% when pulling f7e69fc1c7dd68e6ac522faa374e0c6efc628098 on pavolloffay:zipkin-error-tag-sanitizer into 43ef964c095bb3c4f08a620f0b5171342be0435a on uber:master.

@pavolloffay I was trying out Sleuth with both Zipkin and Jaeger.  I noticed that my error tag which is a string is reported with the string value in Zipkin under the erro tag.  In Jaeger I see that the error tag is set to true but that error.message is set to the value false.  Based on this pull request should I expect the value of error.message to be the same string value that was originally present in the error tag?  Is this an issue or am I misunderstanding how it should function?

It seems that default type of the annotation was set to bool.
It's been fixed in https://github.com/jaegertracing/jaeger/pull/891


is there an example to setup data-prepper within kubernetes

Is your feature request related to a problem? Please describe.
I'm looking for instructions to setup data-prepper within K8s.
Describe the solution you'd like
Helm install would be preferred.
Describe alternatives you've considered (Optional)
Alternatively, a good example of yaml file with all K8s resources defined would work too.
Additional context
By looking at the example here https://github.com/opensearch-project/data-prepper/blob/main/examples/dev/k8s/data-prepper.yaml, it is using example-k8s/data-prepper image which I cannot find from quick google search. After changed the docker image to opensearchproject/data-preper, I got the issue below during container startup. From the example, it already has ssl disabled with pipeline yaml file, but not sure if I have to disable ssl within data prepper configuration yaml file.
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
2022-06-24T16:39:27,052 [main] INFO  com.amazon.dataprepper.parser.config.DataPrepperAppConfiguration - Command line args: /appconfig/trace_analytics_no_ssl.yml
2022-06-24T16:39:27,054 [main] INFO  com.amazon.dataprepper.parser.config.DataPrepperArgs - Using /appconfig/trace_analytics_no_ssl.yml configuration file
2022-06-24T16:39:32,921 [main] WARN  com.amazon.dataprepper.parser.model.PipelineConfiguration - Prepper configurations are deprecated, processor configurations will be required in Data Prepper 2.0
2022-06-24T16:39:32,925 [main] WARN  com.amazon.dataprepper.parser.model.PipelineConfiguration - Prepper configurations are deprecated, processor configurations will be required in Data Prepper 2.0
2022-06-24T16:39:32,926 [main] WARN  com.amazon.dataprepper.parser.model.PipelineConfiguration - Prepper configurations are deprecated, processor configurations will be required in Data Prepper 2.0
2022-06-24T16:39:32,928 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building pipeline [entry-pipeline] from provided configuration
2022-06-24T16:39:32,928 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [otel_trace_source] as source component for the pipeline [entry-pipeline]
2022-06-24T16:39:33,076 [main] WARN  com.amazon.dataprepper.plugins.source.oteltrace.OTelTraceSource - Creating otel-trace-source without authentication. This is not secure.
2022-06-24T16:39:33,076 [main] WARN  com.amazon.dataprepper.plugins.source.oteltrace.OTelTraceSource - In order to set up Http Basic authentication for the otel-trace-source, go here: https://github.com/opensearch-project/data-prepper/tree/main/data-prepper-plugins/otel-trace-source#authentication-configurations
2022-06-24T16:39:33,077 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building buffer for the pipeline [entry-pipeline]
2022-06-24T16:39:33,089 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building processors for the pipeline [entry-pipeline]
2022-06-24T16:39:33,437 [main] INFO  com.amazon.dataprepper.plugins.prepper.peerforwarder.discovery.DnsPeerListProvider - Found endpoints: [Endpoint{data-prepper-headless.opensearch, ipAddr=<IP_ADDRESS>, weight=1000}]
2022-06-24T16:39:33,438 [main] INFO  com.amazon.dataprepper.plugins.prepper.peerforwarder.HashRing - Building hash ring with endpoints: [<IP_ADDRESS>]
2022-06-24T16:39:33,441 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building sinks for the pipeline [entry-pipeline]
2022-06-24T16:39:33,441 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [pipeline] as sink component
2022-06-24T16:39:33,442 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [pipeline] as sink component
2022-06-24T16:39:33,443 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building pipeline [service-map-pipeline] from provided configuration
2022-06-24T16:39:33,443 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [pipeline] as source component for the pipeline [service-map-pipeline]
2022-06-24T16:39:33,444 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building buffer for the pipeline [service-map-pipeline]
2022-06-24T16:39:33,444 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building processors for the pipeline [service-map-pipeline]
2022-06-24T16:39:33,581 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building sinks for the pipeline [service-map-pipeline]
2022-06-24T16:39:33,581 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [opensearch] as sink component
2022-06-24T16:39:33,588 [main] WARN  com.amazon.dataprepper.plugins.sink.opensearch.index.IndexConfiguration - The parameters, trace_analytics_raw and trace_analytics_service_map, are deprecated. Please use index_type parameter instead.
2022-06-24T16:39:33,594 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.OpenSearchSink - Initializing OpenSearch sink
2022-06-24T16:39:33,600 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.ConnectionConfiguration - Using the username provided in the config.
2022-06-24T16:39:33,725 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.ConnectionConfiguration - Using the trust all strategy
2022-06-24T16:39:34,100 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.index.IndexManager - Found version 0 for existing index template otel-v1-apm-service-map-index-template
2022-06-24T16:39:34,100 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.index.IndexManager - Index template otel-v1-apm-service-map-index-template should not be updated, current version 0 >= existing version 0
2022-06-24T16:39:34,118 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.OpenSearchSink - Initialized OpenSearch sink
2022-06-24T16:39:34,119 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building pipeline [raw-pipeline] from provided configuration
2022-06-24T16:39:34,119 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [pipeline] as source component for the pipeline [raw-pipeline]
2022-06-24T16:39:34,119 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building buffer for the pipeline [raw-pipeline]
2022-06-24T16:39:34,120 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building processors for the pipeline [raw-pipeline]
2022-06-24T16:39:34,120 [main] WARN  com.amazon.dataprepper.parser.PipelineParser - No plugin of type Processor found for plugin setting: otel_trace_raw_prepper, attempting to find comparable Prepper plugin.
2022-06-24T16:39:34,122 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building sinks for the pipeline [raw-pipeline]
2022-06-24T16:39:34,122 [main] INFO  com.amazon.dataprepper.parser.PipelineParser - Building [opensearch] as sink component
2022-06-24T16:39:34,123 [main] WARN  com.amazon.dataprepper.plugins.sink.opensearch.index.IndexConfiguration - The parameters, trace_analytics_raw and trace_analytics_service_map, are deprecated. Please use index_type parameter instead.
2022-06-24T16:39:34,124 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.OpenSearchSink - Initializing OpenSearch sink
2022-06-24T16:39:34,124 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.ConnectionConfiguration - Using the username provided in the config.
2022-06-24T16:39:34,124 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.ConnectionConfiguration - Using the trust all strategy
2022-06-24T16:39:34,190 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.index.IndexManager - Found version 1 for existing index template otel-v1-apm-span-index-template
2022-06-24T16:39:34,190 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.index.IndexManager - Index template otel-v1-apm-span-index-template should not be updated, current version 1 >= existing version 1
2022-06-24T16:39:34,196 [main] INFO  com.amazon.dataprepper.plugins.sink.opensearch.OpenSearchSink - Initialized OpenSearch sink
2022-06-24T16:39:34,333 [main] WARN  com.amazon.dataprepper.pipeline.server.config.DataPrepperServerConfiguration - Creating data prepper server without authentication. This is not secure.
2022-06-24T16:39:34,333 [main] WARN  com.amazon.dataprepper.pipeline.server.config.DataPrepperServerConfiguration - In order to set up Http Basic authentication for the data prepper server, go here: https://github.com/opensearch-project/data-prepper/blob/main/docs/core_apis.md#authentication
2022-06-24T16:39:34,334 [main] INFO  com.amazon.dataprepper.pipeline.server.HttpServerProvider - Creating Data Prepper server with TLS
2022-06-24T16:39:34,336 [main] WARN  org.springframework.context.support.AbstractApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataPrepperServer' defined in URL [jar:file:/usr/share/data-prepper/data-prepper.jar!/com/amazon/dataprepper/pipeline/server/DataPrepperServer.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpServer' defined in class path resource [com/amazon/dataprepper/pipeline/server/config/DataPrepperServerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sun.net.httpserver.HttpServer]: Factory method 'httpServer' threw exception; nested exception is java.lang.IllegalStateException: Problem loading keystore to create SSLContext
Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataPrepperServer' defined in URL [jar:file:/usr/share/data-prepper/data-prepper.jar!/com/amazon/dataprepper/pipeline/server/DataPrepperServer.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpServer' defined in class path resource [com/amazon/dataprepper/pipeline/server/config/DataPrepperServerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sun.net.httpserver.HttpServer]: Factory method 'httpServer' threw exception; nested exception is java.lang.IllegalStateException: Problem loading keystore to create SSLContext
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at com.amazon.dataprepper.ContextManager.(ContextManager.java:48)
at com.amazon.dataprepper.DataPrepperExecute.main(DataPrepperExecute.java:22)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpServer' defined in class path resource [com/amazon/dataprepper/pipeline/server/config/DataPrepperServerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sun.net.httpserver.HttpServer]: Factory method 'httpServer' threw exception; nested exception is java.lang.IllegalStateException: Problem loading keystore to create SSLContext
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
... 14 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.sun.net.httpserver.HttpServer]: Factory method 'httpServer' threw exception; nested exception is java.lang.IllegalStateException: Problem loading keystore to create SSLContext
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
... 28 more
Caused by: java.lang.IllegalStateException: Problem loading keystore to create SSLContext
at com.amazon.dataprepper.pipeline.server.SslUtil.createSslContext(SslUtil.java:35)
at com.amazon.dataprepper.pipeline.server.HttpServerProvider.get(HttpServerProvider.java:41)
at com.amazon.dataprepper.pipeline.server.config.DataPrepperServerConfiguration.httpServer(DataPrepperServerConfiguration.java:59)
at com.amazon.dataprepper.pipeline.server.config.DataPrepperServerConfiguration$$EnhancerBySpringCGLIB$$6fac9e.CGLIB$httpServer$1()
at com.amazon.dataprepper.pipeline.server.config.DataPrepperServerConfiguration$$EnhancerBySpringCGLIB$$6fac9e$$FastClassBySpringCGLIB$$b3de3ee2.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
at com.amazon.dataprepper.pipeline.server.config.DataPrepperServerConfiguration$$EnhancerBySpringCGLIB$$6fac9e.httpServer()
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 29 more
Caused by: java.io.IOException: Is a directory
at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at java.base/sun.nio.ch.FileDispatcherImpl.read(FileDispatcherImpl.java:48)
at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:276)
at java.base/sun.nio.ch.IOUtil.read(IOUtil.java:245)
at java.base/sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:229)
at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:65)
at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:107)
at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:101)
at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:263)
at java.base/sun.security.util.DerValue.init(DerValue.java:383)
at java.base/sun.security.util.DerValue.(DerValue.java:327)
at java.base/sun.security.util.DerValue.(DerValue.java:340)
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1960)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:220)
at java.base/java.security.KeyStore.load(KeyStore.java:1472)
at com.amazon.dataprepper.pipeline.server.SslUtil.createSslContext(SslUtil.java:24)
... 41 more

One update - I had to customize data-prepper-configuration yaml to disable the ssl there and then data-prepper container started successfully. But I'm looking for official documation/example or helm chart.

We have an example for Kubernetes Logging with Fluent Bit and Data Prepper. We do not have a published helm chart.
Does this fit your use case? If not, what is your use case for Data Prepper and Kubernetes?

All our applications are running in K8s cluster. We'd like to use opentelemetry to send metrics/tracing data into opensearch. Potentially we will use opentelemetry to send application logs as well, but right now we are using fluent-bit to send the application logs into opensearch directly.

Thanks for creating the issue, we'll update the example configurations.

Helm chart would be helpful. Once you have bigger infrastructure its nice to have as little as possible different deployment strategies. And now everything what we deploy on K8s (EKS) come through Helm it would be best to have chart for data-prepper also

It wouldn't take much to write one but there isn't that much yaml to this anyways.
Most of it is just the configmap.  The rest is a single deployment unless you want some sidecars or something.
Might make mapping in certs or something a little bit easier.
took this from
https://github.com/opendistro-for-elasticsearch/data-prepper/blob/main/deployment-template/k8s/data-prepper-k8s.yaml
`apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: data-prepper
name: data-prepper-config
data:
pipelines.yaml: |
log-pipeline:
source:
http:
# Explicitly disable SSL
ssl: false
# Explicitly disable authentication
authentication:
unauthenticated:
# The default port that will listen for incoming logs
port: 2021
sink:
- opensearch:
hosts: [ "http://elasticsearch-es-http:9200" ]
# Change to your credentials
username: "elastic"
password: "password"
# Add a certificate file if you are accessing an OpenSearch cluster with a self-signed certificate
#cert: /path/to/cert
# If you are connecting to an Amazon OpenSearch Service domain without
# Fine-Grained Access Control, enable these settings. Comment out the
# username and password above.
#aws_sigv4: true
#aws_region: us-east-1
# Since we are grok matching for apache logs, it makes sense to send them to an OpenSearch index named apache_logs.
# You should change this to correspond with how your OpenSearch indices are set up.
index: elastictest
data-prepper-config.yaml: |
ssl: false
apiVersion: v1
kind: Service
metadata:
labels:
app: data-prepper
name: data-prepper-headless
spec:
clusterIP: None
ports:
- name: "2021"
port: 2021
targetPort: 2021
selector:
app: data-prepper
status:
loadBalancer: {}
apiVersion: v1
kind: Service
metadata:
labels:
app: data-prepper
name: data-prepper-metrics
spec:
type: NodePort
ports:
- name: "4900"
port: 4900
targetPort: 4900
selector:
app: data-prepper
status:
loadBalancer: {}
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: data-prepper
name: data-prepper
spec:
replicas: 1
selector:
matchLabels:
app: data-prepper
strategy:
type: Recreate
template:
metadata:
labels:
app: data-prepper
spec:
imagePullSecrets:
- name: regcred
containers:
- args:
- bin/data-prepper
- /etc/data-prepper/pipelines.yaml
- /etc/data-prepper/data-prepper-config.yaml
image: opensearchproject/data-prepper:latest
name: data-prepper
ports:
- containerPort: 2021
resources: {}
volumeMounts:
- mountPath: /etc/data-prepper
name: prepper-configmap-claim0
restartPolicy: Always
serviceAccountName: ""
volumes:
- name: prepper-configmap-claim0
configMap:
name: data-prepper-config
status: {}
---`

@JKrehling @asifsmohammed I see an example here But what if we want to run the Data Prepper with multiple pods and the pipeline is reading from S3 buckets. How can the data prepper replicas coordinate to read from the same S3 bucket but different files? Basically, we want the replicas to read from the same S3 bucket but avoid reading the  same file to avoid ingesting duplicate data

@besha100 did you find a solution for that?

I have a simple-ish Helm chart I'm happy to contribute but it probably needs some feedback to get the quality up and to match the project. Do I just open a Draft PR or ...?


fix: Attempt to install jq on all runners

Fixes: https://github.com/julia-actions/cache/issues/104
I took the simplest approach, of just removing the check on whether the runner is hosted by GitHub.  This seems to work for both non-container and container jobs.
There may be other cases and subtleties that I am missing.
The one caveat is that the container has to have curl installed; this was easy to do but may be worth adding to the readme.

Please do add the curl note to the readme


set the import-realm flag always

so it becomes possible also to add realm-files from outside of the classpath by adding them manually as a file system bind
resolves #131

in which version will this be available?

I'm planning to do a 3.3.1 latest in the beginning of next week, perhaps earlier.

Thank you!


Restricting git issue creation to OpenSearch

Signed-off-by: Rishabh Singh<EMAIL_ADDRESS>Description
As per discussion restricting github issue creation to one component on component failure during distribution build. Once we are sure that the solution is stable will enable for all components.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2636 (59e2e2a) into main (b7248fb) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #2636      +/-   ##
============================================
- Coverage     93.94%   93.92%   -0.03%
============================================
  Files           219      162      -57
  Lines          4494     4311     -183
  Branches         29       19      -10
============================================
- Hits           4222     4049     -173
+ Misses          266      262       -4
+ Partials          6        0       -6

Impacted Files
Coverage Δ

src/system/temporary_directory.py
64.44% <0.00%> (-28.89%)
:arrow_down:

src/system/os.py
93.75% <0.00%> (-6.25%)
:arrow_down:

...bs/PrintArtifactDownloadUrlsForStaging_Jenkinsfile

...jobs/PromoteArtifactsQualifier_actions_Jenkinsfile

tests/jenkins/jobs/CreateGithubIssue_Jenkinsfile

tests/jenkins/jobs/BuildYumRepo_Jenkinsfile

tests/jenkins/jobs/Hello_Jenkinsfile

...PromoteArtifacts_OpenSearch_Dashboards_Jenkinsfile

...ests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile

tests/jenkins/jobs/BuildArchive_Jenkinsfile

... and 49 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[5.2] Added sqlserver odbc connection support

#13273

DB_CONNECTION is 'sqlsrv' and driver is 'odbc'

Not true. You can name the "connection" anything you want. The "driver" is what selects the correct driver.

In the config/database.php file the 'default' is 'sqlsrv' and then connections['sqlsrv']['driver'] is 'odbc'

and the connections['sqlsrv']['driver'] is 'odbc'

If you do that, we'll never resolve the sqlsvr driver in the first place though?
https://github.com/laravel/laravel/blob/5.1/config/database.php#L79

taylorotwell said that "What if odbc is an availble driver but they want to use the sqlsrv string? "
if user set driver "odbc", the application will use odbc driver. of course, user also can set driver "sqlrv", then sqlsrv will be used.


best way to send files

hi there ive a dto like this in server :

        [Required]
        public string Banner { get; set; }
        [Required]
        public string MainProfile { get; set; }
        [Required]
        public string Video { get; set; }
        [Required]
        public string Parvane { get; set; }

        public ShopStatus Status { get; set; }

i wanted to know what is the best way to send files in a dto to server using your package?

Hi @kawmy , our lib is needed for generation code from Swagger files. To send files using our lib - you need to configure swagger file appropriately.
For more info you can read swagger spec
Any other questions?

@kawmy  you can check example in this issue.
https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/385


kubectl command sometimes not work.

I installed k3s on my vmware with CentOS Linux release 7.8.2003 (Core), but came across some issues as below, could someone help me, thanks in advance?

Version:

v1.18.3+k3s1
K3s arguments:

/usr/local/bin/k3s
server
'--docker'
'--write-kubeconfig'
'/root/.kube/config'
'--write-kubeconfig-mode'
'666' \
use external database(Mysql5.7)
Describe the bug

Run kubectl get nodes command(kubectl get nodes), it sometimes show correct responds, but sometimes error occurs as below.
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes)
run command(kubectl get pods -n kube-system),  most of the time, error occurs as bellow,
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods)
run command(k3s kubectl get all --all-namespaces), most of the time, error occurs as below,
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get replicationcontrollers)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get services)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get daemonsets.apps)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get deployments.apps)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get replicasets.apps)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get statefulsets.apps)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get horizontalpodautoscalers.autoscaling)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get jobs.batch)
Error from server (ServiceUnavailable): the server is currently unable to handle the request (get cronjobs.batch)
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
The connection to the server <IP_ADDRESS>:6443 was refused - did you specify the right host or port?
To Reproduce

Expected behavior

Actual behavior

Additional context / logs

I saw some abnormal logs in /var/log/messages, but not sure what's the reason?
Jun 19 18:30:36 master1 k3s: E0619 18:30:35.995119   36767 leaderelection.go:356] Failed to update lock: Put https://<IP_ADDRESS>:6444/api/v1/namespaces/kube-system/endpoints/cloud-controller-manager: context deadline exceeded
Jun 19 18:30:36 master1 k3s: I0619 18:30:35.995166   36767 leaderelection.go:277] failed to renew lease kube-system/cloud-controller-manager: timed out waiting for the condition
Jun 19 18:30:36 master1 k3s: F0619 18:30:35.995178   36767 controllermanager.go:213] leaderelection lost
Jun 19 18:30:36 master1 systemd: k3s.service: main process exited, code=exited, status=255/n/a
Jun 19 18:30:36 master1 systemd: Unit k3s.service entered failed state.
Jun 19 18:30:36 master1 systemd: k3s.service failed.
Jun 19 18:30:41 master1 systemd: k3s.service holdoff time over, scheduling restart.

This sounds like either your datastore or the k3s node are overtaxed. What cpu, memory, and disk are you using to host k3s and the datastore?

datastore is on my host(6C32G), and k3s nodes are installed via vmware(CentOS7.8), server node is allocated 1Core, 1.5G mem, 40G max disk usage, work node is allocated 1Core,1G mem,40G max disk usage .

What sort of disk is it backed by? k3s doesn't need a ton of throughput, but it does need pretty low latency on the datastore. Do you have any additional logs? Based on what you've shared so far, it looks like the queries are taking an excessive amount of time to complete.

My datastore uses the normal hard disk not solid disk, and sql excute works fast. And the k3s nodes in VM use also use the normal hard disk, but I find that the k3s node starts, the hard disk takes 100% usage in resource monitor.

Sure looks like your disk can't keep up with the io load of two k3s nodes and the database. This might work on a sad, but definitely not on rotational media. Do you at least have a different disk you could try putting the database on?

I move my datastore from normal hard disk to ssd, and most of time kubectl command works well. Thanks for help!!


Librosa warning when using MelSTFTLoss

We get the following warning due to changes in the librosa interface. Should be easy to address.
env/lib/python3.7/site-packages/auraloss/freq.py:138: FutureWarning: Pass sr=44100, n_fft=1024 as keyword args. From version 0.10 passing these as positional arguments will result in an error

Hi @csteinmetz1 , could you please tell me if you solved this? I tried to add something like librosa.filters.mel(sr=self.sample_rate, n_fft=self.n_fft, n_mels=self.n_mels)), but the warning still shows up. Thank you!

This warning should not be fixed in #44 and there is a new release v0.3.0


Update FAQ.md with consistent capitalisation

While this might seem nitpicky, I noticed that one of your sentences didn't start with a capital letter so made that fix — and when I did that, I noticed the other inconsistencies, so thought why not. I promise I'm not usually someone who insists on javascript being spelt "JavaScript"... 😅
Love your work. I'm enjoying reading through the codebase.

Thanks @lol-russo, any contributions are greatly appreciated!


Migrate to Swift 3 07-25.

Should we just skip this one and move to 7-29 instead?

I would have also thought so, but the 07/29 driver is having some issues. See https://lists.swift.org/pipermail/swift-dev/Week-of-Mon-20160725/002579.html


UI - Delete knowledge source continue to be shown in Agent edit view (until manually refreshed or you quit agent and re vist it)

Steps to reproduce the problem:

Create an agent with knowledge files from notion or  one drive location.
Wait for initial sync to be completed.
Close the knowledge page.
Delete the knowledge entry.
Notice that the knowledge continues to be present.
Refresh the page.
It continues to be present.
Quit the Agent edit view and relaunch the edit view for the agent again.
Notice that the knowledge is not present anymore.

Note - Sometimes I see the deleted knowledge entry getting removed on manual refresh in step 5.
https://github.com/user-attachments/assets/7dfb8794-2708-498b-887c-a24cbd96b630

It is probably the finalizer that is preventing it to be deleted. I can fix that on the client side to not show it.

This issue is not seen anymore when testing with latest build.


Design Notes

This will serve as a design notes
Intro
So, we need some contracts that does this

Create and Non Fungible Assets on the different selected chains as of now we can choose to stay on single then later add more--
Ability to store and map the CID or vice-versa from distributed file system,
Should we use ENS style registry to map the document and label them externally ?

Design ideas

Closing for irrelevance


Fix to allow ninja to use make for generators

There is an issue when building qt_gui_cpp with ninja, and it is traced back to python_qt_binding.
This allows ninja to find the make executable and use it for this particular step.  The alternative would be to make the generator create ninja-files in addition to makefiles, but that seems like more work, given that make should be available on all platforms.
CMake Error:
  Running

   '/usr/bin/ninja' '-C' '/home/mjcarroll/workspaces/ros2_rolling/build/qt_gui_cpp' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:633: bad $-escape (literal $ must be written as $$)

Linux
Linux-aarch64
Windows

Could I ask for this to be backported to Noetic? It prevents me from building RViz with ninja: https://github.com/ros-visualization/python_qt_binding/issues/111#issuecomment-2104306840 .


Add option to store DBs in a different location

Closes #324
Added dbdir config option (--dbdir on CLI) to configure the locations where databases (proofs and rounds DBs) are stored. The default value is datadir so that if the option is not provided, then the code behaves like before.
The existing databases are automatically migrated if dbdir is configured.
The dbdir is never deleted, hence this pr also closes #331 allowing for indefinite storage of round members.
❓ Should round's state.bin be moved together with DB to the new location ❓
Original directories
datadir  structure:
:bulb: Note that rounds/0 is missing.
├── proofs
│   ├── 000001.log
│   ...
├── round.tid
├── rounds
│   ├── 1
│   │   ├── challengesDb
│   │   │   ├── 000001.log
│   │   │    ...
│   │   ├── layercache_0.bin
│   │   └── state.bin
│   └── 2
│       ├── challengesDb
│       │   ├── 000001.log
│       │   ...
│       └── state.bin
└── state.bin

After the changes
datadir  structure:
├── round.tid
├── rounds
│   ├── 1
│   │   ├── layercache_0.bin
│   │   └── state.bin
│   └── 2
│       └── state.bin
└── state.bin

dbdir directory:
:bulb: Note that rounds/0 is present.
├── proofs
│   ├── 000002.ldb
│   ...
└── rounds
    ├── 0
    │   ├── 000001.ldb
    │   ...
    ├── 1
    │   ├── 000001.ldb
    │   ...
    └── 2
        ├── 000001.ldb
       ...

Yes, please no migration INSIDE of POET, let's assume that it has only valid location. Please also note that for cloud deployments it should accept path in the same PVC as actual data.

Actually, I'm now thinking of not defaulting DbDir to DataDir and making the transition opt-out (instead opt-in as right now). It should be safe to default DbDir=PoetDir/db`.
Migrating the round databases to a new location is important to keep the DB after a round is finished (the rounds/ directory is removed) (#331).

Yes, please no migration INSIDE of POET, let's assume that it has only valid location. Please also note that for cloud deployments it should accept path in the same PVC as actual data.

I don't understand your answer. Could you rephrase?

Let's assume that poet gets everything as needed. No --migrate flag.

Let's assume that poet gets everything as needed. No --migrate flag.

Then the maintainer will be responsible for a sequence:

kill poet
migrate DBs to new location
restart the new version of poet and specify --dbdir

The maintainer will also need to understand the structure of directories under --dbdir:
dbdir
├── proofs
│   ├── 000002.ldb
│   ...
└── rounds
    ├── 0
    │   ├── 000001.ldb
    │   ...

Then --dbdir must not default to --datadir as the directory structure changes a bit (missing intermediate challengesDb layer under rounds/x)
I have a feeling it will cause problems... How will we update the cloud poets?


Error: exit status 128

when I run govendor add +e,the command result is Error: exit status 128,and there is no more infomation.
but my other project is ok,where is the problem?

@yyf1986 how to fix it?


[BUG]: PublishCodeCoverageResults@2 Error during reading file

New issue checklist

[x] I searched for existing GitHub issues
[x] I read pipeline troubleshooting guide
[x] I checked how to collect logs

Task name
PublishCodeCoverageResults@2
Task version
2.238.1
Issue Description
I recently installed the .NET 8 SDK on my build server and now this task no longer works. Please note my projects still Target .NET 7 and compile without issue. The DotNetCoreCLI@2 tests execution runs without issue as well.
Environment type (Please select at least one enviroment where you face this issue)

[X] Self-Hosted
[ ] Microsoft Hosted
[ ] VMSS Pool
[ ] Container

Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 11
Relevant log output
2024-05-22T18:12:49: Error during reading file 'https://dev.azure.com/MyOrg/MyProject/_apis/git/repositories/my-repo/items?api-version=1.0&versionType=commit&version=sha1&path=/src/MyProject/MyFile.cs': Response status code does not indicate success: 500 (Internal Server Error).

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION]

Repro steps
- task: DotNetCoreCLI@2
    displayName: Unit Test Sandbox
    inputs:
      command: test
      projects: '**/*[Tt]ests/*.csproj'
      arguments: '--no-build --configuration ${{ parameters.buildConfiguration }} --settings src/MyProject.Tests/ci.runsettings --blame-hang-timeout 120s --blame-hang-dump-type full --blame-crash-dump-type full --filter IgnoreCi!=true${{ parameters.additionalTestFilters }}'

  - task: PublishCodeCoverageResults@2
    displayName: 'Publish Code Coverage Report'
    inputs:
      summaryFileLocation: '$(Agent.TempDirectory)/**/coverage.cobertura.xml'

The link being output appears to be a result of using the SourceLink flag. However unsetting this flag does not seem to fix the issue it changes the filename to be a relative path in .NET 8 where as it is a fully qualified path in .NET 7. In either case it seems like this was changed in .NET 8 and this task does not account for the change. I'm not sure if this should be addressed by the publish task, the .NET runtime or coverlet?
<?xml version="1.0" encoding="utf-8" ?>
<RunSettings>
	<DataCollectionRunSettings>
		<DataCollectors>
			<DataCollector friendlyName="XPlat Code Coverage">
				<Configuration>
					<Format>cobertura,opencover</Format>
					<UseSourceLink>true</UseSourceLink>
					<SkipAutoProps>true</SkipAutoProps>
				</Configuration>
			</DataCollector>
		</DataCollectors>
	</DataCollectionRunSettings>
</RunSettings>

It looks like setting DeterministicReport true will revert the functionality to use a fully qualified path in .NET 8. However this flag is only supported by cobertura and not open cover. My particular configuration requires both as Sonar Cloud does not support cobetura. It really seems like this task needs to be updated to handle the path format change introduced via .NET 8 SDK.

I was able to to resolve this by just using the opencover format which is supported by PublishCodeCoverageResults@2 but not documented. The documentation page for this task https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/publish-code-coverage-results-v2?view=azure-pipelines does not appear to list what formats are supported.


logging error

I'm getting the following error when trying to run under tvheadend in kodi:
Traceback (most recent call last):   File "/storage/.kodi/addons/tools.module.sd2xmltv/sd2xmltv.py", line 376, in <module>     logging.config.fileConfig(u"logging.cfg", disable_existing_loggers=True)   File "/usr/lib/python2.7/logging/config.py", line 77, in fileConfig   File "/usr/lib/python2.7/logging/config.py", line 113, in _create_formatters   File "/usr/lib/python2.7/ConfigParser.py", line 607, in get ConfigParser.NoSectionError: No section: 'formatters'
I can run the script under windows - but no log is created.  Also - I noticed that in the develop version - the "util" folder is not included in the addon build.  I can submit a pull request with the change if you want...I'm currently working on incorporating some kodi settings for your options before I submit.

Looks like a path issue.  When I change line 376 to the hard path:
logging.config.fileConfig(u"/storage/.kodi/addons/tools.module.sd2xmltv/logging.cfg", disable_existing_loggers=True)
The script runs correctly.  Not sure how to fix as I'm not that familiar with Python.


Added support for docker tty stdin options

I've been using busybox-like data containers and noticed that for some it was needed to add docker run -ti options to have a pseudo-tty allocated to the container otherwise the container wouldn't stay running.
Since -i -t are commonly added together, it was only normal to also support that option.
Signed-off-by: TeckniX<EMAIL_ADDRESS>Look and feel:

This is so awesome! <3

@TeckniX This is HUGE. Tried running it, and it works very well.
I think the attach standard streams to a tty, including stdin if it's not closed should be on by default.
Can we change the "Foreground Options" text to "Advanced Options"? The reason is so users learning Docker / Kitematic will not try to break things if they don't know.

Agreed^ This is awesome! Thanks @TeckniX !
I agree with Mike's comment on having this on default since it's so powerful. Best to do this in the DockerUtil.js > createContainer method.

I'll go ahead and update the verbiage and can set it as default during the createContainer

LGTM. Merging


Quarkus welcome page shown on every activation of extension

The Quarkus welcome page is automatically shown on activation of the quarkus extension if quarkus.tools.alwaysShowWelcomePage has not been set to false. Even though it can be toggled from the bottom of the welcome page, perhaps this isn't very visible. Should we move it up, or maybe just display the welcome page one time.
The justification for the welcome page behaviour was likely : https://github.com/redhat-developer/vscode-quarkus/pull/91#issuecomment-538439085 .

I'll admit to being the cause of this issue - I had gotten into the behaviour of closing the tab every time I started VS Code, each time wondering if the extension had been updated and never reading through the text. It's the only extension I have installed that does this, and it was popping up for clearly unrelated Java code (due to the way VS Code works).
I'm not sure if I would have eventually gotten more frustrated or taken the time to read the text. Moving the checkbox to the top would have helped with noticing it. Personally I'd prefer changing the behaviour to not open on every start by default, but it's probably not worth changing unless others are also getting annoyed.

I'll admit to being the cause of this issue - I had gotten into the behaviour of closing the tab every time I started VS Code, each time wondering if the extension had been updated and never reading through the text. It's the only extension I have installed that does this, and it was popping up for clearly unrelated Java code (due to the way VS Code works).
I'm not sure if I would have eventually gotten more frustrated or taken the time to read the text. Moving the checkbox to the top would have helped with noticing it. Personally I'd prefer changing the behaviour to not open on every start by default, but it's probably not worth changing unless others are also getting annoyed.

I'm fine with keeping this open as even in Eclipse, the welcome page is only showed once per activation in new workspace.
I suspect we can use ExtensionContext.workspaceState to avoid showing the welcome page after the first time displaying, per workspace.

I'm fine with keeping this open as even in Eclipse, the welcome page is only showed once per activation in new workspace.
I suspect we can use ExtensionContext.workspaceState to avoid showing the welcome page after the first time displaying, per workspace.


Fix typos in comments in fetchDependencies

Fixes typos in comments in fetchDependencies.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Instructions are not valid

This page indicates to go to VLSC and that is incorrect. The correct place to go is Microsoft 365 admin console. Even there I can no longer find the serializer. It just says “this product does not require a product key”

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

ID: ce6cb9d5-64d9-7af7-2d76-5c2f59c937f3
Version Independent ID: fd6afd70-cce9-8296-9d73-fb366a069ee2
Content: Overview of the Volume License (VL) Serializer - Deploy Office
Content Source: DeployOffice/mac/volume-license-serializer.md
Service: office-perpetual-itpro
GitHub Login: @pbowden-msft
Microsoft Alias: pbowden

@giterdn For the VL Serializer, the only place to obtain this is the VLSC, so the link is correct.


Redis-Stream-Consumer

Given I'm a user/consumer of this repository
When I clone this repository
Then I want to be able to use it in my own environment.

well done, thanks for the help


F2 and jump to definition etc not working

Sorry but I could not find a better place to ask this question:  Does this extension support F2 symbol renaming and command-click jump to definition / show places where the symbol under the cursor is utilized?  Those don't work for me but due to all the possible settings that could be affecting this I'm not sure if it's a settings problem or just not supported.

Yes it supports goto definition. What is your project setup?

Renaming works for me via Cmd + F2.

True, although it's also true that in other languages F2 itself opens up a text input where one can enter a new name then press Enter to apply it everywhere. This extension does not seem to support that or I too have a problem in my settings. 💭


[TIR] Skip non-pure condition when simplify

Hi~ The change wants to fix one simplifier bug on non-pure conditions.  If the condition expression do not hold the same value in its dominating scope, it is not safe to bind it in arith::Analyzer and rely on it in simplify.
As an example, the condition A[i] > 1 is not reliable since it is updated with buffer write.
for i in range(128):
    if A[i] > 1:
        A[i] = A[i] + 1
        # some code use A[i] to be simplified like
        B[i] = T.if_then_else(A[i] - 1 > 0, 0, 1)

cc @Hzfengsy @MasterJH5574 @Lunderberg
Hi~ Could you help to take a review of the fix? thank you!

I did some digging, and it looks like this is able to occur because ConstIntBound doesn't check for SideEffect(expr) <= CallEffectKind(kPure) here, when entering the a constrained context.
I think the general approach here is correct, that the checking for side effects should happen at the scope providing the constraint, as the ConstIntBound and RewriteSimplifier do not have sufficient context to determine whether a constraint holds for the duration of the scope.  At some point, we probably should remove the SideEffect check in RewriteSimplifier to match that of ConstIntBound.


When delopying OCI APEX Got from Ansible

Hi Experts,
I had create an Oracle Linux VM and installed OCI and Ansible. I was try to use the script to deployed APEX on DBCS. I had already config the localhost file given all the needed information, but when I run the ansible-playbook sample.yaml  I got an error of syntax. Here is the screenshot

I'm not very familiar with ansible. Can someone give me a hint of how to solve this issue?
Thanks

Hi JC16,
I looks like ansible cannot find the OCI modules. see https://github.com/oracle/oci-ansible-modules for the installation guide of OCI modules.
Test if OCI was installed for the correct ansible python version
Get the ansible python version:
ansible-playbook --version
Check the pip version
pip -V
now the python version
python -V
Check if it OCI was installed, no error on the following:
python -c "import oci;"
If you get an error then OCI was not installed for the correct version:
You can do pip2 install oci or pip3 install oci (this depends on the python version of ansible).

Hi Ken-tolwyn,
Thank you for the respond.
I had check my OCI modules setting and ansible version
The ansible-playbook version is 2.8.4 and my python version is 2.7.5

I can also successful import the oci from python.
But I still got the same issue of the syntax problem.

Do I need to upgrade my python version to python 3 ?
Thanks

Do you have a pip28 or python28 executable on your system?
if so can you run pip28 install oci ?
I looks like ansible is using the python version 2.8 while in the system OCI is installed for version 2.7.

Hi ken-tolwyn,
I had try another work around I provision an Oracle Cloud Development VM with ansible and python install now. I'm able to run the script. The VCN and VM and been successful created, but when the script run up to run_jetty_ords script got an error of syntax error

What was the cause of this issue? Now I think the version of ansible and python is ok.

Updated the words config task to use the full named variable database instead of db.

Hi Ken, having the below error:
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit
localhost does not match 'all'
ERROR! couldn't resolve module/action 'oci_internet_gateway'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/home/opc/oci-apex/roles/common/tasks/main.yml': line 22, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:

name: Create Internet Gateway
^ here
(py36env) [opc


Unclear error message when importing unsupported DMN table

Import this DMN table that has no input:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/DMN/20151101/dmn11.xsd" id="definitions" name="definitions" namespace="http://camunda.org/schema/1.0/dmn">
  <decision id="decision" name="">
    <decisionTable id="decisionTable">
      <output id="output1" label="Result" name="result" typeRef="string" />
      <rule id="row-624115199-1">
        <outputEntry id="LiteralExpression_090256m">        <text></text>
</outputEntry>
      </rule>
    </decisionTable>
  </decision>
</definitions>

Having no inputs is valid DMN XML but unsupported by the modeler as far as I know. The error message is

Should probably say explicitly that this is not supported instead of a cryptic error.

What is not supported about this diagram? Old DMN version?

Aaah, did not read your comment on the inputs. I agree dmn-js should be forgiving about that and support tables without inputs.

Needs fix via bpmn-io/dmn-js#38.

Either that or a better error. From what I've heard, it was a deliberate decision to not support no-input models.

Either way, needs discussion in dmn-js.

Fixed with recent version of the Camunda Modeler.
We now support decision tables without inputs.


Getting hundreds of PR notifications daily

I'm getting hundreds of PR notifications daily all of sudden. Any idea why? Thanks.

you'll have to change the watching setting manually

Yes, I've changed it already. Thanks!


Added people end point into the lib.

Going to be adding some more, and beefing up the tests over the next few days if you're happy to pull in.

@bwghughes can you add changelog entry ?


[Bug] Branch can only read data in latest schema

Search before asking

[X] I searched in the issues and found nothing similar.

Paimon version
1.0-SNAPSHOT
Compute Engine
Flink
Minimal reproduce step

Create table with schema version 1
Insert some values
Alter table to create schema version 2 (but don't insert any new values)
Create tag & branch
Select * from branch

The select job will fail because it only has schema version 2 but will try to read schema version 1.
Example stacktrace: https://gist.github.com/gmdfalk/802eb18c912a4d85e17f206820a0c55a
What doesn't meet your expectations?
I expect the branch to be able to read any data, not just in the latest schema.
The branch only knows schema 2 and cannot read entries written in schema 1.
Anything else?
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

@gmdfalk Thanks for your report! I would like to update with more detailed reproduction steps:

CREATE TABLE T (
 pt INT,
 k INT,
 v STRING,
 PRIMARY KEY (pt, k) NOT ENFORCED
 ) PARTITIONED BY (pt) WITH (
 'bucket' = '2'
)

INSERT INTO T VALUES (1, 10, 'apple'), (1, 20, 'banana')
ALTER TABLE T ADD (v2 INT)
INSERT INTO T VALUES  (2, 10, 'cat', 2), (2, 20, 'dog', 2)
CALL sys.create_tag('default.T', 'tag1', 2)
CALL sys.create_branch('default.T', 'test', 'tag1')
SELECT * FROM T$branch_test

The reason for this bug is that only the tag or latest schema is copied when creating a branch.


Configuration not found error

Environment
Docker
Version
0.14.0
Describe the problem
Getting error Configuration not found when I try open customize board

Logs
TRPCError: Configuration not found
    at /app/.next/server/chunks/151.js:553:19
    at resolveMiddleware (file:///app/node_modules/@trpc/server/dist/index.mjs:420:36)
    at callRecursive (file:///app/node_modules/@trpc/server/dist/index.mjs:456:38)
    at next (file:///app/node_modules/@trpc/server/dist/index.mjs:465:32)
    at inputMiddleware (file:///app/node_modules/@trpc/server/dist/index.mjs:290:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async callRecursive (file:///app/node_modules/@trpc/server/dist/index.mjs:456:32)
    at async resolve (file:///app/node_modules/@trpc/server/dist/index.mjs:486:24) {
  code: 'NOT_FOUND',
  [cause]: undefined
}

Context
No response
Please tick the boxes

[X] I confirm that I attached the proper logs
[X] I've read the docs
[X] I've checked for duplicate issues
[X] I've tried to debug myself

@debugger24 try 0.14.1, it was released just yet

i have the same problem

i have the same problem

On v0.14.1 ?

Working fine on v0.14.1

Thank you @Meierschlumpf

🥳 We're so glad it got fixed. I got scared for a second

I still have the issue on V0.14.2


Raster RGB renderer sample.

Hey @nCastle1
Please review when you have a chance.

Hey @nCastle1, I addressed your comments. If you have a chance, can you take a look at the dropdown width on Android? Here's what I did to adjust it for the device:
// Get the width of the current device (in pixels).
int widthPixels = Resources.DisplayMetrics.WidthPixels;

// Use 1/5 of the device width for the drop down.
int dropDownWidth = widthPixels / 5;

// Create controls for specifying the minimum and maximum red values (0-255).
_minRedSpinner = new Spinner(this, SpinnerMode.Dropdown)
{
    Adapter = minMaxValuesAdapter,
    DropDownWidth = dropDownWidth
};

@ThadT I tested on device and it is working properly now :)


How to set this app up in general (...NO FUNCTION, maybe because of wrong handling)?

I installed  the latest apk (v1.46) on a Samsung Galaxy S3 (i-9300) running CM11 (Snapshot 11-20141115) with YT (v10.18.55).
However after the installation, I do neither see any selectable icon of the app, nor did the behavior of YT change at all and the app itself is visible in Apps.Downloaded but not listed as "active".
Sorry for maybe asking a silly question but what else is required to start the "app" properly up? Am I supposed to start YT via the icon of the app or is all the magic done (automatically) in the background?
Anyway thanks for the great work that you guys have been doing - obviously the app is running fine on other devices (...with maybe smarter users).
Thank  you very much and keep going!

This app is a xposed framework module.
See here: http://repo.xposed.info/module/de.robv.android.xposed.installer
You have to install xposed framework first then enable this module via xposed installer app.

Thank you very much!!!!! ....got it, did it and it just works ;)


test: Migrate pub_priv.rs to snapshot

What does this PR try to resolve?
Apply snapshot assertion on tests/testsuite/pub_priv.rs
How should we test and review this PR?
The migration is almost one-to-one.
Additional information
Part of https://github.com/rust-lang/cargo/issues/14039

Looks good. Thanks!
@bors r+

:pushpin: Commit 485c88c8aa1f94c612aa88b11decc5af007ed73d has been approved by weihanglo
It is now in the queue for this repository.

:hourglass: Testing commit 485c88c8aa1f94c612aa88b11decc5af007ed73d with merge 103e6758f11af08b7bd3bc6ebe7e7b270bfc7233...


Additional overloads to avoid ambiguous isActionOf type resolution for #63

isActionOf when given an array doesn't yield the correct type assertions. Here's a minimalist example:
const action1 = createAction('Action 1', resolve => (value: number) => resolve({ value }));
const action2 = createAction('Action 2', resolve => (value: number) => resolve({ value }));

const action: any = action1(1);
if (isActionOf([action1, action2], action)) {
  // This should be valid because `payload` exists on both action1 and action2 types but the actual resolution was before this change `action1 | action2 | {type: string}` and is now correctly `action1 | action2`
  console.log(action.payload.value);
}

Thank you for your contribution! :thumbsup:
Please makes sure that these checkboxes are checked before submitting your PR, thank you!

[x] Rebase before creating a PR to keep commit history clean
[x] Clear node_modules and reinstall all the dependencies: npm run reinstall
[x] Run checker npm script: npm run check

Extra checklist:

[x] Always add some description and refer to all the related issues using # tag

For bugfixes:

[x] Add at least one unit test to cover the bug that have been fixed

@vincentjames501 this works great! Thanks for contribution.

@vincentjames501 please submit your PR for IssueHunt bounty: https://issuehunt.io/repos/110746954/issues/63


Fix #221

Describe what this PR does / why we need it
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

It is working now, only exception to the corners of the dialog:

Wondering if we could remove the hardcoded borders here and let Telescope handle them?
https://github.com/pwntester/octo.nvim/blob/c030f5b5fc93e66a6765d9ba7e0ca5764ee72238/lua/octo/pickers/telescope/provider.lua#L26

Oh, there is something here. As you can see, the indicator show 27/27, but we have 11 names being showed:

I removed the hardcoded borders, and changed the other dynamic searches. As for the x/y numbers. I think those indicate the number of results, not the one shown in the results window. You ahould be able to scroll down or move the selected row to see the others, but thats a Telescope thing. I can also remove the hardcoded window dimension to accomodate more results. Let me know if it works for you.

I think this is very good, thanks for addressing this so quickly and accepting the suggestions. I am experiencing a strange highlight effect as long as I scroll down, but is can be something related to other configs of mine.
Thank you very much.

Cool, thank you for the heads up!


using different table names in BaseDataSourceTest

What problem does this PR solve?
In this PR, we start to use a different table name for different test cases.  It closes #1040
What is changed and how it works?
Use different table name can avoid ddl changes that TiSpark cannot detect.

/run-all-tests mode=full

/run-all-tests mode=full

/run-all-tests mode=full


How to develop the geemap python-sdk?

geemap version:now
Python version:3.7
Operating System:win10

Description
Now i will to develop the map interaction with Python,when i see the geemap ,maybe i want develop it or like it,can you tell me some technology how to build geemap?
What I Did
What are python libraries that develop interactive features like maps?
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

geemap is built upon the Earth Engine Python API, ipyleaflet, and folium. It is open-source and the source code is available here. You are welcome to look into the source code and see how geemap is built.


Unceasing redirects on chrome http

STR

be using chrome
browse to http page
DT tag configured with redirects: true (default)
click on a link

Expected

DT redirects only occur once per cookie jar

Actual

DT redirects occur every click

released in 1.5.2


Remove version: libjpeg-turbo.libjpeg-turbo.VC version 3.0.1

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://sourceforge.net/projects/libjpeg-turbo/files/3.0.1/libjpeg-turbo-3.0.1-vc.exe/download
Status Code: 200
(Automated message - build 897)

Close with reason: Package still available.;


Re-add old LBP UI

Add back the LBP UI from the pre-refactor frontend so that users can view the moving weights of any active and configured LBP pool.
Note/disclaimer: this is not a specific effort or addition for the Rebus chain. We are not affiliated and our frontend and chain remains permission-less.

@jonator It seems that it is also necessary to disable to access pool detail page and swap tokens related LBP.

also can we make sure this only gets enabled via frontier and not through app.osmosis.zone? or would this require a ton of work?

also can we make sure this only gets enabled via frontier and not through app.osmosis.zone? or would this require a ton of work?

Trivial work. And it's added.

@jonator I have something misunderstood. 😅

@delivan what do you mean?

@jonator
It looks like the price isn't correct. Since the swap ratio between Osmo and Rebus is going down. But the weight of the pool stays at about 96/4. That's not correct

Sorry, checked again. Price looks good. The LBP is just very slowly moving to the 50/50 ratio. Probably some people keep buying small amounts


Ursa is out of policy for license and copyright indications

While the LICENSE file is accurate, each source file is required to start with a license banner. Only about a dozen files do.
Please see: https://wiki.hyperledger.org/display/TSC/Copyright+and+License+Policy

I know in the JS/TS ecosystem that there are linters that can help with this issue. On a quick search I wasn't seeing any features of clippy that support it. Does anyone (pinging @dhuseby ) know of one that I didn't spot?

Tell me, is this header format helpful, or should we use the full license in addition to it?

Tell me, is this header format helpful, or should we use the full license in addition to it?

I think this looks excellent

That's amazing you picked up this issue from 2020! :heart:
Just watch out for files which came from other projects and we should not add a copyright and especially that we should not relicense. For example bullet proofs: https://github.com/6r1d/ursa/commit/d007c15e42269f7683f96e4446d5e0b626428d88#diff-6b063ae2297ac4174310606e61a333e328d60f431fbad430b5048099fbf876c8
From https://github.com/hyperledger/ursa/issues/168 it seems like that code will be removed anyway.
In general you may be able to tell where the code came from using the commit history or looking at the existing headers. Otherwise you may be able to rely on the maintainers remembering where things came from when they do their code review.
Either way, thanks for picking this up!

Thanks for the extra effort @6r1d. I'll defer to more active maintainers on how they would like to review. One possibility would be to break the commit into one commit per module and then target the review at the principal author for that module so that they can acknowledge the license is accurate. I think in most cases that might just boil down to our intrepid @mikelodder7 :) ... in which case maybe splitting up the commit is not necessary.


The docker compiled successfully and dreamview started successfully, but when localhost: 8888 was turned on, there was no response.

System information

**OS Platform and Distribution :Linux Ubuntu 16.04LTS
**Apollo installed from :source
**Apollo version:5.0

Steps to reproduce the issue:
First, the computer processor is Intel < Core < i7-8700 CPU @ 3.20 GHz * 12, then install Ubuntu 16.04.

Dreamview is running at http://localhost:8888
But when I opened the website, there was nothing.

/apollo/data/log/dreamview.log.info.20190718-203718.11952：
I0718 20:37:48.414474 11970 simulation_world_service.h:224]  Has not received any data from /apollo/perception/obstacles
I0718 20:37:48.414476 11970 simulation_world_service.h:224]  Has not received any data from /apollo/prediction
I0718 20:37:48.414479 11970 simulation_world_service.h:224]  Has not received any data from /apollo/planning

I hope you can help me. Thank you.

I'm wondering which document are you following, because Git-LFS has been retired for a while before Apollo 5.0. Could you refer me to it?

我想知道你关注哪个文件，因为Git-LFS在Apollo 5.0之前已经退役了一段时间。你能把我推荐给我吗？

I didn't install LFS before, and then I saw someone mention a similar problem on issue. It was done by installing lfs, and I installed it
This is the link to that question：
https://github.com/ApolloAuto/apollo/issues/6467
Thanks

@WooLiGuaiguai please refer to our build guide on how to set up Apollo. We have retired Git LFS.
Let me know if you are still seeing the issue when you use the build guide.

Although I didn't install LFS, I have the same problem as you.
But I found if use firefox to open http://localhost:8888, It's OK.


Upgrade to SDK 2.4.1

Problem at the compilation with SDK 2.4.1 on the library DS1337RTC.

on the new porting on the last SDK, cause bug about connectivity, so, if on your spiffs you got some saved SSID/PASSWORD on wificonfig.json the board, i think she did not take the credential and arent compared with the current wifi arround.
ok, if you flash your firmware and on your spiffs, wificonfig.json did not contain some wifi credentials, you arrive to connect, i do my OTA update, (with the same firmware) on reboot she didn't getting credentials from wificonfig.json
actually i missed my coolboard to make a good bugfix about


feat(locations): creates a many-to-many between movies and locations

WHAT: Creates a locations and a movies-locations models and an association between movies and locations.
WHY: because it's cool.

Stewart and I talked IRL. Suggestions were out of scope, will be implemented down the road. This PR handles the creatioin of the movies_locations table, but does not take care of the many-to-many association.


Show custom scrollbars and hide native scrollbars on all browsers

Show custom scrollbars and hide native scrollbars on all browsers including scrollbars with no width.
-removed mobile tests as all code is the same now for testing

Any news on this getting merged?

@danbrianwhite do you have working version on your fork? I need scrollbars on osx and ios, maybe I could switch to your fork?

@danbrianwhite @malte-wessel any update on this? If I rebase, would you be willing to integrate it @malte-wessel?

Could a possible alternative be just overwrite the value returned by getScrollbarWidth()?

I just tried rebasing branch and I think it will be easier to restart by making a new branch. The last commit was 6 months ago!

Up