query: Schema/RDFS

I've been working on a schema layer for Cayley recently to make querying/writing structured data easier. I want to discuss it's design, if someone interested in it as I do. It can be really useful, because you still can do sophisticated graph queries and then query structured data for results.
For example, lets consider this data set. It describes a Thing class with two properties.
<http://schema.org/Thing> <http://www.w3.org/2000/01/rdf-schema#label> "Thing" .
<http://schema.org/Thing> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .
<http://schema.org/Thing> <http://www.w3.org/2000/01/rdf-schema#comment> "The most generic type of item." .

<http://schema.org/url> <http://schema.org/domainIncludes> <http://schema.org/Thing> .
<http://schema.org/url> <http://www.w3.org/2000/01/rdf-schema#label> "url" .
<http://schema.org/url> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://schema.org/url> <http://schema.org/rangeIncludes> <http://schema.org/URL> .
<http://schema.org/url> <http://www.w3.org/2000/01/rdf-schema#comment> "URL of the item." .

<http://schema.org/name> <http://schema.org/domainIncludes> <http://schema.org/Thing> .
<http://schema.org/name> <http://www.w3.org/2000/01/rdf-schema#label> "name" .
<http://schema.org/name> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Property> .
<http://schema.org/name> <http://schema.org/rangeIncludes> <http://schema.org/Text> .
<http://schema.org/name> <http://www.w3.org/2000/01/rdf-schema#comment> "The name of the item." .

I came up with a few rules for mapping quads to fields:

"." tag means "save current node to this field"
"pred" ("pred > *" in full form) means "save object(s) with this predicate"; maps to path.Save
"pred < *" is a reverse of previous action; maps to SaveReverse
"pred > obj1,obj2" means "filter nodes that have a specific object on predicate"; maps to Has
"pred < obj1,obj2" is a reverse of previous action; maps to HasReverse
Node names in struct tags can be compacted: rdfs:label is the same as http://www.w3.org/1999/02/22-rdf-syntax-ns#label

Using these rules one can write a following mapping for an example data set:
// IRI is built into the library.
type IRI string

// A custom type, have no special meaning.
type Property struct {
    // Private field for filtering nodes of certain type. Has no special meaning.
    rdfType struct{} `quad:"rdf:type > rdf:Property"`
    // Current node, used as an ID.
    IRI     IRI     `quad:"."`
    // Saves an object's name for rdfs:label predicate.
    Name    string `quad:"rdfs:label"`
    Comment string `quad:"rdfs:comment"`
    // Saves all objects for schema:rangeIncludes predicate.
    Expects []IRI `quad:"schema:rangeIncludes"`
}

type Class struct {
    rdfType    struct{} `quad:"rdf:type > rdfs:Class"`
    IRI        IRI    `quad:"."`
    Name       string `quad:"rdfs:label"`
    Comment    string `quad:"rdfs:comment"`
    // Custom types in fields are also supported.
    // This field is an analog of `In("schema:domainIncludes").Save(...)`.
    // It will load and save all nodes with the structure described above.
    Properties []Property `quad:"schema:domainIncludes < *"`
}

The resulting path for the Class will be in a following form:
// Node names are in short form for convenience
path.StartMorphism().
  Has("rdf:type","rdfs:Class").
  Tag("IRI"). // name of the field in Go struct
  Save("rdfs:label","Name"). // actually an OptionalSave if the field is not required
  Save("rdfs:comment","Comment").
  SaveReverse("schema:domainIncludes","Properties")

And the same for Property:
path.StartMorphism().
  Has("rdf:type","rdf:Property").
  Tag("IRI").
  Save("rdfs:label","Name").
  Save("rdfs:comment","Comment").
  Save("schema:rangeIncludes","Expects")

And finally, we will get the following struct value after query:
result := Class{
  Name:    `Thing`,
  IRI:     `http://schema.org/Thing`,
  Comment: `The most generic type of item.`,
  Properties: []Property{
    {IRI: `http://schema.org/name`, Name: `name`, Comment: `The name of the item.`, Expects: []IRI{`http://schema.org/Text`}},
    {IRI: `http://schema.org/url`, Name: `url`, Comment: `URL of the item.`, Expects: []IRI{`http://schema.org/URL`}},
  },
}

Reverse operation is also easy, you can describe your data with a struct tags and write these structs to graph directly.
There is also an interesting consequence: if graph data includes RDFS class definitions, you can load the graph, query all classes from it using mapping described above and then generate Go source file with definitions of all classes in that graph (including the struct tags for reverse mapping).
There is an example of the same Property class auto-generated from schema.org data:
// A property, used to indicate attributes and relationships of some Thing; equivalent to rdf:Property.
type Property struct {
    rdfType struct{} `quad:"rdf:type > schema:Property"`
    IRI     quad.IRI `quad:"."`

    Intangible

    // Relates a property to a class that is (one of) the type(s) the property is expected to be used on.
    DomainIncludes []Class    `quad:"schema:domainIncludes"`
    // Relates a property to a property that is its inverse. Inverse properties relate the same pairs of items to each other, but in reversed direction. For example, the 'alumni' and 'alumniOf' properties are inverseOf each other. Some properties don't have explicit inverses; in these situations RDFa and JSON-LD syntax for reverse properties can be used.
    InverseOf      []Property `quad:"schema:inverseOf"`
    // Relates a property to a class that constitutes (one of) the expected type(s) for values of the property.
    RangeIncludes  []Class    `quad:"schema:rangeIncludes"`
    // Relates a term (i.e. a property, class or enumeration) to one that supersedes it.
    //
    // Allowed types: [http://schema.org/Class http://schema.org/Enumeration http://schema.org/Property]
    SupersededBy []quad.IRI `quad:"schema:supersededBy"`
}

Any feedback is welcome. If the design looks good, I can file a PR for it.

Merged already

Can we control the depth upto which the schema will try to load the nested child nodes.
I mean if A->B->C->D->E are connected nodes each of type "MyClass" such that "B" is childOf "A" and "C"  is childOf of "B" and so on, can we do something that will make the loading stop after reaching the depth at which "D" is residing. It will really be of great help if somebody can tell me how to accomplish this.

Do we have a generic SPARQL query which extracts RDF schema of a any ontology?

@akankshachandel We don't support SPARQL yet. This library uses internal query primitives to build a query that return a schema from the dataset.

Do you have any tips or leads, actually I have been working on retrieving the RDF schema of ontology for a while now! any information helps!


support question: plugin strategy

Search terms
plugins
Question
I've been looking thru plugin sources, docs, etc., and trying to figure out how to best do what I'm doing, but I think I'm missing some context.
I'm trying to create a plugin which essentially documents RPC-style APIs based on reflections and the presence of custom tags on class methods.  In concert w/ the tags, TypeDoc's reflections will provide the rest of the context needed to derive the doc content.  Documentation generated this way should live in its own file(s).
To be clear: the usual suspects for automated API doc generation (OpenAPI and its ilk) aren't applicable.  For DX reasons, jsdoc-style tags are good for this.

All of the information I need to do this is in TypeDoc's reflections, and jsdoc tags are obviously supported.  Should I not use TypeDoc for this?
The internal documentation mentions "components" are "being removed," which I assume means I shouldn't be using them.  The more recent plugins I've seen export functions and create event listeners instead of class-and-decorator-based components.  Is this correct?
I thought maybe the way to do this would be to create my own Reflections and put whatever data I needed in them, and then listen for when they are to be rendered and act accordingly.  But then I'm looking at ReflectionKind and am not sure how it relates to what I'm doing.  Yes, these are ultimately class methods, but won't be displayed as such--and I don't want to interfere with the default behavior.  Should I be creating Reflections, or no?  I think I'm missing what they are actually for.

I try to avoid posting questions in repos since I know it is a burden on maintainers, so I apologize.  If anyone can point me in another direction for resources, that would be helpful.
Thanks

All of the information I need to do this is in TypeDoc's reflections, and jsdoc tags are obviously supported. Should I not use TypeDoc for this?

This sounds like a reasonable use case to me, at least for info extraction.

The internal documentation mentions "components" are "being removed," which I assume means I shouldn't be using them. The more recent plugins I've seen export functions and create event listeners instead of class-and-decorator-based components. Is this correct?

Yes, at least at the level of interaction with TypeDoc. How you structure your plugin is entirely up to you, if classes and decorators make your code simpler, go right ahead! The internal @Component decorator is something I've wanted to get rid of for years, just hasn't happened yet. A lot of older plugins (ab)used it to register themselves with TypeDoc instead of adding listeners in the load function, which was the main thing those docs are telling people to avoid.

Should I be creating Reflections, or no?

Reflections are intended to describe elements in the documentation, right now that's really just what exists in the source code, but I plan to eventually use a reflection to represent guide pages that aren't actually api items.
If you're describing additional methods that TypeDoc wouldn't normally create a reflection for, I think it's reasonable to create reflections. If you just want to change how methods with a specific doc tag are rendered, I don't think you need to create new reflections, can instead check for that reflection during rendering.
ReflectionKind affects a few things, including (non-exhaustive, but I think this is what you likely care about):

How links are resolved (particularly the meaning part of links :class)
The creation of "implementation of" / "overrides" links
What directory the reflections are placed in by the default theme
What icon is displayed when rendering the item in the page index/navigation

I try to avoid posting questions in repos since I know it is a burden on maintainers, so I apologize. If anyone can point me in another direction for resources, that would be helpful.

This really is the best place for API questions so that it's discoverable by others in the future :) There is a channel in the TypeScript discord server as well, but longer questions don't always work best in irc style chat... There aren't a ton of resources for the source code/plugins, besides looking at the source of existing plugins, it sounds like you've already looked at what's available.

Thanks for your help.
w/r/t Reflections: The methods essentially have a 1:1 relationship to API endpoints.  I'd like them generated both in the usual course of a TypeDoc execution (what I meant by "I don't want to interfere with the default behavior), and I'd like to create my own additional documentation.  So I don't necessarily want to only change how they are rendered (though it may be helpful to create a link cross-referencing the method with the associated endpoint).  From my understanding then, it sounds like I should be creating my own Reflections and then consume these during the rendering phase.
It sounds like I'll need to experiment to determine which ReflectionKind to use, since there is seemingly no way to create my own ReflectionKind (or even if that's an actual use-case).  Does that sound right?
One more API question: I see in one of your plugins that creates Reflections that you're using Context.withScope(Reflection) which just returns a different Context.  What's the intent there?  Does this determine "where" the new Reflection should "go"?  😄

Sorry, another thing: part of what I need to do is query a codebase for specific known "symbols" (not Symbols), and use what I've found when handling my custom tag(s) and when rendering.  It looks like I don't need TypeDoc for this part--I could query the TS AST directly. What would you do here?

From my understanding then, it sounds like I should be creating my own Reflections and then consume these during the rendering phase.

I agree.

It sounds like I'll need to experiment to determine which ReflectionKind to use, since there is seemingly no way to create my own ReflectionKind (or even if that's an actual use-case). Does that sound right?

Correct, ReflectionKind wasn't intended to be extended... (In fact, the reason it's defined the way it is in TypeDoc's code is so that TS gives exhaustiveness checks) other plugins have hackily added values to it, but I have pretty strong suspicions that using this breaks pieces of documentation generated with that kind in subtle ways.

Does this determine "where" the new Reflection should "go"?

Yes, precisely, the converters use Context.createDeclarationReflection which uses the scope to add to the appropriate parent.

query a codebase for specific known "symbols"

This... depends somewhat on what you're doing. You could listen to Converter.EVENT_BEGIN, and use context.programs if there's no relation to the documentation structure. If it depends on exports, you could listen to Converter.EVENT_CREATE_DECLARATION, check if the passed reflection is ReflectionKind.Module, and get the symbol for that file with context.project.getSymbolFromReflection (only works for actual modules, not global script files, currently marked @internal, but I should really remove that, pretty sure it isn't going to change now)

Thanks again.
I think what I can do is actually (ab-)use the "category" system to do this: create a new reflection from an existing reflection having the custom tag. Then, assign the new reflection to a predetermined category, and then (figure out what comes next).  Since I have all the information necessary, maybe I can just provide some markdown to be rendered?

(though I am unclear on the difference between groups and categories even after reading the docs)

Since I have all the information necessary, maybe I can just provide some markdown to be rendered?

That's a reasonable path forward, you could set the reflection.comment to contain markdown. (reflection.readme would also work, but that will be going away eventually...)

(though I am unclear on the difference between groups and categories even after reading the docs)

Reflections are automatically grouped by their ReflectionKind if no @group tag is specified, but there is no default category unless some reflection is marked with @category in a container. Categories also support custom sorting with the categoryOrder option, while groups do not. Since reflections always have a group, categories can be used to provide a second level of navigation.
Other than that, they use almost the same code for everything. I've ended up adding comments to duplicated pieces of the code to make sure I don't forget to update the other if changing the behavior of one. (Haven't bothered deduplicating yet... probably never will, low priority)

Sorry to necro this.
I ended up kind of frustrated with the API, and researched/prototyped some other tools, but ended up with TypeDoc again.  I have a (project-specific) plugin in the works, and am having success.
I wanted to mention a couple things which may be helpful for future consideration.

ReflectionKind:  You mentioned above that it was probably unwise to add a new ReflectionKind.  In the end, I was unable to reuse any of the built-in ReflectionKinds without befouling the output.  Since I am trying to do something purely additive--I need everything TypeDoc provides, plus extra stuff--the only thing that made sense was adding new ReflectionKinds and a theme which handles them.  Of course, this is a hack.
Custom themes: Since a plugin is not responsible for instantiating a Theme, there's no obvious way (to me, anyway) to get data from, e.g., the plugin's load() export into a custom Theme subclass.  For example, I have a logging object I'd like to use across my plugin.  My options are a) use a singleton, or b) a factory function which returns the class, or (maybe) c) use the deprecated (?) component system.  I realize you may consider something like this to be out-of-scope.  Alternatively, the ability to register a custom logger (and retrieve it) would be helpful.

Thanks for your work on TypeDoc!

ReflectionKind - I could see adding a generic catch-all kind that TypeDoc effectively ignores... don't like it though...
Sharing data - I would probably use declaration merging to define a new property on the Application class, and set that in your load function.

@Gerrit0 Out of curiosity, assuming TypeDoc added an API to define a new ReflectionKind, what assumptions could break?
The "generic catch-all" is essentially what I'm doing now--TypeDoc doesn't know anything about it, never instantiates a Reflection with the kind, so it is entirely ignored.  Except there are more than one of these, because I wanted to use them to differentiate between custom Reflections.  Maybe that's not really needed, as I could use other means to figure out what's what, but I suppose it felt like I should be using methods like getChildrenByKind() instead of filtering the children manually.  But yes, a single "catch-all" kind would have been helpful, though maybe not as ergonomic as I'd like.
Thanks.  Hadn't considered declaration merging.  I suppose that felt like another hack and I didn't want to pile on?  Unsure about the "common wisdom" of that sort of thing.  It is JavaScript, after all...

...and FWIW, I now know enough about TypeDoc's guts to be dangerous, so if you think I could be helpful somewhere here, please let me know.

ReflectionKind - hard to say for sure without trying out adding one and seeing where things go wrong... Biggest one that comes to mind for me is link resolution.
Declaration merging - there are definitely projects which expect it not to be used. I've found it useful for declaring option types by merging with TypeDocOptionMap... haven't built any plugins really large enough to need it otherwise.
Always glad to have more people working on things! I've been pretty busy with other things lately, so haven't worked on much..


readOnly option change doesn't re-render the  editability status

Formio version<EMAIL_ADDRESS>React version: 18.2.0
Value change of the readOnly option is not taking effect.
...
const [ editable, setEditable ] = useState(true);

return (
  <Form { ...restProps } options={ { readOnly: editable } } />
)
...

Is there a way to let the <Form /> component trigger the option change?

For the temporary solution, I use a random key change to re-render the component manually.
import randomid from 'randomid';
...
const [ editable, setEditable ] = useState(true);
const [ randomKey, setRandomKey ] = useState(randomid(2));

const toggleReadOnly = () => {
  setEditable(!editable);
  setRandomKey(randomid(2));
}

return (
  <Form { ...restProps } key={ randomKey } options={ { readOnly: editable } } />
)
...


FASTlink、OrcaFlex

I want to run FAST and OrcaFlex co-simulation, I have the following problem after setting up according to the User's Guide to using OrcaFlexInterface in FAST v8, how can I fix this error, the file that cannot be loaded is my orcaflex model.

Dear @gxinru,
Are using FAST v8.16 or something else?
Do you have a FASTlinkDLL64.dll file stored in directory your E:\orcaflex\K03 15MW semi-sub FOWT directory as the error is asking?
Are you using a FAST link DLL provided by Orcina?  I'm not sure if you renamed it, but the FAST Link DLL provided by Orcina for FAST v8.16 was called FASTlinkDLL_x64.dll.
Best regards,

Dear @jjonkman ,
Thanks for your reply.I'm using is FAST v3.5.1 and Orcaflex11.4.
I do store the dll in the  E:\orcaflex\K03 15MW semi-sub FOWT directory.

I downloaded the FASTlink.zip on the Orcina website and didn't rename.I wonder if it's a software version issue or a problem with my input files.

I found that if my FAST files are all on the D drive, but my OrcaFlex input file path is the same, the error will become the path where the D drive cannot be opened. It doesn't seem that I can't open the orcaflex model, but that OrcaFlex Interface can't open my FAST file path?

There are a couple of things to check because OpenFAST returns the same error message if any of the following errors occur:

The path to the DLL is incorrect (try using a path without spaces instead of IEA-15-240-RWT-UMaineSemi - link)
The DLL was not compiled for a 64-bit system, but OpenFAST is 64-bit (use the instructions at https://stackoverflow.com/questions/495244/how-can-i-test-a-windows-dll-file-to-determine-if-it-is-32-bit-or-64-bit to test if DLL is 64-bit)
The DLL is dynamically linked to another DLL that is not on the user's system (see #2511 for a Linux example). On Windows, download https://www.dependencywalker.com/ and use it to open the DLL file. It will show a list of DLLs that the controller DLL depends on. The user then needs to get those installed on the system and verify that they can be found when loading the DLL using Dependency Walker.

I expect that you do have a 64-bit DLL since it has 64 in the file name. I'd take a look at option 3 first.

Thank you very much for your answer. I think it may be a problem with the FAST version, so I switched to version v8.16, but there were new issues

Thank you very much for your answer. I think it may be a problem with the FAST version, so I switched to version v8.16, but there were new issues


Question: does Opener work for links in emails?

Hi, I have the following question. Opener's description states "Opener is an app that allows you to open links from the web in apps instead!". Does Opener also work for links in emails?
I have the following need: for some reason, links I have from Facebook notification emails (in iOS's Mail app) opens in Safari and not the Facebook app. I wonder if Opener would solve my problem and if links would open in the app instead of Safari. Facebook is supported by Opener according to http://opener.link/apps.html
Thanks a lot - hope to be an Opener customer! :-) -- Alex

Opener supports some but not all types on Facebook links. Also, the mail app doesn't support the system share menu. In order to use Opener with a link from Mail you'd need to copy the link and launch the Opener app.

Thanks @timonus


Operation took longer than 15 seconds.

Don't just close the ticket.
Please let me know how to overwrite this 15 seconds which should be some default settings? I would need a longer time for initialization.

Hey @investorlifelong! We've detected a faulty build and disabled it, please test using version 16616 the issue should be fixed, sorry for the inconvenience

I am deploying on prod env. there is no version 16616 I can sepcify. are you saying, the production env is restored back to the good version?

I am deploying on prod env. there is no version 16616 I can sepcify. are you saying, the production env is restored back to the good version?

yes, correct


operations.md: Fix a broken link to scaladoc

h/t @kenoir.

Thanks for this. I've just merged #190 which also addresses this.


Warn Users When Attempting to Bond to a Reward Address

Hi! I would like to propose a new feature that helps users avoid accidentally bonding to a reward address. Currently, when users bond to a reward address, they receive no rewards, and it takes 21 days for them to unbond. To prevent this disadvantageous situation, I suggest implementing a warning and confirmation message whenever a user attempts to bond to a reward address. This will help users make informed decisions and avoid potential loss of time & rewards.
regards,

I suggest implementing a warning and confirmation message whenever a user attempts to bond to a reward address

In the Bond transaction dialog in the GUI app, we don't list reward addresses. However, users might mistakenly set a reward address in the CLI. I am still unsure whether adding this check in the code is necessary. Let's keep this issue open and see if we receive more feedback from users.

Thank you for considering the proposal and providing your perspective. I understand that implementing this feature may not be an immediate priority compared to other important tasks at hand. However, I still believe that having a safety mechanism in place, even if it's not frequently utilized, can provide peace of mind and protect users from unintended consequences.
I kindly request that you consider making this improvement when your team has the time and resources available in the future, even if there is no immediate response or demand from other users. It's always beneficial to proactively enhance user experience and mitigate potential risks.

@aboka2k, I understand your concern. However, we need to be caution when adding even a single line of code. That's why I insist on keeping the issue open and gathering more feedback. Additionally, please consider that issue #494 might potentially change the way we define validator and reward addresses.
Thank you for your understanding, and I appreciate your willingness to consider different perspectives. Let's continue to gather feedback and evaluate the best approach for addressing this issue.

I think it will be fixed after pip-8

https://github.com/pactus-project/PIPs/discussions/28

@aboka2k The issue has been resolved in this Pull Request (PR). Now, if a user sends a bond transaction to any account, they will encounter an error. Thank you for bringing this to our attention, and for your continued support.


Is it possible to make a .JSC file into a Windows executable?

Could I possibly make a .jsc file and a .js file into a .exe or would I have to compile them both as .js files into a .jsc, then make them a .exe somehow?

This would be tricky to achieve. You will have to use other tools that compiles node.js into exe. Then you would somehow use that exe as if it was node executable to compile your .js files to .jsc. Finally, you will have to recompile again to include your .jsc files.
For your use case, it's better to use pkg. I believe they have a built-in feature that is very similar to bytenode. I can't remember what it is called, but I remember looking into their source code and they were compiling plain js to v8 bytecode as well.


No TTS engine found despite engine(s) working with other apps

Device: OnePlus 8T (kebab)
OS: LineageOS 18.1, Android 11 with no GooglePlay Services installed
I installed version 4.0.0 via F-Droid. When I click the top right button to initialize, the message first says "initializing text-to-speech" and then "No text-to-speech engine available". Furthermore, when I navigate to the app settings and and click on TTS Engine (first item from the top) I get a dialogue box which says "Select the TTS engine." but doesn't show any items.
The problem is that I have installed both RHVoice and eSpeak. Both engines can be selected in the system settings and at least RHVoice is working inside osmAnd, Librera and FitoTrack. TTS Util seems to be the only app that displays this type of behavior.

Hello Tony,
Thank you for reporting this error.  I am able to reproduce it on Android
11.  Strangely, it does not occur on other versions of Android, e.g. 12.
This will be fixed in the next version of TTS Util.  In the meantime, I
would suggest downgrading to version 3.0.0, which, for whatever reason,
does not have this problem.  You can do this in the F-Droid app.

Just tried downgrading to 3.0.0 and it works now, I can select the engine as expected.
Thanks!

No problem, glad I could help.
I have come up with a fix and will release a new version soon.  Until then, I'll leave this issue open; other Android 11 users will have the same trouble.

This problem is now fixed in TTS Util version 4.0.1, which is available from the releases page.  It will probably be a few days before this version is available on the F-Droid store.

Device: OnePlus 8T (kebab) OS: LineageOS 18.1, Android 11 with no GooglePlay Services installed
I installed version 4.0.0 via F-Droid. When I click the top right button to initialize, the message first says "initializing text-to-speech" and then "No text-to-speech engine available". Furthermore, when I navigate to the app settings and and click on TTS Engine (first item from the top) I get a dialogue box which says "Select the TTS engine." but doesn't show any items.
The problem is that I have installed both RHVoice and eSpeak. Both engines can be selected in the system settings and at least RHVoice is working inside osmAnd, Librera and FitoTrack. TTS Util seems to be the only app that displays this type of behavior.

RHVoice and eSpeak Very bad application, their sound listening is completely mechanical.  I suggest you use  "Smart Voice 3.4.0" and SmartVoice speech synthesizer
Librera Very bad app, can't open big files I suggest you use legado

This issue is now resolved in version 4.0.1, now available for download from the Google Play and F-Droid stores.


Fix phpdoc on observable scan operator

Prevent false positive on PHPStan
Parameter #2 $seed of method Rx\Observable::scan() expects null, false given.

Coverage remained the same at 99.4% when pulling 4b116145f8eb1dc7d9be49a13e70a22a363c3194 on Alban-io:fix/scan-phpdoc into fd74a0cd2b5edd4a48e4ff12aaa44cc6cdc4a9b4 on ReactiveX:master.


feat: without noop option

This allows disabling the Noop command during the dial. This is useful for servers which delay potentially unwanted clients when they perform commands other than AUTH.

Codecov Report

Merging #88 (567276d) into main (6a7d49f) will decrease coverage by 9.58%.
The diff coverage is 55.55%.

@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   83.03%   73.44%   -9.59%
==========================================
  Files          14       14
  Lines        1444     1450       +6
==========================================
- Hits         1199     1065     -134
- Misses        170      339     +169
+ Partials       75       46      -29

Impacted Files
Coverage Δ

client.go
46.26% <55.55%> (-31.24%)
:arrow_down:

client_119.go
0.00% <0.00%> (-55.74%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks for the PR James. That's indeed a useful addition. I wasn't even aware that MS Exchange has issues with NOOP.

Codecov and sonarcube can be ignored. SQ seems to not work properly on PRs and codecov is confused about the different client_.go files

It's specifically commands prior to AUTH, I believe you can configure postfix similarly but it's been a long time since I did anything as advanced as that with postfix.


Output different than CommonMark dingus

The markdown text:
##### Relativity
---

##### Quadratic Equation
---

##### Cauchy's Integral Formula
---

outputs

Cauchy's Integral Formula

This output is missing serveral elements.
The CommonMark.org dingus emits the expected out.
P.S. I couldn't build CommonMark.Net's console program due to packaging  errors (something with DNX Core won't package restore) so I'm using the lastest build of Markdown Edit, which uses the latest build of CommonMark.Net.

I will look into this.
P.S. You can just unload the DNX project and it should build. It took me most of the night to get it working on my machine.

Ah, that's the secret. I was trying to use the SDK.

I just added the test and it does not fail. Could you double check your code? Also note that the nuget package includes a command line executable that you can use to test the library.

OK, I'll see if I can repro it in a small sample.

Yeah, it's my bug. Sorry to bother you about this. Knowing that there's a command line util was helpful.


Proposal: Enable Optional Use of AutoMigrate via Modular Plugin System

Describe the feature
The proposed feature involves refactoring the AutoMigrate capability in GORM to operate as an advanced, optional module instead of being a core integrated function. This change would allow developers to import and utilize the AutoMigrate feature selectively, similar to how database drivers are included, providing a more controlled and intentional approach to database schema evolution.

Motivation
The motivation stems from several key considerations:

Best Practices in Database Administration: Encouraging a clear separation of concerns between application code and database schema management aligns better with professional database administration practices. Allowing AutoMigrate as a plug-in emphasizes the importance of controlled schema changes through dedicated migration scripts or tools.
Mitigating Accidental Changes: By making AutoMigrate optional, developers are prompted to think critically about when and how they modify database structures, reducing the likelihood of accidental schema updates in production environments, which can be detrimental and difficult to revert.
Supporting Developer Education: Given that the official GORM documentation's first demonstration includes AutoMigrate, this change could be accompanied by updated guidance emphasizing the importance of managed schema migrations. This would help educate developers, especially beginners, on safer database management techniques.
Team Collaboration and Safety: In a team environment, having a mechanism to easily disable AutoMigrate at the project level can prevent unintended migrations triggered by other team members unfamiliar with the implications, enhancing overall codebase safety.

Related Issues
This suggestion aims to address the broader topic of database migration strategies within ORM usage and does not directly link to a specific open issue. However, it is relevant to discussions around best practices in ORM design, version control for database schemas, and the balance between developer convenience and system stability.

对于母语为汉语的我来说，可能用中文更适合描述我的问题和担忧：
尊敬的GORM团队，
首先，感谢你们为Go社区提供了如此强大且易用的ORM工具。我在此提出一项建议，旨在进一步增强GORM的灵活性和对数据库管理最佳实践的支持。
问题背景:

官方示例引导: GORM的官方文档首例展示了使用AutoMigrate功能来自动匹配数据库表结构与Go结构体，这一做法虽简化了快速原型开发，但可能无意中鼓励了不恰当的数据库管理实践，尤其是在生产环境中。
运维挑战: 直接在业务代码中变更数据库结构对数据库运维人员构成了挑战，理想情况下，数据库架构的变更应经过严格测试和审批流程。
新手陷阱: 初学者可能未完全理解文档细节，直接复制示例代码，未来可能因不经意的AutoMigrate调用导致生产环境数据结构的意外变动。

改进建议:

模块化AutoMigrate: 将AutoMigrate从GORM核心功能中分离，设计为一个可选插件。这样，开发者需主动选择安装和使用该插件，从而强化对数据库变更的意识和控制。
提供禁用机制: 引入一个明确的配置选项，允许项目层面彻底禁用AutoMigrate功能，以防止任何意外的结构迁移操作，增强团队协作的安全性。
文档指导: 更新官方文档，强调数据库迁移的最佳实践，指导用户采用更安全的数据库迁移策略，如使用版本控制的迁移脚本。

理由:

提升安全性: 明确分离结构定义与结构迁移，减少生产环境中的潜在风险。
增强团队协作: 有助于团队成员之间建立一致的数据库管理标准，减少因个人操作差异导致的混乱。
教育引导: 强化对数据库管理最佳实践的教育，特别是对新手开发者，培养良好的开发习惯。

我相信，通过上述改进，GORM不仅能够维持其易用性，还能在促进更专业、更安全的数据库管理实践中发挥重要作用。期待您们的考虑，并感谢您们对Go生态的持续贡献。

这个方案旨在降低Gorm使用的潜在风险，以及对数据库管理的规范化，希望作者能一起讨论 @jinzhu

AutoMigration is more recommended for quick testing in a development environment. Additionally, we have organized migration-related documentation here https://gorm.io/docs/migration.html . Feel free to refer to or update the relevant information.


Ruby failure on bot-sync-github

Apparently Ruby crashes when running bot-sync-github
$ ./bot-sync-github
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- parseconfig (LoadError)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/i011842/Applications/github-xcode-bot-builder-0.0.2/lib/bot_config.rb:2:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/i011842/Applications/github-xcode-bot-builder-0.0.2/lib/bot_builder.rb:7:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /Users/i011842/Applications/github-xcode-bot-builder-0.0.2/lib/bot_cli.rb:1:in `<top (required)>'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from ./bot-sync-github:7:in `<main>'

On OS X 10.10.2 (14C1510) with Server version 4.0.3 (14S350)

Probably related on Xcode 6 support issue in #10


File system Documentation refers to Dropbox Account

This documentation is about the File System Connector, but it talks about a dropbox account for Triggering.

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

ID: 56e73897-b362-2004-5dd4-bd3cf61101fb
Version Independent ID: 33d06fa1-0ab5-a9c0-d58b-e001e729ed0a
Content: Connect to file systems on premises - Azure Logic Apps
Content Source: articles/logic-apps/logic-apps-using-file-connector.md
Service: logic-apps
GitHub Login: @derek1ee
Microsoft Alias: deli

@metamoof we'll review your feedback and get back to you shortly. Thanks.

@metamoof The document has the workflow when a file created (dropbox) --> create file (file system) --> send an email (outlook). Therefore it does talks about the different action/trigger. In this document for example talks about triggering your workflow using dropdown trigger and then talks about using file system actions.

This article shows how you can connect to an on-premises file system as described by this example scenario: copy a file that's uploaded to Dropbox to a file share, and then send an email. To securely connect and access on-premises systems, logic apps use the on-premises data gateway. If you're new to logic apps, review What is Azure Logic Apps?. For connector-specific technical information, see the File System connector reference.

Hope this clears things up. Feel free to get back to me if you have any queries or concerns.

@metamoof Hope the above helps and clears things up. We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Parallelism with run_batch vs fork

First of all, great work!
The frontend seems to support two kinds of parallel processing: batching and forking.
From the docs and paper, it is not entirely clear to me how they differ and how they are handled under the hood. Do they both launch separate threads that make requests to the server, which then does continuous batching? Or is there more to it?
From a practical standpoint, what are the considerations when both run_batch and fork are possible for the use case? Are there advantages/disadvantages besides fork being more flexible?
Is it safe to combine the two? Would the total number of threads be num_threads * num_forks?

@ValeKnappich Yes, you can use a mixed style of fork and run_batch, let me clarify here:
We view each of the @sgl.function with a set of arguments as a root task, the forked branches are inner subtasks.

run_batch is just an interface, that sends all these root tasks into the interpreter.
num_threads decides how many root tasks the interpreter can handle at the same time. This is the parallelism of the interpreter.
All the branches created by fork() will have their inner threads to handle them, which has no relation with num_threads
All these parallelism above is just frontend parallelism, the backend always uses a contiguous batch and automatically maintains the running batch and waiting queue.


Feature/extend schema

Redo of #90 to master.
TODO:

[x] Update CHANGELOG.md with your change (include reference to issue & this PR)
[x] Make sure all of the significant new logic is covered by tests
[x] Rebase your changes on master so that they can be merged easily
[x] Make sure all tests and linter rules pass

Sorry for the mess @helfer. :)

Perfect, thanks!


[Talos] - traefik2-nodeport app install returns an error

This issue is a:

[x] Bug Report
[ ] Enhancement suggestion
[ ] Feature request

If the issue concerns an existing Marketplace application, please tag the maintainer of the application (found in manifest.yaml) below:
<EMAIL_ADDRESS><EMAIL_ADDRESS>
FYI @saiyam1814 (reference)
Enhancement suggestions / feature requests
If you are requesting an enhancement to a feature already present, or a new feature, please outline below the feature you would like to see, and how it would benefit you and the wider Civo Kubernetes userbase:
N/A
Bug Reports
If the issue is a Bug Report, please detail the following:

Expected behaviour: traefik2-nodeport app get installed in Talos cluster
Encountered behaviour: traefik2-nodeport app didn't get installed - there was an error
The steps to recreate the behaviour that you are reporting:

Launch a Talos cluster using web UI (make sure the traefik2-nodeport app is selected)
When the cluster is ready, check if there's any traefik* pod in the cluster

If you have logs or screenshots, please include them below.
$ kgpo -A
NAMESPACE     NAME                                 READY   STATUS      RESTARTS   AGE
default       install-redis-zulh-test-2023-gq7vj   0/1     Completed   0          15m
default       install-traefik2-nodeport-zu-kpfs6   0/1     Error       0          15m
default       redis-0                              1/1     Running     0          14m
kube-system   civo-ccm-bd46857ff-k8q4j             1/1     Running     0          15m
kube-system   civo-csi-controller-0                4/4     Running     0          15m
kube-system   civo-csi-node-8s92p                  2/2     Running     0          14m
kube-system   civo-csi-node-jwvc4                  2/2     Running     0          14m
kube-system   civo-csi-node-tvdt2                  2/2     Running     0          14m
kube-system   coredns-67cbdd6d9d-bhgrb             1/1     Running     0          15m
kube-system   coredns-67cbdd6d9d-d8ns7             1/1     Running     0          15m
kube-system   konnectivity-agent-fsls4             1/1     Running     0          14m
kube-system   konnectivity-agent-jlptg             1/1     Running     0          14m
kube-system   konnectivity-agent-rpbdg             1/1     Running     0          14m
kube-system   kube-flannel-4krvf                   1/1     Running     0          15m
kube-system   kube-flannel-m57wj                   1/1     Running     0          15m
kube-system   kube-flannel-w52xt                   1/1     Running     0          15m
kube-system   kube-proxy-494kz                     1/1     Running     0          15m
kube-system   kube-proxy-c8drn                     1/1     Running     0          15m
kube-system   kube-proxy-rjxvj                     1/1     Running     0          15m

Error from the install-traefik2-nodeport-zu-kpfs6 pod:
{"time":"2023-10-26T06:16:57.46210189Z","level":"INFO","msg":"Cloneing git repo https://github.com/civo/kubernetes-marketplace\n"}
{"time":"2023-10-26T06:16:57.462193546Z","level":"INFO","msg":"Creating temporal dir to clone git repo"}
{"time":"2023-10-26T06:16:57.462292072Z","level":"INFO","msg":"Cloning git repo https://github.com/civo/kubernetes-marketplace to /tmp/prefix2587984261"}
{"time":"2023-10-26T06:16:59.26322321Z","level":"INFO","msg":"Validating that app exists: traefik2-nodeport\n"}
{"time":"2023-10-26T06:16:59.263326772Z","level":"INFO","msg":"Running App Install"}
{"time":"2023-10-26T06:16:59.266301597Z","level":"INFO","msg":"Cheking the install.sh is preset or not"}
{"time":"2023-10-26T06:16:59.266380992Z","level":"INFO","msg":"Cheking the app.yaml is preset or not"}
{"time":"2023-10-26T06:16:59.266407788Z","level":"INFO","msg":"Running the kubectl apply"}
{"time":"2023-10-26T06:16:59.266428169Z","level":"INFO","msg":"Reading the app.yaml file"}
{"time":"2023-10-26T06:16:59.266486369Z","level":"INFO","msg":"Printing the app.yaml content"}
{"time":"2023-10-26T06:16:59.266518295Z","level":"INFO","msg":"App.yaml content","app.yaml":"---\napiVersion: helm.cattle.io/v1\nkind: HelmChart\nmetadata:\n  name: traefik\n  namespace: kube-system\nspec:\n  repo: https://traefik.github.io/charts\n  chart: traefik\n  version: '20.2.1'\n  set:\n    global.systemDefaultRegistry: \"\"\n  valuesContent: |-\n    hostNetwork: true\n    additionalArguments:\n    - --providers.kubernetesingress.ingressendpoint.hostname=83d0a744-3621-426e-b353-704ddc91c321.k8s.civo.com\n    securityContext:\n      capabilities:\n        add:\n          - NET_BIND_SERVICE\n      runAsNonRoot: false\n      runAsUser: 0\n    service:\n      enabled: false\n    deployment:\n      kind: DaemonSet\n    rbac:\n      enabled: true\n    ports:\n      websecure:\n        expose: true\n        exposePort: 443\n        port: 443\n        tls:\n          enabled: true\n      web:\n        expose: true\n        exposePort: 80\n        port: 80\n    podAnnotations:\n      prometheus.io/port: \"8082\"\n      prometheus.io/scrape: \"true\"\n    providers:\n      kubernetesIngress:\n        publishedService:\n          enabled: true\n    priorityClassName: \"system-cluster-critical\"\n    image:\n      name: \"rancher/mirrored-library-traefik\"\n      tag: \"2.9.4\"\n    tolerations:\n    - key: \"CriticalAddonsOnly\"\n      operator: \"Exists\"\n    - key: \"node-role.kubernetes.io/control-plane\"\n      operator: \"Exists\"\n      effect: \"NoSchedule\"\n    - key: \"node-role.kubernetes.io/master\"\n      operator: \"Exists\"\n      effect: \"NoSchedule\"\n    updateStrategy:\n      rollingUpdate:\n        maxUnavailable: 1\n        maxSurge: \"0%\"\n"}
{"time":"2023-10-26T06:16:59.376035322Z","level":"INFO","msg":"Command output","stdout":""}
{"time":"2023-10-26T06:16:59.376068935Z","level":"ERROR","msg":"Command output","stderr":"error: resource mapping not found for name: \"traefik\" namespace: \"kube-system\" from \"traefik2-nodeport/app.yaml\": no matches for kind \"HelmChart\" in version \"helm.cattle.io/v1\"\nensure CRDs are installed first\n"}
Error: exit status 1
Usage:
  marketplace-installer install [flags]

Examples:
install <app name>

Flags:
  -h, --help   help for install

Global Flags:
  -d, --git-url string   The git repo to clone from

Resolved in https://github.com/civo/kubernetes-marketplace/commit/8985c316a35da658f566420191e7e8f9c0bef142
/close


Hamburger nav

Resolves #158
Does some other jawn as well:

[x] Add hamburger menu
[x] Create a generic layout page
[x] Add colors object to style utils to set-up future theming
[x] Adds Raleway font
[x] Fixes bug where clicking Login wouldn't allow you to go back
[x] Removes GraphQL example from Landing page

Note:
I added the colors, but left them all grayscale 😉 I read an article that recommended designing in B&W at first, then adding colors, and thought that'd be nice / make it easier while we're still not set on colors & overall feel yet

Traditional UX / UI is on the left
On Sat, May 19, 2018 at 10:40 AM Dustin Popp<EMAIL_ADDRESS>wrote:

@dpopp07 approved this pull request.
This all looks good to me! 🍔
I still want to get @haleygreene09 https://github.com/haleygreene09's
opinion on whether the hamburger menu should be on the left or right, but
we can make an issue/change later if we need to.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dpopp07/bartop/pull/162#pullrequestreview-121622123,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ag1OepRIL8ve1PP6VIUDXzUb-6JRtCOEks5t0DzpgaJpZM4T3tHx
.


KOGITO-7696 - Add productized image name for Data Index

(tests) - kogito-apps job #711 was: FAILURE
Possible explanation: Pipeline failure or project build failure
Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-apps/711/display/redirect
See console log:

Console Logs
[Pipeline] {[Pipeline] stage[Pipeline] { (Declarative: Checkout SCM)[Pipeline] checkoutThe recommended git tool is: NONEusing credential kie-ciCloning the remote Git repositoryAvoid second fetchChecking out Revision 1588f8cbaa547f0ad0f11d271e5ce4a550610c01 (origin/main)Cloning repository https://github.com/kiegroup/kogito-pipelines.git > git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps # timeout=10Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.37.1'using GIT_ASKPASS to set credentials PSSWD: kie-ci service account with access to jboss-integration private github space > git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 1588f8cbaa547f0ad0f11d271e5ce4a550610c01 # timeout=10Commit message: "BXMSPROD-1767 PROD nightly drools version UMB message (#574)"[Pipeline] }[Pipeline] // stage[Pipeline] withEnv[Pipeline] {[Pipeline] withEnv[Pipeline] {[Pipeline] timestamps[Pipeline] {[Pipeline] timeout[2022-08-02T13:44:35.322Z] Timeout set to expire in 3 hr 30 min[Pipeline] {[Pipeline] stage[Pipeline] { (Declarative: Tool Install)[Pipeline] tool[2022-08-02T13:44:35.831Z] Installing NodeJS from /var/lib/jenkins/caches/nodejs/LINUX/amd64/16.2.0.tar.gz to /home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs-16.2.0 on rhos-01-kie-psi-rhel7-xlarge-248[Pipeline] envVarsForTool[Pipeline] }[Pipeline] // stage[Pipeline] withEnv[Pipeline] {[Pipeline] stage[Pipeline] { (Initialize)[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] withEnv[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] sh[2022-08-02T13:44:48.038Z] + printenv[Pipeline] archiveArtifacts[2022-08-02T13:44:48.616Z] Archiving artifacts[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (check space before build)[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] withEnv[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] dir[2022-08-02T13:44:52.720Z] Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps[Pipeline] {[Pipeline] echo[2022-08-02T13:44:52.840Z] [INFO] space left on the machine[Pipeline] sh[2022-08-02T13:44:53.321Z] + df -h[2022-08-02T13:44:53.322Z] Filesystem      Size  Used Avail Use% Mounted on[2022-08-02T13:44:53.322Z] devtmpfs        7.8G     0  7.8G   0% /dev[2022-08-02T13:44:53.322Z] tmpfs           7.8G     0  7.8G   0% /dev/shm[2022-08-02T13:44:53.322Z] tmpfs           7.8G   17M  7.8G   1% /run[2022-08-02T13:44:53.322Z] tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup[2022-08-02T13:44:53.322Z] /dev/vda1        80G   19G   62G  23% /[2022-08-02T13:44:53.322Z] tmpfs           1.6G     0  1.6G   0% /run/user/1000[Pipeline] echo[2022-08-02T13:44:53.452Z] [INFO] space of /home/jenkins[Pipeline] sh[2022-08-02T13:44:54.019Z] + du -h -d1 /home/jenkins[2022-08-02T13:44:54.019Z] 4.0K	/home/jenkins/.ssh[2022-08-02T13:44:54.019Z] 0	/home/jenkins/go[2022-08-02T13:44:54.019Z] 8.0K	/home/jenkins/.vnc[2022-08-02T13:44:54.019Z] 8.0K	/home/jenkins/.m2[2022-08-02T13:44:54.019Z] 2.1G	/home/jenkins/git-repos[2022-08-02T13:44:54.019Z] 8.0K	/home/jenkins/.config[2022-08-02T13:44:54.019Z] 4.0K	/home/jenkins/.cekit[2022-08-02T13:44:54.019Z] 82M	/home/jenkins/virtenvs[2022-08-02T13:44:54.019Z] 30M	/home/jenkins/remoting[2022-08-02T13:44:54.019Z] 0	/home/jenkins/.cache[2022-08-02T13:44:54.019Z] 2.7M	/home/jenkins/workspace[2022-08-02T13:44:54.019Z] 0	/home/jenkins/.pki[2022-08-02T13:44:54.019Z] 100M	/home/jenkins/tools[2022-08-02T13:44:54.019Z] 0	/home/jenkins/caches[2022-08-02T13:44:54.019Z] 2.3G	/home/jenkins[Pipeline] echo[2022-08-02T13:44:54.129Z] [INFO] space of workspace[Pipeline] sh[2022-08-02T13:44:54.622Z] + du -h -d3 /home/jenkins/workspace[2022-08-02T13:44:54.622Z] 2.7M	/home/jenkins/workspace/KIE/kogito/main[2022-08-02T13:44:54.622Z] 2.7M	/home/jenkins/workspace/KIE/kogito[2022-08-02T13:44:54.622Z] 2.7M	/home/jenkins/workspace/KIE[2022-08-02T13:44:54.622Z] 2.7M	/home/jenkins/workspace[Pipeline] }[Pipeline] // dir[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Install build-chain tool)[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] withEnv[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] echo[2022-08-02T13:44:57.131Z] [INFO] Getting build-chain version from composite action file[Pipeline] readFile[Pipeline] echo[2022-08-02T13:44:57.852Z] [INFO] build-chain version recovered '2.3.34'[Pipeline] sh[2022-08-02T13:44:58.434Z] + npm install -g<EMAIL_ADDRESS>-registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/[2022-08-02T13:44:59.027Z] npm WARN ERESOLVE overriding peer dependency[2022-08-02T13:44:59.027Z] npm WARN Found: @octokit/core@2.5.4[2022-08-02T13:44:59.027Z] npm WARN node_modules/@kie/build-chain-action/node_modules/@octokit/core[2022-08-02T13:44:59.027Z] npm WARN<EMAIL_ADDRESS>from @octokit/rest@17.11.2[2022-08-02T13:44:59.027Z] npm WARN   node_modules/@kie/build-chain-action/node_modules/@octokit/rest[2022-08-02T13:44:59.027Z] npm WARN<EMAIL_ADDRESS>from @kie/build-chain-action@2.3.34[2022-08-02T13:44:59.027Z] npm WARN     node_modules/@kie/build-chain-action[2022-08-02T13:44:59.027Z] npm WARN     1 more (@kie/build-chain-configuration-reader)[2022-08-02T13:44:59.027Z] npm WARN   1 more (@octokit/plugin-paginate-rest)[2022-08-02T13:44:59.027Z] npm WARN [2022-08-02T13:44:59.027Z] npm WARN Could not resolve dependency:[2022-08-02T13:44:59.027Z] npm WARN peer @octokit/core@">=3" from @octokit/plugin-request-log@1.0.4[2022-08-02T13:44:59.027Z] npm WARN node_modules/@kie/build-chain-action/node_modules/@octokit/plugin-request-log[2022-08-02T13:44:59.027Z] npm WARN<EMAIL_ADDRESS>from @octokit/rest@17.11.2[2022-08-02T13:44:59.027Z] npm WARN   node_modules/@kie/build-chain-action/node_modules/@octokit/rest[2022-08-02T13:45:01.820Z] [2022-08-02T13:45:01.820Z] added 110 packages, and audited 111 packages in 3s[2022-08-02T13:45:01.820Z] [2022-08-02T13:45:01.820Z] 5 packages are looking for funding[2022-08-02T13:45:01.820Z]   run `npm fund` for details[2022-08-02T13:45:01.820Z] [2022-08-02T13:45:01.820Z] found 0 vulnerabilities[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // withEnv[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Build projects)[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] tool[Pipeline] envVarsForTool[Pipeline] withEnv[Pipeline] {[Pipeline] script[Pipeline] {[Pipeline] echo[2022-08-02T13:45:04.634Z] BUILD_MVN_OPTS_CURRENT = [Pipeline] configFileProvider[2022-08-02T13:45:04.724Z] provisioning config files...[2022-08-02T13:45:04.732Z] copy managed file [kogito_pr_settings] to file:/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps@tmp/config5036430554424185042tmp[Pipeline] {[Pipeline] withCredentials[2022-08-02T13:45:05.024Z] Masking supported pattern matches of $GITHUB_TOKEN[Pipeline] {[Pipeline] sh[2022-08-02T13:45:05.228Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.[2022-08-02T13:45:05.228Z] 		 Affected argument(s) used the following variable(s): [GITHUB_TOKEN][2022-08-02T13:45:05.228Z] 		 See https://jenkins.io/redirect/groovy-string-interpolation for details.[2022-08-02T13:45:06.037Z] + build-chain-action -token=**** -df=https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml -folder=bc build pr -url=https://github.com/kiegroup/kogito-runtimes/pull/2378 -sp=kiegroup/kogito-apps --skipParallelCheckout -cct '(^mvn .*)||$1 -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps@tmp/config5036430554424185042tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true'[2022-08-02T13:45:06.343Z] [INFO]  Executing pull request flow for https://github.com/kiegroup/kogito-runtimes/pull/2378 in bc[2022-08-02T13:45:06.343Z] (node:8157) Warning: Accessing non-existent property 'ClientError' of module exports inside circular dependency[2022-08-02T13:45:06.343Z] (Use `node --trace-warnings ...` to show where the warning was created)[2022-08-02T13:45:06.642Z] [INFO]  https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml exists, using it[2022-08-02T13:45:06.642Z] ::group::[PRE] Executing pre section for https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml[2022-08-02T13:45:06.642Z] [INFO]  Execute command 'export BUILD_MVN_OPTS=" -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3"' in dir '/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps'[2022-08-02T13:45:06.642Z] [INFO]  Treating export command since it's not possible to run it from the runner itself[2022-08-02T13:45:06.642Z] [INFO]  The variable BUILD_MVN_OPTS has been stored with ' -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3' value[2022-08-02T13:45:06.642Z] ::notice title= [PRE] [Execution OK]::export BUILD_MVN_OPTS=" -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3"[2022-08-02T13:45:06.642Z] [INFO]  Execute command 'echo "BUILD_MVN_OPTS= -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3"' in dir '/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps'[2022-08-02T13:45:06.642Z] [command]/usr/bin/echo BUILD_MVN_OPTS= -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3[2022-08-02T13:45:06.642Z] BUILD_MVN_OPTS= -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3[2022-08-02T13:45:06.642Z] ::notice title= [PRE] [Execution OK]::echo "BUILD_MVN_OPTS= -nsu -ntp -fae -e -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false dependency:tree -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3"[2022-08-02T13:45:06.642Z] [INFO]  Execute command 'export BUILD_MVN_OPTS_CURRENT=""' in dir '/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps'[2022-08-02T13:45:06.642Z] [INFO]  Treating export command since it's not possible to run it from the runner itself[2022-08-02T13:45:06.642Z] [INFO]  The variable BUILD_MVN_OPTS_CURRENT has been stored with '' value[2022-08-02T13:45:06.642Z] ::notice title= [PRE] [Execution OK]::export BUILD_MVN_OPTS_CURRENT=""[2022-08-02T13:45:06.642Z] [INFO]  Execute command 'echo "BUILD_MVN_OPTS_CURRENT="' in dir '/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps'[2022-08-02T13:45:06.642Z] [command]/usr/bin/echo BUILD_MVN_OPTS_CURRENT=[2022-08-02T13:45:06.642Z] BUILD_MVN_OPTS_CURRENT=[2022-08-02T13:45:06.642Z] ::notice title= [PRE] [Execution OK]::echo "BUILD_MVN_OPTS_CURRENT="[2022-08-02T13:45:06.642Z] ::endgroup::[2022-08-02T13:45:06.642Z] ::group::[Pull Request Flow] Execution Plan...[2022-08-02T13:45:06.642Z] [INFO]  ----------------------------------------------[2022-08-02T13:45:06.642Z] [INFO]  [3] projects will be executed[2022-08-02T13:45:06.642Z] [2022-08-02T13:45:06.642Z] [INFO]  [kiegroup/drools][2022-08-02T13:45:06.642Z] [INFO]  Level Type: [upstream].[2022-08-02T13:45:06.642Z] [INFO]  mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.DROOLS_BUILD_MVN_OPTS_UPSTREAM }}[2022-08-02T13:45:06.642Z] [INFO]  [ 'docker system prune -f' ][2022-08-02T13:45:06.642Z] [2022-08-02T13:45:06.642Z] [INFO]  [kiegroup/kogito-runtimes][2022-08-02T13:45:06.642Z] [INFO]  Level Type: [upstream].[2022-08-02T13:45:06.642Z] [INFO]  mvn clean install -Dquickly ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_UPSTREAM }} ${{ env.KOGITO_RUNTIMES_BUILD_MVN_OPTS_UPSTREAM }}[2022-08-02T13:45:06.642Z] [INFO]  [ 'docker system prune -f' ][2022-08-02T13:45:06.642Z] [2022-08-02T13:45:06.642Z] [INFO]  [kiegroup/kogito-apps][2022-08-02T13:45:06.642Z] [INFO]  Level Type: [current].[2022-08-02T13:45:06.642Z] [INFO]  [[2022-08-02T13:45:06.642Z]   'mvn -f kogito-apps/pom.xml clean install -Dvalidate-formatting ${{ env.BUILD_MVN_OPTS }} ${{ env.BUILD_MVN_OPTS_CURRENT }} ${{ env.KOGITO_APPS_BUILD_MVN_OPTS }}'[2022-08-02T13:45:06.642Z] ][2022-08-02T13:45:06.642Z] [INFO]  [ 'docker system prune -f' ][2022-08-02T13:45:06.642Z] [2022-08-02T13:45:06.642Z] [INFO]  ----------------------------------------------[2022-08-02T13:45:06.642Z] ::endgroup::[2022-08-02T13:45:06.642Z] ::group::[Pull Request Flow] Checking out kiegroup/kogito-runtimes and its dependencies[2022-08-02T13:45:06.642Z] [INFO]  Tree for project kiegroup/kogito-apps. Dependencies: [2022-08-02T13:45:06.642Z] kiegroup/drools,[2022-08-02T13:45:06.642Z] kiegroup/kogito-runtimes,[2022-08-02T13:45:06.642Z] kiegroup/kogito-apps[2022-08-02T13:45:06.642Z] [INFO]  [kiegroup/drools] Checking out project[2022-08-02T13:45:06.926Z] [WARN]  project github.com/cristianonicolai/drools:KOGITO-7696 does not exist. It's not necessarily an error.[2022-08-02T13:45:07.222Z] [WARN]  project github.com/kiegroup/drools:KOGITO-7696 does not exist. It's not necessarily an error.[2022-08-02T13:45:07.222Z] [INFO]  [kiegroup/drools] Checking out 'https://github.com/kiegroup/drools:main' into 'bc/kiegroup_drools'[2022-08-02T13:45:23.552Z] [INFO]  [kiegroup/drools] Checked out.[2022-08-02T13:45:23.552Z] [INFO]  [kiegroup/drools] Cloning folder bc/kiegroup_drools into drools[2022-08-02T13:45:26.321Z] [INFO]  [kiegroup/drools] Cloned folder bc/kiegroup_drools into bc/kiegroup_drools/drools[2022-08-02T13:45:26.321Z] [INFO]  [kiegroup/kogito-runtimes] Checking out project[2022-08-02T13:45:26.620Z] [INFO]  [kiegroup/kogito-runtimes] Merging https://github.com/kiegroup/kogito-runtimes:main into https://github.com/cristianonicolai/kogito-runtimes:KOGITO-7696[2022-08-02T13:45:49.322Z] [INFO]  [kiegroup/kogito-runtimes] Checked out.[2022-08-02T13:45:49.322Z] [INFO]  [kiegroup/kogito-runtimes] Cloning folder bc/kiegroup_kogito_runtimes into kogito-runtimes[2022-08-02T13:45:49.322Z] [INFO]  [kiegroup/kogito-runtimes] Cloned folder bc/kiegroup_kogito_runtimes into bc/kiegroup_kogito_runtimes/kogito-runtimes[2022-08-02T13:45:49.322Z] [INFO]  [kiegroup/kogito-apps] Checking out project[2022-08-02T13:45:49.322Z] [WARN]  project github.com/cristianonicolai/kogito-apps:KOGITO-7696 does not exist. It's not necessarily an error.[2022-08-02T13:45:49.322Z] [WARN]  project github.com/kiegroup/kogito-apps:KOGITO-7696 does not exist. It's not necessarily an error.[2022-08-02T13:45:49.322Z] [INFO]  [kiegroup/kogito-apps] Checking out 'https://github.com/kiegroup/kogito-apps:main' into 'bc/kiegroup_kogito_apps'[2022-08-02T13:48:42.025Z] [ERROR]  command git clone --quiet --shallow-submodules --no-tags --branch main<EMAIL_ADDRESS>bc/kiegroup_kogito_apps failed with code 128. Error Message: error: RPC failed; curl 18 transfer closed with outstanding read data remaining[2022-08-02T13:48:42.025Z] error: 5932 bytes of body are still expected[2022-08-02T13:48:42.025Z] fetch-pack: unexpected disconnect while reading sideband packet[2022-08-02T13:48:42.025Z] fatal: early EOF[2022-08-02T13:48:42.025Z] fatal: fetch-pack: invalid index-pack output[2022-08-02T13:48:42.025Z] [Pipeline] }[Pipeline] // withCredentials[Pipeline] }[2022-08-02T13:48:42.528Z] Deleting 1 temporary files[Pipeline] // configFileProvider[Pipeline] }[Pipeline] // scriptPost stage[Pipeline] junit[2022-08-02T13:48:43.142Z] Recording test results[2022-08-02T13:48:44.321Z] No test report files were found. Configuration error?Error when executing always post condition:Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to rhos-01-kie-psi-rhel7-xlarge-248		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1797)		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)		at hudson.remoting.Channel.call(Channel.java:1001)		at hudson.FilePath.act(FilePath.java:1166)		at hudson.FilePath.act(FilePath.java:1155)		at hudson.tasks.junit.JUnitParser.parseResult(JUnitParser.java:107)		at hudson.tasks.junit.JUnitResultArchiver.parse(JUnitResultArchiver.java:153)		at hudson.tasks.junit.JUnitResultArchiver.parseAndSummarize(JUnitResultArchiver.java:247)		at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:63)		at hudson.tasks.junit.pipeline.JUnitResultsStepExecution.run(JUnitResultsStepExecution.java:29)		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)hudson.AbortException: No test report files were found. Configuration error?	at hudson.tasks.junit.JUnitParser$ParseResultCallable.invoke(JUnitParser.java:154)	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3338)	at hudson.remoting.UserRequest.perform(UserRequest.java:211)	at hudson.remoting.UserRequest.perform(UserRequest.java:54)	at hudson.remoting.Request$2.run(Request.java:376)	at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)	at java.lang.Thread.run(Thread.java:750)[Pipeline] script[Pipeline] {[Pipeline] sh[2022-08-02T13:48:45.618Z] + rm -rf console.log[Pipeline] sh

Jenkins rerun kogito-apps tests

Removed version and added registry

Removed version and added registry

Why did you remove the version ?
This current way won't work by default without the image tag ...

@radtriste version is handled in the code, as mentioned earlier, it will append major and minor versions to the image name string

@cristianonicolai I think the latest tag is case sensitive.

So, will we use major.minor then? :)

@radtriste version is handled in the code, as mentioned earlier, it will append major and minor versions to the image name string. See https://github.com/kiegroup/kogito-runtimes/blob/main/quarkus/extensions/kogito-quarkus-processes-extension/kogito-quarkus-processes-deployment/src/main/java/org/kie/kogito/quarkus/processes/deployment/KogitoDevServicesProcessor.java#L109

Sorry I missed that.

@spolti let's do that, it will work exactly the same as community.


Karpenter + Amazon EKS

Karpenter

https://karpenter.sh/

Terraform + Karpenter + Amazon EKS

Terraform module: https://github.com/terraform-aws-modules/terraform-aws-eks/tree/master/examples/karpenter
Tutorial

https://rtfm.co.ua/en/terraform-building-eks-part-2-an-eks-cluster-workernodes-and-iam/

https://antonputra.com/amazon/kubernetes-node-autoscaling-with-karpenter/

Methods

terraform-aws-eks
terraform-aws-eks-blueprints
Relationship: terraform-aws-eks-blueprints is currently based on terraform-aws-eks based on this doc:

Added by

https://github.com/hongbo-miao/hongbomiao.com/pull/16641/files


Migration failing after update

A user updated from rc86 to rc117. The user was staked on the pearl_alpha.
After updating pearl, the user opened the app and clicked Start agent.
The steps the service then took are:

Service got unstaked from pearl_alpha
Service got updated
Service was NOT be staked on pearl_beta.

Upon a look at cli.log, step 3 was a result of the provided params requiring the CLI to stake the service on pearl_alpha instead of pearl_beta. The issue was resolved by simply restarting pearl and starting the agent again.
Another thing to note is that when step 3 failed, the agent started running without being staked. This is not desired behaviour, as it could lead to agent draining the trader balance since it will never stop trading.

Another user seems to have had a similar issue:
pearl_logs_2024-08-28T17:44:16.341Z-0.1.0-rc118.zip


fix(otlp-transformer): move api-logs to dependencies

Which problem is this PR solving?
@opentelemetry/otlp-transformer declares a peer dependency on @opentelemetry/api-logs that causes the other signal-specific exporters not to work without it. So, we need to include it as a regular dependency, as we did with metrics.
Fixes #3794
Short description of the changes

Removes peer dependency, adds a regular dependency.
disables peer-api-check for @opentelemetry/api-logs

Type of change

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

[x] Existing tests

Maybe we should split otlp-transformer into 3 packages?

If an imported type appears in the declaration file, it should be listed in dependencies for type checks.

This can (and in my opinion should) be avoided by keeping the relevant mapping code internal. Only the public API surface is relevant in that regard.
Yes, enums are bad in that regard. They could be extracted into a smaller, shared package if needed.
In principle it should be possible to replace the OTel SDK here by a self made SDK (but reuse API). Reusing OTel export pipleline cant be done in that case. But I doubt it's a major issue and I don't think it's a required setup by spec.

But I think this PR focuses on fixing the linked issue so doing a rework in that area is likely out of scope here.
I agree, we need to address this in the future. Right now, this fixes the problem with 0.39.0.
I created an issue to follow up on this, we can move the discussion there: #3799

Thanks for the quick turnaround!


[Accordion] Menu button is not worked after opening editing cards.

Environment:
Version : XComponents - version 0.1
Device : Iphone 6 IOS 8.1.3 Safari browser   1334x750 4.7
Steps to reproduce:

Open Cards page - http://demo.xcomponents.org:3000
Open any contact  (confirn that edit contact menu displayed)
Tap Cancel button
Tap Back button
Tap Menu button

Expected result:
Menu opened
Actual result:
Menu button is not worked
2015-02-17_11-51-44.mp4

Reproduce for me. But, please, provide more clear steps - bug is understood only after watching video
XComponents - version 0.1
iPhone 4s iOS 8.1.3
Safari 3.5" (640 x 960)

I updated steps to reproduce. Max, thanks for your note.


[FEAT] i18n option when using cli to create project

Is your feature request related to a problem? Please describe.
I have to setup i18n next manually each time.
Describe alternatives you've considered
No response
Additional context
No response
Describe the thing to improve
I would like the create-refine cli have an option to automatically include i18n-next, so I won't have to set this up manually each time.

@BlackBearFTW thanks for the issue. We are open to contributions for this one. We have similar examples with react-router and antd.

Just linked this issue in a PR and I want to clarify the progress on this. Previously, we had i18n option in create-refine-app but decided to remove it due to increased complexity and due to the nature of i18n having project specific requirements. Adding this complexity just to handle essential keys that Refine uses wasn't able to justify the required maintenance 😅
We've added refine add provider i18n command to generate a demo i18nProvider which makes it easy to integrate with any library and custom implementation. Yet, this command was missing the translation file that includes essential keys that Refine uses by default. In #6196 we're also creating a locale/en.json that includes all the keys Refine uses and some additional keys to hint how Refine's i18n keys are generated.
In the future we'll update this issue when we have any updates 🙏

Improvements related to i18n is released with the latest version of @refinedev/cli 🙏


Add folders for Github-Actions.

Add folders for Github-Actions.

Done in PR : 9ee3666e28dc1aa73b9a7f074034176c71b8f6b7


Revert "initial implmentation of dependencies coming from registry"

Reverts apple/swift-package-manager#3635

@swift-ci please test

#3646 is preferable to this - better to fix forward


MongoDB Aggregation Queries $addFields Operator

MongoDB is used to store and query the data we collect.
However, the $addFields aggregation method only exists in MongoDB v3.4+, which requires 64 bit. Unfortunately, Raspbian is 32 bit (for backwards compatibility with Pi 1/2), and the latest version we can get via apt is v2.X.
I'd like to investigate if we can use do something with the $project operator to accomplish something similar. If we can't, we'll have to look for alternative approaches to process the data on the Pi.

Tested, $project can be used in a similar fashion to $addFields; only thing is the titles of all the fields have to mentioned in each projection stage, but that is a minimal issue to deal with as compared to trying to compile a 64 bit Pi OS, run a server on each laptop, or more custom code.
Last Year's Queries: https://github.com/FRCteam4909/The-Green-Alliance-Server-2017/blob/master/config/views.js


Yeafi_Week 1 - Background Process Package -Ready for QA Deployment

Yeafi_Log.Message.Week.<IP_ADDRESS>.zip

Enhancement Completed, Ready for QA (I just followed and completed the enhancement process as part of task completion)
Yeafi_Log.Message.Week.<IP_ADDRESS>.zip

Process Execution Completed, I downloaded Yeahfi's zip file and deployed it in the orchestrator.


scipy.special import error in cygwin

Attempting to import scipy.special raises an import error in cygwin-64.  Scipy was compiled using gcc-fortran and lapack0-devel from the cygwin package manager, and pip install scipy.
Reproducing code example:
import scipy.special as sc

Error message:
  File "/usr/lib/python2.7/site-packages/scipy/special/__init__.py", line 640, in <module>
    from ._ufuncs import *
ImportError: No such file or directory

Scipy/Numpy/Python version information:
('0.19.0', '1.12.1', sys.version_info(major=2, minor=7, micro=13, releaselevel='final', serial=0))

That's not much to go on. We need at least a full build log to be able to help.

There seems to be  nothing named _ufuncs at that location of 'site-packages/scipy/special/'
what else do you need as build log?
Tell us maybe?

@cycleuser OP mentions that SciPy is built from source and we need to see what went wrong during the build.
And there are all kinds of _ufuncs files in the directory

Having same problem:
Traceback (most recent call last):
  File "/usr/bin/bean-extract", line 4, in <module>
    from beancount.ingest.extract import main; main()
  File "/usr/lib/python3.6/site-packages/beancount/ingest/extract.py", line 203, in main
    args, config, downloads_directories = scripts_utils.parse_arguments(parser)
  File "/usr/lib/python3.6/site-packages/beancount/ingest/scripts_utils.py", line 56, in parse_arguments
    mod = runpy.run_path(args.config)
  File "/usr/lib/python3.6/runpy.py", line 263, in run_path
    pkg_name=pkg_name, script_name=fname)
  File "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code
    mod_name, mod_spec, pkg_name, script_name)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "Btycoon.import", line 9, in <module>
    from importers import chase
  File "/cygdrive/r/Bldgr/office/importers/chase/__init__.py", line 21, in <module>
    from smart_importer import PredictPostings
  File "/cygdrive/c/cygwin64/smart_importer/smart_importer/__init__.py", line 9, in <module>
    from smart_importer.predictor import EntryPredictor
  File "/cygdrive/c/cygwin64/smart_importer/smart_importer/predictor.py", line 7, in <module>
    from sklearn.pipeline import make_pipeline, FeatureUnion
  File "/usr/lib/python3.6/site-packages/sklearn/__init__.py", line 64, in <module>
    from .base import clone
  File "/usr/lib/python3.6/site-packages/sklearn/base.py", line 13, in <module>
    from .utils.fixes import signature
  File "/usr/lib/python3.6/site-packages/sklearn/utils/__init__.py", line 13, in <module>
    from .validation import (as_float_array,
  File "/usr/lib/python3.6/site-packages/sklearn/utils/validation.py", line 22, in <module>
    from ..utils.fixes import signature
  File "/usr/lib/python3.6/site-packages/sklearn/utils/fixes.py", line 83, in <module>
    from scipy.special import boxcox  # noqa
  File "/usr/lib/python3.6/site-packages/scipy/special/__init__.py", line 586, in <module>
    from ._ufuncs import *
ImportError: No such file or directory

@PikalaxALT did you manage to solve the issue?

@gety9 The puush link has (quite reasonably) expired by now.  @PikalaxALT and @gety9 , are you still experiencing these issues?
I suspect a lot has changed since original issue report.  I installed scipy master from source using most recent Cygwin x86_64 on Windows 10 using this command: python setup.py build_ext --inplace.  Cygwin gave me these versions out of the box:

gcc 8.1.0 (but MSVC 2019 is used from MSVC 2019 build tools)
gfortran 8.1.0
python3.9

Python packages:

numpy==1.19.5
scipy master at ac63126f4
Cython==0.29.21

This issue has reports on Python2.7 and Python3.6 (both no longer supported).  I used the same openblas binary that the CI does because that was easy for me to set up, but I don't think there will be build differences because of this based on the issue report.
python -c "import scipy.special as sc" runs without issue.  All but one of the scipy.special tests also pass:
test = <Data for ellip_harm_2: ellip>, dtype = <class 'numpy.float64'>

    def _test_factory(test, dtype=np.double):
        """Boost test"""
        with suppress_warnings() as sup:
            sup.filter(IntegrationWarning, "The occurrence of roundoff error is detected")
            with np.errstate(all='ignore'):
>               test.check(dtype=dtype)
E               AssertionError:
E               Max |adiff|: 0
E               Max |rdiff|: 0
E               Bad results (1 out of 400) for the following points (in output 0):
E                                          76.                            175.                             14.                              1.                          20.456 =>
             nan !=              2.82846091362e-19  (rdiff                             0.)

dtype      = <class 'numpy.float64'>
sup        = <numpy.testing._private.utils.suppress_warnings object at 0x0000027A9E811CA0>
test       = <Data for ellip_harm_2: ellip>

scipy\special\tests\test_data.py:575: AssertionError
=================================================================================== short test summary info ===================================================================================
FAILED scipy/special/tests/test_data.py::test_local[<Data for ellip_harm_2: ellip>] - AssertionError:
============================================================= 1 failed, 1515 passed, 196 skipped, 23 xfailed, 1 xpassed in 31.16s =============================================================

@rgommers If we don't hear anything back, maybe time to close this issue as it seems to have resolved itself over time?  Is the above failure interesting to us or can it safely be ignored on cygwin?  if an actual issue, I can open a new ticket

@gety9 The puush link has (quite reasonably) expired by now.  @PikalaxALT and @gety9 , are you still experiencing these issues?
I suspect a lot has changed since original issue report.  I installed scipy master from source using most recent Cygwin x86_64 on Windows 10 using this command: python setup.py build_ext --inplace.  Cygwin gave me these versions out of the box:

gcc 8.1.0 (but MSVC 2019 is used from MSVC 2019 build tools)
gfortran 8.1.0
python3.9

Python packages:

numpy==1.19.5
scipy master at ac63126f4
Cython==0.29.21

This issue has reports on Python2.7 and Python3.6 (both no longer supported).  I used the same openblas binary that the CI does because that was easy for me to set up, but I don't think there will be build differences because of this based on the issue report.
python -c "import scipy.special as sc" runs without issue.  All but one of the scipy.special tests also pass:
test = <Data for ellip_harm_2: ellip>, dtype = <class 'numpy.float64'>

    def _test_factory(test, dtype=np.double):
        """Boost test"""
        with suppress_warnings() as sup:
            sup.filter(IntegrationWarning, "The occurrence of roundoff error is detected")
            with np.errstate(all='ignore'):
>               test.check(dtype=dtype)
E               AssertionError:
E               Max |adiff|: 0
E               Max |rdiff|: 0
E               Bad results (1 out of 400) for the following points (in output 0):
E                                          76.                            175.                             14.                              1.                          20.456 =>
             nan !=              2.82846091362e-19  (rdiff                             0.)

dtype      = <class 'numpy.float64'>
sup        = <numpy.testing._private.utils.suppress_warnings object at 0x0000027A9E811CA0>
test       = <Data for ellip_harm_2: ellip>

scipy\special\tests\test_data.py:575: AssertionError
=================================================================================== short test summary info ===================================================================================
FAILED scipy/special/tests/test_data.py::test_local[<Data for ellip_harm_2: ellip>] - AssertionError:
============================================================= 1 failed, 1515 passed, 196 skipped, 23 xfailed, 1 xpassed in 31.16s =============================================================

@rgommers If we don't hear anything back, maybe time to close this issue as it seems to have resolved itself over time?  Is the above failure interesting to us or can it safely be ignored on cygwin?  if an actual issue, I can open a new ticket

Thanks for trying this @mckib2. If you get a working Cygwin build, then nothing is fundamentally broken I'd say, and this was either an issue with how the reporters tried to build SciPy or install its dependencies, or the issue was real and it got solved in the meantime.
So I'd say we can close it now. If we get a full reproducer of someone who still has an issue, we can reopen or open a new issue.

Thanks for trying this @mckib2. If you get a working Cygwin build, then nothing is fundamentally broken I'd say, and this was either an issue with how the reporters tried to build SciPy or install its dependencies, or the issue was real and it got solved in the meantime.
So I'd say we can close it now. If we get a full reproducer of someone who still has an issue, we can reopen or open a new issue.


Add confirmation page

Adding confirmation page to examples, with a new Sass folder for design patterns

The blue/green box with centered large white text feels like an element to me - it's used a lot around government

Hi @joelanman, @timpaul - this is ready to merge, once #40 has been merged.


gradient for GATConv layer is very slow

@show gradient(X -> loss(X, train_y), train_X) # line 45 in 'example/gat.jl'

This line takes more than 200s on CPU, but the forward pass takes less than 1s on the same CPU.

Computing gradient for the whole graph could take longer time. It is suggested to compute less than 64 nodes for gradient for each updates. A proper node number to update would be 32. I will release a new feature for node sampling to act like batch size in classical deep learning model. It will update gradient for some nodes in a graph randomly.

Check new version here. If you have any questions, it's welcome to reopen the issue.


Command to Run TPT and C-TPT

Hi,
I would like to explore your methods and reproduce the results. However, I couldn't find the command to reproduce the results for TPT and C-TPT. Is there a specific command or initialization I need to use?

https://github.com/Bala93/CLIPCalib/tree/test-time-prompt Please check this branch

Yes, I have checked it with the following two commands for the SaLs method on the DTD dataset:
bash scripts/adapt.sh 0 imagenet SGD_lr1e-1_B256_ep300 1 TR none RN50
bash scripts/eval.sh 0 imagenetv2 SGD_lr1e-1_B256_ep300 1 TR none RN50
I am getting:
Accuracy on test: 42.79
Calibration on test: ECE, CECE: 4.05, 1.08
I am just skeptical about whether I am doing it correctly or not because the results do not match the results mentioned in the paper for C-TPT.

Those commands are for checking the adapters based methods. You can refer to TPT repository.

Ok. Thanks For your Clarification

Hi,
In the TPT-main folder, within files like ctpt_classification_constrained.py and other main method files, you imported ECELoss and ClasswiseECELoss from utils.metrics. However, there is no metrics file under the utils folder to compute ECE and CECE, which caused a "no module" error. Therefore, I used the code from the utils files in the main branch to compute ECE and CECE, but I got mismatched results. Do you have a specific metrics file under the utils folder of TPT-main?

In all the three methods I saved the logits and obtained the calibration metrics separately.

How did you do that? Do you have specific code for it in your repository, or how did you accomplish it?

You can find calib summary code in repo. For saving logits, it should be already there in the training code.

You can also use that code, by giving the path of logit outputs from tpt

Thanks for pointing out the missing metric file, will add it in some time.

Added the file, let me know if it works now.

Thanks for updating it. Yes it works


Output layer question

The output layer in these networks is often a bottleneck, because you have to do a (batch_size, hidden_dim) by (hidden_dim, num_classes) dense matrix multiplication.  It doesn't seem like you'd get a speed up just by avoiding storing/multiplying by zeros -- are you doing any kinds of tricks here to reduce the cost of that operation?
Thanks
~ Ben

We have some ideas here based on approximate kNN methods.  Stay tuned.

Interesting -- are you thinking just for inference or for both inference and training?

It's a no-brainer for inference, it's a science project for training.
On Tue, Jun 12, 2018, 12:43 PM Ben Johnson<EMAIL_ADDRESS>wrote:

Interesting -- are you thinking just for inference or for both inference
and training?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/amzn/amazon-dsstne/issues/178#issuecomment-396709649,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARNK9qAznaN0s3AZHISltNTnAnIXJFaVks5t8BnQgaJpZM4UfT6H
.

Relevant code and paper, if you haven't seen it:
https://github.com/rdspring1/LSH_DeepLearning
I don't think they did it on GPUs or big models, but maybe interesting

Yep, I came up with roughly the same idea last Summer and then I read that
paper that fleshed it out even further last Fall.  My sparse input kernels
end up ~20x faster than SGEMM so their seeing more or less the same speedup
with LSH makes intuitive sense: one ends up memory-limited.  Older GPUs
would be a bear for this, but newer GPUs support arbitrary cuda streams and
they have much larger L2 caches so it shouldn't be all that hard to write.
On Tue, Jun 12, 2018 at 12:47 PM, Ben Johnson<EMAIL_ADDRESS>wrote:

Relevant code and paper, if you haven't seen it:
https://github.com/rdspring1/LSH_DeepLearning
I don't think they did it on GPUs or big models, but maybe interesting
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/amzn/amazon-dsstne/issues/178#issuecomment-396710808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARNK9vofNis0ZyK1YVvZrZtVIfuu6FnVks5t8BrIgaJpZM4UfT6H
.

Any updates on this?  I'm trying to find an example of a library that uses approximate kNN methods to speed up the output layer.


Lack of Windows support to be documented?

Currently packages/takomo/package.json seems to be the only place where supported OSs are defined.
Should the documentation clearly indicate this if this is a design decision? Specifically that Windows is not supported?
Heard this from a Windows user who luckily has WSL available. Many similar deployment tools are cross platform.

Lack of Windows support is also mentioned in getting started guide but should be stated more clearly.
Not supporting Windows was a deliberate choice that allowed me to focus more on implementing features.
I know that Takomo should support Windows. I'm also pretty sure that adding the support is possible and might not even require a huge effort, but for now, it needs to wait as there are other more important tasks to do.

Documentation now includes a big warning about Windows support. Created an issue to add WIndows support #88


Support for CUDA 11.1 and RTX 3090

System information

TensorFlow version: tf-nightly-gpu-2.5.0.dev20201201
System: Ubuntu 18.04
CUDA: 11.1
NVIDIA Driver: 455.23.05

I just installed tf-nightly-gpu-2.5.0.dev20201201 on my machine, and trying to run a test script, and errors shows below:

@jediyoda36,
Please take a look at this comment from issue #43947 with a similar error and let us know if it helps. Thanks!

@amahendrakar,
I'm not sure whether I can do this. I'm also using PyTorch in other project. If I change this soft link, will it affect PyTorch?

I've resolved this problem with the method mentioned in this issue


UI: Memory gauge in cluster dashboard is differs from cluster overview

Rancher versions:
rancher/server: v2.0.0-beta3
rancher/agent: v2.0.0-beta3
Infrastructure Stack versions:
kubernetes (if applicable): 1.10.0-rancher1
Docker version: (docker version,docker info preferred)
Client:
Version:      17.03.2-ce
API version:  1.27
Go version:   go1.7.5
Git commit:   f5ec1e2
Built:        Tue Jun 27 01:35:00 2017
OS/Arch:      linux/amd64
Server:
Version:      17.03.2-ce
API version:  1.27 (minimum version 1.12)
Go version:   go1.7.5
Git commit:   f5ec1e2
Built:        Tue Jun 27 01:35:00 2017
OS/Arch:      linux/amd64
Experimental: false
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
NAME="RancherOS"
VERSION=v1.3.0
ID=rancheros
ID_LIKE=
VERSION_ID=v1.3.0
PRETTY_NAME="RancherOS v1.3.0"
HOME_URL="http://rancher.com/rancher-os/"
SUPPORT_URL="https://forums.rancher.com/c/rancher-os"
BUG_REPORT_URL="https://github.com/rancher/os/issues"
BUILD_ID=
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
VMWare VMs
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
Rancher 2 Beta quickstart setup + 3 worker/etcd/controller nodes
Steps to Reproduce:
The cluster has 3 nodes a 8 GB RAM, as shown in the cluster list.

But the cluster dashboard shows only 7,7 GB ram (from one node?!)

version 2.0 master 4/17
This is a bug.

Version - 2.0 master 4/19
Verified fixed


LEGO: Pull request from lego/hb_2939_20201124120728222 to master

LEGO: Pull request from lego/hb_2939_20201124120728222 to master with localized lcls

#8286 was a full sync so closing this out.


ppo2: use time.perf_counter() instead of time.time() for time measurement

CLOCK_MONOTONIC(time.perf_counter()) is better than CLOCK_REALTIME(time.time()) when observing the duration of two events

lgtm


fix code block

@yoichinak : Thanks for your contribution! The author, @deguhath, has been notified to review your proposed change.

#sign-off

@JasonWHowell: I'm sorry - only the author of this article, @deguhath, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Allow setting n_jobs on tool invocation

It can be useful to set n_jobs indepently from the config file
For the sklearn reconstructors this requires setting n_jobs on every model, that is attached to the reconstructor
Fixes #2307

Maybe it also makes sense to set n_jobs=None for the models after training before pickling? So that the pickled models have n_jobs=None?


sourcing .bashrc from within a script

The .bashrc has a few lines of code that prevent sourcing it from a script. These lines are located at the top of the file and need to be commented out as follows:
# If not running interactively, don't do anything
#case $- in
#    *i*) ;;
#      *) return;;
#esac

@meli-lewis did you run into any issues with this? Do we source .bashrc in the script?


bug: commands doesnt work anymore

Version
v1.30.3
Describe the bug
after i made custom commands in user.json the extension wont be able to run commands (custom and system)
https://github.com/user-attachments/assets/9f348262-196f-4558-9682-5834277e42a1
Error:
█ CommandsController:execute: command not found  {
  "commandKey": "API"
}
█ ClientConfigSingleton: refreshed {"codyEnabled":true,"chatEnabled":true,"autoCompleteEnabled":true,"customCommandsEnabled":true,"attributionEnabled":false,"smartContextWindowEnabled":true,"modelsAPIEnabled":false}

Expected behavior
it should work
Additional context
No response

hello is this still an issue? if so please reopen and we'll investigate further


”RB:bulk Richardson number (dimensionless)“ issue

Where can I find the parameter description of the "RB" module?I want to use the "RB" module, but I can't find which weather variables to enter。Who can help to answer？Thanks a lot.

My apologies, there are no routines to compute RB (bulk Richardson number). This is because I never implemented a solution for vertical integration/differentiation for terms. To compute the bulk Richardson number, you have to know which array axis corresponds to the vertical on each variable, and align the vertical axes of the inputs. This would need some additional inputs when calling compute.
My recommendation is to implement the equation on your own according to its formula (you can find it here, for example). You can use this package to compute theta_v and T_v which you need for that equation.


Xiaomi Humidifier 3

Device model / 设备型号
zhimi.humidifier.ca6
Component version / 插件版本
2.2.6_0043
HA core version / HA版本
2023.11.3
Integrated mode / 集成方式
Automatic (自动模式)
The problem / 问题详情
Hello! I purchased Smartmi Humidifier 3. In the Home Assistant, the water level is constantly displayed at 1%. Although the status in MiHome is as shown in the screenshot. Can you help me?

Entity attributes / 实体属性
min_humidity: 30
max_humidity: 60
available_modes:
  - "Off"
  - Fav
  - Auto
  - Sleep
humidity: 60
mode: Fav
model: zhimi.humidifier.ca6
lan_ip: <IP_ADDRESS>
mac_address: C8:5C:CC:40:2E:22
entity_class: MiotHumidifierEntity
home_room: Гассия 21, 311 Спальня
miot_type: urn:miot-spec-v2:device:humidifier:0000A00E:zhimi-ca6:1
humidifier.on: true
humidifier.fault: 0
humidifier.fan_level: 0
humidifier.target_humidity: 60
humidifier.water_level: 1
humidifier.automatic_air_drying: true
humidifier.status: 2
other.actual_speed: 1100
other.country_code: 44
other.clean: false
other.self_clean_percent: 0
other.pump_state: false
other.pump_cnt: 1614
physical_controls_locked: false
screen.brightness: 2
alarm: true
environment.temperature: 25
environment.relative_humidity: 59
state_updater: cloud
sub_entities:
  - humidifier-2.water_level-7
  - other-7.actual_speed-1
  - alarm-4.alarm-1
  - other-7.clean-5
  - screen-5.brightness-2
  - environment-3.temperature-7
  - environment-3.relative_humidity-9
  - physical_controls_locked-6.physical_controls_locked-1
device_class: humidifier
friendly_name: Увлажнитель 2
supported_features: 1

Home Assistant Logs / 系统日志
No response

{
    "iid":7,
    "type":"urn:miot-spec-v2:property:water-level:0000003D:zhimi-ca6:1",
    "description":"Water Level",
    "format":"uint8",
    "access":[
        "read",
        "notify"
    ],
    "unit":"percentage",
    "value-range":[
        0, # min
        2, # max
        1  # step
    ]
}

The device specifications are defined by the manufacturer, and the water-level has been assigned an incorrect range. Perhaps you can try using tokens to integrate this device.

I have the same problem. Can I fix this myself?

I have the same problem. Can I fix this myself?

I just had to deal with it.

Faced the same issue, water level reports as a binary value: 1 or 0.

Is there any way to solve this problem without a token?

Faced the same issue, water level reports as a binary value: 1 or 0.

No, not as a binary value. There is a list of three values.
0 - empty
1 - normal
2 - full
This needs to be corrected in the hass-xiaomi-miot specification
The screenshot below shows changes in values within the range of 0-2. The manufacturer installed a different water level sensor in this humidifier, which detects only 3 levels, since there were frequent problems with the previous ones.

Faced the same issue, water level reports as a binary value: 1 or 0.

No, not as a binary value. There is a list of three values. 0 - empty 1 - normal 2 - full
This needs to be corrected in the hass-xiaomi-miot specification
The screenshot below shows changes in values within the range of 0-2. The manufacturer installed a different water level sensor in this humidifier, which detects only 3 levels, since there were frequent problems with the previous ones.

And how to fix it in hass-xiaomi-miot?

Faced the same issue, water level reports as a binary value: 1 or 0.

No, not as a binary value. There is a list of three values. 0 - empty 1 - normal 2 - full
This needs to be corrected in the hass-xiaomi-miot specification
The screenshot below shows changes in values within the range of 0-2. The manufacturer installed a different water level sensor in this humidifier, which detects only 3 levels, since there were frequent problems with the previous ones.

And how to fix it in hass-xiaomi-miot?

I don’t know, apparently the integration developers should do this.

@al-one +1, please see this: https://github.com/al-one/hass-xiaomi-miot/issues/1420#issuecomment-1869990274
it's not a % value, but 3 possible states:

0 - empty/min
1 - normal
2 - full/max