Flaky test: ProcessAsync_WorksForNestedCacheTagHelpers

Currently this test is flaky in the release/2.0.0 branch.
System.InvalidOperationException : An attempt was made to transition a task to a final state when it had already completed.
   at System.Threading.Tasks.TaskCompletionSource`1.SetException(Exception exception)
   at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.<CreateCacheEntry>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelper.<ProcessAsync>d__11.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.TagHelpers.CacheTagHelperTest.<ProcessAsync_WorksForNestedCacheTagHelpers>d__17.MoveNext() in C:\b\w\71ae3284d35ddee4\modules\Mvc\test\Microsoft.AspNetCore.Mvc.TagHelpers.Test\CacheTagHelperTest.cs:line 845

http://aspnetci/viewLog.html?buildId=364712&tab=buildResultsDiv&buildTypeId=Patch20_Win2012Universe
cc @ryanbrandenburg

@Eilon addressing this issue requires the following two changes:

https://github.com/aspnet/Common/commit/388c04ce5cb242865c432c481b23b85e14c7ce68
https://github.com/aspnet/Mvc/commit/9dc9381ae4cddf2661818014b6e95fae99019f4b

Both of these are source changes and therefore product issues.

Hmmm I don't want to risk breaking anything in 2.0.0 in terms of product changes, especially when customers haven't asked for it.
What would the risk be of disabling the test? Or is there any test-only change we can make to mitigate this? Like increasing timeouts or something?

We could skip it. See @natemcmaster's PR

I'm seeing other tests fail now too. I'm assuming these are all from the same issue, so I'm going to skip these too

CacheTagHelper_BubblesExpirationOfNestedTagHelpers
CacheTagHelper_CanCachePortionsOfViewsPartialViewsAndViewComponents

Yup, they're all related.

@pranavkm, is this fixed in dev branch?

@mkArtakMSFT yes, it's fixed in dev.

Great that this is fixed in dev. I'm closing the issue.


is it support charles map remote

charles map remote doc

You can get similar behavior by using the static_file_modifier:
https://github.com/google/martian/blob/master/static/static_file_modifier.go
On Thu, May 17, 2018, 8:39 PM 浮生<EMAIL_ADDRESS>wrote:

charles map remote doc
https://www.charlesproxy.com/documentation/tools/map-remote/
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/martian/issues/244, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADI-dYIauEESMlLkpYfeGdWjmoI4Q-Yks5tzkJYgaJpZM4UEFRk
.


metrics-server api-service is not listing in api groups

I have a Kubernetes cluster running in 1.9 version and deployed metrics server for hpa. Issue I am facing is,  not able to see metrics api service in kubectl get --raw "/apis/. I can see metrics server is getting data from heapster and able to see it in its endpoint. When I check hpa, can see it failing with below error.
Conditions:
  Type            Status  Reason                   Message
  ----            ------  ------                   -------
  AbleToScale     True    SucceededGetScale        the HPA controller was able to get the target's current scale
  ScalingActive   False   FailedGetResourceMetric  the HPA was unable to compute the replica count: unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)
  ScalingLimited  True    TooFewReplicas           the desired replica count is increasing faster than the maximum scale rate
Events:
  Type     Reason                        Age                  From                       Message
  ----     ------                        ----                 ----                       -------
  Warning  FailedComputeMetricsReplicas  49m (x13 over 55m)   horizontal-pod-autoscaler  failed to get cpu utilization: unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)
  Warning  FailedGetResourceMetric       28s (x111 over 55m)  horizontal-pod-autoscaler  unable to get metrics for resource cpu: unable to fetch metrics from API: the server could not find the requested resource (get pods.metrics.k8s.io)

api service status -
metrics-server service ip - <IP_ADDRESS>
[sujith@demo-k8s-server]$ kubectl get apiservice v1beta1.metrics.k8s.io -o yaml
apiVersion: apiregistration.k8s.io/v1beta1
kind: APIService
metadata:
  creationTimestamp: 2018-06-13T12:52:00Z
  name: v1beta1.metrics.k8s.io
  resourceVersion: "15003136"
  selfLink: /apis/apiregistration.k8s.io/v1beta1/apiservices/v1beta1.metrics.k8s.io
  uid: 8ff5f853-6f08-11e8-ac48-0a4adf35930a
spec:
  caBundle: null
  group: metrics.k8s.io
  groupPriorityMinimum: 100
  insecureSkipTLSVerify: true
  service:
    name: metrics-server
    namespace: kube-system
  version: v1beta1
  versionPriority: 100
status:
  conditions:
  - lastTransitionTime: 2018-06-13T12:52:00Z
    message: 'no response from https://<IP_ADDRESS>:443: Get https://<IP_ADDRESS>:443:
      dial tcp <IP_ADDRESS>:443: getsockopt: no route to host'
    reason: FailedDiscoveryCheck
    status: "False"
    type: Available
[sujith@demo-k8s-server]$

When I try to access metrics server from another pod, got below output
[sujith@demo-k8s-server]$ k exec -it php-apache-7ccc68c5cd-qqdtf sh
# curl -k https://<IP_ADDRESS>:443
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {},
  "status": "Failure",
  "message": "forbidden: User \"system:anonymous\" cannot get path \"/\".",
  "reason": "Forbidden",
  "details": {},
  "code": 403
}#

Are you control plane components able to communicate with pods and services?  This usually happens when running an overlay network that separates the API server from the pod/service networks.

@DirectXMan12  Yes, control plane components can able to connect with other services deployed in cluster.

you have other API services registered?

@DirectXMan12 yes, I have deployed apiservice for Coreos Dex. It is working pretty fine.
[sujith@demo-k8s-server]$ k get apiservice
NAME                                   AGE
v1.                                    93d
v1.apps                                93d
v1.authentication.k8s.io               93d
v1.authorization.k8s.io                93d
v1.autoscaling                         93d
v1.batch                               93d
v1.dex.coreos.com                      90d
v1.networking.k8s.io                   93d
v1.rbac.authorization.k8s.io           93d
v1.storage.k8s.io                      93d
v1beta1.admissionregistration.k8s.io   93d
v1beta1.apiextensions.k8s.io           93d
v1beta1.apps                           93d
v1beta1.authentication.k8s.io          93d
v1beta1.authorization.k8s.io           93d
v1beta1.batch                          93d
v1beta1.certificates.k8s.io            93d
v1beta1.events.k8s.io                  93d
v1beta1.extensions                     93d
v1beta1.metrics.k8s.io                 5h
v1beta1.policy                         93d
v1beta1.rbac.authorization.k8s.io      93d
v1beta1.storage.k8s.io                 93d
v1beta2.apps                           93d
v2beta1.autoscaling                    93d
[sujith@demo-k8s-server]$

@DirectXMan12 You are right, connectivity failing from control plane to metrics service.
[sujith@demo-k8s-server]$ docker exec -it 1fb09745f5e4 sh
/ # wget https://<IP_ADDRESS>:443
Connecting to <IP_ADDRESS>:443 (<IP_ADDRESS>:443)
wget: can't connect to remote host (<IP_ADDRESS>): No route to host
/ [sujith@demo-k8s-server]$ top

sounds like your overlay network is not set up correctly.  The control plane needs to be able to talk to either pod IPs (with a flag on the kubernetes API server) or service IPs.

Having similar problem:
E0627 19:03:06.012593       1 summary.go:97] error while getting metrics summary from Kubelet server1(SERVER_IP:10255): Get http://SERVER_IP:10255/stats/summary/: dial tcp SERVER_IP:10255: getsockopt: no route to host

If I add hostNetwork: true then it can connect to that port and receive metrics, but my ingress stop working on port 443 (because metrics-server also use it)
Any advice how to enable this "pod->node" request? I use calico for networking

You'll have to ask the calico folks.  I can't really provide support there.


Enforce inverted containment automatically

We can calculate the minimum scale required to ensure the panzoom element is large enough to keep the parent container invisible. This may not always be ideal, but it could be an option with the default set to true.

I don't think I want to get into this prediction. It sounds very risky.


Add --all option to some commands

Add a --all flag like in Lux which runs the command on all devices. Probably would need some limiting to like ~10 devices due to rate limiting,

Done! https://github.com/neroist/nova/commit/b0e7277826f8227bf2c2ffc6587f5b05869a3a32


Update Dart SDK to version 3

The chewie package only builds successfully with Dart SDK 3.0. This commit updates the documentation to be reflected on pub.dev. This commit does not change the fact that the package fails to build under Dart SDK 2.17 - 2.19.
Issue https://github.com/fluttercommunity/chewie/issues/752

@yangsfang Hold off on this PR, since I'm in the process of addressing it in wakelock_plus.

I just published version 1.7.0 which should now be directly compatible with at least Dart 2.18 and Flutter 3.3.0.


Notifications

I haven't seen a notification yet when new issues are available to vote on or other actions are required. Could some be included?
Granted, my nation is 2 hours old, so I apologize if there are and I just haven't seen one yet.

Hey, thanks for the suggestion. I will look into ways of getting notifications working soon.

It seems like

NationStates doesn't send any notifications in the current implementation
iOS background tasks can't reliably be scheduled to run at specific times (i.e. when the next issue is expected)

I'll try to see if the NationStates people want to collaborate on this one - if not, the only way to have notifications would be to run my own web service.


HLT command not getting detected

hlt command is not getting detected, even after it is getting opcode recignized


Converting text with numbers and words

When converting a string 10 Million to numbers the output is 1000000 instead of outputting 10000000.
'10 Million'.in_numbers
=> 1000000

Similarly if no number words are within the string the result is 0 instead of being 100.
'100'.in_numbers
=> 0

I'm not sure if this is the desired behavior but it would be nice if it could handle these type of scenarios.

see my latest commit
https://github.com/dimidd/numbers_in_words/commit/dafc82d6303e925ff3f2473a569d867a21306ac4

@dimidd Thank you for bring the fork to my attention. I will migrate my issue to the fork.

I just noticed that you do not have issues open so I'll continue here. I tested the latest version and it still seems to have an issue with a combination of numbers and number words. E.g.
'100 Million'.in_numbers
=> 1000000

Which should evaluate to 100000000.
However https://github.com/dimidd/numbers_in_words/commit/dafc82d6303e925ff3f2473a569d867a21306ac4 does handle the second scenario to correctly convert the number into a numerical value when no word numbers are present.

Moved issue to https://github.com/dimidd/numbers_in_words/issues/1


"Your First Tuari App" page is confusing and missing the "Build" step [docs]

Recently, I stuck upon Tauri and I found it very promising after reading its first pages. I needed exactly what it promises – "simple", fast, and small desktop application with a web frontend. So I decided to give it a try. My goal was "just" to build a basic Hello World application, given the tutorial a normal newbie would start from: https://tauri.studio/docs/getting-started/beginning-tutorial/. After an hour, I realized that the promises were good but the "end user" experience of actual building an app is just horrible (sorry but I don't have any better words to describe it). I thought that I do something wrong or was reading the wrong page.. However, after I watched a video of someone else did the same thing, namely, building his first app following that page, I realized that I'm not the only one. Here is the key moment that is 1:1 corresponds to me: https://www.youtube.com/watch?v=AsynWNbU0X0&t=1492s. Besides other confusion parts (if you rewind back) it shows how people are struggling when they are trying to understand how to build things with Tauri.
If you aren't familiar with rust / Tauri infrastructure, there are other confusing things in that page (and in the video you can see that confusion as well):

Install Tauri CLI package as a dev dependency.  What is 'local package' is supposed to mean in "If you decide to use Tauri as a local package ..."? (only while writing it, now I actually realized)
Tauri CLI as a cargo subcommand. What is "Tauri CLI"?
Install Tauri API Package as a Dependency What is "Tauri API"?

Basically, before introducing any fancy words and modules like Tauri API, CLI, etc that are specific to the infrastructure that is yet unknown, you'd better to give a short description on what it means and why should I care.
I hope you will watch the video and will understand that no matter how good your project is without adequate (not even good) documentation is just useless. After such a pain, I'm certainly switch to Electron as it doesn't cost that pain. Hope that helps you to improve. Thank you for your effort!

I'm new to using Tauri as well, and new technologies take some learning, but as a user of software, my computer's memory encourages you to stick with it a little while longer before jumping to a Chromium-based framework.

What is 'local package' is supposed to mean in "If you decide to use Tauri as a local package ..."?

Basically adding Tauri to your project's package.json or globally on your operating system. yarn add -D @tauri-apps/cli will add the dev dependency to your project's package.json while yarn global add @tauri-apps/cli will add it to your operating system. It's better to add it locally for better versioning control, and the local CLI can be called using yarn tauri while the global CLI can be used using just tauri.

What is "Tauri CLI"?

The command line interface for interfacing with Tauri via terminal. The docs on this could be found under the API -> CLI section of the website here. I agree this should be hyperlinked from the Your First Tauri App section.

What is "Tauri API"?

The way your frontend interfaces with the Rust. Similar to Electron's API that is used between frontend and NodeJS. The full docs for this for JS/TS can be found here, and Rust can be found here.
The "Your First Tauri App" section is really about setting up the project, agnostic to any framework you use (Vue, React, etc). Take a look at Tauri Awesome to get an idea of how to set up a boilerplate project for your chosen framework.

@FabianLars, it would be nice to see the drafts if they are available. Can hardly relate the pieces in the current version. Honestly, I don't know who wrote the current version but this the worst documentation I've seen so far in projects with such a big amount of stars (is that a 'star fever'?). I want to mention good examples of how "Build your first app" should look like. Just borrow and replace! No one would complain! ;)

https://neutralino.js.org/docs/getting-started/your-first-neutralinojs-app (at least how to build the project isn't missed completely)
https://www.electronjs.org/docs/latest/tutorial/quick-start (very nice and detailed explanation on every step with a good sum up at the end [in case you're lost anyway])

@allynsweet Thank you for such a comprehensive reply. It should help the purpose. I'll try it tomorrow again.

The "Your First Tauri App" section is really about setting up the project, agnostic to any framework you use...

Well...this is exactly what I needed – setting up and running my first Tauri app without frameworks obsession. And this is exactly the place where the special attention needs to be paid in helping people to go through details (surely without messing around with complicated frameworks on top of the already vague docs).
Also, I didn't find information about "project structure". Is there any?  I hope you don't expect people just to ignore it, right?" .rustc_info.json, tauri.conf.json, build.rs, Cargo.toml, CACHEDIR.TAG, God.. 🤯  Feels like a complete mess!

Just for comparison, attaching the one of Neutralinojs:

I know, Neutralinojs is probably far from being your 'real' competitive; yet it found its place among the others.

First off, while your comments and feedback are definitely very helpful and well-meaning they feel unnecessarily aggressive. We're all just volunteers, no one works on this full time and we've been all focusing on stability of the framework itself.
We're really doing our best here, so just be patient please.
Anyway, here is the WIP version of the new docs, no Getting-Started pages yet, but I'm working on these right as I write this.

First off, while your comments and feedback are definitely very helpful and well-meaning they feel unnecessarily aggressive.

Surely they are! Sorry for that. Didn't want to mean it 🙏 😇  (Verzeiht mir!)

We're all just volunteers, ...

Sure. I would say it is just about being (extremely) pity that you've done such a great job but spend so little time on expanding the things that would take an hour for those who know but for those who don't – would take the days.

But all files in the target folder are normal files generated by rust/cargo that are generated during compilation. Nothing to worry about and nothing we can change.

That's very good to know! That information will actually motivate me to take a couple of tutorials on Rust and make myself comfortable with those! :) Once again, thank you a lot for the precious info.
Btw, if I got a question where can I ask it? Stackoverflow with tauri tag? Probably polluting doc issues here isn't the best way to go...🥺

Btw, if I got a question where can I ask it? Stackoverflow with tauri tag? Probably polluting doc issues here isn't the best way to go...🥺

Our discord is where we're most active: https://discord.com/invite/tauri
Otherwise Github discussion is also available. I personally don't have a Stackoverflow account nor do I know that any of the team has one, but I guess your question would still be answered there too.


cutadapt inputs

Would you be opposed to adding logic to the cutadapt wrapper to assume if a list of length two is given that it is [R1, R2].
I am playing with dynamic files for the SRA project and I think this would be the easiest way to get cutadapt working.

Sure, I think that's reasonable.


[Bug]Items duplicating in the combat bar (not dropping upon death)

Describe the bug
This is a bug that can make it possible to duplicated items using SkillApi and the Combat bar mode. DUE TO /CLASS RELOAD (SKillapi is saving the items in the bar in the wrong way from my intuition)
   Whether or not to use the combat bar implementation. Details:
  - Specified slot becomes a toggle item
  - Can optionally move over or require interacting (left, right, or drop) to swap modes
  - Swaps between combat mode and passive mode
  - In combat mode, works like the classic skill bar
  - In passive mode, no skills are shown
  - Passive and combat modes each have their own stored contents
  - combat mode uses the skill bar settings
  combat: 'true'

Using this config ^
To Reproduce

Put items in your combat bar along your others skills (these are cast items) and /class Reload with the bar closed
Die with the bar open (so your skills are visible and your item in the slots 1-9)
Just respawn and you will keep the items that were stored in the bar, and on your death location it's just going to drop your items (so you get them twice)

These are all the cases where the duplication happens

If you reload with the bar closed, having an item in the combat bar and then dies with the bar open
If you reload with the bar open, having an item in the combat bar and then dies with the bar open

Duplication doesn't happen in these cases

If you reload with the bar closed, having an item in the combat bar and then dies with the bar closed
If you reload with the bar open, having an item in the combat bar and then dies with the bar closed

Expected behavior
It is supposed to drop all the items in your inventory whenever you die (so combat bar items / normal inventory-hotbar items)
Versions

Server Version: 1.12 - Using Mohist
Plugin Version: 1.98

This is issue is fixed in Dev Build 1.1.3


✨ Make core.#Exec.hosts editable in docker.#Run

What are you trying to do?
I want to set the hosts in a docker.#Run, but it is unfortunately not exposed because _exec is not mutable from the outside and therefore core.#Exec.hosts not editable.
Either delegate hosts from docker.#Run to _exec or make _exec publish and therefore accessible from outside. I personally prefer the second one to comply with CUE and make everything extendible.
Why is this important to you?
Realize commands like docker run --add-host=host.docker.internal:host-gateway.
How are you currently working around this?
Copying the hole docker.#Run definition and implemented one of the solutions described above.

Great suggestion!
Feel free to open a PR that includes this change :rocket:

Related to CUE, we are not longer working on this version so I'm closing this issue.


Requeue all inadmissible workloads in Cohort Tree

What type of PR is this?
/kind feature
What this PR does / why we need it:
Part of #79. We support hierarchical cohorts in the queue package, by requeueing all inadmissible workloads in the Cohort tree upon any events which may allow inadmissible workloads to be scheduled.
Special notes for your reviewer:
Once #3066 is resolved, we can add a unit test to make sure that all workloads in tree are moved. Until then, we have coverage via an integration test, and a unit test to cover the cycle-path in the queue package
Does this PR introduce a user-facing change?
NONE

/assign @macsko

/assign @macsko

thanks for the review

/lgtm

/assign @mimowo

/lgtm /approve Thanks!

Thanks for review! Sorry, updated after you lgtm'd, to make the test name consistent...


[Bug] Stream/Screen Share Doesn't Load When Clicking "Pop-Out".

Describe the Bug
When clicking "Watch Stream", the stream works fine when embedded directly in the main Discord client window, however, if you click the small "pop-out" button to separate the stream into a separate window, the stream audio continues to play, but the video sticks on the Discord loading animation loop. Making the feature unusable.
To Reproduce
Join a user's stream, then click the pop-out button.
I've since heard that this may be known already, but figured I'd post it anyway, seeing as I couldn't see it mentioned in this section at a cursory glance (though apologies if I have missed it!).

Can you try reinstalling and see if the issue persists? Should have been fixed as part of #417

Seems to be fixed now.
Sorry to bother you with old news. I submitted this back when it first happened, but I apparently got the wrong repo (I was posting to one specifically for the installer, which I didn't know was a separate thing), so by the time I got here, I realized it had already been posted in your link, and fixed.
Thanks again.


fixing #571

The help message was wrong when an environment variable was missing. I've changed it so the same string is used to lookup the variable and report it missing so that can't ever be broken again.  This does change it from loading the variables once at startup to loading them every time they are queried.  I assumed that isn't an issue, but I can change it to cache them if someone can see a problem with that.

Thumbs up!


WP4 Semantic mapper enchancement

Current Semantic mapper for WP4 uses laser scan to transform to pointcloud2. This has to be changed to not use laser to transform but create pointcloud2 base on robot boundingbox area.

ROS implementation done, moving to creation of network application

@adrianLIrobotics claims that this is a long time done, closing it :)


Update legacy.rst to avoid redirect chain

Summary of the changes / Why this is an improvement
Just a link update, currently the initial URL redirects from
https://cratedb.com/docs/reference/jdbc
to
https://cratedb.com/docs/reference/jdbc/
to
https://cratedb.com/docs/clients/jdbc/en/latest/
to
https://cratedb.com/docs/jdbc/en/latest/
This points to the last URL in the chain

thanks!


Very basic python3 compliancy

Just a bunch of relative imports.

Those changes allow me to use python 3.4 without issues (until now :p ).
Tests are not passing, mainly because properties (which is a dict) are not deterministic (so foo comes sometimes before bar, sometimes after, etc.), and thus the output bytes change at every run. That's a bit annoying, not sure how to have strong tests then.
It's supposed to be fully compatible with the current python 2 version.

Thanks for the effort and the update here! The tests worked for me in a python2 setting. With python3, I did see some of the failures you mentioned about bytes not matching, but I also see some other ones as well. Some look like python 2 and 3 incompatibilities, but the decoding test seemed to fail too. Do you get those too? Or is it something in my environment? Here's the trace from my end:
https://gist.github.com/rmarianski/99a2d6e16b6cad4f9313
About the testing strategy and checking if the bytes match, my preference is to have a very simple test, perhaps a feature with just a single property that checks that encoding the simplest input works. And maybe the same for decode. And then, I'd prefer to just have round trip tests to exercise the other cases that would encode the source data, decode it, and then verify that the result matches expectations based on the input.
Another option would be to have the encoder sort the properties before encoding them. I don't like that because it would add some overhead. Or maybe instead of doing that in the encoder, the tests could use their our own implementation of a dict like interface that returns the properties in the same order across python versions (probably just by sorting them first)
We could also consider changing the contract of the api to take a sequence of tuples instead of a dict, but that doesn't sound great to me either.
I think that transitioning most of the tests to be in a round trip style would make them more resilient to changes too, so I'd prefer to go down that route. If that sounds good to you, the testing work can be done in a separate pr, and then if the python3 work is rebased on top of that, the tests should theoretically all pass.

but I also see some other ones as well. Some look like python 2 and 3 incompatibilities, but the
decoding test seemed to fail too. Do you get those too? Or is it something in my environment?
Here's the trace from my end:

Yep, I have them too :)

I'd prefer to just have round trip tests to exercise the other cases that would encode the source data,
decode it, and then verify that the result matches expectations based on the input.

Sounds good to me, I'll make a proposal this way :)

Also, there are a bunch of pep8 fixes needed, do you want me to include them in this PR (but in dedicated commit), or should I refrain my pep8-compultion to another PR? :)

I'd prefer that the pep8 changes be done separately. I myself have been holding off on doing a sweeping change, but if you want to just make everything pep8 compliant first, and then base all these other changes off that, that sounds great to me. I don't know of any outstanding branches or changes currently floating around, so I don't think it'll be disruptive to do now. I can also add in a circleci task that will enforce pep8 compliance going forward.
Or if it's easier because you've already done some work here, after these branches/prs get merged a separate pass can be made to make everything pep8 compliant.

@rmarianski what do you think of last commit?

Looks good to me. Ok for me to merge to master?
I'm thinking of adding a more explicit requirement in setup.py for the protobuf alpha, because otherwise it didn't work for me with python3. ie: protobuf>=3.0.0a3.

I'm thinking of adding a more explicit requirement in setup.py for the protobuf alpha, because
otherwise it didn't work for me with python3. ie: protobuf>=3.0.0a3.

This choice is up to you, depending on whether you want to have a dependency on the alpha package. I think all the vector tile stack is sort of alpha at the end so I'd not mind going this way myself, but that's your choice :)

I'll leave it the way it is at the moment then, since I tried it locally and pip preferred to get the alpha 1 version anyway which didn't end up working for me.

Just merged the changes in, thanks!


CUDA 11

Hi @lilanxiao ,
Looks like this code can't be compiled with cuda11. Can you please have a look at it?

Hi @filaPro ,
I've only tested my code with Pytorch 1.5 and CUDA-Toolkit-10.2. But the problem is probably not the CUDA version, since I only use the most basic CUDA APIs. According to the home page of Pytorch, it supports CUDA 11 since 1.6 version. I assume that you complied the code with a newer Pytorch version.
I guess the Pytorch team has probably changed some APIs of its C++ backend in the 1.6 or 1.7, so that my code cannot be compiled anymore. I've seen a similar issue when I tried to compile some legacy code written at the time of Pytorch 1.0 with Pytorch 1.5. I saw tons of errors from the C++ backend of Pytorch. Simply updating the legacy code with newer APIs solved the issue. CUDA version didn't really matter.
I'm sorry that I don't have enough time to add support for a newer Pytorch, since I'm struggling with my own deadlines. I suggest you check the C++ APIs of Pytorch. I hope it would help.


Change start of work week from Mon to current day

I just came across this library and was trying to recreate a workweek view we had when migrating from angular to react. Our work week view started from the current day and ends on the prev day of next week.
So take today 8/25 Tues for example. Ideally we want the view to be 8/25 Tues, 8/26 Wed, 8/27 Thurs, 8/28 Fri, and 8/31 Mon. Do I change this in the localizer with work week view? A code snippet is greatly appreciated.

yes you can change this in the localizer. please see past issues for perhaps more context. thanks!

If you dont know how, you can do it like this:
	}; 	const sOfWeek = () => startOfWeek(new Date(), { weekStartsOn: getDay(new Date()) }); 	const localizer = dateFnsLocalizer({ 		format, 		parse, 		startOfWeek: sOfWeek, 		getDay, 		locales, 	});
im using it in week view with date fns.


Bug: adding a space in a text field, thats multiline, and inside a componentBlock erases the entire component

Hey there! I have a document field that adds a componentBlock called 'accordion'.  Running into a weird issue however - whenever I add a space in the text field with multiline:true on it, it saves but erases my accordion from the keystatic doc
My field:
fields.document({
  label: "Content",
  formatting: true,
  dividers: true,
  links: true,
  images: true,
  tables: true,
  componentBlocks: {
    accordion: component({
      preview: (args) => <AccordionPreview {...args} />,
      label: "Accordion",
      schema: {
        items: fields.array(
          fields.object({
            itemTrigger: fields.text({
              label: "Item Trigger",
              description:
                "The text that goes inside the accordion button. EX: A question",
            }),
            itemContent: fields.text({
              label: "Item Content",
              multiline: true,
              description:
                "The content of the accordion item. EX: An answer to a question",
            }),
          }),
          {
            label: "Accordion Items",
            itemLabel: (props) => props.fields.itemTrigger.value,
          }
        ),
      },
    }),
  },
});

I can add lots of items to my accordion, and it all works fine - its just when I add a new paragraph in the same text box, specifically the itemContent field, it deletes the component completely from the document

This is caused by a bug in Markdoc, it will go away once https://github.com/markdoc/markdoc/pull/470 is published


EVA-740 Update Open Targets pipeline for schema with clinical significance

Updated json schema submodule
Updated version in evidence string skeletons
Added clinical_significance to evidence string classes

Coverage increased (+0.5%) to 78.67% when pulling c3ff01cd0f999afedf144e9d4ecc42417fd331ed on tomdcsmith:json_schema_1.2.6 into 8c20e1a5fc94b30e6e447d7fd141feb2e6af38b7 on EBIvariation:master.


catcli: 0.7.0 -> 0.7.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for catcli is: "The command line catalog tool for your offline data"
meta.homepage for catcli is: "https://github.com/deadc0de6/catcli"
meta.changelog for catcli is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2/bin/catcli passed the binary check.

/nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2/bin/.catcli-wrapped passed the binary check.

2 of 2 passed binary check by having a zero exit code.

2 of 2 passed binary check by having the new version present in output.

found 0.7.2 with grep in /nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2

found 0.7.2 in filename of file in /nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2

directory tree listing: https://gist.github.com/7153db5364a51a7223e6bdc1734bf713

du listing: https://gist.github.com/96d16fcf8c4b4dca0d71aea93bfd8b01

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
catcli

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A catcli https://github.com/r-ryantm/nixpkgs/archive/36c6e47c703beb7e6db05879f6ed069a29454f8f.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2
ls -la /nix/store/wfrzj0yf0viidi9qlv1rci4ri44s2208-catcli-0.7.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

catcli

Maintainer pings
cc @petersjt014 for testing.

Result of nixpkgs-review pr 138098 run on x86_64-linux 1

1 package built:

catcli


feat(tabs): add tabs implementation

Add implementation of the tabs component

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.4 out of 5 committers have signed the CLA.:white_check_mark: nguyensomniac:white_check_mark: anantkamath:white_check_mark: chasestarr:white_check_mark: tajo:x: renovate[bot]You have signed the CLA already but the status is still pending? Let us recheck it.


⚠ Bofrost.be has degraded performance

In 046bb53, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 2120 ms

Resolved: Bofrost.be performance has improved in 929c1ea.


error: subprocess-exited-with-error

I used the "pip3 install tg-archive" to install, but got this error / these errors:
Collecting tg-archive
  Using cached tg-archive-1.1.3.tar.gz (28 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/vg/1rplx7gs1fg3scppn49c_vm40000gp/T/pip-install-6j1tgm6n/tg-archive_7fca1255502241658369350a782f07e7/setup.py", line 5, in <module>
          from tgarchive import __version__
        File "/private/var/folders/vg/1rplx7gs1fg3scppn49c_vm40000gp/T/pip-install-6j1tgm6n/tg-archive_7fca1255502241658369350a782f07e7/tgarchive/__init__.py", line 6, in <module>
          import yaml
      ModuleNotFoundError: No module named 'yaml'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I fixed the problem by looking at the list of 8 requirements. In the order listed, I installed each component individually. After installing all 8 prerequisites, I ran pip3 install tg-archive and it installed without errors. (So, of the 8 things I installed, I do not know which one fixed the error.)
This is the output from the successful install:
pip3 install tg-archive

Collecting tg-archive
  Using cached tg-archive-1.1.3.tar.gz (28 kB)
  Preparing metadata (setup.py) ... done
Collecting telethon==1.29.3 (from tg-archive)
  Downloading Telethon-1.29.3.tar.gz (548 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 548.9/548.9 kB 7.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: jinja2>=2.11.3 in /usr/local/lib/python3.10/site-packages (from tg-archive) (3.1.3)
Requirement already satisfied: PyYAML>=5.4.1 in /usr/local/lib/python3.10/site-packages (from tg-archive) (6.0.1)
Collecting cryptg==0.2.post2 (from tg-archive)
  Downloading cryptg-0.2.post2.tar.gz (16 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: Pillow>=8.3.2 in /usr/local/lib/python3.10/site-packages (from tg-archive) (10.2.0)
Requirement already satisfied: feedgen>=0.9.0 in /usr/local/lib/python3.10/site-packages (from tg-archive) (1.0.0)
Requirement already satisfied: python-magic>=0.4.24 in /usr/local/lib/python3.10/site-packages (from tg-archive) (0.4.27)
Requirement already satisfied: pytz>=2020.5 in /usr/local/lib/python3.10/site-packages (from tg-archive) (2024.1)
Collecting cffi>=1.0.0 (from cryptg==0.2.post2->tg-archive)
  Using cached cffi-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl.metadata (1.5 kB)
Collecting pycparser (from cryptg==0.2.post2->tg-archive)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Requirement already satisfied: pyaes in /usr/local/lib/python3.10/site-packages (from telethon==1.29.3->tg-archive) (1.6.1)
Requirement already satisfied: rsa in /usr/local/lib/python3.10/site-packages (from telethon==1.29.3->tg-archive) (4.9)
Requirement already satisfied: lxml in /usr/local/lib/python3.10/site-packages (from feedgen>=0.9.0->tg-archive) (5.1.0)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.10/site-packages (from feedgen>=0.9.0->tg-archive) (2.8.2)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/site-packages (from jinja2>=2.11.3->tg-archive) (2.1.3)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.10/site-packages (from python-dateutil->feedgen>=0.9.0->tg-archive) (1.16.0)
Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.10/site-packages (from rsa->telethon==1.29.3->tg-archive) (0.5.1)
Using cached cffi-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl (182 kB)
Building wheels for collected packages: tg-archive, cryptg, telethon
  Building wheel for tg-archive (setup.py) ... done
  Created wheel for tg-archive: filename=tg_archive-1.1.3-py3-none-any.whl size=29935 sha256=8f196f93aa0b4ad5248d243810cbbd972947f7c2ddcde30f6bdbf7faa45c508f
  Stored in directory: /Users/kitzume/Library/Caches/pip/wheels/aa/ed/78/5c2a976fc88541003e59fb239c85bcfe1cdd4a343e152d19b3
  Building wheel for cryptg (setup.py) ... done
  Created wheel for cryptg: filename=cryptg-0.2.post2-cp310-cp310-macosx_13_0_x86_64.whl size=11323 sha256=f7f4b2b76c632a590db7ac5a9782db8ead9e3dceb4279f7fbcd2c32b9c6b27e4
  Stored in directory: /Users/kitzume/Library/Caches/pip/wheels/4f/05/ae/f656a72c6b4b0a246ffae466ee431e51d8303094e319cdab12
  Building wheel for telethon (pyproject.toml) ... done
  Created wheel for telethon: filename=Telethon-1.29.3-py3-none-any.whl size=619118 sha256=5f73c293e86105c2e7a02f6dabd0a6d7d0c5fa599d40aed61eceb799e6bcf343
  Stored in directory: /Users/kitzume/Library/Caches/pip/wheels/91/20/3d/a936adecac5192dd8ad23ff121636189800c12c91410a839c5
Successfully built tg-archive cryptg telethon
Installing collected packages: pycparser, telethon, cffi, cryptg, tg-archive
  Attempting uninstall: telethon
    Found existing installation: Telethon 1.34.0
    Uninstalling Telethon-1.34.0:
      Successfully uninstalled Telethon-1.34.0
  Attempting uninstall: cryptg
    Found existing installation: cryptg 0.4.0
    Uninstalling cryptg-0.4.0:
      Successfully uninstalled cryptg-0.4.0
Successfully installed cffi-1.16.0 cryptg-0.2.post2 pycparser-2.21 telethon-1.29.3 tg-archive-1.1.3


[BUG]: HRMS localisation is not done

Describe the bug
The HRMS module is used to create employees of the court - judges, bench clerks, typists etc.. While the initial load of users will be via scripts, the UI can be used to create users ad-hoc. The HRMS module localisation is not done in UAT.
To Reproduce
Steps to reproduce the behavior:

Go to https://dristi-kerala-uat.pucar.org/workbench-ui/employee
Login as a super user or a user with HRMS_ADMIN role
See the home screen with the workbench and HRMS cards
None of the labels are localised.

Expected behavior
User readable text to be displayed for workbench and HRMS cards. Ensure that HRMS labels and workbench labels are part of the localisation sheet. These can be borrowed from DIGIT.  @devarajd94 @Ramu-kandimalla @suresh12
Screenshots

Attaching the HRMS localisation sheet from the base DIGIT product here. Someone will need to go through and check which strings are required and then delete the rest of the fields. These should be added to the master localisation sheet and translated into Malayalam. @devarajd94 @suresh12 @Taherabharmal @anirudh-0

hi @Taherabharmal
Some localization text are missing; could you please add the localization text for the following codes?
link  : https://docs.google.com/spreadsheets/d/1E98v5eVrdIZKAyTsbeqU2_OIRnt6gmEMSVDkdO1WNpw/edit?gid=0#gid=0
cc @Ramu-kandimalla

Requested access.
@devarajd94 can you pick this up please?

Access has been provided . Can you please check it now once ?

Actioned. Please update

Hi @devarajd94  Please update the data in sheet 3

Hi @maruthiPhanendra, Tested in dpg-dev env, localisations are missing mentioned below:

COMMON_MASTERS_DEPARTMENT_JUDICIARY_DEPARTMENT

ACCESSCONTROL_ROLES_ROLES_WORKBENCH_ADMIN
ACCESSCONTROL_ROLES_ROLES_ADVOCATE_APPLICATION_VIEWER
ACCESSCONTROL_ROLES_ROLES_ADVOCATE_VIEWER

CS_PROFILE_EMAIL_ERRORMSG

ACCESSCONTROL_ROLES_ROLES_WORKBENCH_ADMIN
ACCESSCONTROL_ROLES_ROLES_ADVOCATE_APPLICATION_VIEWER
ACCESSCONTROL_ROLES_ROLES_ADVOCATE_VIEWER

COMMON_MASTERS_DESIGNATION_DESIGN_28
COMMON_MASTERS_DESIGNATION_DESIGN_27
COMMON_MASTERS_DESIGNATION_DESIGN_26
COMMON_MASTERS_DESIGNATION_DESIGN_25

MDMS_ADD_V2
WBH_BOOLEAN_VALUE_FALSE
WBH_BOOLEAN_VALUE_TRUE
WBH_ERROR_REQUIRED
WBH_ADD_MDMS_ADD_ACTION

WBH_MDMS_SEARCH_VALIDATION_FIELD_VALUE_PAIR

WBH_ADD_MDMS_UPDATE_ACTION
Enable and Disable MAsters localisation missing buttons and pop up
DELAY_CONDONATION
CHECKOUT_REQUEST
BAIL_BOND
PRODUCTION_DOCUMENTS

UI AND LOCALISATIONS :

Edit profile localisations is also missing:

cc: @rajeshcherukumalli @Ramu-kandimalla

hi @devarajd94  , can you please provide localization text  for sheet 4
https://docs.google.com/spreadsheets/d/1E98v5eVrdIZKAyTsbeqU2_OIRnt6gmEMSVDkdO1WNpw/edit?usp=sharing

hi @devarajd94  , can you please give localization text for newly added codes(from 241 ) in newwords sheet  a
https://docs.google.com/spreadsheets/d/1E98v5eVrdIZKAyTsbeqU2_OIRnt6gmEMSVDkdO1WNpw/edit?gid=186595951#gid=186595951

Hi @Ramu-kandimalla, tested the localisations in dpg-dev env working as expected, but the tool tips are not updated.
Attaching the jam video for reference: https://jam.dev/c/c4c158a8-c301-48a5-ab4e-baa8b278ebea
cc : @rajeshcherukumalli

Hi @maruthiPhanendra, few localisations are missing in uat env in hrms card:

cc : @Ramu-kandimalla @rajeshcherukumalli

Tested in uat env working as expected, but the tool tips are not updated.
Attaching jam video for reference: https://jam.dev/c/7cb85881-6050-42fa-98cf-a539884540c4
cc : @Ramu-kandimalla @rajeshcherukumalli


Net::SSH - Deprecation warning for option :paranoid

since Net::SSH version 4.2.0:
:paranoid is deprecated, please use :verify_host_key. Supported Both :paranoid and :verify_host_key were specified.  :verify_host_key takes precedence, :paranoid will be ignored.
This change removes the deprecation warning for the current Net::SSH version and supports older versions of Net::SSH, too.

Coverage decreased (-0.03%) to 90.089% when pulling c5a76961823fe108c2b84c6701f9cb9064187d63 on webhoernchen:master into 3c851a4faee46dd1d0682642632c96e165329c7c on matschaffer:master.


Switch SP and memory offset to uint32

There are some confusing code in the source wasm_exec.js which is about forcing unsigned numbers. The memory offset and stack pointer should both be uint32 not int32 where possible.
This is the correct way to force unsigned in go. The javascript does it via sp >>>= 0; which can be wholesale removed here as it has no effect, regardless of if the variable types are changed.
https://github.com/golang/go/commit/9848e93cb76f068b97e8ea342c33cc09b553790f

Yes, fair point. I set out to mimic as much of the original wasm_exec.js as possible to get things working quickly and spot deviations more easily. Now that things are starting to work, I'll sort things like this out 👍

sounds good. PS I'm starting a reference doc here and will continue tomorrow https://github.com/tetratelabs/wazero/pull/621/files just in case the notes help

Very nice! I've pushed some changes including the change to uint32 for offset and length.

thanks!


better names for the upload warning dialog buttons #3494

Description (required)
Changed the text shown for the dialog buttons in the following places which are the two warnings shown when a user tries to upload a duplicate or bad picture.
Fixes #{GitHub issue number} {Github issue title}
Give better names for the upload warning dialog buttons #3494
Tests performed (required)
Manual test

Codecov Report

Merging #3519 into master will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##             master   #3519      +/-   ##
===========================================
- Coverage      7.19%   7.19%   -0.01%
  Complexity      297     297
===========================================
  Files           264     264
  Lines         11839   11843       +4
  Branches        963     963
===========================================
  Hits            852     852
- Misses        10918   10922       +4
  Partials         69      69

Impacted Files
Coverage Δ
Complexity Δ

...upload/mediaDetails/UploadMediaDetailFragment.java
0.00% <0.00%> (ø)
0.00 <0.00> (ø)

Continue to review full report at Codecov.

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

@hudlerr your description should read Fixes #3494 for the original issue to be closed by the merging of this PR, kindly edit your description to show this


fix error message with unwrapping the root cause

Description
Unwrap the root cause to return when agent execution gets an exception.
Issues Resolved
resolve #2443
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

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

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jngz-es Shall we also backport this PR to 2.14 and 2.15 branch? The multi node IT is currently excluded for search index tool.


patch: Add dynamic execution flag to emcc build to allow for wasm-unsafe-eval in csp

Should help address https://github.com/rive-app/rive-wasm/issues/131
Here, folks who set CSP settings can add wasm-unsafe-eval and should be able to still get WASM executing and Rives working in their web apps.
If this takes, we'll document this in our JS runtimes gitbook section

Could you add a note about what is causing this error in Rive, and what it means for our code to enable wasm-unsafe-eval? I read that and it sounds scary to enable 😱

@csmartdalton yeah good point! Sorry, didn't really document the issue clearly. I updated the description.
We're not enabling any wasm-unsafe-eval on our side; this is a CSP policy attribute set from the user side of things on their web apps if they decide to set content security policies so that their apps aren't blocking our WASM from running


0 processes reported in log

Describe the bug
A clear and concise description of what the bug is.

Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

take this as example:
I1129 09:39:10.841974       1 metric_collector.go:132] energy from pod/container (0 processes): name: kube-state-metrics-6d68f89c45-xbjsv/kube-rbac-proxy-main namespace: monitoring
        cgrouppid: 0 pid: [] comm:
        ePkg (mJ): 1323 (1323) (eCore: 1323 (1323) eDram: 1330 (1330) eUncore: 0 (0)) eGPU (mJ): 0 (0) eOther (mJ): 0 (0)
        eDyn (mJ): 0 (0)
        avgFreq: 0.00
        CPUTime:  0 (0)
        counters: map[cache_miss:0 (0) cpu_cycles:0 (0) cpu_instr:0 (0)]
        cgroupfs: map[cgroupfs_cpu_usage_us:0 (401324190) cgroupfs_ioread_bytes:0 (0) cgroupfs_iowrite_bytes:0 (0) cgroupfs_memory_usage_bytes:0 (25673728) cgroupfs_system_cpu_usage_us:0 (176419080) cgroupfs_user_cpu_usage_us:0 (224905109)]
        kubelets: map[container_cpu_usage_seconds_total:0 (401) container_memory_working_set_bytes:0 (25673728)]

it's reset from
I1129 09:39:10.544729       1 container_metric.go:123] ---reset--kube-state-metrics-6d68f89c45-xbjsv--kube-rbac-proxy-main

but not reach container_hc_collector.go:121 (which do the CurrProcess++) , this means
no process or container read from eBPF at al...

Is BPF running?

I think so as I have one log
I1130 00:11:44.296708       1 bcc_attacher.go:131] Successfully load eBPF module with option: [-DNUM_CPUS=8 -DCPU_FREQ -DSET_GROUP_ID]

@jichenjc can you post the beginning of all the logs till exporter.go:202] Started Kepler ?

I1130 01:00:08.032892       1 exporter.go:149] Kepler running on version: v0.3-210-g280152f-dirty
I1130 01:00:08.032983       1 config.go:124] using gCgroup ID in the BPF program: true
I1130 01:00:08.033004       1 config.go:125] kernel version: 4.18
I1130 01:00:08.033040       1 slice_handler.go:145] InitSliceHandler: &{map[] /sys/fs/cgroup/kubepods.slice /sys/fs/cgroup/kubepods.slice /sys/fs/cgroup/kubepods.slice}
I1130 01:00:08.033059       1 bcc_attacher.go:143] hardeware counter metr true
I1130 01:00:08.059116       1 bcc_attacher.go:143] hardeware counter metr true
I1130 01:00:08.059161       1 utils.go:38] Available counter metrics: [cpu_cycles cpu_instr cache_miss]
I1130 01:00:08.059190       1 utils.go:39] Available cgroup metrics from cgroup: [cgroupfs_cpu_usage_us cgroupfs_system_cpu_usage_us cgroupfs_user_cpu_usage_us cgroupfs_ioread_bytes cgroupfs_iowrite_bytes cgroupfs_memory_usage_bytes]
I1130 01:00:08.059206       1 utils.go:40] Available cgroup metrics from kubelet: [container_cpu_usage_seconds_total container_memory_working_set_bytes]
I1130 01:00:08.059210       1 utils.go:41] Available I/O metrics: [bytes_read bytes_writes]
I1130 01:00:08.059218       1 lr.go:167] LR Model (AbsModelWeight): no config
I1130 01:00:08.059224       1 model.go:76] Model AbsModelWeight initiated (false)
I1130 01:00:08.059227       1 lr.go:158] getWeightFromServer failed, using InitModelURL:https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-server/main/tests/test_models/AbsComponentModelWeight/Full/KerasCompWeightFullPipeline/KerasCompWeightFullPipeline.json to load
I1130 01:00:08.417902       1 lr.go:164] LR Model (AbsComponentModelWeight) Weight: map[core:{{17.49994468688965 map[cpu_architecture:map[Alder Lake:{0.5408945679664612} Broadwell:{17.9639892578125} Cascade Lake:{-0.49166440963745117} Coffee Lake:{0.5166589617729187} Haswell:{-0.5789095163345337} Ivy Bridge:{-0.024028241634368896} Sandy Bridge:{0.5239214301109314} Sky Lake:{0.4193417429924011}]] map[cpu_cycles:{6.85713664e+09 7.560771917192364e+18 -0.11352460086345673} cpu_instr:{3.374244864e+09 8.408530291701842e+17 -0.414739191532135} cpu_time:{192019.5 5.2761312e+08 -0.06457684189081192}]}} dram:{{17.49994468688965 map[cpu_architecture:map[Alder Lake:{-0.11559933423995972} Broadwell:{16.972564697265625} Cascade Lake:{0.5505847334861755} Coffee Lake:{-0.4564790725708008} Haswell:{-0.13912856578826904} Ivy Bridge:{-0.018331050872802734} Sandy Bridge:{-0.6695247888565063} Sky Lake:{0.29698115587234497}]] map[cache_miss:{9.329199e+06 2.2145245642752e+13 -0.4680119752883911} container_memory_working_set_bytes:{253952 1.93474854912e+11 0.6805805563926697}]}}]
I1130 01:00:08.418001       1 model.go:76] Model AbsComponentModelWeight initiated (true)
I1130 01:00:08.418011       1 lr.go:167] LR Model (DynModelWeight): no config
I1130 01:00:08.418015       1 model.go:76] Model DynModelWeight initiated (false)
I1130 01:00:08.418019       1 lr.go:158] getWeightFromServer failed, using InitModelURL:https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-server/main/tests/test_models/DynComponentModelWeight/CgroupOnly/ScikitMixed/ScikitMixed.json to load
I1130 01:00:08.418015       1 model.go:76] Model DynModelWeight initiated (false)
I1130 01:00:08.418019       1 lr.go:158] getWeightFromServer failed, using InitModelURL:https://raw.githubusercontent.com/sustainable-computing-io/kepler-model-server/main/tests/test_models/DynComponentModelWeight/CgroupOnly/ScikitMixed/ScikitMixed.json to load
I1130 01:00:08.575966       1 lr.go:164] LR Model (DynComponentModelWeight) Weight: map[dram:{{5318.157697416588 map[] map[bytes_read:{0 0 0} bytes_writes:{7.841098405047592e+16 1.0766045667937836e+36 0} cgroupfs_cpu_usage_us:{1.0056068008622782e+07 1.40009411083803e+14 1446.1905640274801} cgroupfs_memory_usage_bytes:{1.944592404177567e+18 1.5694324114250333e+37<PHONE_NUMBER>36714} cgroupfs_system_cpu_usage_us:{354378.9946563031 1.3693308434958022e+11 2808.988723422464} cgroupfs_user_cpu_usage_us:{1.0056068008622782e+07 1.40009411083803e+14 0}]}} pkg:{{5326.461712554309 map[] map[bytes_read:{0 0 0} bytes_writes:{7.841098405047592e+16 1.0766045667937836e+36 0} cgroupfs_cpu_usage_us:{1.0056068008622782e+07 1.40009411083803e+14 0} cgroupfs_memory_usage_bytes:{1.944592404177567e+18 1.5694324114250333e+37<PHONE_NUMBER>7247224} cgroupfs_system_cpu_usage_us:{354378.9946563031 1.3693308434958022e+11 2814.0186059477487} cgroupfs_user_cpu_usage_us:{1.0056068008622782e+07 1.40009411083803e+14 1452.6093109776657}]}}]
I1130 01:00:08.576026       1 model.go:76] Model DynComponentModelWeight initiated (true)
I1130 01:00:08.576035       1 exporter.go:164] Initializing the GPU collector
perf_event_open: No such file or directory
I1130 01:00:10.978569       1 bcc_attacher.go:90] failed to attach perf event cpu_cycles: failed to open bpf perf event: no such file or directory
perf_event_open: No such file or directory
I1130 01:00:10.978639       1 bcc_attacher.go:90] failed to attach perf event cpu_instr: failed to open bpf perf event: no such file or directory
perf_event_open: No such file or directory
I1130 01:00:10.978699       1 bcc_attacher.go:90] failed to attach perf event cache_miss: failed to open bpf perf event: no such file or directory
I1130 01:00:10.978715       1 bcc_attacher.go:131] Successfully load eBPF module with option: [-DNUM_CPUS=8 -DCPU_FREQ -DSET_GROUP_ID]
I1130 01:00:10.996339       1 node_energy_collector.go:54] Node components power model collection is supported
I1130 01:00:10.997136       1 exporter.go:202] Started Kepler in 2.96429336s

ok, I will check what I can do at the place you pointed out,actually ,seems the cgroup ID is not calculated correctly (I added some logs in GetContainerID function , will paste update when I have more clear answer

take following as example, the cgroup ID not reported every loop of updateBPFMetrics
sometime it reports then we are able to get container info from the cgroup BUT sometimes it does not
see below, I print from HC collector logs and see
I1201 00:41:00.405510  ==> this time it reports
I1201 00:41:03.141720  ==> this time no report in eBPF layer
is it because it's inactive sometime so eBPF not able to find it ?
I1201 00:41:00.181040       1 container_hc_collector.go:122] ----kube-scheduler-jitest42.novalocal---kube-scheduler--0
I1201 00:41:00.181098       1 resolve_container.go:193] getContainerIDFromPath with<PHONE_NUMBER>:277829:true
I1201 00:41:00.181142       1 container_hc_collector.go:81] ==7b1d84ec7c2a857c92eee168ea9884a082969d755fb5500886f25a784e03efec==4295008359
I1201 00:41:00.181180       1 container_hc_collector.go:122] ----node-exporter-fsgcl---kube-rbac-proxy--0
I1201 00:41:00.181238       1 resolve_container.go:193] getContainerIDFromPath with<PHONE_NUMBER>:278755:true
I1201 00:41:00.181272       1 container_hc_collector.go:81] ==system_processes==4295011629
--
        kubelets: map[container_cpu_usage_seconds_total:0 (574) container_memory_working_set_bytes:0 (23068672)]

I1201 00:41:00.405510       1 metric_collector.go:132] energy from pod/container (1 processes): name: node-exporter-fsgcl/kube-rbac-proxy namespace: monitoring
        cgrouppid:<PHONE_NUMBER> pid: [277829] comm: kube-rbac-proxy
        ePkg (mJ): 1323 (1323) (eCore: 1323 (1323) eDram: 1330 (1330) eUncore: 0 (0)) eGPU (mJ): 0 (0) eOther (mJ): 0 (0)
        eDyn (mJ): 0 (0)
        avgFreq: 0.00
--
        kubelets: map[container_cpu_usage_seconds_total:0 (55003) container_memory_working_set_bytes:0 (439934976)]

I1201 00:41:03.141720       1 metric_collector.go:132] energy from pod/container (0 processes): name: node-exporter-fsgcl/kube-rbac-proxy namespace: monitoring
        cgrouppid:<PHONE_NUMBER> pid: [277829] comm: kube-rbac-proxy
        ePkg (mJ): 1323 (2646) (eCore: 1323 (2646) eDram: 1330 (2660) eUncore: 0 (0)) eGPU (mJ): 0 (0) eOther (mJ): 0 (0)
        eDyn (mJ): 0 (0)
        avgFreq: 0.00
--
        kubelets: map[container_cpu_usage_seconds_total:0 (55003) container_memory_working_set_bytes:0 (439934976)]

I1201 00:41:06.149213       1 metric_collector.go:132] energy from pod/container (0 processes): name: node-exporter-fsgcl/kube-rbac-proxy namespace: monitoring
        cgrouppid:<PHONE_NUMBER> pid: [277829] comm: kube-rbac-proxy
        ePkg (mJ): 1323 (3969) (eCore: 1323 (3969) eDram: 1330 (3990) eUncore: 0 (0)) eGPU (mJ): 0 (0) eOther (mJ): 0 (0)
        eDyn (mJ): 0 (0)
        avgFreq: 0.00
--

--
I1201 00:41:09.170386       1 resolve_container.go:193] getContainerIDFromPath with<PHONE_NUMBER>:2886262:true
I1201 00:41:09.170391       1 container_hc_collector.go:81] ==system_processes==4294975170
I1201 00:41:09.170396       1 container_hc_collector.go:122] ----system_processes---system_processes--15
I1201 00:41:09.170405       1 resolve_container.go:193] getContainerIDFromPath with<PHONE_NUMBER>:277829:true
I1201 00:41:09.170409       1 container_hc_collector.go:81] ==7b1d84ec7c2a857c92eee168ea9884a082969d755fb5500886f25a784e03efec==4295008359
I1201 00:41:09.170415       1 container_hc_collector.go:122] ----node-exporter-fsgcl---kube-rbac-proxy--0
I1201 00:41:09.170490       1 resolve_container.go:193] getContainerIDFromPath with<PHONE_NUMBER>:577:true
I1201 00:41:09.170507       1 container_hc_collector.go:81] ==system_processes==4294967297
--
        kubelets: map[container_cpu_usage_seconds_total:0 (55003) container_memory_working_set_bytes:233472 (440168448)]

I1201 00:41:09.219138       1 metric_collector.go:132] energy from pod/container (1 processes): name: node-exporter-fsgcl/kube-rbac-proxy namespace: monitoring
        cgrouppid:<PHONE_NUMBER> pid: [277829] comm: kube-rbac-proxy
        ePkg (mJ): 1323 (5292) (eCore: 1323 (5292) eDram: 1330 (5320) eUncore: 0 (0)) eGPU (mJ): 0 (0) eOther (mJ): 0 (0)
        eDyn (mJ): 0 (0)

it can be found again after a few seconds ...


Enabling redis on more than one site messes up the sites.

Enabling redis on more than one site messes up the sites.
I've installed ee 3.3.1 on a fresh Debian 8.1 VPS.
Next I've created 4 sites on that VPS:
ee site create mysite1.com --wpredis
ee site create mysite2.com --wpredis
ee site create mysite3.com --wpredis
ee site create mysite4.com --wpredis

Next I log in on all the 4 sites and I enable the "redis object cache" on the first site.
As soon as I enable the "redis object cache" on the second site, I get logged of that second site and it is not available anymore. When going to 'mysite2.com' it redirects to 'mysite1.com'.
The same happens for the third and the fourth site as soon as I enable the "redis object cache".
Note that I started from a fresh Debian 8.1 VPS.
This is a major issue with the redis cache.
How to fix this?
Trying to disable redis is not successful.
ee site update mysite1.com --wp
ee site update mysite2.com --wp
ee site update mysite3.com --wp
ee site update mysite4.com --wp
ee clean --all

@ddelaey , please post your support questions at the community forum here: http://community.rtcamp.com/
This page is for discussions about the development of EE.

@rjdp
This is not just a question, it's reporting a bug in EE!
Correct me if I'm wrong but bugs are supposed to be reported here I guess?

@ddelaey you should confirm it is a bug with the community before opening an issue here. Many times people post here with issues that end up not being a bug in EE.

@bigwilliam
From the description I made It is pretty clear this is a bug don't you think.

@ddelaey Sorry but it was not clear. All too often people post here with community questions. You posted a question: "How do I fix this?" and you didn't "report" log files or evidence. In my opinion this looks like a community post.
Albeit you are right, there must be a bug here. I duplicated what you did (on Ubuntu), and I can confirm that this is happening.

See also the discussion at: http://community.rtcamp.com/t/enabling-redis-on-more-than-one-site-messes-up-the-sites/4893
Anyway, I think it's also a matter of having clear and detailed documentation. Plus EE should be able to handle this automatically without any manual editing IMO.
Can the EE engineers comment on this please?

Yep. This is something we should have handled on our end.
We will release a patch soon. Patch will do same thing as discussed in community thread:
define( 'WP_CACHE_KEY_SALT', 'sitename:' );
It will add sitename specified to ee site create command as cache key salt.
We hope to release fix tomorrow by this time.
Sorry everyone for inconvenience.

@rahul286 Thanks for picking this up :-)

@Prabuddha @harshadyeola
I've updated to V3.3.2 and I get following issue:
/home/david# ee -v
EasyEngine v3.3.2
Copyright (c) 2015 rtCamp Solutions Pvt. Ltd.

/home/david# ee site create myothersite.com --wpredis
Redis is experimental feature and it may not work with all CSS/JS/Cache of your site.
You can disable it by changing cache later.
Do you wish to enable Redis now for myothersite.com?
Type "y" to continue [n]:y
Unable to Search string SCRIPT_FILENAME in /etc/nginx/fastcgi_params

What's happening?
Kind regards,
David

@ddelaey  , looks like /etc/nginx/fastcgi_params is missing in your nginx installation , try placing a generic fastcgi_params file at  /etc/nginx/ like the one at here , if this doesn't Fixes it , plz  continue this discussion at [rtcamp community forum] (community.rtcamp.com)

The fastcgi_params  file was renamed to fastcgi_params.old , but no new fastcgi_params  file was created.
The nginx.conf  file was renamed to nginx.conf.old , but no new nginx.conf `` file was created. The only thing I did was  ee update andee site create ```, nothing else.
Can this be an issue/bug in ee?

@ddelaey

The fastcgi_params file was renamed to fastcgi_params.old, but no new fastcgi_params file was created.
have you renamed this file by yourself? It is installed when nginx-custom package is installed in your system.
Is there any reason you have renamed this file?

@harshadyeola
I did not create the .old files myself.
When doing an ls -l  at /etc/nginx  I saw that fastcgi_params  and ngnix.conf  file were not there anymore, only they copies to fastcgi_params.old  and nginx.conf.old  were there.
Again, I did not create the .old files myself, nor did I remove the original file.

I ran the update today and immediately tried to restart nginx but that failed die to a missing nginx.conf.  Weird I thought but true enough it was gone.  All I had was nginx.conf.old.  I renamed it back to nginx.conf but I then hit the fascgi_params issue, the same as @ddelaey.

I don't know if this is related - but after my upgrade to 3.3.1 on Ubuntu
Trusty, I get this error related to my nginx config and I have not enabled
redis on any site, nor have I manually changed my nginx files for several
weeks and they worked perfectly through several versions until 3.3.1.
Afraid to upgrade to 3.3.2 until I get this figured out ...

root@ip-172-00-00-00:~# nginx -t
nginx: [emerg] unknown "srcache_fetch_status" variable
nginx: configuration file /etc/nginx/nginx.conf test failed
root@ip-172-31-28-36:~# ee update

I'll move it to the forums if it's not related to this open thread and how
the upgrade script is backing up the nginx.conf file and creating a new one
that has issues.
On Mon, Jul 27, 2015 at 3:06 PM, Dave Naylor<EMAIL_ADDRESS>wrote:

I ran the update today and immediately tried to restart nginx but that
failed die to a missing nginx.conf. Weird I thought but true enough it
was gone. All I had was nginx.conf.old. I renamed it back to nginx.conf
but I then hit the fascgi_params issue, the same as @ddelaey
https://github.com/ddelaey.
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/593#issuecomment-125328037.

@ddelaey
I have confirmed this bug. and will befixing it right away.
Sorry for inconvinience.

@harshadyeola
Thank you very much for the quick reaction, highly appreciated.
I've upgraded to 3.3.3 and did not see any issues.

YES! Confirmed as fixed for my issue reported above as well. Thank you!
On Tuesday, July 28, 2015, Harshad Yeola<EMAIL_ADDRESS>wrote:

@ddelaey https://github.com/ddelaey
I have confirmed this bug. and will befixing it right away.
Sorry for inconvinience.
—
Reply to this email directly or view it on GitHub
https://github.com/rtCamp/easyengine/issues/593#issuecomment-125458975.


Best practice of setting the cluster name at deployment level

Environmental Info:
K3s Version: v1.29.4+k3s1 (94e29e2e)
Node(s) CPU architecture, OS, and Version:
Linux boreas 6.8.0-1004-raspi #4-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 02:29:55 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Cluster Configuration:
3 servers, 5 agents
Describe the bug:
My goal is to deploy 2 K3s clusters and set a distinct name for each cluster. Current configuration on both clusters, please note the default name:
# kubectl config view
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://<IP_ADDRESS>:6443
  name: default
contexts:
- context:
    cluster: default
    user: default
  name: default
current-context: default
kind: Config
preferences: {}
users:
- name: default
  user:
    client-certificate-data: DATA+OMITTED
    client-key-data: DATA+OMITTED

Ideally, I want to have the clusters named development and production.
K3s generates the /etc/rancher/k3s/k3s.yaml file, where the cluster name is present. I looked at the documentation and there is no setting allowing me to define the cluster name, on initial cluster deployment. How is the default name defined into k3s.yaml file?
I understand the end-user will configure their /.kube/config file the way they want, but I would like to have some sort of --cluster-name switch allowing us to define the cluster name, at deployment level.
Thank you.

Thank you @brandond for providing the clarifications.

We've discussed it in the past and decided against it. The admin kubeconfig really shouldn't be used for much other that locally interacting with the server. If you're managing multiple clusters to the point where you want to give their contexts unique names in your kubeconfig, you should be using more advanced tooling for that - and not using the default admin kubeconfig and admin RBAC.

Thank you, it makes sense now.


net/haproxy: restart timeout

WIth OPNsense 19.7.2 and HAProxy 2.17, if I use the restart option under Diagnostics, Services, the bar appears for a very long time, several minutes and disappears with the service running.
The GUI logs show the restart request is made, but on later says it timed out.

@Taomyn Could you please test on the console? This would help to see if it's a breakage in the GUI or an application error.
configctl haproxy restart

@fraenki when I run the command I get:
error in configd communication %s, see syslog for details
I do not have seamless reloads enabled, the only option in that section enabled is the main "Enable HAProxy".

see syslog for details

Could you also check System: Log Files: Backend and System: Log Files: General for additional information when running the configctl command? Thanks!

@fraenki in General:
Aug 26 13:26:13 	/configd_ctl.py: error in configd communication Traceback (most recent call last): File "/usr/local/opnsense/service/configd_ctl.py", line 65, in exec_config_cmd line = sock.recv(65536).decode() socket.timeout: timed out
In Backend:
Aug 26 13:25:41 	configd.py: [87f1a552-9c8a-437c-bb1c-aad9f4e991df] Show system activity
Aug 26 13:24:13 	configd.py: [a176d002-afb3-491e-bd35-e3595d14e8b9] restarting haproxy

FYI, still happens in 19.7.3 - so my Let's Encrypt certificates are royally screwed as HAProxy isn't getting restarted either.

@Taomyn Unfortunately, I still cannot reproduce it. Could you add your haproxy.conf (with sensitive information obfuscated)?

@fraenki I uploaded it here https://pastebin.com/vesfhF6L hopefully I haven't overdone the redaction

@Taomyn Sorry that it took me so long to reply. I've checked your configuration and noticed the following backend configuration:
# Backend: DesktopCentral (Desktop Central)
backend DesktopCentral
    # health checking is DISABLED
    mode http
    balance source
    # stickiness
    stick-table type ip size 50k expire 30m
    stick on src
    # tuning options
    timeout connect 30000
    timeout server 30m

Wild guess: the 30m timeout value might be the reason why restarts don't work for you.
One more suggestion: please ensure that Graceful stop is not enabled in HAProxy's Service Settings. The following settings are the most reliable for frequent restarts that I can think of:

Today's OPNsense update will include an upgrade from HAProxy 1.8 to 2.0, it might be worth to test this too.

@fraenki no worries. That timeout is the same for all virtual services and isn't something I ever recall setting myself. When I create a new one it's the same value, so I didn't copy it from another entry. I also checked, and "Graceful stop" is not enabled.
I will of course try v2.0 when it drops and report back here.

I'll close this ticket now, but please report back if it is not fixed – and I'll reopen it.


RFC: Generating AppStream Metadata

Issue
This is coming up working on getting "gnome-software" working on Nix. AppStream is an XML data format to provide meta data listings on "apps" available to a distribution that is used by "gnome-software" to provide app listings in a distro agnostic way.
AppStream Metadata
To work with AppStream, a Linux distribution needs to provide an XML file that has a list of "components". The resulting XML looks like this:
<?xml version="1.0"?>
<components version="0.6">
  <component type="application">
    <id>firefox.desktop</id>
    <pkgname>firefox-bin</pkgname>
    <name>Firefox</name>
    <name lang="en_GB">Firefoux</name>
    Web browser
    Navigateur web
    <project_license>MPL-2</project_license>
    <keywords>
      <keyword>internet</keyword>
      <keyword>web</keyword>
      <keyword>browser</keyword>
      <keyword lang="fr_FR">navigateur</keyword>
    </keywords>
    <icon type="stock">web-browser</icon>
    <icon type="cached">firefox.png</icon>
    <categories>
      <category>network</category>
      <category>web</category>
    </categories>
    <mimetypes>
      <mimetype>text/html</mimetype>
      <mimetype>text/xml</mimetype>
      <mimetype>application/xhtml+xml</mimetype>
      <mimetype>application/vnd.mozilla.xul+xml</mimetype>
      <mimetype>text/mml</mimetype>
      <mimetype>application/x-xpinstall</mimetype>
      <mimetype>x-scheme-handler/http</mimetype>
      <mimetype>x-scheme-handler/https</mimetype>
    </mimetypes>
    <url type="homepage">http://www.mozilla.com</url>
    <screenshots>
      <screenshot type="default">
        <image type="source" width="800" height="600">http://www.awesomedistro.example.org/en_US/firefox.desktop/main.png</image>
        <image type="thumbnail" width="200" height="150">http://www.awesomedistro.example.org/en_US/firefox.desktop/main-small.png</image>
      </screenshot>
    </screenshots>
    <provides>
      <binary>firefox</binary>
    </provides>
  </component>
  <component>
    <id>pulseaudio</id>
    <name>PulseAudio</name>
    The PulseAudio sound server
    <url type="homepage">http://www.freedesktop.org/wiki/Software/PulseAudio/</url>
    <project_license>GPLv2</project_license>
    <provides>
      <library>libpulse-simple.so.0</library>
      <library>libpulse.so.0</library>
      <binary>start-pulseaudio-kde</binary>
      <binary>start-pulseaudio-x11</binary>
    </provides>
    <release version="2.0"/>
  </component>
  <component type="font">
    <id>LinLibertine_M.otf</id>
    <name>Libertine</name>
    Linux Libertine Open fonts
    <font_classifier>Mono</font_classifier>
    <font_parent>Libertine</font_parent>
  </component>

</components>

Some of the fields like "id", "packagename", "url", and "summary" we already have analogues in Nix. The issue going forward is going to be generating the rest of the data. Luckily most upstream apps already provide this data in the form of "appdata" XML files.
Upstream metadata
Most GNOME apps and some other apps already provide most of this data in the form of "appdata" XML. This is a short file that has some info on metadata like what libraries, fonts, binaries, etc it provides. The result looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<component>
  <id>foobar</id>
  <name>Foo Bar</name>
  A foo-ish bar
  <url type="homepage">http://www.example.org</url>
  <metadata_license>CC0-1.0</metadata_license>

  <provides>
    <library>libfoobar.so.2</library>
    foo.ttf
    <binary>foobar</binary>
  </provides>
  <releases>
    <release version="1.2" date="2015-02-16" />
  </releases>
  <developer_name>FooBar Team</developer_name>
</component>

In a normal distribution, each XML metadata file is installed either in "/usr/share/metainfo/" or "/usr/share/appdata/". With Nix, these files should already be installed in relevant derivations under /nix/store/.../share/appdata/ and /nix/store/.../share/metainfo. In addition, there are some other files that provide data that would be useful to keep track of:

/share/appdata/
/share/metainfo/
/share/pixmaps/
/share/icons/
/share/${app_name}/icons/
/share/applications/
/share/applications/kde4/

Derivations that generate these folders need to be added to some index to keep track of AppStream "apps". This is going to be similar to how we were doing "command-not-found" support before issue NixOS/nixos-channel-scripts#4.
Proposal
So, my basic thinking right now is that Hydra would generate a list of all files within a derivation and upload it in the form of a *.narlist as in issue NixOS/nixos-channel-scripts#4. A NixOS channel script could then be run like "generate-programs-index.pl" that would generate the above AppStream metadata. Each channel would need to have its own AppStream list to ensure a correct index.
Each derivation that has any of the above file paths in it would cause a "generate-appstream-index.pl" script to be run with the derivation's out path. Each derivation would generate a "component" like above from the different folders output in the derivation. Each component would be added to the list of components in an "appstream.xml" file. That appstream.xml file could then be added to the "nixexprs.tar.xz" like "programs.sqlite" was previously. The generated appstream.xml would then be available at "/nix/var/nix/profiles/per-user/root/channels/nixos/appstream.xml".
The challenge would be making sure that "appstream-glib" is able to detect our appstream.xml file. Because it's not technically a derivation, this is basically going to require hard coding that path in like command-not-found does. This would require modifying the appstream-glib derivation to trick it into looking in /nix/var/nix/profiles/per-user/root/channels/nixos/.
Remaining Issues
There is other data that would be useful for appstream to have available. This includes the "/usr/share/applications/" and "/usr/share/icons/". Both of these are going to be much trickier because there's no easy way to put them in an XML file like with "appstream.xml" above. In addition, we don't want to put too much in "nixexprs.tar.xz" and things like icons are inevitably going to bloat the file size.
Conclusion
I am not completely familiar with how Hydra and NixOS are built so any suggestions or corrections are welcome for this proposal. It requires some extra steps in the build process but I think it should be doable.

I didn't get into any details for now, but the big points seem OK to me.

Okay great. It's probably a longer write up than it needs to be but it's kind of confusing. The important thing to know is that some way or another the "appstream" data "derives" from the set of all nixpkgs. So it needs to be "above" the nixpkgs repo and can't be handled just like any other derivation.

I expect the mechanism won't be much different from the command-not-found database, but we haven't resolved that one yet ;-)

I'm working on nix2appstream. It takes in a package name and outputs an AppStream collection.

Any Idea if this is useful for the purpose? https://github.com/ximion/appstream-generator

Sort of... You need a backend for appstream-generator to work.

We still need this.
Since we'll soon have a working packagekit nix backend with https://github.com/NixOS/nixpkgs/pull/94055  so this makes it extra desirable to have.
Not sure about making a home grown solution, it does seem more standard to use the tool other downstreams use https://github.com/ximion/appstream-generator/, the only real hurdle there is writing the backend which needs to be in DLang. And I believe it remains that it will need to be published into the channel.

We still need this.
Since we'll soon have a working packagekit nix backend with #94055 so this makes it extra desirable to have.
Not sure about making a home grown solution, it does seem more standard to use the tool other downstreams use https://github.com/ximion/appstream-generator/, the only real hurdle there is writing the backend which needs to be in DLang. And I believe it remains that it will need to be published into the channel.

Yeah that sounds much easier. Most of the original issue is not relevant since we now have https://github.com/NixOS/nix/commit/542ae5c8f804b704101f9d27bd8b2aa62ded899c and can just query stuff directly from Hydra.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/brainstorming-generating-appstream-metadata/19273/1

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/the-linux-experiment-every-linux-distro-should-have-these-features/21955/1


Rename chaos-server to chaos-dashboard

What problem does this PR solve?

rename chaos-server to chaos-dashboard
install chaos-dashboard with install.sh

What is changed and how does it work?
Check List
Tests

Unit test
E2E test
Manual test (add detailed scripts or steps below)
No code

Code changes

Has Go code change
Has CI related scripts change
Has Terraform scripts change

Side effects

Breaking backward compatibility

Related changes

Need to update the documentation

Does this PR introduce a user-facing change?:

NONE

Codecov Report

Merging #584 into master will decrease coverage by 0.25%.
The diff coverage is 54.43%.

@@            Coverage Diff             @@
##           master     #584      +/-   ##
==========================================
- Coverage   55.98%   55.73%   -0.26%
==========================================
  Files          67       68       +1
  Lines        4324     4383      +59
==========================================
+ Hits         2421     2443      +22
- Misses       1733     1769      +36
- Partials      170      171       +1

Impacted Files
Coverage Δ

api/v1alpha1/iochaos_types.go
40.00% <ø> (ø)

controllers/iochaos_controller.go
85.71% <ø> (ø)

pkg/chaosdaemon/time_server.go
88.23% <ø> (ø)

pkg/webhook/config/config.go
17.14% <ø> (ø)

pkg/utils/selector.go
51.42% <40.00%> (-1.06%)
:arrow_down:

pkg/store/experiment/experiment.go
38.77% <45.23%> (ø)

controllers/twophase/types.go
55.88% <74.07%> (+0.09%)
:arrow_up:

Continue to review full report at Codecov.

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

/merge


Missing dompurify addHook

I've just checked out the latest version and am trying to run the Node.js example. When building, yarn shows quite few warnings like
WARNING in ../node_modules/monaco-editor-core/esm/vs/base/browser/markdownRenderer.js
250:4-21 "export 'addHook' (imported as 'dompurify') was not found in './dompurify/dompurify'
@ ../node_modules/monaco-editor-core/esm/vs/base/browser/markdownRenderer.js
@ ../node_modules/monaco-editor-core/esm/vs/editor/browser/core/markdownRenderer.js
@ ../node_modules/monaco-editor-core/esm/vs/editor/contrib/parameterHints/parameterHintsWidget.js
@ ../node_modules/monaco-editor-core/esm/vs/editor/contrib/parameterHints/parameterHints.js
@ ../node_modules/monaco-editor-core/esm/vs/editor/editor.all.js
@ ../node_modules/monaco-editor-core/esm/vs/editor/editor.main.js
@ ./lib/main.js

That's just a warning, so I ignore it and proceed to run yarn run start and open http://localhost:3000/ .
That seems to be working - I see the Monaco Language Client Node.js Sample page, and the console has "Sample Language Client: The server is initialized." - but soon (I suppose on any further input from the backend language server) crashes:
Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_1__dompurify_dompurify__.addHook is not a function
    sanitizeRenderedMarkdown markdownRenderer.js:250
    renderMarkdown markdownRenderer.js:227
    render markdownRenderer.js:53
    renderHoverParts markdownHoverParticipant.js:122
    _renderMessages modesContentHover.js:438
    _withResult modesContentHover.js:405
    _hoverOperation modesContentHover.js:197

So it seems the warning was about something real... I see at https://githubmemory.com/repo/microsoft/monaco-editor/issues/2691 that monaco-editor recently had a suspiciously similar dependency problem - perhaps it should also be fixed in monaco-editor-core?

The latest version is a old version... no active maintainer have the permissions on https://www.npmjs.com/package/monaco-languageclient so the last version is published on https://www.npmjs.com/package/@codingame/monaco-languageclient

The latest version is a old version... no active maintainer have the permissions on https://www.npmjs.com/package/monaco-languageclient so the last version is published on https://www.npmjs.com/package/@codingame/monaco-languageclient

I probably was too vague: I didn't install monaco-languageclient with npm , but checked out the latest master here. Of course it can still have wrong dependencies (attaching package-lock.json ), but which would be the right ones?
package-lock.zip

This bug was only impacting the version 0.29.0 of monaco-editor, I guess you can update it.
Btw feel free to create a PR or I'll do it when I'll get time.

Well, it isn't so simple: changing
-    "monaco-editor-core": "^0.29.0",
+    "monaco-editor-core": "^0.30.1",
in example/package.json leads to compilation failure:
yarn run v1.22.15
$ yarn run compile && webpack && yarn run copy
$ tsc
src/client.ts:36:24 - error TS2345: Argument of type 'typeof import("/home/vb/monaco-languageclient/example/node_modules
/monaco-editor-core/esm/vs/editor/editor.api")' is not assignable to parameter of type 'typeof import("/home/vb/monaco-
languageclient/node_modules/monaco-editor-core/esm/vs/editor/editor.api")'.
  Types of property 'KeyCode' are incompatible.
    Type 'typeof KeyCode' is missing the following properties from type 'typeof KeyCode': KEY_0, KEY_1, KEY_2, KEY_3,
    and 59 more.

You just seem to have multiple version of monaco-editor-core, your yarn.lock is probably broken, I suggest you remove it and regenerate it

#301 should fix it
Well, doesn't that create multiple versions of monaco-editor-core? Now the top-level package.json has
"devDependencies": {
...
"monaco-editor-core": "^0.30.1",

while example/package.json still has
    "monaco-editor-core": "^0.29.0",

And since @codingame/monaco-languageclient changed, version "^0.14.0" should probably be bumped as well...

I don't think it was an issue, the example just wasn't up to date.
It's updated

It's updated
Yes, now it works (or at least no longer crashes so soon :-) ) - thanks a lot!


SyncBot: could have a snooze command

Have split this out of #353 because it is a significant batch of work in its own right.

Received confirmation from Front that they have no intention of putting this endpoint into their documented API, reverse engineer the UI or nothing.

Note that from network inspector on their webapp there is an endpoint.  It looks awkward as all hell, but it is there.


Add registry to default no_proxy hosts for Clair

When proxy is set for Clair, there may be issue when Clair pulls image
from the registryif the no_proxy attribute is not updated.  This
commit adds registry to the default setting.

Pull Request Test Coverage Report for Build 7795

0 of 0   changed or added relevant lines in 0 files are covered.
8 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.04%) to 63.64%

Files with Coverage Reduction
New Missed Lines
%

src/common/scheduler/scheduler.go
1
81.87%

src/common/scheduler/policy/alternate_policy.go
3
80.29%

src/common/utils/utils.go
4
85.5%

Totals

Change from base Build 7790:
-0.04%

Covered Lines:
11909

Relevant Lines:
18713

💛  - Coveralls


Disable openapi for specific route

Hi, I'm working on apiflask to create web for my company. When I release api documentation for client, they want to hide some apis in the document, which I found that the  solution is disable openapi for those routes. For APIBlueprint, it simply can do with enable_openapi parameter, but how to do that for specific route? I did try with @blp.route('/endpoint', methods = ['GET'],  enable_openapi=False) but didn't work. Please help me.

Try to set the hide boolean to True with app.doc.
https://apiflask.com/openapi/#disable-for-specific-view-functions


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 09:03:29 on 2023.04.28
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 2, errors out: 0
Original problem ID: 20123
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=20123

Problem has been resolved in 9m 0s at 09:12:29 on 2023.04.28
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 20123


Worker construction only works with relative paths

Describe the bug
When using the new Worker(new URL() web worker construction, using a relative path (i.e. ./worker.js) will result in the worker being found just fine, but using an absolute path (i.e. /worker.js) will result in an error Failed to fetch a worker script., even if both resulted URLs point to the same file. I expect that because the two should resolve to the same file that it would work either way, especially as there is no documentation stating otherwise, but they appear to have different behavior.
Reproduction
https://stackblitz.com/edit/vitejs-vite-oguzf8?file=main.js,worker1.js,worker2.js,package-lock.json&terminal=dev
System Info
System:
    OS: macOS 12.6
    CPU: (10) arm64 Apple M1 Max
    Memory: 10.19 GB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.17.0 - ~/.volta/tools/image/node/16.17.0/bin/node
    npm: 8.15.0 - ~/.volta/tools/image/node/16.17.0/bin/npm
  Browsers:
    Chrome: 105.0.5195.125
    Safari: 16.0
  npmPackages:
    vite: ^3.1.0 => 3.1.3

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

This should be fixed by #7837 coming in Vite 3.2


throw an exception when invalid geom passed to Sieve

Our current implementation of Sieve will return null for any invalid geometry. This PR updates Sieve to throw an error if it's passed an invalid geom, which can be optionally be handled in an exception when others block.
This also changes the area_threshold type to anyelement, allowing one to pass both float and integer values as area_threshold.
There's also some housekeeping in .travis.yml - bumping the postgres, postgis, ubuntu and node versions.

@mappingvermont we are actively working on https://github.com/openmaptiles/postgis-vt-util , updating it with parallel support, up to date PG/PostGIS versions, better testing, etc.  You might want to submit PRs there too, but note that your code doesn't seem to be parallel friendly - do you think it would be possible to make it parallel executable to allow for speed ups?

👋 hey @nyurik !
Thanks for tagging me in this- I wasn't aware of the openmaptiles repo. I don't have much experience writing parallel-friendly pl/pgsql, but will try and update it if I have some free time.
Feel free to PR as well if that's easier. Thanks!


Covert GBT Regression Score To Probability

Now GBT computing score is not in [0, 1], -0.124, 1.546 are found in output scores. Need a coverter to covert to probability.
Check scikit-learn:
https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/gradient_boosting.py#L519
Or H2O for reference.

Set it to high priority, find a better sigmoid function

Using basic sigmoid funtion, user needs to set:  "gbtConvertToProb" : to true,
"evals" : [ {
"name" : "Eval1",
"dataSet" : {
"source" : "HDFS",
"dataPath" : "EvalSet1",
"dataDelimiter" : "|",
"headerPath" : "EvalSet1/.pig_header",
"headerDelimiter" : "|",
"filterExpressions" : "",
"weightColumnName" : "",
"targetColumnName" : "diagnosis",
"posTags" : [ "M" ],
"negTags" : [ "B" ],
"missingOrInvalidValues" : [ "", "*", "#", "?", "null", "~" ],
"metaColumnNameFile" : "columns/meta.column.names",
"categoricalColumnNameFile" : "columns/categorical.column.names"
},
"performanceBucketNum" : 10,
"gbtConvertToProb" : true,
"performanceScoreSelector" : "mean",
"scoreMetaColumnNameFile" : "columns/Eval1score.meta.column.names",
"customPaths" : { }
} ]

Reopen this issue as a good regression formula should be find in production


CSGO info example not working + issues with OnPlayerInfo

The no provider found issue was fixed by setting maven not to use workspace dependencies (even though clarity should have been on master.
The info package seems to fail with the latest from master however but this might just be a dota2/csgo thing. (log file included)
clarityTestInDos.txt
Perhaps this is simply due to me not understanding the interface, but when I add a
@OnPlayerInfo
public void onPlayerInfo(PlayerInfoType info) {
...
}
to the gameevent Main.java class example, I get this:
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.simontuffs.onejar.Boot.run(Boot.java:340)
        at com.simontuffs.onejar.Boot.main(Boot.java:166)
Caused by: java.lang.IllegalArgumentException: bad spread array length
        at java.lang.invoke.MethodHandleStatics.newIllegalArgumentException(Unknown Source)
        at java.lang.invoke.MethodHandle.asSpreaderChecks(Unknown Source)
        at java.lang.invoke.MethodHandle.asSpreader(Unknown Source)
        at skadistats.clarity.event.AbstractInvocationPoint.bind(AbstractInvocationPoint.java:57)
        at skadistats.clarity.processor.runner.ExecutionModel.bindInvocationPoints(ExecutionModel.java:193)
        at skadistats.clarity.processor.runner.ExecutionModel.initialize(ExecutionModel.java:289)
        at skadistats.clarity.processor.runner.AbstractRunner.initWithProcessors(AbstractRunner.java:45)
        at skadistats.clarity.processor.runner.AbstractFileRunner.initAndRunWith(AbstractFileRunner.java:37)
        at skadistats.clarity.processor.runner.SimpleRunner.runWith(SimpleRunner.java:36)
        at skadistats.clarity.examples.gameevent.Main.run(Main.java:29)
        at skadistats.clarity.examples.gameevent.Main.main(Main.java:35)
        ... 6 more

Originally posted by @erGOD in https://github.com/skadistats/clarity/issues/58#issuecomment-447040762

@erGOD: Created new issue, as it's unrelated to unknown message types.
So here goes: The info example does not work with CSGO-replays, as you suspected, only Dota. This is because there simply is no game info in it. I should probably just error out with a clear message when someone tries this.
For the issue with @OnPlayerInfo, the signature of your function is bad, it should be like this:
@OnPlayerInfo
public void onPlayerInfo(int entityIdx, PlayerInfoType info) {
...
}

Thanks for the help!


fix: Data list styling

Description
Fix spacing in Data list
Fixes #32597
Automation
/ok-to-test<EMAIL_ADDRESS>:mag: Cypress test results

[!TIP]
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/8644981445
Commit: f404bdab4e4fd2cddfcca060bdd75d0ac5390322
Cypress dashboard url: Click here!

/build-deploy-preview


feat: wip createMany integration

This needs to be merged to unblock @Jolg42. Tests and putting createMany behind the flag are yet to be done. These will be added in a sperate PR

This needs to be merged to unblock @Jolg42. Tests and putting createMany behind the flag are yet to be done. These will be added in a sperate PR


Add Home Assistant

Adding Home Assistant instead of Hass.io.

Have merged, thanks! :+1:
Had to tweak a few things:

Both host networking and a port were set - can't have both so picked the port method. The Home Assistant docs are inconsistent on this one, so who knows which is best!
Traefik config port was wrong
Added time zone (important for stuff that relies on sunrise/sunset yada yada


Integration tests to check the status of the access tokens of a user after disabling the user account

This integration test will check whether a user's access tokens generated for multiple service provider applications has been revoked after disabling the user account.
Addressed Issue: https://github.com/wso2/product-is/issues/14048

Run the integration tests before merging the PR

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/2970858726

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/2970858726
Status: success