Setting up the v3 endpoint (503 error)

Hello! I've been reading most of the issues because I couldn't connect my repository with the v2 endpoint. Figured out it was maybe already overloaded or didn't accept new user's request anymore.
So I found out the about the new Staticman app on Github, connected it to my repo, and set everything for a post request to "https://dev.staticman.net/v3/entry/github/felixdb/inbeat-website/master/comments", but keep getting a 503 from Heroku. I also tried "https://dev.staticman.net/v3/entry/github/felixdb/inbeat-website/master" and tried to post vit Postman.
You can see my repo here and my settings here. Anything I'm doing wrong? You can also test here, the form is hidden with CSS but you should find it easily with inspect tool and unhide it.
Thanks for helping out, this project is awesome and I've been looking forward to try it :)

I'm having the same issue. I noticed that another site who has a currently working Staticman configuration is using the endpoint https://api.staticman.net/v3/... rather than https://dev.staticman.net/v3/...
However, I tried changing my own endpoint and it didn't work. We seem to have similar configurations, so the problem is probably somewhere else. I'll keep looking...

Yeah, I'm just adding staticman into my jekyll blog and am having the same experience. Wasn't able to get it to work with v2, so trying v3 and just getting back the 500 success: false error message.

I changed my endpoint URL and then it successfully creates a PR containing staticman data.
https://api.staticman.net/v3/entry/github/gayanw/blog/master/comments

I have same issue. I've tired both of https://api.staticman.net/v3 and https://dev.staticman.net/v3. And still, I got 500 error.

@gayanW , the static comments on your site (for example this blog post (https://www.linuxdeveloper.space/install-windows-after-linux) are not working anymore.

@gayanW Switching to the official development instance is contrary to what the project owner suggests in https://github.com/eduardoboucas/staticman/issues/278#issuecomment-475170669.  Anyways, I suggest using alternative instance (i.e. anything but official) to avoid unexpectation service disruption due to unnotified updates in the official instance.
Here's a hosting guide on Data Science Blog.  You may also refer to some successful examples running Staticman v3 like

zcrc.me: a dev blog on GitLab
my demo pages on Framagit
my blog using GitLab Pages

P.S. Having recommended an alternative instance, I have to mention that I maintain @staticmanlab, a public GitLab instance which you're free to use.

@VincentTam You mentioned that @staticmanlab is a Gitlab instance, will it cause troubles if used with a Github repo?

@VincentTam You mentioned that @staticmanlab is a Gitlab instance, will it cause troubles if used with a Github repo?

It's the contrarary: it provides freedom for users, espeicall those suffering from the official instances' API limits, to choose between GitHub & GitLab.
For some GitHub Pages served by @staticmanlab, you may click on the bot's user page and consult its activities.  You may also see the homologous GitLab user profile.
P.S. Due to a Framagit user's unsuccessful trial to add Staticman support, I've created another instance served by @staticmanlab1.

@VincentTam You have made lots of changes in your staticman instance compared to the original one. Should I clone your instance and try to host it on Heroku and see if it works?

@sachin10101998 From the user profile of @staticmanlab, you can see that my instance works.  My deploy branch holds the code for Heroku deployment, so you might try.  The reason for such a huge difference is PR 231.

Hey @VincentTam I forked and deployed your deploy branch to Heroku by following these instructions, but when trying to post messages to it I just get a 500 response code with a json body of "success": false. Is that branch broken now? Do you know if there's some way I can have it return more error info?
The Heroku logs only show this:
2019-08-02T06:54:01.792329+00:00 heroku[router]: at=info method=POST path="/v3/entry/github/deadlydog/deadlydog.github.io/master/comments?fields%5Bmessage%5D=Testing+comments&fields%5Bname%5D=Dan&fields%5Bemail%5D=deadlydog%40hotmail.com&fields%5Burl%5D=&options%5Bslug%5D=powershell-log-levels-included-in-tfs-2017-and-vsts-build-and-release-logs&fields%5Bhidden%5D=" host=dansblog-staticman.herokuapp.com request_id=8b3e4f93-3a6c-46b0-a477-2ad6abb99aa2 fwd="<IP_ADDRESS>" dyno=web.1 connect=1ms service=329ms status=500 bytes=353 protocol=https

And this is the response I get in PostMan.

Should I maybe try using a different branch?
I've been trying to get staticman to work for 2 months now, and it's very frustrating. Jumping from GitHub issue to issue trying to piece together various bits of info is very time consuming. I feel it would be worth updating the official documentation with instructions about the new recommended practice (deploying your own instance instead of using the shared public one), and which branches are stable and should be used.
I appreciate any insight you can give into this issue. Thanks!

Hey @VincentTam I forked and deployed your deploy branch to Heroku by following these instructions, but when trying to post messages to it I just get a 500 response code with a json body of "success": false.

The linked instructions are written by @matdoering.  Perhaps he can also provide you insights.
Have you read my article about Staticman errors?  I've listed different kind of possible errors along with their causes.  The 500 error code with simply "success: false" is possibly due to reCAPTCHA error.
It would be more helpful to provide more details of your instance and the link of your target repo https://github.com/deadlydog/deadlydog.github.io, so that we can look into it and try reproducing the error, like some important API parameters (githubBaseUrl, gitlabBaseUrl), and the user nane your GitHub bot.  (I'm not using the GitHub Apps version since it keeps spamming GitHub repos, as reported in #298, so it doesn't really solve the API limit problem.  The project owner believes that Akismet has been disabled on the public instance, and the proposed PR #195 is left unmerged. Other reasons for keeping the GitHub bot are evangelical ones detailed in https://github.com/Pyromaths/pyromaths/issues/26)
:warning: Also, please respond to my issue https://github.com/deadlydog/deadlydog.github.io/pull/6 for the sake of your privacy.  You've exposed your reCAPTCHA site secret there.  Please consider changing key.

The Heroku logs only show this:
2019-08-02T06:54:01.792329+00:00 heroku[router]: at=info method=POST path="/v3/entry/github/deadlydog/deadlydog.github.io/master/comments?fields%5Bmessage%5D=Testing+comments&fields%5Bname%5D=Dan&fields%5Bemail%5D=deadlydog%40hotmail.com&fields%5Burl%5D=&options%5Bslug%5D=powershell-log-levels-included-in-tfs-2017-and-vsts-build-and-release-logs&fields%5Bhidden%5D=" host=dansblog-staticman.herokuapp.com request_id=8b3e4f93-3a6c-46b0-a477-2ad6abb99aa2 fwd="<IP_ADDRESS>" dyno=web.1 connect=1ms service=329ms status=500 bytes=353 protocol=https

And this is the response I get in PostMan.

Your test procedures might not be correct, from my experience in https://github.com/eduardoboucas/staticman/pull/219#issuecomment-419678597.

@ ntsim Thank you so much for your patience and help! :grinning: It finally worked on my forked project.

If I start the project from scratch, do I need to manually create comments folder?

During my testing last year, the form key and values didn't show up in the POST URL.

Should I maybe try using a different branch?

Yes and no.

Yes: try my PR #301, which fixed #90. :smile:
No: in case you get tired of testing, and you want to stick with your working version.

I've been trying to get staticman to work for 2 months now, and it's very frustrating. Jumping from GitHub issue to issue trying to piece together various bits of info is very time consuming.

However, learning from Stack Overflow involves jumping from questions to questions, and research requires reading from different pieces of info.  Links to issues are a means for reference and supporting one's ideas.  The past experience described in the issues helps other future users.  If you feel that jumping from issues to issues are tiring, then just skip reading and learn from your own errors, until you're so tired with errors that you've the patience to read issues :smiling_imp:.

I feel it would be worth updating the official documentation with instructions about the new recommended practice (deploying your own instance instead of using the shared public one), and which branches are stable and should be used.

Documentation requests like #291, #293 are inactive.  Recent attempts to update the README in #232 and #256 don't receive response from the project owner.   Even #298 doesn't get a direct response (despite @staticmanapp responded with its disappearance).  Given the status of these issue, I would better save my effort in testing and writing guides and documentation for other repo.  Here's a non-exhausive list of references that provide info about setting up Staticman:

:meat_on_bone: Barebone example by Nicolas Tsim, the author of #219 and #231: https://gitlab.com/nstim/test-staticman (requires internal access).  The info at the top of #219 is extremely useful.  It's the reference for Staticman v3 API endpoints.
:notebook: Beautiful Jekyll's README.
:book: Minimal Mistake's docs page
:1234: My upvoted answer on Math.Meta.SE
Docs on my Minimo + Framagit + Staticman demo site
Hugo Swift Theme's README
README in my improved version of Hugo Theme Huginn

I appreciate any insight you can give into this issue. Thanks!

Give me :+1: or :heart: if you appreciate it.  :loud_sound: Sharing Staticman guides and helping future users in return are even better.

Thanks so much for the detailed reply @VincentTam and the Issues/PRs on my personal blog :) I had not seen your blog with staticman errors, and it looks like it does have something to do with the Recaptcha settings. I still have not been able to completely figure it out; if I disable Recaptcha complete then comments work, but when enabled (using an encrypted site key and v2, or v3) it still fails. I don't understand why when I use the exact same request from PostMan to my personal staticman instance that it succeeds when I have my blog settings set to not use Recaptcha, but fails when it is set to use Recaptcha. That is a setting set in my blog GitHub repo (jekyll site), not my heroku staticman instance, so I find it weird that a client setting affects the server response. That is, my PostMan request is the exact same all the time, and is making a request to my staticman instance, so why does my blog GitHub setting affect the response returned by the staticman instance?. Or does my staticman instance somehow check that setting in my GitHub repo before opening the PR against it?
Thanks again for all your help! At the very least you've helped me get comments working without Recaptcha enabled, and made some good suggestions in your PRs 👍

I don't understand why when I use the exact same request from PostMan to my personal staticman instance that it succeeds when I have my blog settings set to not use Recaptcha, but fails when it is set to use Recaptcha.

The root-level Staticman config file staticman.yml is used for the communication between the API server and the GitHub/GitLab repo.  When reCaptcha.enabled is switched on, the GitHub/GitLab repo only accepts POST requests with the reCATPCHA parameters.  I dunno how this can be done in PostMan since I've always used web browsers to reCAPTHCA.

That is a setting set in my blog GitHub repo (jekyll site)

According to https://github.com/eduardoboucas/staticman/issues/264#issuecomment-460446511, Staticman shouldn't care whether GitHub Pages are used or not.  See my list of Staticman demo sites on Framagit for Hugo &/or Jekyll examples.

Thanks again for all your help!

Credits to Nicholas Tsim, the author Staticman's GitLab integration, who guided me through testing his PR.

At the very least you've helped me get comments working without Recaptcha enabled.

You may consult my demos on Framagit to get reCAPTCHA works, especially Minimal Mistakes:
https://staticman-gitlab-pages.frama.io/minimal-mistakes-demo/post formats/post-image-caption/.

Thank you for the reply again @VincentTam . Consulting that demo and it's source code helped me get everything working. Essentially I had 2 problems that were preventing me from getting ReCaptcha working:

I had to duplicate the reCaptcha siteKey and secret fields from my staticman.yml into my _config.yml. This is because the minimal mistakes theme I'm using looks for them using site.reCaptcha.siteKey and site.reCaptcha.secret, which looks in the _config.yml and not the staticman.yml. Doing this got the ReCaptcha control actually showing up in my comment forms.
Even though I'm using my own hosted instance of staticman, I had naively still used the public instance (as per the docs) to encrypt my ReCaptcha secret. This led to my instance of staticman not knowing how to decrypt the secret properly. Once I changed to encrypt the value using my instance of staticman, then the decryption worked properly and everything worked. It took a bit of console line debugging to figure out this was the problem, but eventually found the error message that was getting eaten, instead of being returned back in the web response. Yay!

Thanks so much for your help. I'm going to spend a bit of time to see if I can edit the code to have it return back the actual error message in the web response to make troubleshooting these issues easier for others in the future. Thanks so much for your help!

Thanks so much for your help. I'm going to spend a bit of time to see if I can edit the code to have it return back the actual error message in the web response to make troubleshooting these issues easier for others in the future.

░░░░░░░░░░░░░░░░░░░░░░░▄▄	░░░░░░░░░░░░░░░░░░░░░░█░░█	░░░░░░░░░░░░░░░░░░░░░░█░░█	░░░░░░░░░░░░░░░░░░░░░█░░░█	░░░░░░░░░░░░░░░░░░░░█░░░░█	░░░░░░░░░░░███████▄▄█░░░░░██████▄░░░░░░░░░░░▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░░░░░░▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░░░░░░▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░░░░░░▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░░░░░░▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░░░░░░▓▓▓▓▓▓█████░░░░░░░░░█	░░░░░░░░░░░██████▀░░░░▀▀██████▀	◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈ ░█░░░█░█░▄▀░█▀▀░░░░▀█▀░█░█░█░▄▀▀░░█░░░█░█▀░░░█▀░░▄▄░░█░░█▀█░█░░▀▄░░█▄▄░█░█░▀▄░█▄▄░░░░░█░░█░█░█░▄▄▀░◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈☻◈

Duplicate of #317


Relative API link in the readme doesn't work

It opens up:
https://github.com/jmorganca/docs/api.md
Rather than:
https://github.com/jmorganca/ollama/blob/main/docs/api.md

This should be fixed now


Bug: not able to login

What happened?
I am new user to this site i try to register with my email but got a error saying you are already a register user which i am not. Then i try to login using the email with password(the one i use for login first time generally) , i got an another error i can't able to login
(i have checked this issue on deployed one)
Add screenshots

What browsers are you seeing the problem on?
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

i got an another error i can't able to login (i have checked this issue on deployed one)
because the entire authentication module is working together as a microservice.

You can look for the problem and why is it happening but remember to make the PR after 1 Jan

hey @MohankumarMarimuthu, I would like to know  where you are in solving this issue, If there is any need for some help

Currently analyzing the environment variables. I reproduced the issue and identified that the verification api is not working properly. You can analyze that api if you want to

hello @Girishbari i tried to check but i am getting cors error , needs to analyse more on this

You can join the palettegram discord channel where we can discuss more about it

@MohankumarMarimuthu I am closing this issue as the issue is being resolved. The issue was from the Appwrite side that I get it resolved from their support.


The AsyncLazy does not release resources closed over by the factory delegate

Description
Hi! I am reporting an issue that I discovered after reading a comment by Servy here. In case the factory delegate of an AsyncLazy<T> instance closes over some expensive resource, this resource will not be eligible for garbage collection after the completion of the delegate.
Reproduction Steps
public static async Task Main()
{
    Console.WriteLine($"TotalMemory: {GC.GetTotalMemory(true):#,0} bytes");
    var lazy = new Nito.AsyncEx.AsyncLazy<int>(GetFunction());
    Console.WriteLine($"AsyncLazy result: {await lazy:#,0}");
    await Task.Yield();
    GC.Collect();
    Console.WriteLine($"TotalMemory: {GC.GetTotalMemory(true):#,0} bytes");
    GC.KeepAlive(lazy);

    static Func<Task<int>> GetFunction()
    {
        byte[] bytes = new byte[20_000_000];
        return new Func<Task<int>>(async () =>
        {
            await Task.Delay(200);
            return bytes.Length;
        });
    }
}

Output:
TotalMemory: 86,192 bytes
AsyncLazy result: 20,000,000
TotalMemory: 20,133,704 bytes

Online demo.
Expected behavior
The GC.GetTotalMemory() after awaiting the AsyncLazy<T> should be roughly the same as before.
Actual behavior
The GC.GetTotalMemory() after awaiting the AsyncLazy<T> is around 20 MB more than before.
Configuration

.NET 6.0
Nito.AsyncEx 5.1.2
Console application
Release built

Other information
After switching to a simpler AsyncLazy<T> implementation like the one below, the problem is not reproduced:
private class AsyncLazySimple<T>
{
    private readonly Lazy<Task<T>> _lazyTask;
    public AsyncLazySimple(Func<Task<T>> factory) => _lazyTask = new(() => factory());
    public Task<T> Task => _lazyTask.Value;
    public TaskAwaiter<T> GetAwaiter() => Task.GetAwaiter();
}

Output:
TotalMemory: 86,192 bytes
AsyncLazy result: 20,000,000
TotalMemory: 133,728 bytes

Does this reproduce the problem?
public static async Task Main()
{
    Console.WriteLine($"TotalMemory: {GC.GetTotalMemory(true):#,0} bytes");
    var lazy = new Nito.AsyncEx.AsyncLazy<int>(GetFunction);
    Console.WriteLine($"AsyncLazy result: {await lazy:#,0}");
    await Task.Yield();
    GC.Collect();
    Console.WriteLine($"TotalMemory: {GC.GetTotalMemory(true):#,0} bytes");
    GC.KeepAlive(lazy);

    static Task<int> GetFunction()
    {
        byte[] bytes = new byte[20_000_000];
        await Task.Delay(200);
        return bytes.Length;
    }
}

@DaveVdE no, it doesn't. The new byte[20_000_000] in your example is not captured by a lambda, like in my example. Btw the GetFunction() in your example returns a Task, not a Func, so it's not properly named. It is also missing the async keyword.

Sure, it's missing the async keyword, and I didn't change the name.
Oh I see, your point is that the function passed to the AsyncLazy constructor should be forgotten after the task has been complete.

@DaveVdE yep, as it does the native Lazy<T> class.

I sent a fix #269.


Fix Websocket connection is not ready

Fix #880.

It starts after these changes: #863

Please merge this!!!

After git pull update, make run, or make start-backend, make start-frontend, this's still the case. It could occasionally run successfully before, but now it cannot reproduce the successful start after multiple attempts, and a red box prompt always pops up, websocket question.

logs----------------------------------------------
16:13:02 - opendevin:INFO: session.py:38 - WebSocket disconnected, sid: 4223ab84-bff9-4880-8af9-6db03910bfcd
16:13:02 - opendevin:INFO: session.py:38 - WebSocket disconnected, sid: 4223ab84-bff9-4880-8af9-6db03910bfcd


Fix unwrap() causing panic at exit on Windows.

What: Fix process always panicking on exit on Windows.

Why: This bug isn't critical as it mainly occurs when the process is already exiting, but I think it would be better for the process to exit nominally instead of panicking so as not to confuse the user.

How: The problem is caused by resize event arriving when the main thread and, therefore, the receiver end of the channel is already dead. All I did was replacing unwrap with a conditional break. Even though the problem presents itself only with the resize event at the moment, I figured it would be better and more consistent to change all three cases to a conditional break. Another option would be to return the join handles main and join them in the end, but since the code inside both threads is just an infinite cycle, breaking seems like a more straightforward and cleaner choice.

Checklist:

[ ] Documentation added
[ ] Tests added
[x] No linting errors / broken tests
[x] Merge ready

thanks for bringing this to light! I wonder why I haven't run into this before -- could it be something specific to windows? Can you explain what you do to trigger the error? Is it on every exit, or just when you resize?

It reproduces 100% of the time in Windows Terminal with PowerShell 7 and classic cmd by simply pressing Esc. I only tested on the Win10, though. I guess the issue is that Windows sends a resize event as a part of the process exit procedure, or maybe it's just a quirk of crossterm on Windows. I figure, though, that with some buffering behind the scenes or an incredibly unlucky timing, both keypress events and tick events can arrive when the main thread is already dead as well.

Not gonna cut a release quit yet because I have a few minor style changes / related fixes I want to max, but merging! Thanks for the add @dmitr101 !


Eunomia will randomly delete objects when multiple jobs for the same CR run concurrently

Just stubbing this in now so we have an issue to track all the stuff going on around this. Will update later.

What version of eunomia are you using?
All versions are affected
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (kubectl version)?
All os/arch are affected
What did you do?
Create a CR with multiple triggers such as a cron + webhook
What did you expect to see?
My resources to get managed without issue.
What did you see instead?
Some resources are randomly deleted. They will get recreated on a subsequent run, but they were removed in the interim. This can result in loss for things that had state, such as PVC's. When considering deletion chaining, if the object affected is a namespace or a gitopsconfig CR with deletion mode set to delete many resources can be deleted and dramatic outages caused.
FOR THIS REASON WE DO NOT RECOMMEND RUNNING EUNOMIA IN ANYTHING OTHER THAN EXPERIMENTAL ENVIRONMENTS AS YOU WILL HAVE OUTAGES AND DATA LOSS.

#339 is an example of what happens when a given CR manages itself, and then this bug is encountered for the CR object and the resourceDeletion mode is set to delete, resulting in a worst case scenario where Eunomia randomly deletes everything a CR manages.

#351 was an implementation of a short term solution to reduce the chances for hitting the overall job race condition, but since it doesn't introduce a lock it is still possible to encounter other races. If multiple instances are running concurrently the second one started would eventually delete all the resources the second one updated due to the timestamp label needing to match. By changing that to less than or equal to resources that were managed during the overlap of the jobs is no longer affected.
We did not include logic to skip resources determined to already be updated, which might seem natural to include in this, as there is still a race for individual resources. In the absence of a lock mechanism putting in skip logic would dramatically increase the frequency that much smaller race window is encountered so likely would still have very detrimental effects, or possibly even be worse.

See this comment for some details on how to fix this ... https://github.com/KohlsTechnology/eunomia/issues/339#issuecomment-700230586

The current state of the race condition is as follows:

Job A starts right before Job B
Job B finishes applying resources before Job A, which means all resources would have Job A's timestamp
Job B gets to the point where it tries to delete resources, and the resource timestamp is then less than the job's timestamp, which would result in Job B deleting the resources.

From the article mentioned in https://github.com/KohlsTechnology/eunomia/issues/339#issuecomment-700230586, it looks like we could use the metadata.resourceVersion field as a locking/concurrency protection mechanism. The job would retrieve the resourceVersion from all the resources the job wants to apply and append that value into the yaml definition. Then when the job applies the resources, if the resourceVersion match what is in etcd, the resource will be applied, but if it does not match, the apply will fail.


Make map respond to filters

Show only data relevant to dates selected
Show only markers for selected MA/communities
Change view to centroid of markers (if it's too complicated don't worry about it)

Added in a967f9c


Linux OS with the touchscreen is detected as tablet

OpenUI5 version: n/a
Browser/version (+device/version): Chromium 68 and Firefox 61 are detected as tablet in Linux OS (Ubuntu) running the touch screen.
URL (minimal example if possible): any SPC page
What is the expected result?
It should be detected as a regular desktop.
What happens instead?
I cannot select text or do a regular copy-paste.

https://github.com/edda/spcfixes/pull/4

Hello @kayrus ,
Linux OS including Ubuntu is not listed in our platform supported matrix.
If you are able to reproduce the issue on any of the supported platform/browser please reopen the ticket.
Regards,
Diana


Localization for error messages

Lovely package! Any thoughts on if it would be hard to support error messages in other locales then en(sv in our case). Not sure, but we could potentially pitch in and help out if you are ok with a PR.

Hey, sorry for the late response. Surely we can work something out for the localization of error messages. I'm open for any pull requests. I'll be looking into it, as soon as I have some time available


[GSOC 2023] Enhance ComputeNode reconciliation

Apache ShardingSphere
Apache ShardingSphere is positioned as a Database Plus, and aims at building a standard layer and ecosystem above heterogeneous databases. It focuses on how to reuse existing databases and their respective upper layer, rather than creating a new database. The goal is to minimize or eliminate the challenges caused by underlying databases fragmentation.
Page: https://shardingsphere.apache.org/
Github: https://github.com/apache/shardingsphere
Background
There is a proposal about new CRD Cluster and ComputeNode as belows:

#167
#166

Currently we try to promote ComputeNode as major CRD to represent a special ShardingSphere Proxy deployment. And plan to use Cluster indicating a special ShardingSphere Proxy cluster.
Task
This issue is to enhance ComputeNode reconciliation availability. The specific case list is as follows.

[ ] Add IT test case for Deployment spec volume
[ ] Add IT test case for Deployment spec template init containers
[ ] Add IT test case for Deployment spec template spec containers
[ ] Add IT test case for Deployment spec volume mounts
[ ] Add IT test case for Deployment spec container ports
[ ] Add IT test case for Deployment spec container image tag
[ ] Add IT test case for Service spec ports
[ ] Add IT test case for ConfigMap data serverconfig
[ ] Add IT test case for ConfigMap data logback

Notice, these issues can be a good example.
https://github.com/apache/shardingsphere-on-cloud/pull/203

Relevant Skills

Master Go language, Ginkgo test framework
Have a basic understanding of Apache ShardingSphere Concepts
Be familiar with Kubernetes Operator, kubebuilder framework

Targets files
ComputeNode IT - https://github.com/apache/shardingsphere-on-cloud/blob/main/shardingsphere-operator/pkg/reconcile/computenode/compute_node_test.go

@mlycore I have written to express my interest in participating in the GSOC 2023 program with the ShardingSphere community. I am very excited about the "Enhance ComputeNode reconciliation" project idea listed on the GSOC website, and I would like to know more about the specific requirements and expectations for this project.

@mlycore I have written to express my interest in participating in the GSOC 2023 program with the ShardingSphere community. I am very excited about the "Enhance ComputeNode reconciliation" project idea listed on the GSOC website, and I would like to know more about the specific requirements and expectations for this project.

Thanks for you participation. Currently the community have proposed a new CRD called ComputeNode for better usability which defines a set of ShardingSphere Proxies.
In general, the reconciliation of ComputeNode is still at early stage. There's still a lot of work you can do, for example,  adding NodePort to the kubectl get computenode xxx, update the spec to work with PostgreSQL, etc.
For GSoC, you could try to help with the IT test cases, this effort will make the reconciling procedure more robust.

@mlycore Thank you for your previous reply. I have been studying the relevant information about ShardingSphere and have been exploring the code. I find the project very interesting and I am eager to contribute in any way I can.
I appreciate the information you provided about the ComputeNode CRD and the opportunity to help with the IT test cases. Additionally, I can work on adding NodePort to the kubectl get computenode xxx and updating the spec to work with PostgreSQL, as you suggested. I believe this will be a valuable learning experience for me and will help me to better understand the project.
Please let me know if there are any other areas that I can focus on to help with the development of ShardingSphere Proxies. I am enthusiastic about this project and I look forward to working with the community to make it even better.
Thank you again for your time and guidance.

@mlycore Thank you for your previous reply. I have been studying the relevant information about ShardingSphere and have been exploring the code. I find the project very interesting and I am eager to contribute in any way I can.
I appreciate the information you provided about the ComputeNode CRD and the opportunity to help with the IT test cases. Additionally, I can work on adding NodePort to the kubectl get computenode xxx and updating the spec to work with PostgreSQL, as you suggested. I believe this will be a valuable learning experience for me and will help me to better understand the project.
Please let me know if there are any other areas that I can focus on to help with the development of ShardingSphere Proxies. I am enthusiastic about this project and I look forward to working with the community to make it even better.
Thank you again for your time and guidance.

Actually, this is a repo about ShardingSphere on Cloud, a collection of different solutions for the purpose. Other areas like Terraform, CloudFormation and WebAssembly are also help needed.
You could reply any issue you are interested in or just create a new one and let me assign it to you.

@mlycore I will try to help with the IT test cases immediately. Are you convenient to add contact information? Or do we communicate on Slack or email? Thanks.

@mlycore I will try to help with the IT test cases immediately. Are you convenient to add contact information? Or do we communicate on Slack or email? Thanks.

@yikuaibro of course you can add my Wechat: maxwell92 if convenient

@mlycore Hello, I am also interested in this idea. ShardingSphere has been my hobby since OSPP 2022, and I've contributed 19 commits to it so far. Is it okay if I add your WeChat account?

Sure. Looking forward. Thanks for your interest


New option to work with one or more hex.pm mirrors

This is a successor of #156 (see #194 )
Add a new option called hexpm-mirrors for one or more hex.pm mirrors.
Default list is builds.hex.pm, so behavior is unaffected unless option is
used.
Mirrors will help mitigate recent (and older) issues with official hex.pm mirrors reliability, especially in the context of repositories for which CI performs many queries, some of which may get HTTP errors such as the 502 currently observed.

I think the default builds.hex.pm should always be the last fallback. @ericmj, thoughts?
In that case, we'd have to change the option name to alternative-hexpm-mirrors, as mentioned here.

I think the default builds.hex.pm should always be the last fallback. @ericmj, thoughts?
In any case, I think it's best the option is named alternative-hexpm-mirrors, as mentioned here.

It does not make much sense to force users to use a default fallback mirror. They should know better if they use the option. hex.pm doesn't do that. Plus it makes testing harder.

I think the default builds.hex.pm should always be the last fallback. @ericmj, thoughts?

I don't think it has to be the last fallback but we should document that if you override mirrors then it will be removed and have an example that shows how to add it to the end.

No further implementation -based comments at this moment.
@pguyot, CI is failing. Did you run npm run build-dist and push everything generated locally (that's not .gitignored?)

@ericmj, I'm good to merge. This does not change default behaviour and should be exercised shortly. Do we wanna merge now?

Released in v1.16.0 / v1.16. Tag v1 moved up...


optimum-cli print the help of subcommands

What does this PR do?
The Optimum CLI was not printing the proper help message for subcommands.
Example command:
optimum-cli export

Before #928
Before adding the register mechanism to the CLI, the above command would give:
usage: optimum-cli <command> [<args>]

positional arguments:
  {export,env,onnxruntime}
                        optimum-cli command helpers
    export              Export PyTorch and TensorFlow models to several format (currently supported: onnx).
    env                 Get information about the environment used.
    onnxruntime         ONNX Runtime optimize and quantize utilities.

options:
  -h, --help            show this help message and exit

After #928
Now, after adding the register mechanism, it gives:
Traceback (most recent call last):
  File "/home/michael/micromamba/envs/optimum/bin/optimum-cli", line 8, in <module>
    sys.exit(main())
  File "/home/michael/projects/optimum/optimum/commands/optimum_cli.py", line 167, in main
    service.run()
  File "/home/michael/projects/optimum/optimum/commands/base.py", line 131, in run
    raise NotImplementedError()
NotImplementedError

With this PR
With this PR, it gives:
usage: optimum-cli export [-h] {onnx,tflite} ...

positional arguments:
  {onnx,tflite}
    onnx         Export PyTorch and TensorFlow to ONNX.
    tflite       Export TensorFlow to TensorFlow Lite.

options:
  -h, --help     show this help message and exit

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Cannot save data with accents

I think this is a non-ASCII problem. Proxying from @helpdesk:

Error message was just saying that it could not save data,, I figure it out that the accents could be the problem

This is probably the same as the issue we're having with UTF-8 characters.

This is being tracked as a server bug. https://github.com/OpenBazaar/OpenBazaar-Server/issues/307


Document how to use Intl in Flutter (specifying the locale obtained from the widget tree)

I have an app that today supports two languages:

Swedish
English

The language support is set up following this guide
The app has a LicensePage which previously had the same error as in #40353 and #28456 i.e. the LicencePage overrides the system locale. Not modifying the global Intl.defaultLocale solved this issue. Meaning implementing the changes recommended in this PR
Now I have another issue which causes the numbers and dates not to be formatted using the system locale (which it did before when i modified the the global Intl.defaultLocale). The rest of the app is translated correctly. And if I modify Intl.defaultLocale the dates and numbers are formatted correctly as well (until i open the LicensePage).
Steps to Reproduce

Create an app supporting two languages (Swedish and English) following this guide using the intl package
Set the device language to Swedish
Call DateFormat i.e.

import 'package:intl/intl.dart';

final date = DateTime.now()
DateFormat('dd MMM HH:mm').format(date.toLocal())

I would expect this to show the text in swedish in the local time zone.
Logs

flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-SE)
    • Flutter version 1.9.1+hotfix.2 at /Users/swedspot/Documents/development/flutter
    • Framework revision 2d2a1ffec9 (4 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/swedspot/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.3, Build version 10G8
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.38.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.5.1

[✓] Connected device (2 available)
    • Android SDK built for x86 • emulator-5554                        • android-x86 • Android 9 (API 28) (emulator)
    • iPhone X                  • EC967EA0-F0DC-4CA2-8C33-CF8CE6EE2207 • ios         • com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

cc @goderbauer

I use the current languageCode when initialising the DateFormat. Which works for me.
String languageCode = Localizations.localeOf(context).languageCode;
String dateTime = DateFormat( "dd.MM.yy HH:mm", languageCode).format(this.date);

Yes that is a solution, seems to work for me as well!
Though we use DateFormat quite extensively throughout the app, which means a lot of places to update on and also one thing to remember when adding it on other places. Since it worked "out of the box" before I thought that maybe something was wrong. Or maybe I was just lucky before!?

Hello @semone !
As the solution proposed by @yasargil, works for you, can I close this issue? Or do you still experience this problem?

I still experience the original problem and I think that the solution suggested would be a workaround in my case.

@semone - as you pointed out in this issue's description, Intl.message() (and etc) calls must specify a locale parameter to pick the current locale, as in https://github.com/flutter/website/pull/3013/files.  DateFormat calls must do the same.
I don't think our tutorials or API doc cover this, so this issue should probably stay open until they do. On the other hand, I do think that this "workaround" will persist. In other words, we need to document the fact that intl package constructors like DateFormat and NumberFormat will always require a locale argument in Flutter applications.

Putting it that way, yes it actually makes sense to specify the parameter for DateFormat calls as well.
And as you point out, some documentation about it would be great!
And thanks for all the really quick responses 💪

CC @shihaohong


US 30535 - Terraform - FSLogix with ADDS

Overview/Summary
Adds the Management VM module to Terraform, including joining the storage account to the domain and a user assigned managed identity.
This PR fixes/adds/changes/removes

Adds MGMTVM module to Terraform workload.

Breaking Changes

N/A

Testing Evidence
TO BE ADDED.
As part of this Pull Request I have

[X] Read the Contribution Guide and ensured this PR is compliant with the guide
[X] Ensured the resource API versions in .bicep file/s I am adding/editing are using the latest API version possible
[X] Checked for duplicate Pull Requests
[X] Associated it with relevant GitHub Issues
[X] (AVD LZA Team Only) Associated it with relevant ADO Items
[X] Ensured my code/branch is up-to-date with the latest changes in the main branch
[X] Performed testing and provided evidence.
[X] Updated relevant and associated documentation (e.g. Contribution Guide, Module READMEs, Docs etc.)

@jensheerin
Sorry it's taken so long. Requested changes have since been addressed - see latest push. Re-requested review

DNM
@JamJarchitect Thank you for the update. Please run validate and fix errors, then resubmit for review.


On trying to connect to a cloud based redis db, my stream pod crashes

Describe the bug
Using the new feature to connect to a cloud based redis db, my stream pod crashes.
To Reproduce

For stream source, use:
address: "rediss://$USERNAME:$PASSWORD@7f41ece8-ccb3-43df-b35b-7716e27b222e.b2b5a92ee2df47d58bad0fa448c15585.databases.appdomain.cloud:32086"
This is the error I see:
panic: dial tcp: address: rediss://username:password@redisinstance.databases.appdomain.cloud:30285: too many colons in address

I also tried removing the rediss:// but neither worked.

/assign @aavarghese

@aavarghese updated my version of eventing-redis, and issue is gone. Sorry about that!


Run HelloWorld using Gradle document is confusing.

Hello!
I was following the javafx documentation. I see description on build.gradle. However, it is not clear how gradle/wrapper files (like jar file) could be obtained. Also "./gradlew run" shows
"Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain".
I have
$ java -version java version "13.0.1" 2019-10-15 Java(TM) SE Runtime Environment (build 13.0.1+9) Java HotSpot(TM) 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)
and
$ gradle -v
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/usr/share/java/groovy-all.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release
Gradle 4.4.1
Build time:   2012-12-21 00:00:00 UTC Revision:     none
Groovy:       2.4.16 Ant:          Apache Ant(TM) version 1.10.5 compiled on March 28 2019 JVM:          13.0.1 (Oracle Corporation 13.0.1+9) OS:           Linux 4.15.0-65-generic amd64
The ERROR showing illegal reflective access does not appear if I use jre 1.8.0.
Please suggest how may I run?
Thanks

The doc says to use gradle version 4.10+. Try updating your gradle version and it should work out.


decoder: Always attempt to produce data

Some images contain data outside the final scan so we need to account
for this.
Not sure if we should overwrite planes like we do if we have overlap but the added reftest succeeds with this patch.
Issue: https://github.com/image-rs/image/issues/1234

Do you know any details on the copyright status of the reference test?

@HeroicKatora Not sure about copyright, @Shnatsel do you know?
Also with regards to opimization, is it possible to know somehow if we're at the last progressive scan for a plane? This way we can skip decoding previous progressive planes. Cargo bench has gone up for decode a 512x512 progressive JPEG by 198%.

@Shnatsel Where did you find them?

Related issue: https://github.com/image-rs/jpeg-decoder/issues/96

This image is from an image collection that was going around via snail mailed over a decade ago. Sadly the copyright information is long lost.

Perhaps we should keep the progressive configuration and replace the content with a color gradient or something. Anyone know how to do this?

@BourgondAries Not sure, but if you find out that would be interesting for many other samples as well.

I'll try mangling and minimizing the test case with a fuzzer. Hang on

Done:

I made the fuzz harness crash if this particular error is encountered, and then used AFL's peruvian were-rabbit mode it discover other inputs that caused the same crash. Code used:
use afl::fuzz;

use jpeg_decoder::{Decoder, Error};

#[inline(always)]
fn decode(data: &[u8]) -> Result<Vec<u8>, Error> {
    let mut decoder = Decoder::new(data);
    decoder.decode()
}

fn main() {
    fuzz(true, |data: &[u8]| {
        let result = decode(data);
        if let Err(error) = result {
            match error {
                Error::Format(error_string) => {
                    if error_string == "no data found" {
                        panic!("That's me")
                    }
                }
                Error::Unsupported(_) => {}
                Error::Io(_) => {}
                Error::Internal(_) => {}
            }
        }

    });
}

But I'm not sure a valid reference render even exists for this autogenerated file.

@Shnatsel that image can't be converted by imagemagick for the reftests.

@Schnatsel the read data gives a difference from imagemagick's conversion to png (that's likely another bug). I think we need an image that just reproduces the progressiveness of the cat picture.

Try this one

Still the same (decoding difference: "tests/reftest/images/partial_progressive-diff.png", maximum difference was 231), convert also issues a bunch of warnings including convert: Corrupt JPEG data: premature end of data segment partial_progressive.jpg' @ warning/jpeg.c/JPEGWarningHandler/397.`
So this might be outside the spec (hence the difference in decoded data?).

Yeah, the autogenerated images I posted likely exercise some undefined behavior. The original cat picture triggers no warnings though.

I've force-pushed with a file generated by fuzzing that was convertible by imagemagick (only has some corrupt data before its header, but this works), thanks @Shnatsel!

@HeroicKatora is this good for merging?

Cargo bench has gone up for decode a 512x512 progressive JPEG by 198%.

Is this still the case? Even though I'm the person who originally filed the issue, I'm not convinced that supporting <0.1% of extra images is worth taking a 3x performance hit on all interlaced images.

@Shnatsel should still be the case, yes.
We could do re-do the jpeg decode by including planes if there exist missing planes here:
        if planes.is_empty() || planes.iter().any(|plane| plane.is_empty()) {
            return Err(Error::Format("no data found".to_owned()));
        }

This would still be correct, and only impact performance of these very rare images. If you think this is a good idea I can write a patch later today.

That sounds good. I kind of assumed you were already going to try this anyways since you asked about optimization somewhere early. The PR is also a good PoC for the method of reproducing and regression testing decoding errors while avoiding IP issues, that might actually have alot more impact than this issue, format, library or even use case :smile:

The above appears to have a failure originating in criterion. Not sure if related to my patch.

It seems criterion 0.3.3 uses an unstable library feature in rust 1.34.2, I've attempted pushing with criterion 0.3.2 but 0.3.3 was still being compiled. @HeroicKatora

Nice! Since the issue stems from coefficients_finished being unreliable, could you also add a comment why this extra code path is necessary, i.e. why the calculation of coefficients_finished can't be fixed?

@Shnatsel I honestly wouldn't know since I know nothing of JPEG decoding, but it seems like it assumes planes will be available when all coefficients are non-zero, which in some jpegs isn't the case.
Added a comment in code similar to this.

You can ignore criterion failing for now (although it's annoying that CI doesn't continue with the other checks..).
That said, I'm not convinced that is a lot better. It introduces a new trait bound which is a major (breaking) change. In a sense, that is is the ultimate regression or non-fix¹. And I still don't sincerely get how this is broken in the first place. Brute-force decoding all scans and components is hardly a satisfying explanation. Is there a way to check if we'll need a single component in a scan later? Which wrong assumption does the code in the current form make (and then how do we correct it)? Why do other decoders not trip up, I'm sure not reasonably fast one will reparse the whole file? Could it be that compoments are allowed to be finished in different scans?
¹Also note that seeking to Start(0) is not correct. It only works if the stream was at that position initially. That is not necessarily true.

I honestly wouldn't know since I know nothing of JPEG decoding, but it seems like it assumes planes will be available when all coefficients are non-zero, which in some jpegs isn't the case.

Didn't see that before writing the comment. That might be the first good lead. More precisely it assumes all coefficients of all planes are non-zero at the same time. Maybe that is not guaranteed?

Here's a trace of the coefficients while decoding the above image:
Next scan
Component 0: coeff 0
Component 1: coeff 0
Component 2: coeff 0
Next scan
Component 2: coeff<PHONE_NUMBER>3709551614
Next scan
Component 1: coeff<PHONE_NUMBER>3709551614
Next scan
Component 0: coeff 1
Component 1: coeff<PHONE_NUMBER>3709551615
Component 2: coeff<PHONE_NUMBER>3709551615
Next scan
Component 0: coeff<PHONE_NUMBER>3709551615

I assume that plane 1 and 2 should be decoded in the second to last scan, and plane 0 in the last one. However, the current code would only decode the 0th plane and ignore the 1st and 2nd.

Changing all to any fixes it.

That would be the second confirmation then. I presume it might fail some tests though since it might overwrite some completed planes in later scans and it sounds more costly, e.g. the 0-plane would be decoded and discarded in the second to last scan here.  I think we should treat each component of a scan separately. That would also come without any big performance cost as each plane is decoded once when completed.

Been trying to only make workers work on planes with self.coefficients_finished[i] == !0, but there's some dependencies here that I don't quite understand (causing among others out-of-bounds errors).
The previously pushed progressive image also differs from the cat picture in that it only finishes plane 0 and 1, but leaves plane 2 at 1. What should we do in such cases? We are right in producing data but our coefficient is at 1.
I looked at perhaps doing a look-ahead for an EOI marker (in which case we can force produce_data=true) but that marker is generated after decoding.

The applicable section appears to be the inverse of itu-t81, G.1.2.2 as mention in the paragraph that is G.2. For some reason, this particularly detailed and intricate part of the spec is not replicated for the decoder but relies on reversing the encoding procedure. Note that some easier scenarios contain full, lengthy descriptions of the procedure. W T F.

It appears, even though it does not explicitely say, that the specification allows any prefix of low-frequency bands to be specified. Only the zeroe'th coefficient (called DC) must be specified for all components in a frame. In progressive mode the coefficients of a components may further be divided into bands (that is, coefficients with subsequent indices) and a scan may contain a block of coefficients from any band of any component. Missing coefficients should be substituted by zeroes. If I read this right, then it may not even be necessary to specify all coefficients for an image to decode.
One particular restriction, which currently does not appear to be checked, for progressive encoded data:

[..] only  scans  which  code  DC coefficients  may  have interleaved blocks from more than one component. All other scans shall have only one component.

One further quote in the encoding part:

However, it is convenient to calculate the FDCT for the entire set of components in a frame before starting the scans

Since the decoding section says that the encoding should be reversed, it seems to follow that the recommendation is for all IDCT to start only after all scans have been completed. I'm not sure if I'm reading too much into it or how efficient this actually is.

The previously pushed progressive image also differs from the cat picture [..]

I noted. I have a patch ready that would fix the original image but not the reduced sample :(

The previously pushed progressive image also differs from the cat picture [..]

I noted. I have a patch ready that would fix the original image but not the reduced sample :(

Great! I don't think I can help much more with regards to fixing the encoder. I'll close this PR. Thanks for your time.

Thank you for your time and help with trying out ideas. And your input towards producing replacement images :)

The reduced sample decoding differently might be valid. I don't expect the JPEG spec to fully define all behavior, so it probably triggers some edge cases not clearly defined by the spec. As long as the original image decodes and does not make everything 3x slower, I'd be happy.

@BourgondAries thanks your contributions! This issue turned out to be more thorny than anticipated, but I feel you've made good progress here!


Deactivate Workload if any of its AdmissionCheck get Rejected

What type of PR is this?
/kind feature

What this PR does / why we need it:
To unify behavior of Workloads which got an AdmissionCheck Rejected
Which issue(s) this PR fixes:

Special notes for your reviewer:
Please wait until #2196 is merged
Does this PR introduce a user-facing change?

A workload with a Rejected AdmissionCheck gets deactivated

/assign @alculquicondor
cc @mimowo

/retest

/retest

cc @tenzen-y

/lgtm
/approve

/hold

/hold cancel

Please update the documentation for this.

/release-note-edit
AdmissionChecks: A workload with a Rejected AdmissionCheck gets deactivated


feat: add support for embedded structs

Adds support for the embedded structs. For fields of embedded struct, there's no prefix added.

Closing as badly created PR (branch mismatch).


count() should result in 0 if no timeseries found

Proposal
Use case. Why is this important?
for dynamic metrics, like node_exporters node_filesystem* where for each mountpoint that metrics increase, i use count() in alert-rules like here:
count(node_filesystem_avail_bytes{instance="nas.example.com",mountpoint=~"/srv/nas/(backups|files)"}) < 2

to get notified when one of them is not mounted anymore.
it works perfectly if one is missing as count() then returns 1 and the rule fires. but it does not fire if both are missing because than count() returns no data
the workaround is to additionally check with absent() but it's on the one hand annoying to double-check on each rule and on the other hand count should be able to "count" zero timeseries too.
Bug Report
What did you do?
used count(...) in alert rules to get notified on missing metrics
What did you expect to see?
count(...) should return 0 if there is no result
What did you see instead? Under which circumstances?
count(...) returns no data if there are no metrics and so alert-rule does not fire (rule: count(...) < 2)

System information:
Linux 4.14.70-v7+ armv7l
Prometheus version:
prometheus 2.4.2
Alertmanager version:
alertmanager, version 0.15.2
Alertmanager configuration file:

  - alert: important_nas_mounts_missing
    expr: count(node_filesystem_avail_bytes{instance="nas.example.com",mountpoint=~"/srv/nas/(backups|files)"}) < 2
    for: 5m
    labels:
      severity: critical
    annotations:
      summary: IMPORTANT NAS MOUNTS MISSING
      description: 'backups or files mount on nas.example.com missing'

See https://www.robustperception.io/why-can-countx-5-not-return-0. You want
bool.
On Sun 9 Dec 2018, 12:57 Stefan Geisbacher<EMAIL_ADDRESS>wrote:

Proposal
Use case. Why is this important?
for dynamic metrics, like node_exporters node_filesystem* where for
each mountpoint that metrics increase, i use count() in alert-rules like
here:
count(node_filesystem_avail_bytes{instance="nas.example.com",mountpoint=~"/srv/nas/(backups|files)"}) < 2
to get notified when one of them is not mounted anymore.
it works perfectly if one is missing as count() then returns 1 and the
rule fires. but it does not fire if both are missing because than count()
returns no-data
the workaround is to additionally check with absent() but it's on the
one hand annoying to double-check on each rule and on the other hand count
should be able to "count" zero timeseries too.
Bug Report
What did you do?
used count(...) in alert rules to get notified on missing metrics
What did you expect to see?
count(...) should return 0 if there is no result
What did you see instead? Under which circumstances?
count(...) returns no-data if there are no metrics and so alert-rule
does not fire (rule: count(...) < 2)

System information:
Linux 4.14.70-v7+ armv7l

Prometheus version:
prometheus 2.4.2

Alertmanager version:
alertmanager, version 0.15.2

Alertmanager configuration file:

alert: important_nas_mounts_missing
expr: count(node_filesystem_avail_bytes{instance="nas.example.com",mountpoint=~"/srv/nas/(backups|files)"}) < 2
for: 5m
labels:
severity: critical
annotations:
summary: IMPORTANT NAS MOUNTS MISSING
description: 'backups or files mount on nas.example.com missing'

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/4982, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGyTdhxU4Z5CRvsSrnewHmK2K61ww9JPks5u3PrGgaJpZM4ZKFm2
.

oh ok, thx but to be honest thats not very intuitive and every new count()-user will fall in this trap again i guess 😅
nevertheless i'm comparing result of count() not inside like in your example. i'm not filtering by operator but by regex on a label.
so i think bool does not work here. is there some other workarround?

https://www.robustperception.io/absent-alerting-for-scraped-metrics should
point you in the right direction.
In relation to your proposal, what labels would count return in this case?
On Sun 9 Dec 2018, 13:30 Stefan Geisbacher<EMAIL_ADDRESS>wrote:

oh ok, thx but to be honest thats not very intuitive and every new
count()-user will fall in this trap again i guess 😅
nevertheless i'm comparing result of count() not inside like in your
example. i'm not filtering by operator but by regex on a label.
so i think bool does not work here. is there some other workarround?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/prometheus/prometheus/issues/4982#issuecomment-445533668,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGyTdu47Gf_UPIsHZURvicDJi54Qk_7Oks5u3QJ2gaJpZM4ZKFm2
.


Extend Azure Blob Services API with Content Type

The intent of this change is to extend PutBlobBlockBlobStream and PutBlobBlockBlobText procedures with ContentType parameter.

@microsoft-github-policy-service agree

Kind of sounds as if we're ready to go with this one? We'd need some approvals, and off we go! 🚀

Hey @JesperSchulz - just want to check if there is anything left from my side to merge this pull request.

Sorry, I've been a little slow here on GitHub the past weeks. We're good to go! Let's do this!

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11413.

Availability update: We will publish a fix for this issue in the next update for release 22.
Build ID to track: 58610.


add ugm.ac.id

add ugm.ac.id

@fransiskusak I am sorry, the domain mail.ugm.ac.id is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


Root password for virtual machine

I am required to install few packages in the ubuntu VB image for which I need sudo permissions. Could you please provide the root password for the VB image provided for the sessions.

Hi Venkatesh,
The password of the virtual machine is "password".
On Fri, Aug 4, 2017 at 2:41 PM, venkatesh gummadi<EMAIL_ADDRESS>wrote:

I am required to install few packages in the ubuntu VB image for which I
need sudo permissions. Could you please provide the root password for the
VB image provided for the sessions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/anujgupta82/Representation-Learning-for-NLP/issues/4,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADJUns0TMgMxL3HAO-ILHBZMEhvWNAKaks5sUuBDgaJpZM4Otd7S
.


MinGW64 - openssl

Hunter can't compile openssl at MinGW64
[hunter ** FATAL ERROR **] Build step failed (dir: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL
[hunter ** FATAL ERROR **] [Directory:C:/msys64/home/user/.hunter/_Base/Download/Hunter/0.19.213/59b2b88/Unpacked/cmake/projects/OpenSSL]

Please fill the ISSUE_TEMPLATE.md file:

https://raw.githubusercontent.com/ruslo/hunter/master/.github/ISSUE_TEMPLATE.md

Part:
<!--- Use this part of template if you want to report bug. Remove the rest. -->
<!--- BEGIN -->

...

<!--- END -->

$ cmake --build Build
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 1/3/2018 7:15:20 ▒▒.
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ZERO_CHECK.vcxproj" (default targets).
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
  Touching "x64\Debug\OpenSSL\OpenSSL.tlog\unsuccessfulbuild".
CustomBuild:
  Building Custom Rule C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/CMakeLists.txt
  CMake does not need to re-run because C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Build/CMakeFiles/generate.stamp is up-to-date.
  Creating directories for 'OpenSSL'
  Performing download step (download, verify and extract) for 'OpenSSL'
  -- verifying file...
         file='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
  -- File already exists and hash match (skip download):
    file='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
    SHA1='07a8861dfb51d3ba983668f0f8daeac49bf3dbc3'
  -- extracting...
       src='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
       dst='C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source'
  -- extracting... [tar xfz]
  -- extracting... [analysis]
  -- extracting... [rename]
  CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
    file RENAME failed to rename

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1235/openssl-OpenSSL_1_1_0g

    to

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source

    because: No such file or directory

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj]
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (default target) (3) ->
(CustomBuild target) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.36

  CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
    file RENAME failed to rename
      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1235/openssl-OpenSSL_1_1_0g
    to
      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source
    because: No such file or directory

It's a CMake ExternalProject_Add glitch, you can report the error to https://gitlab.kitware.com/cmake/cmake/issues
As a workaround simply restart build again.

Please fill the ISSUE_TEMPLATE.md file

Please don't ignore this request, thank you.

Here
c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\
i try
$ cmake --build Build
and the same error always occurs.
Full output:
MINGW64 ~/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL
$ cmake --build Build
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 2/3/2018 12:57:51 ▒▒.
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  All outputs are up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ZERO_CHECK.vcxproj" (default targets).
Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (1) is building "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:
  Touching "x64\Debug\OpenSSL\OpenSSL.tlog\unsuccessfulbuild".
CustomBuild:
  Building Custom Rule C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/CMakeLists.txt
  CMake does not need to re-run because C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Build/CMakeFiles/generate.stamp is up-to-date.
  Creating directories for 'OpenSSL'
  Performing download step (download, verify and extract) for 'OpenSSL'
  -- verifying file...
         file='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
  -- File already exists and hash match (skip download):
    file='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
    SHA1='07a8861dfb51d3ba983668f0f8daeac49bf3dbc3'
  -- extracting...
       src='C:/msys64/home/user/.hunter/_Base/Download/OpenSSL/1.1.0g/07a8861/OpenSSL_1_1_0g.tar.gz'
       dst='C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source'
  -- extracting... [tar xfz]
  -- extracting... [analysis]
  -- extracting... [rename]
  CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
    file RENAME failed to rename

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1242/openssl-OpenSSL_1_1_0g

    to

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source

    because: No such file or directory

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj]
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj" (default target) (3) ->
(CustomBuild target) ->
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 1. [C:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Build\OpenSSL.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:06.72

Error:
  CMake Error at Build/OpenSSL-prefix/src/OpenSSL-stamp/extract-OpenSSL.cmake:51 (file):
    file RENAME failed to rename

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/ex-OpenSSL1242/openssl-OpenSSL_1_1_0g

    to

      C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL/Source

    because: No such file or directory

In the c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\ directory after the first failed run, a folder appears.
The folder name is ex-OpenSSL1234.
After each failed run, a new folder appears.
The folder name is ex-OpenSSLxxxx. "xxxx" the number "1234" plus 1 for every failed run.
All ex-OpenSSLxxxx folders have the same sub folder openssl-OpenSSL_1_1_0g witch contains the source code of "OpenSSL v1.1.0g"
Any suggestions to solve problem manually?
Thank you!

Any suggestions to solve problem manually?

Remove problematic directory, turn off antivirus software if you have any, restart your machine. Usually on Windows also it's better to use as short path as possible because of 256 path length limitation, e.g. use C:\.hunter.

Antivirus = Off
Reboot = Every time
New update info:
The directory:
c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\Source\
contains a file NUL witch is 45 bytes and can't be delete.
The only way to delete that file is dualboot Ubuntu and delete without any problem.
At Windows it's impossible.
Command type (Windows) / cat (Linux) din't show anything.

Copy .hunter' to C:` and try to build there c/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Build/OpenSSL.
Same build error!

contains a file NUL witch is 45 bytes and can't be delete

https://stackoverflow.com/a/17883854

Hunter can't compile openssl at MinGW64

According to this output:
Build started ...
Project "...\ALL_BUILD.vcxproj"
InitializeBuildStatus:
  ...
CustomBuild:
  ...
FinalizeBuildStatus:
  ...
Done Building Project "...\ZERO_CHECK.vcxproj" (default targets).
Project "...\ALL_BUILD.vcxproj" (1) is building "...\OpenSSL.vcxproj" (3) on node 1 (default targets).
InitializeBuildStatus:

It seems that you're using "Visual Studio" generator instead of "MinGW Makefiles"

@ruslo i try to build and install openssl from git://github.com/openssl/openssl.git and was successful but hunter still try to compile his own openssl version.
Any suggestions to skip that step manually?
Thank you!

Any suggestions to skip that step manually?

Can't help with that.

I have compile openssl-OpenSSL_1_1_0g.
I have copy

/dist/bin
/dist/include
/dist/lib
/dist/share
/dist/ssl
to c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Install\.

I have erase all files at
c:\msys64\home\user\.hunter\_Base\59b2b88\a1e037f\aa3cb20\Build\OpenSSL\
exept

DONE
internal_deps.id
types.info

I have put the cache.sha1 with the right sha at the folder.

I have try to compile the project but i have get the following output:

cmake .. -G Visual Studio 14 2015 Win64 -T v140,host=x64 -DETHASHCUDA=ON -DETHASHCL=OFF -DETHSTRATUM=ON -DAPICORE=OFF
-- Found PythonInterp: C:/msys64/usr/bin/python2.7.exe (found version "2.7.13")
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [cable] Configurations: Release;RelWithDebInfo;Debug
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: C:/msys64/home/user/.hunter
-- [hunter] [ Hunter-ID: 59b2b88 | Toolchain-ID: a1e037f | Config-ID: aa3cb20 ]
-- [hunter] BOOST_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.64.0)
-- [hunter] BOOST_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.64.0)
-- Boost version: 1.64.0
-- Found the following Boost libraries:
--   system
-- [hunter] JSONCPP_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.8.0)
-- [hunter] LIBJSON-RPC-CPP_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 0.7.0-p3)
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found ZLIB: ZLIB::zlib
------------------------------------------------------------------------
-- CMake 3.10.2
-- Build  / Windows
------------------------------------------------------------- components
-- ETHASHCL         Build OpenCL components                  OFF
-- ETHASHCUDA       Build CUDA components                    ON
-- ETHDBUS          Build D-Bus components                   OFF
-- APICORE          Build API Server components              OFF
------------------------------------------------------------------------

-- Found Git: C:/msys64/usr/bin/git.exe (found version "2.16.2")
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1 (found version "9.1")
-- [hunter] OPENSSL_ROOT: C:/msys64/home/user/.hunter/_Base/59b2b88/a1e037f/aa3cb20/Install (ver.: 1.1.0g)
CMake Error at C:/msys64/mingw64/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES) (found
  version "1.1.0g")
Call Stack (most recent call first):
  C:/msys64/mingw64/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  C:/msys64/home/user/.hunter/_Base/Download/Hunter/0.19.213/59b2b88/Unpacked/cmake/find/FindOpenSSL.cmake:349 (find_package_handle_standard_args)
  libpoolprotocols/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred!
See also "C:/msys64/home/user/ethminer/build/CMakeFiles/CMakeOutput.log".
See also "C:/msys64/home/user/ethminer/build/CMakeFiles/CMakeError.log".

Something is missing and openssl cannot be found.
I have try to set the openssl path at cmake command with several ways. Nothing happens.
What i missing?
Thank you!

Hunter is not designed to be used this way.
I will close this issue, if you want to report bugs please read and fill this form:

https://raw.githubusercontent.com/ruslo/hunter/master/.github/ISSUE_TEMPLATE.md

Thanks.

Hello, i have same issue than this one. However its not the root error.
This error occur after a previous one during configure time.
Running cmake on windows from powershell result on a buildable openssl lib.
But exactly same operation fail under MinGW(github bash)
The error is in that command
  CMake Error at C:/hunter/_Base/f44b698/41d1ddc/bf49b96/Build/OpenSSL/Build/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug.cmake:49 (message):
    Command failed: 1

     'C:/Program Files/CMake/bin/cmake.exe' '-Dmake=' '-Dconfig=Debug' '-P' 'C:/hunter/_Base/f44b698/41d1ddc/bf49b96/Build/OpenSSL/Build/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-Debug-impl.cmake'

    See also

      C:/hunter/_Base/f44b698/41d1ddc/bf49b96/Build/OpenSSL/Build/OpenSSL-prefix/src/OpenSSL-stamp/OpenSSL-configure-*.log

if i just retry to build i get same error of the OP.
After more digging it look like it fail at
perl Configure VC-WIN64A no-asm no-shared "--prefix=C:/hunter/_Base/f44b698/41d1ddc/bf49b96/Build/OpenSSL/Install" "--openssldir=C:/hunter/_Base/f44b698/41d1ddc/bf49b96/Build/OpenSSL/Install/ssl" RESULT_VARIABLE result)```

Problem is i want my Builder script to be crossplaform and so be written in .sh.
I tryed as a workaround to call 'powershell.exe "cmake ..."' from my bash script but it fail at same place.

Do you think of any other workaround i could made without beeing forced to provide a .ps1/.bat along with my .sh script?

update to latest git 2.22
older version of OpenSSL (1.1.1)
in git console i tryed "start powershell.exe cmake ..."
in git console i tryed "start cmd cmake ..."
compared perl version in git console vs powershell version and the powershell version is older.
reinstalled git with symlink capabilities.

Nothing of that fix the issue. OpenSSL fail to build under git console.

Hello, i have same issue than this one.

Please avoid adding messages to closed issues unless it’s absolutely necessary:

https://docs.hunter.sh/en/latest/contacts.html#please-don-t

Nothing of that fix the issue. OpenSSL fail to build under git console.

MinGW build is already excluded and is known to be broken:

https://github.com/ingenue/hunter/blob/402549f04211ada4a6458af4fb3b0076b12bc320/appveyor.yml#L31-L41

No need to report it unless you have a solution or understanding of how to fix it. Please read:

https://docs.hunter.sh/en/latest/reference/errors/error.external.build.failed.html#what-to-do


Get the latest known certificate header for a given network from the AggLayer API

As an AggLayer node, I want to expose the latest known certificate header considered for a given network, so that the AggSender knows from where it left.
Acceptance Criteria

The information is retrievable from the AggLayer API on kurtosis-cdk
Linked testing ticket: #406

Suggestions
- This can be an adaptation of the existing rpc getCertificateHeader to make it consider latest for the height parameter.
Definition of Done

[ ] All acceptance criteria are met.
[ ] Code is reviewed and approved.
[ ] Necessary tests are written and pass.
[ ] Documentation is updated, if applicable.
[ ] Feature is part of a release (created or planned).

Modifying the ticket from its original content to match the new expectation.


[web]: TextField onSubmitted is not triggered when pressing enter

On mobile, pressing the enter key while editing a TextField triggers onSubmitted.
On the web, it is never called.
Example:
        body: TextField(
          onSubmitted: (s) {
            // this is never called
            debugPrint('onSubmitted s=$s');
          },
        ),

In the meantime, there's a workaround with RawKeyboardListener:
        body: RawKeyboardListener(
          focusNode: focusNode,
          onKey: (event) {
            if (event is RawKeyUpEvent && event.data is RawKeyEventDataAndroid) {
              var data = event.data as RawKeyEventDataAndroid;
              if (data.keyCode == 13) {
                debugPrint('onSubmitted');
              }
            }
          },
          child: TextField(),
        ),

But it would be nice if it was natively handled.
By the way, contrary to https://github.com/flutter/flutter/issues/19027 there is absolutely no log when pressing enter. Nothing like inactive InputConnection, etc.
edit:
flutter_web version: commit 1ed4317 (June 22)
Mac OS X 10.14.5 18F132, locale en-KR

Maybe if you use streams with the onChanged event you could reach the same result

As far as a I know, onChanged is triggered only on content change. The enter key does not modify the content text so onChanged is not triggered.

@deckerst is this still an issue for you?

The issue still exists in Flutter 1.10.5, but this is not a blocker thanks to the workaround mentioned above.

@deckerst Can you please elaborate on your workaround a bit? I have trouble integrating it in my program.
First of all I did not have a focusNode, so I just hand in a new one FocusNode()  second I had to change RawKeyEventDataAndroid to RawKeyEventDataWeb and data.keyCode == 13 to data.code == "Enter"
Now I finally have the print output 'onSubmited' but how would I now access the child widgets text in the event handler?

@sturmf the focusNode was necessary for another purpose, not needed here.
And you're right: things have recently changed with regards to RawEventDataAndroid v RawKeyEventDataWeb. To access the TextField content, just give it a TextEditingController and access that later.
  final TextEditingController editingController = TextEditingController();
...
                  RawKeyboardListener(
                    onKey: onTextFieldKey,
                    child: TextField(
                      controller: editingController,
                    ),
                  )
...
  onTextFieldKey(RawKeyEvent event) {
    if (event is RawKeyUpEvent) {
      if (event.logicalKey == LogicalKeyboardKey.enter) {
        submit();
      } else if (event.data is RawKeyEventDataWeb) {
        final data = event.data as RawKeyEventDataWeb;
        if (data.keyLabel == 'Enter') submit();
      } else if (event.data is RawKeyEventDataAndroid) {
        final data = event.data as RawKeyEventDataAndroid;
        if (data.keyCode == 13) submit();
      }
    }
  }

  submit() {
    final input = editingController.text;
    // have fun
  }

Thanks, got it working for me too. Unfortunately quite a bit of additional code, so I hope it gets fixed soon!

CC: @nturgut

/cc @mdebbar recently added a keymap for keyboard codes.

Will onSubmitted be supported?

I know this is closed, but I wanted to mention that it's working in an annoying way for me.  even a focus change now triggers the onFieldSubmitted, not just enter key.  So I can't tell in my dialog if they hit enter or if they just lost focus on the text field.  Should I enter a bug for that?
I entered a stackoverflow
https://stackoverflow.com/questions/60814200/flutter-handle-enter-key-for-textformfield-ignore-focus-change

@jdeltoft Using a keyboard listener is probably the best way if you want the enter key to do something other than invoke the onSubmitted callback on a text field. You're right, there's no way to know the reason the onSubmitted callback was invoked, and it right now the framework will call it when the field loses focus or when the enter key is pressed.

FYI https://github.com/flutter/flutter/issues/52656. Some of raw keyboard event is currently not listenable

@johnpryan  Thanks, bummer.  :( Losing focus to me seems like logically it shouldn't be "submitted".  I guess I should enter a feature request


min and max functions don't work properly with multi yaxis

In my app I can have multiple yaxis in a single chart, they're all different variables with different min and max values. I've noticed that the min and max formatter for the yaxis works great when there is a single yaxis in the chart, but when there are multiple lines or multiple yaxis, it just gets the min and max value from all the series.
For example, I have a series which max and min values are 41629 and 8494 respectively and another series with 5 and 1 as max and min values. If they both appear in the chart, the max and min formatter for both yaxis gets 41629 and 1 because it gets the max and min from both series and it doesn't render the lines properly.
Here's a codepen to explain myself better:
https://codesandbox.io/s/069575mmv
See that one of the lines looks like a straight line but if you disable the other one, it will look better. You should also see that both yaxis have the same max and min values but they change when you disable one of the lines.

I am having the same issue, shown in this Codepen: https://codepen.io/azivkovi/pen/dypMzXm
Is there a way to get min & max for one of the multiple axis?

In the new version max value is calculating correctly, but the min value is faulty. The Codepen shows the issue in console:
pen.js:26 Max value: 1000
pen.js:22 Min value: 5e-324 // expected 400
pen.js:37 Max value: 9
pen.js:33 Min value: 5e-324 // expected 0

It appears there is a new bug now, but when you have two series plotted on a single y-axis and functionally declare min and max.
If min and max are not set in y-axis options, everything is good.
Codepen: https://codepen.io/azivkovi/pen/dypMzXm
Apologies for headaches, Juned.

@azivkovi Ouch! should've tested it better. No worries, I will fix it soon.

Related #2098 ?

Released  v3.23.0 which should fix this.

Something weird is happening still: https://codepen.io/azivkovi/pen/dypMzXm
Max is shown as 104, expected 100 and min is 16, expected 20. I don't know what is special about that series, but if I try something else like [-2,1,3,4,5,6,7,70] it works as expected.

Juned, you will notice there is still some lingering problem with min for two series: https://codepen.io/azivkovi/pen/dypMzXm
Series 1 min max: 0 & 100, expected: 20 & 100
Series 1 min max: 0 & 15, expected: 1 & 15

Juned, you will notice there is still some lingering problem with min for two series: https://codepen.io/azivkovi/pen/dypMzXm
Series 1 min max: 0 & 100, expected: 20 & 100
Series 1 min max: 0 & 15, expected: 1 & 15

@junedchhipa I hope it's ok to continue conversation here, I can open a new issue if you prefer it that way. Thanks :)

@junedchhipa I hope it's ok to continue conversation here, I can open a new issue if you prefer it that way. Thanks :)

fixed as tested on v3.52.0


Viewpoint is underground when using Oculus XR Settings

When I test the default Unity WebVR scene in the Unity editor, my viewpoint is fine if I have OpenVR first in the XR Settings, but if I move Oculus to be first, then my head is way underground.
I'm using Unity 2018.1.0f2 and Oculus App Version <IP_ADDRESS>2280

Fixed with https://github.com/mozilla/unity-webvr-export/pull/316


[ffmpeg] failed build

Setup: Windows 10, vs 2017.
Package: ffmpeg:x86-windows
Problem: command .\vcpkg install ffmpeg fails..
output
The following packages will be built and installed:
    ffmpeg[core]:x86-windows
Starting package 1/1: ffmpeg:x86-windows
Building package ffmpeg:x86-windows...
-- CURRENT_INSTALLED_DIR=G:/Programmation/Visual Studio 2017 Projects/vcpkg/installed/x86-windows
-- DOWNLOADS=G:/Programmation/Visual Studio 2017 Projects/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=G:/Programmation/Visual Studio 2017 Projects/vcpkg/packages/ffmpeg_x86-windows
-- CURRENT_BUILDTREES_DIR=G:/Programmation/Visual Studio 2017 Projects/vcpkg/buildtrees/ffmpeg
-- CURRENT_PORT_DIR=G:/Programmation/Visual Studio 2017 Projects/vcpkg/ports/ffmpeg/.
-- Using cached G:/Programmation/Visual Studio 2017 Projects/vcpkg/downloads/ffmpeg-3.3.3.tar.bz2
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting done
-- Applying patch G:/Programmation/Visual Studio 2017 Projects/vcpkg/ports/ffmpeg/detect-openssl.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch G:/Programmation/Visual Studio 2017 Projects/vcpkg/ports/ffmpeg/detect-openssl.patch done
-- Building ffmpeg for Release
CMake Error at G:/Programmation/Visual Studio 2017 Projects/vcpkg/scripts/cmake/vcpkg_execute_required_process.cmake:44 (message):
    Command failed: G:/Programmation/Visual Studio 2017 Projects/vcpkg/downloads/tools/msys2/msys64/usr/bin/bash.exe;--noprofile;--norc;G:/Programmation/Visual Studio 2017 Projects/vcpkg/ports/ffmpeg\build.sh;G:/Programmation/Visual Studio 2017 Projects/vcpkg/buildtrees/ffmpeg/x86-windows-rel;G:/Programmation/Visual Studio 2017 Projects/vcpkg/buildtrees/ffmpeg/src/ffmpeg-3.3.3;G:/Programmation/Visual Studio 2017 Projects/vcpkg/packages/ffmpeg_x86-windows;--disable-ffmpeg --disable-ffprobe --disable-doc --enable-debug --enable-runtime-cpudetect --disable-openssl --extra-cflags=-DHAVE_UNISTD_H=0 --disable-static --enable-shared  --extra-cflags=-MD --extra-cxxflags=-MD
    Working Directory: G:/Programmation/Visual Studio 2017 Projects/vcpkg/buildtrees/ffmpeg/x86-windows-rel
    See logs for more information:
      G:\Programmation\Visual Studio 2017 Projects\vcpkg\buildtrees\ffmpeg\build-x86-windows-rel-out.log
      G:\Programmation\Visual Studio 2017 Projects\vcpkg\buildtrees\ffmpeg\build-x86-windows-rel-err.log

Call Stack (most recent call first):
  G:/Programmation/Visual Studio 2017 Projects/vcpkg/ports/ffmpeg/portfile.cmake:88 (vcpkg_execute_required_process)
  G:/Programmation/Visual Studio 2017 Projects/vcpkg/scripts/ports.cmake:72 (include)

Error: Building package ffmpeg:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: ffmpeg:x86-windows
  Vcpkg version: 0.0.100-2018-01-04-38b7ea72270fa80141692c7685e241bf079e4496

Additionally, attach any relevant sections from the log files above.

\buildtrees\ffmpeg\build-x86-windows-rel-err.log
warning: diffutils-3.5-1 is up to date -- skipping
warning: make-4.2.1-1 is up to date -- skipping
/g/Programmation/Visual Studio 2017 Projects/vcpkg/buildtrees/ffmpeg/src/ffmpeg-3.3.3/configure: line 3348: cd: too many arguments

\buildtrees\ffmpeg\build-x86-windows-rel-out.log
:: Synchronizing package databases...
 mingw32 is up to date
 mingw64 is up to date
 msys is up to date
 there is nothing to do
=== CONFIGURING ===
Out of tree builds are impossible with whitespace in source path.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
<EMAIL_ADDRESS>mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.

\buildtrees\ffmpeg\patch-x86-windows-0-err
Checking patch configure...
warning: configure has type 100644, expected 100755
error: while searching for:
                               check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
                               check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
                               check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
                               die "ERROR: openssl not found"; }
enabled qtkit_indev      && { check_header_objcc QTKit/QTKit.h || disable qtkit_indev; }

error: patch failed: configure:5836
error: configure: patch does not apply

Hi @vindar , this bug should be fixed in nearly PR. Can you update vcpkg and try to compile again?
Thx.

Please open a new issue if this is still a problem for you.
Thx.


Android - Login - The error page is displayed when login with account

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open the App
Create and validate a new Gmail account
Create new workspace
Go to Settings -> Workspace -> Open nearly created workspace -> Removed the second admin in manage members
Log out
Log in with the same account

Expected Result:
No error page is displayed when login with account
Actual Result:
The error page is displayed when login with account
Workaround:
Unknown
Platform:

Where is this issue occurring?

Android

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: No
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/202721208-19761996-ca75-48e3-84f0-87c3f25292ee.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Issue is not reproduced in Production
https://user-images.githubusercontent.com/93399543/202721630-d8d043cb-769c-4884-93e9-177dbb985f97.mp4

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

This issue is missing some context:

Removed the second admin in manage members

What second admin? Isn't there only one admin for this newly created workspace?

It's the guide that automatically gets added when you create a workspace.

FWIW, my knee-jerk hunch looking at the current deploy checklist is that this is probably related to an API change, not an App change.

I'm not able to reproduce this on android emulator using staging. Trying phyiscal device.

We are asking few testers to check

@puneetlath Team is able to repro on different devices
https://user-images.githubusercontent.com/43995119/202783193-c6df7dd1-521b-4fbd-b2ff-8ec09ce6fdff.mp4
https://user-images.githubusercontent.com/43995119/202783205-0b393070-0872-4eb2-9d05-ca2250af0e71.mp4

3rs tester is reproduced as well
https://user-images.githubusercontent.com/93399543/202786879-8d41f319-1f08-45f2-a2a5-3a5c27f83f36.mp4

@puneetlath Are you validating your NEW account on the Android device or on Web?
I think the issue is very specific to validation on the Android device. If you validate elsewhere, its not repro

Ahhhhhh ok that is a good distinction. I was validating on web. Let me try again.

How is there a secondary admin on a newly created workspace by a newly created user?

I'm not able to reproduce this locally. Am I doing it right?
https://user-images.githubusercontent.com/766197/203173756-f1fe24a6-ab1f-4027-b528-ad9b929c3f68.mov
Is it still a problem on Staging? We pushed out some backend changes this morning, is it possible those changes resolved the issue?

QA was not able to repoduce now, so removing a deploy blocker https://expensify.slack.com/archives/C9YU7BX5M/p1669085509564939?thread_ts=1669071979.204319&cid=C9YU7BX5M
But gonna leave this open to make sure this does not come back or maybe investigate what was the root cause

@kbecciv Would you be bale to try again and reproduce it, we got some inconsistent results here so that would be great!

@mvtglobally @kbecciv Lets still see if we can reproduce now and  if now, we should close this issue.

@mountiny Let me check with team,, will update you shortly.

Issue is not reproduce with build <IP_ADDRESS>
https://user-images.githubusercontent.com/93399543/204337689-736cce80-07e5-48db-b5ff-6560f417a308.mp4

I think we can close this one then, lets reopen it if this can be reproduced again.


Fetch multiple navigations

This is more like an question. Is it possible to fetch more than 1 navigation menu ? And if it is how ?
Thanks for reply

Hi @jozef-drabik
Unfortunately, it is not possible. I will flag this as a feature request so maybe we will add this to the backlog in the future.

I'm closing this issue due to no answer from poster. Feel free to re-open, please.