[NT-227] Cancel Pledge UI

📲 What
Builds the UI components of the cancel pledge screen. Note that this PR does not include the text field functionality, that will be added as part of the implementation for the full cancel pledge UX.
🤔 Why
For the Cancel Pledge feature.
🛠 How
Adds all UI elements as part of a root stack view. Notice that here I've preferred to use setCustomSpacing(after) to tweak spacing between certain views, instead of creating sub-stackviews. Open to feedback on that approach.
Note that the following will be addressed in a follow-up PR:

accessibility label on the cancellation reason text field
highlight/disabled states of the redButtonStyle are TBD

👀 See
Trello, screenshots, external resources?

iPhone 8
Dynamic Type
Landscape

♿ Accessibility

[x] Tap targets use minimum of 44x44 pts dimensions
[x] Works with VoiceOver
[x] Supports Dynamic Type

✅ Acceptance criteria

[ ] Navigate to a backed project with the "Native Checkout" and "Native Checkout Pledge View" feature flags turned on. Tap the menu button on the top right. Select "Cancel Pledge". You should be taken to the cancel pledge screen. Tap "No, go back". You should be taken back to the Manage Pledge screen.

Couple minor suggestions / questions and than was wondering about UX when a user might have font set to a larger size (maybe on a smaller device) which would result into keyboard overlapping the input field...so the question is - should we remove the top space when the keyboard is on as well (not only when the traits are accessibility+)?
See bellow

I'd hate to have a bunch of custom UI configuration for dynamic sizing + smaller devices etc. Although it overlaps the text field on smaller devices with larger sizes set, the contentInset.bottom is still updated to accommodate the presence of the keyboard, which means all a user would have to do is scroll the text field into place. This feels acceptable enough for such a small edge case. What do you think?

I'd hate to have a bunch of custom UI configuration for dynamic sizing + smaller devices etc. Although it overlaps the text field on smaller devices with larger sizes set, the contentInset.bottom is still updated to accommodate the presence of the keyboard, which means all a user would have to do is scroll the text field into place. This feels acceptable enough for such a small edge case. What do you think?

I see your point Isabel and I don't have strong feelings so I'd be OK with this approach...one other edge case will be landscape mode where basically the textfield will be completely hidden...I mentioned this because the implementation is in my opinion trivial to achieve.


[ghost admin] Inserting items doesn't work on mobile post/page editor

Issue Summary
On mobile, in either the post or page editor you cannot insert items suchas an image or web embed, without switching to the much less polished, disproportioned desktop site.
Steps to Reproduce
on a new line, there is not a ➕ icon like the desktop editor, to add objects other than text.
also, typing a / on mobile, doesn't bring up a list like the plus button should.
Ghost Version
latest [5.1.1]
Node.js Version
NodeJS v16.14.2
How did you install Ghost?
Hosted on a digitalocean droplet. Ubuntu 20.04
Database type
MySQL 8
Browser & OS version
Google Pixel 5, Chrome [all UTD]
Relevant log / error output
No response
Code of Conduct

[x] I agree to be friendly and polite to people in this repository

just a heads-up I sent a pull request for this issue at https://github.com/TryGhost/Admin/pull/2417

Hey @pelmers - Thank you for the report and for your PR. The PR has been merged, hopefully this is fixed now :)


Adding xdeepfm outer product layer

I don't have a test yet, but the layer itself is a bit unintuitive so I'm not quite sure how to build one besides replicating the logic in the layer itself (maybe finding a ground-truth implementation to compare against?).

rerun tests


[v118] Verify system stability

Title.

Everything seems to be working correctly. If future stability problems are found, this issue will be reopened.


Beginning Text Font Changed

Issue No. #361
Changes Made 👍
Beginning Text Font Changed.

@skpandey885 did @QAZIMAAZARSHAD suggested you using lato family.

@skpandey885 did @QAZIMAAZARSHAD suggested you using lato family.

No, I Showed Him That Font In Issue #361  and It Looked Nice So I implemented It.

@skpandey885 did @QAZIMAAZARSHAD suggested you using lato family.

No, I Showed Him That Font In Issue #361 and It Looked Nice So I implemented It.

Ok @skpandey885 @QAZIMAAZARSHAD please confirm if lato looks fine

@skpandey885 did @QAZIMAAZARSHAD suggested you using lato family.

@skpandey885 wanted to do this change so I allowed it.
@nlok5923 if you don't think it's fine, then close this issue and PR.

@QAZIMAAZARSHAD i think this changes are fine


Remove NumPy <2 pin

This PR removes the NumPy<2 pin. This is desirable for RAPIDS projects that do not have a strong numpy/cupy dependency.
Not doing any math, they don't run into subtle issues, but the pin was still necessary briefly before NumPy 2 was initially released.
(Other RAPIDS projects rely heavily on CuPy/NumPy and need the soon to be released 13.3.0 to function properly, e.g. due to promotion related changes in NumPy.)

Seems this is already using numpy 2 and working fine (i.e. kvikio doesn't run into the CuPy 13.2 issues, and doesn't depend on rmm or so limiting it).  So it seems this is probably ready.

Sebastian rewrote the description based on the feedback in the UCX-Py PR and updated it here as well

/merge

Thanks Sebastian, James, and Lawrence! 🙏


On startup, wait longer for Catalog resources to be available from API Server

This PR is a

[ ] Feature Implementation
[ x] Bug Fix
[ ] Documentation

What this PR does / why we need it:
When Controller Manager starts it immediately tries to get Service Catalog resources from the API Server.  It should keep retrying for a short period of time before giving up.  This will result in a faster startup (less backoffs) and less confusion around viewing the pod status and seeing errors or restarts on the controller manager pod.
Merge Checklist:

[ ] New feature

[ ] Tests
[ ] Documentation

[ ] SVCat CLI flag
[ ] Server Flag for config

[ ] Chart changes
[ ] removing a flag by marking deprecated and hiding to avoid
breaking the chart release and existing clients who provide a
flag that will get an error when they try to update

one minor change requested, otherwise LG TM

updated per Doug's review, use %q vs %v in error msg

/lgtm

thanks

/approve


Setting onStepChange causes the "Previous" button to go away

I noticed that when I set the onStepChange property the Previous disappeared from all of my steps. This was unexpected.

I just tried this today and it worked perfectly, I wish I would have posted the code I was using previously (sorry about that), because the Previous button was definitely disappearing. However, I can not seem to re-create the issue.  Thanks again for this awesome lib!


Pages does not get deleted on restart when using master branch

under \nodebb\public\templates
I have to delete everything, befose I can start using the terminal.

Same problem.

Starting to regret this upgrade since this plugin breaks the whole website. Ngah

Disable the plugin.
./nodebb reset -p nodebb-plugin-custom-pages
then go to /nodebb/public/ and do sudo rm -rf templates/
you can now start nodebb again

Wish I knew that before I reinstalled and lost all the avatars. RIP!

So the fix is not to use the Plugin? O.o

I don't have this issue on the latest version of NodeBB and latest version of this plugin. Possibly has been fixed since then, if you can reproduce it again let me know.... thanks


Allow Repositories to be Configured in settings.json

Especially when working with remote endpoints (such as git repositories, SSH, SCP, SFTP etc.) it might be very useful to be able to configure common variables (the hostname, port, username etc.) in settings.json which would make using vscode-sync-settings easier alongside VSCodes built-in settings-sync

Hi, I'm not quite sure to understand what you want.
By doing some remote dev, vscode has local and remote extensions. The local extensions can be sync with this extension or the builtin feature. Remote extensions are manage with the settings remote.SSH.defaultExtensions.
Can you explain a bit more so I understand your usage? Thx

Hi @daiyam
Sorry for the confusion, I think I was a little too unclear.
I thought it might be a good idea to have the ability to store settings (such as hostname, port, username etc.) in the settings.json in order to be able to sync these settings through Microsoft's built-in settings synchronization.
That way one could initially enable Microsoft's built-in sync in order to fetch the vscode-settings-sync repository options and use vscode-settings-sync out of the box without further configuration.
But thinking through it I think what might sound great might cause some issues in reality (maybe?) because in order to have said settings being synced between VSCode installations, Microsoft's built-in settings synchronization would have to be enabled and this, then again, might conflict with the vscode-sync-settings extension.

To be honest, I haven't tried the builtin sync since I don't use the official version of vscode. I'm using my fork mainly to better support explicit foldings... So I don't know if there is any conflict...
I could see a way for what you want (create a basic builtin sync, logout, then only sync with the extension) but it's cumbersome... Why not simply use the builtin feature?
And I'm a bit worried about username/password (webdav, ...) being sync with the builtin feature or by mistake to a public repo.


[nick] Migrated to cc.com like infrastructure

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2020.03.24
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.nick.de/episodes/1xja87/die-legende-von-korra-nach-all-den-jahren-staffel-2-ep-29', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 3.8.2 (CPython) - Linux-5.4.35-1-MANJARO-x86_64-with-glibc2.2.5
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[nick.de] die-legende-von-korra-nach-all-den-jahren-staffel-2-ep-29: Downloading webpage
ERROR: Unable to extract mrss url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 797, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 530, in extract
    ie_result = self._real_extract(url)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/nick.py", line 191, in _real_extract
    mrss_url = self._extract_mrss_url(webpage, host)
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/nick.py", line 180, in _extract_mrss_url
    return update_url_query(self._search_regex(
  File "/usr/lib/python3.8/site-packages/youtube_dl/extractor/common.py", line 1005, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract mrss url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

As it appears, nick.de was recently migrated to use the same infrastructure as cc.com.
As a result, youtube-dl no longer works with any video on nick.de
I guess copying from the cc.com extractor logic and regexes would be enough in this case?
Might as well be a good call to check any other nickelodeon or viacom backed website for continued youtube-dl support.
Some example links even though the whole site is affected:
https://www.nick.de/episodes/5gv9n1/die-legende-von-korra-das-gift-des-roten-lotus-staffel-2-ep-28
https://www.nick.de/episodes/aq2nkz/spongebob-schwammkopf-entsorgungs-irrsinn-seehasenjagd-staffel-2-ep-8
https://www.nick.de/episodes/yel6cu/big-time-rush-willkommen-zurueck-big-time-rush-staffel-2-ep-1
https://www.nick.de/episodes/yg7wwp/avatar-der-herr-der-elemente-zosins-komet-teil-3-von-angesicht-zu-angesicht-staffel-3-ep-21
https://www.nick.de/episodes/97ppz2/drake-josh-maedchen-und-andere-sorgen-staffel-3-ep-1

Since even more Nickelodeon shows were added to nick.de recently, support for this site would be really helpful! Thanks!

Same for nickelodeon.nl or nickelodeon.be:
% youtube-dl --version
2020.12.09

% youtube-dl -f best -v 'https://www.nickelodeon.nl/episodes/vk6yzc/spongebob-gaan-op-die-maan-seizoen-seasonnumber-11-afl-22'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'best', '-v', 'https://www.nickelodeon.nl/episodes/vk6yzc/spongebob-gaan-op-die-maan-seizoen-seasonnumber-11-afl-22']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.12.09
[debug] Python version 3.9.0 (CPython) - macOS-10.16-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1, rtmpdump 2.4
[debug] Proxy map: {}
[nick.de] spongebob-gaan-op-die-maan-seizoen-seasonnumber-11-afl-22: Downloading webpage
ERROR: Unable to extract mrss url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/local/Cellar/youtube-dl/2020.12.9/libexec/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 803, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/Cellar/youtube-dl/2020.12.9/libexec/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 824, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/Cellar/youtube-dl/2020.12.9/libexec/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 532, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/Cellar/youtube-dl/2020.12.9/libexec/lib/python3.9/site-packages/youtube_dl/extractor/nick.py", line 191, in _real_extract
    mrss_url = self._extract_mrss_url(webpage, host)
  File "/usr/local/Cellar/youtube-dl/2020.12.9/libexec/lib/python3.9/site-packages/youtube_dl/extractor/nick.py", line 180, in _extract_mrss_url
    return update_url_query(self._search_regex(
  File "/usr/local/Cellar/youtube-dl/2020.12.9/libexec/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 1010, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract mrss url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

I have been using youtube-dlc for the past months now and their patch (mentioned in issue discussion at https://github.com/blackjack4494/youtube-dlc/issues/44) works perfectly. Can it be merged into upsream youtube-dl or what are the issues?

I have been using youtube-dlc for the past months now and their patch (mentioned in issue discussion at https://github.com/blackjack4494/youtube-dlc/issues/44) works perfectly. Can it be merged into upsream youtube-dl or what are the issues?


Add option to translate the system  value

Add option in "Advanced Settings menu" to translate the system  value showed in screen.

In file SystemData.cpp at lines 510
window->renderLoadingScreen(fullname, systemCount == 0 ? 0 : (float)currentSystem / (float)(systemCount + 1));
and
window->renderLoadingScreen(systemsNames.at(px), (float)px / (float)(systemCount + 1));


e2e test for helm chart

Describe what should be investigated or refactored
We need to exercise our helm chart in a e2e test to make sure we are exercising branch of code.

closing this bc there is another issue that is being worked on https://github.com/defenseunicorns/pepr/issues/1514


Galp performance

As of 28f44be3b86a8c12721300b48db6b782be1baa60 on my laptop, running 1000 trivial tasks with one worker:
rm -rf /tmp/store; time python -c 'import galp; import tests.steps; galp.run([tests.steps.identity(i) for i in range(1000)], store="/tmp/store")' >/dev/null

takes:
161.88s user 2.63s system 147% cpu 1:51.66 total
i.e. 160 ms of overhead per task (for a very small task, with barely any data to transfer!). This is reasonable for many applications, since we target ~1s long task at minimum, but it shows we're far from really scaling well.
Most of this time is spent in the client/broker process, and as we've been suspecting the dumb way we've got of creating pydantic type adapters on the fly for each message wastes around two thirds of that.

With our drop-in transport re-implementation without zmq:
14.26s user 1.37s system 153% cpu 10.203 total

Profiling shows that the overhead is far from great; still that beats easily the problematic zmq wrapper.

With the simplified parser of 3efa200:
12.52s user 1.36s system 158% cpu 8.754 total

After removing proxy and changing the forwarding strategy 1a241d6f4518e94dc55360abf52f1721af261542
10.86s user 1.05s system 149% cpu 7.982 total


Push notifications improvements issue // Notification Handler

Hi guys,
Does anybody have issues with that?
I implemented this code on my android project, I'm receiving correctly the push notification but I can't handle the push from Mixpanel. I don't know why, but method is never called.
public class CustomMixpanelFirebaseMessaging extends MixpanelFCMMessagingService {
     @Override
     protected void onMessageReceived(Context context, Intent intent) {
         if (intent.getExtras().containsKey("mp_message")) {
             intent.putExtra("mp_message", "CUSTOM MESSAGE");
         }
         super.onMessageReceived(context, intent);
     }
}

Maybe someone could help me with it. Any help it'll be more than appreciate.
Regards!!!

Hi @eduardo-calzado-agentero - did you include CustomMixpanelFirebaseMessaging on your AndroidManifest.xml file?


After party cleanup

Description

Closes: #11
Closes: #13
Closes: #14
This PR does some cleanup around the index portion of our RAG & the repo itself, increases the size of our vector store, and shoes some promising movement of the agent! @meldrum2718 @jorbecalona @nicholasparrilla @ilsaann @Nikkireds
Adds
New Vectorized Data (4870 Docs)

CA Senate Bill (SB) 34 (Now with page split vectors)
CA Business and Professions (BPC) Sections 26071 & 26162.5
CA Health and Safety Code (HSC) Sections 11362.5, 11362.7, & 11362.71
Leafly Strain Metadata from Kaggle

Copy 🍝 'd some docs over from my other cannabis repo

CONTRIBUTING with a lot of todos
GitHub Templates

Code changes

Script for creating index can be used to clear the index as well

Rough Project Plan

How I think this could become a fun experiment with users: https://docs.google.com/document/d/1Pyluv3i1Ib2ArabPldsmXnxnRBbjJsOuArElK3u3XF0/edit#heading=h.4f8dvdtn5r8v

Updates

Using CSV and PDF Document loaders
Move all data business into an etl dir

Removes

Data folder contents. Hit the file size limit. We def need a bucket & storage account (@jorbecalona 👀 bonjour) at some point? but for now here's a .zip of the raw data if you want it:
data.zip
It's also easy to find & I believe documented????? Maybe

Testing
Here is a brief chat I had with our RAG on the command now that it has some context:
🤠 💻 : How much cannabis can I donate to a patient each day?
🥦 ✨ : The amount of cannabis that can be donated to a patient each day is determined by the possession limits prescribed by Section 11362.77 of the Health and Safety Code.

🤠 💻 : But how much is that in grams?
🥦 ✨ :  I don't know.

🤠 💻 : Who can receive donations under SB-34?
🥦 ✨ :  Indigent medicinal cannabis patients.

🤠 💻 : What did SB-34 change for California Medical Patients, at a high level?
🥦 ✨ :  SB-34 allowed licensed retailers to provide medicinal cannabis or medicinal cannabis products to qualified patients who possess a valid physician's recommendation, and also required retailers to verify the physician's recommendation with the appropriate medical boards. It also required the Legislative Analyst's Office to collect data on the impact of tax exemptions for medicinal cannabis products.

🤠 💻 : I have high anxiety and I am looking for a cannabis strain recommendation. What terpense should I consider? What strains?
🥦 ✨ :  Based on the given context, the most common terpene for high anxiety would be Myrcene. Some recommended strains for high anxiety could be Astral Works, Headspace, and PTSD.

🤠 💻 : what other strains? I want more high CBD options
 🥦 ✨ : Some other high CBD strains that may be helpful for anxiety include Harlequin, ACDC, and Charlotte's Web. TJ's CBD, R-4, and 3D CBD may be helpful for anxiety as they have low levels of THC and high levels of CBD. CBD Kush may also be helpful, but it has a slightly higher level of THC compared to the other strains.

It's doing pretty well to know the context, its retrieving! Very exciting IMO. That means we had the pipes set up right last night, we just needed some more water.
This doesn't speak at all to quality. GPT3 might just know all this? It's doubtful, but it would be nice to get some side-by-side eval thoughts going.
Checklist

[x] Mypy is happy. (It's not happy with the app but I didn't want ot touch it)
- [ ] Unit tests passing.

chatbot_app.py has the initial Hi! Ask me a question about savings accounts" but can be prompted about either savings accounts or cannabis. I am going to make the response a bit more open-ended.

chatbot_app.py has the initial Hi! Ask me a question about savings accounts" but can be prompted about either savings accounts or cannabis. I am going to make the response a bit more open-ended.

@nicholasparrilla I've got some work going on the chat in a different branch, I'll push a remote so we can collaborate there! 🤠


To do for 1.5.0

I've stumbled upon a certain set of missing points:

lack of support for transformOrigin property (I mistakenly though it's same with perspectiveOrigin) but luckily the GURUs explain the diffs
improve render functions performance
remove the deprecated KUTE.Animate() method
add methods for collections of elements
all additional scripts are broken because incorrect UMD implementation
maybe some cosmetics here and there.
improve the prepare properties for flexibility
add attributes plugin (experimental)
add more SVG CSS props to supported list (stop-opacity, stroke, fill, stroke-width, etc)
add matrix transforms
remove requestAnimationFrame polyfill dependency?

Update

new changes to the prototype to allow more flexibility and performance
moved most uncommon CSS props to a new kute-css.js plugin
introducing 2 new methods .allTo() and .allFromTo for collections of elements
added a new tween option for the new methods called offset to set a delay between animations of these collections of elements
removed deprecated method .Animate()
improved performance for the render functions
added support for transformOrigin tween setting
documentation updates
'fixed' the additional tools UMD scripting
added attributes plugin
added SVG plugin for morph and other SVG related CSS properties (stop-opacity, stroke, fill, stroke-width, etc)
added plugin for specific math operations for matrix transforms, extends how transforms work with KUTE.js (experimental), perhaps @nhylated can help solve the last piece of this puzzle
fixed functions processing clip and backgroundPosition properties
improved the color processing functions to also accept web safe colors
added a selector utility
added an auto-prefixer utility
improvements to the prototype, now anything can be processed and executed outside the core
added an extend guide featuring a boxShadow plugin
added a Text Plugin
simplify morph for polygon shapes

https://github.com/thednp/kute.js/commit/12512274aa5815ce21eed972f2ae438b1851cdd7

The last commit for 1.5.0.


RedisCommandTimeoutException occurs Randomly

Current Behavior
We're using Redis 5.0.3 with Spring Data Redis 2.2.5.RELEASE as a client. Lettuce 5.2.2, with io.lettuce.core.protocol: TRACE, but when getting the following exceptions quite often, but at random times, there is no log from io.lettuce.core.protocol and i.l.c.EpollProvider,i.l.c.KqueueProvider ,my usage is referring RedisRateLimiter -Flux<List<Long>> flux = this.redisTemplate.execute(this.script, Arrays.asList("tokenKey", "timestampKey"), args);,exceptions throw from return flux.onErrorResume((throwable) -> {                     this.log.error("...reddis execute error..."+throwable.toString());                     return Flux.just(Arrays.asList(1L, -1L));                 }):

ERROR, c.c.w.c.g.f.CustomerRedisRateLimiter, lettuce-eventExecutorLoop-2-1, 203600198, , CustomerRedisRateLimiter.java, 187, lambda$isAllowed2$1 ...reddis execute error...org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 3 second(s)

Timeout exceptions are a protection for your system and not the cause. Please inspect how long the script execution takes and which commands were issued earlier to investigate the actual cause.

Timeout exceptions are a protection for your system and not the cause. Please inspect how long the script execution takes and which commands were issued earlier to investigate the actual cause.

The normal cases are < 10ms and I set the timeout 5s, no commands issued earlier. The content in [] are not shown when the timeout occurs
2020-03-30 11:03:15.144, , , INFO, c.c.w.c.g.f.CustomerRedisRateLimiter, boundedElastic-56, 17948, , CustomerRedisRateLimiter.java, 179, isAllowed2 ...Start redis execute...
[

2020-03-30 11:03:15.268, , , INFO, i.l.c.EpollProvider, boundedElastic-56, 18072, , EpollProvider.java, 68, <clinit> Starting without optional epoll library
2020-03-30 11:03:15.270, , , INFO, i.l.c.KqueueProvider, boundedElastic-56, 18074, , KqueueProvider.java, 70, <clinit> Starting without optional kqueue library
2020-03-30 11:03:15.296, , , DEBUG, i.l.c.p.CommandHandler, lettuce-nioEventLoop-4-1, 18100, , CommandHandler.java, 162, channelRegistered [channel=0x75ecc270, [id: 0x7af4f065] (inactive), chid=0x1] channelRegistered()
.
.
.
2020-03-30 11:03:15.946, , , DEBUG, i.l.c.p.DefaultEndpoint, lettuce-nioEventLoop-4-1, 18750, , DefaultEndpoint.java, 153, write [channel=0x75ecc270, /<IP_ADDRESS>:50410 -> /<IP_ADDRESS>:7379, epid=0x1] write() done
2020-03-30 11:03:16.132, , , DEBUG, i.l.c.p.CommandHandler, lettuce-nioEventLoop-4-1, 18936, , CommandHandler.java, 544, channelRead [channel=0x75ecc270, /<IP_ADDRESS>:50410 -> /<IP_ADDRESS>:7379, chid=0x1] Received: 12 bytes, 1 commands in the stack
2020-03-30 11:03:16.133, , , TRACE, i.l.c.p.CommandHandler, lettuce-nioEventLoop-4-1, 18937, , CommandHandler.java, 559, channelRead [channel=0x75ecc270, /<IP_ADDRESS>:50410 -> /<IP_ADDRESS>:7379, chid=0x1] Buffer: *2
:1
:1
2020-03-30 11:03:16.133, , , DEBUG, i.l.c.p.CommandHandler, lettuce-nioEventLoop-4-1, 18937, , CommandHandler.java, 590, decode [channel=0x75ecc270, /<IP_ADDRESS>:50410 -> /<IP_ADDRESS>:7379, chid=0x1] Stack contains: 1 commands
2020-03-30 11:03:16.133, , , DEBUG, i.l.c.p.RedisStateMachine, lettuce-nioEventLoop-4-1, 18937, , RedisStateMachine.java, 94, decode Decode LatencyMeteredCommand [type=EVAL, output=NestedMultiOutput [output=[], error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand]
2020-03-30 11:03:16.134, , , DEBUG, i.l.c.p.RedisStateMachine, lettuce-nioEventLoop-4-1, 18938, , RedisStateMachine.java, 191, decode Decoded LatencyMeteredCommand [type=EVAL, output=NestedMultiOutput [output=[1, 1], error='null'], commandType=io.lettuce.core.RedisPublisher$SubscriptionCommand], empty stack: true
]
2020-03-30 11:03:16.138, , , INFO, c.c.w.c.g.f.CustomerRedisRateLimiter, lettuce-nioEventLoop-4-1, 18942, , CustomerRedisRateLimiter.java, 195, lambda$isAllowed2$3 ...End redis execute...

According to the timestamps, the sequence is no longer than 1 second. So there is no timeout happening or do I miss something?

According to the timestamps, the sequence is no longer than 1 second. So there is no timeout happening or do I miss something?

yes, I just not make that clear, the log are the normal case when deployed redis time is only 10ms,but when timeout happened what I can get from log is nothing
As you mentioned, there is no commands executed even EpollProvider

which commands were issued earlier

logs only outside "[]" from above, no content which start from  "i.l.c.EpollProvider" to i.l.c.p.RedisStateMachine

Can you provide a reproducer? Right now we don't have sufficient information to diagnose the issue.

Can you provide a reproducer? Right now we don't have sufficient information to diagnose the issue.

No, but it happened almost everyday, is there any other threadlevel log I may open for checking, or any other debug method you suggest for this seems thread hanging cases, I checked my cpu and mem seems no abonormal ,BTW service was deployed in container(kubernetes)

I can submit a sample repo

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


chore(ci): move to large GitHub runners

Signed-off-by: Ry Jones<EMAIL_ADDRESS>

@ryjones — leaving you to merge based on the fail/cancel of the tests.

@swcurran the issue is a bunch of tests are failing and I'm not sure why

@blu3beri @TimoGlastra — I’m assuming the test errors are something other than this change, but leave it up to you to decide on merging this.  The use of the large runners will be a big help for us!

@blu3beri @TimoGlastra — I’m assuming the test errors are something other than this change, but leave it up to you to decide on merging this. The use of the large runners will be a big help for us!

I think that both stages failed here will pass as soon as #189 and #190 are merged.


Add some utils to help with originations

I was trying to understand some details of how originations are encoded and in the process, I made the following improvements.
I added:

michelson primitives enum
an outline of how micheline encoding should be implemented
implementation of encoding string and prim0 + tests

It should be pretty straight forward for someone else to come in now and fill out the details.
The only thing that's kind of unfortunate right now that I would want to change is that the Origination content type takes a ContractScript, which directly requires bytes. Ideally, once we have a full implementation of Micheline, it would directly take a MichelineNode as the Code and Data.

Codecov Report

Merging #15 into master will decrease coverage by 0.94%.
The diff coverage is 24.13%.

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
- Coverage   64.68%   63.73%   -0.95%
==========================================
  Files           6        7       +1
  Lines        1212     1241      +29
==========================================
+ Hits          784      791       +7
- Misses        280      302      +22
  Partials      148      148

Impacted Files
Coverage Δ

micheline.go
24.13% <24.13%> (ø)

Continue to review full report at Codecov.

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


reconfigure the agent

The agent was configured and working.  Went back to restart it, and couldn't get it to start.  i removed the agent from the agent pool and recreated.  At that point, i get the below.
node myagent/vsoagent
Enter alternate username>
Enter alternate password >
successful connect as undefined
Retrieved agent pool: Linux (3)
Error starting the agent
Agent was deleted.  Reconfigure
I'm not sure how at this point to reset things on the server so i can reconfigure?
Any help is appreciated.

delete the .agent file (that contains the configuration)

I'll update the docs

Worked perfect. thanks Bryan.


Virus

Chrome recognises it as a virus is there anyway this can be avoided. Same with windows although i think itd be hefty work to avoid windows defender.

why not pack it into a password protected zip file and then send to someone??

why not pack it into a password protected zip file and then send to someone??

because people find that fishy and instantly think its a virus (in my opinion)

yea


Create a better logo for the project

The current logo is designed by me but i don't really like it. Is there any actual designer to help me with this?

hello @melenaos  i would like to work on this

Hi @isuruAb. It would be great if you want to work on this. Please let me know if you need any information that can help.

Hey, I was wondering if you liked the following:

Thank you @MLavrentyev but @isuruAb  is working on this issue.

@melenaos  please check this.

@isuruAb This is great! I really like it and i would like to share with you that when i read it i stuck somewhere in the middle... somewhere at the ..nchc.. letters.
Can you put a color there or a shade of gray, or change the typewriting of card so it can be read with ease?

@melenaos please check these two

I like them both! I guess the gray is more serious. So I would choose the orange!
Create a pull request with the new logo so it can count for hacktoberfest.


Add toArray method ?

I am curious why something that essential (in my opinion) is missing here. I mean it's nice and pretty to have these transformations and stuff, but sometimes converting to good old array might be useful too. For example I was writing unit test where I wanted to verify that iterator returned all expected items. I had to do awkward thing like this:
const actual = [];
for (const item of iterator) {
    actual.push(item);
}
expect(actual).to.be.eql(expected);

Might be simple to write just expect(wu(iterator).toArray()).to.be.eql(expected).
I am sure there could be more use cases. I know I could create such wrapping function by myself quiet easily, but might be handy to have that in wu also, don't you agree? Are there perhaps some other libraries that could fill the gap?

I would merge such a PR.

In case anyone is still waiting for this, while it's not documented, it's available, and has been since 2014.

For the record: I'm glad this feature exists, and I believe it's very useful (and should be documented).
Here's why: The full power of wu.js (like LINQ) comes from chaining calls. And I find that having to wrap a multi-line expression makes it much harder to read. Compare:
const lookingGood = bar
  .map(...)
  .filter(...)
  .zip(...)
  .toArray();

const lookingBad1 = [...bar
  .map(...)
  .filter(...)
  .zip(...)];

const lookingBad2 = Array.from(bar
  .map(...)
  .filter(...)
  .zip(...));


fix unterminated string literal

fix unterminated string literal in crew.py and task.py

fix included in already merged PR https://github.com/joaomdmoura/crewAI/pull/756


Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.spotify-premium

[ ] [E154] common.dependencies must contain{"js-controller": ">=2.0.0"} or {"js-controller": ">=3.0.0"}
[ ] [E802] No topics found in the repository. Please go to "https://github.com/iobroker-community-adapters/ioBroker.spotify-premium", press the settings button beside the about title and add some topics.

I have also found warnings that may be fixed if possible.

[ ] [W801] .npmignore not found

Thanks,
your automatic adapter checker.

Thanks, that all bugs have been fixed.


added privacy policy page & made it responsive

Description
Fixes #464

Created new PrivacyPolicy component for CareerZunction
Added comprehensive privacy policy content specific to CareerZunction's internship platform
Implemented responsive design for various screen sizes (768px, 425px, 375px, 320px)
Styled component using a separate CSS file for better organization
Ensured consistent branding with CareerZunction's color scheme
Structured policy into clear sections for easy readability
Included essential information on data collection, usage, sharing, and user rights

Video
https://github.com/user-attachments/assets/71cc6ebe-5c30-49eb-b6a2-2aa793f62f18

@PSS2134 please review and merge this PR

FAQ Section is affected, Please revert that @Asymtode712

@PSS2134 I have resolved the merge conflicts

@PSS2134 I have resolved all the nerge conflicts, kindly review and merge this PR

Please add a video @Asymtode712

You may this the video below, the FAQ issue is also resolved now:
https://github.com/user-attachments/assets/254ab030-6b0a-46cc-b11a-f9717faa0193


Adding new template "post-full-template"

This new template allows a difference in the layout of posts on the homepage post list and posts being read on their own pages. If you do not include a new

Changes in style (indentation) makes it hard to see the changes properly.

To rephrase @rimselis: revert and split indentation changes and logical changes to two different commits.

Thank you for the suggestion! Closed because of version 2.0 release. This should be available in v2.


Some refactors

it gives an errors:
Error fetching data for USD: 404 Client Error: Not Found for url: https://boi.org.il/PublicApi/GetExchangeRate?key=currency
Error fetching data for EUR: 404 Client Error: Not Found for url: https://boi.org.il/PublicApi/GetExchangeRate?key=currency


[JAV-585]Loadbalance rule dynamic configuration is not work at some time

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [JAV-XXX] Fixes bug in ApproximateQuantiles, where you replace JAV-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

@laijianbin  I don't think you logged a right JIRA ID. Can you double check the JIRA ID?

@WillemJiang  The JIRA ID comes from commerce  JIRA and you means create an issue at opensource JIRA?

@WillemJiang create an task at opensource JIRA and use opensource JIRA ID?

@WillemJiang create a task at opensource JIRA and use opensource JIRA ID?

Changes Unknown when pulling 662d8c96c47ff7f049646efdd3613feeb23d74e8 on laijianbin:jhfre into ** on apache:master**.


JFT Option not disabling JFT text or voice option

Describe the bug
the jft_option only turns off the voice prompt for saying the JFT, but the JFT text or voice option 3 still retrieve the JFT (no condition checked against jft_option)
What version are you running?
2.5.1
To reproduce
set jft_option to false (it is false by default) and text JFT or call in and press 3 without the prompt

The same issue in on 3.3.1

The fix for this is the latest build and will be pushed in Yap 2.4.0


apm install language-rust fails

The following error message is returned:
Unable to download https://www.atom.io/api/packages/language-rust/versions/0.4.7/tarball: 404
I tried to install the package from the terminal and atom itself. Both fail.

I'm having the same issues. Also tried both on the CLI and through the GUI. Ubuntu 14.04 LTS.

Sorry! I think I messed up the latest version tag and accidentally published the wrong one yesterday 😢 . Should be working with 0.4.8 now..

Thanks for the quick fix!


Add FEATURE_INIT_FINI support on Windows.

JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo<EMAIL_ADDRESS>

Too hard to following you altitude, if you altitude is you are always right, then I have no idea to follow

Well, well. You still haven't answered some open questions, have you?

Why did you delete your comment?
Based on what do you state that section pragma changes where all following variables are placed?

I'm happy to stand corrected if you have explanations to these questions.
(My altitude is cca. 76 m above Baltic see level.)

Well, well. You still haven't answered some open questions, have you?

Why did you delete your comment?
That comment is that I am tring to convice me I was wrong( and I am conviced), but after carefully reading the meaning of __pragma, It's turn out that my usage of __pragma is correct.
Based on what do you state that section pragma changes where all following variables are placed?
I  don't know what'ts the meaning of  this question, please forgive my poor English.
But at least, my code is valid, maybe it's redudant but valid, about your code, I am trying to digging Microsoft's document, didn't found anything to state it's valid and invalid.

I'm happy to stand corrected if you have explanations to these questions.
(My altitude is cca. 76 m above Baltic ~see~ Sea level.)

Why did you delete your comment?

That comment is that I am tring to convice me I was wrong( and I am conviced), but after carefully reading the meaning of __pragma, It's turn out that my usage of __pragma is correct.

That does not justify deleting an earlier comment. A previously discussed topic can be reiterated later and previous statements can be reviewed and corrected. But hiding/removing them sends a bad message.

Based on what do you state that section pragma changes where all following variables are placed?

I don't know what'ts the meaning of this question, please forgive my poor English.
But at least, my code is valid, maybe it's redudant but valid, about your code, I am trying to digging Microsoft's document, didn't found anything to state it's valid and invalid.

Let me rephrase: Why do you state that #pragma section() (or __pragma(section()), or _Pragma(section())) changes where a variable is placed? Why do you state that after such a pragma, all variables are put in the new section?
The documentation of MSVC is quite explicit, and even has an example. Copied below:
#pragma section("mysec",read,write)
int j = 0;

__declspec(allocate("mysec"))
int i = 0;

int main(){}

The discussion of the example goes like: "The integer j isn't put into mysec because it wasn't declared using __declspec(allocate). Instead, j goes into the data section. The integer i does go into mysec because of its __declspec(allocate) storage-class attribute."
(Source: https://docs.microsoft.com/en-us/cpp/preprocessor/section?view=msvc-160)
I have never stated that the code in the PR was invalid, but I stated that I've been able to work with a simpler approach. (Actually, it was you who stated that there is a mistake in my code.) A PR review is about quality control. It does not only mean preventing bugs but also preventing superfluous code leaking in. If there is redundancy in the code, it should be pruned away. Superfluous / redundant / useless code is bad for the maintainers.

Why did you delete your comment?

That comment is that I am tring to convice me I was wrong( and I am conviced), but after carefully reading the meaning of __pragma, It's turn out that my usage of __pragma is correct.

That does not justify deleting an earlier comment. A previously discussed topic can be reiterated later and previous statements can be reviewed and corrected. But hiding/removing them sends a bad message.

Based on what do you state that section pragma changes where all following variables are placed?

I don't know what'ts the meaning of this question, please forgive my poor English.
But at least, my code is valid, maybe it's redudant but valid, about your code, I am trying to digging Microsoft's document, didn't found anything to state it's valid and invalid.

Let me rephrase: Why do you state that #pragma section() (or __pragma(section()), or _Pragma(section())) changes where a variable is placed? Why do you state that after such a pragma, all variables are put in the new section?
The documentation of MSVC is quite explicit, and even has an example. Copied below:
#pragma section("mysec",read,write)
int j = 0;

__declspec(allocate("mysec"))
int i = 0;

int main(){}

Yes, I've reading the code, I am worried about this demo
#pragma section("mysec",read)

#pragma data_seg (push)
#pragma section("mysec",read,write)
int j = 0;

__declspec(allocate("mysec"))
int i = 0;

#pragma data_seg(pop)

__declspec(allocate("mysec"))
int k = 0;

int main(){}

And now I tried compile it, the following error happens:
C:\work\study\languages\typescript\iotjs>cl test.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29335 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.c
test.c(4): error C3415: multiple 'mysec' sections found with different attributes ('0xc0000040')
test.c(1): note: see declaration of 'mysec'

So you were right, the section can only appear in way one. and can appear multiple times.

The discussion of the example goes like: "The integer j isn't put into mysec because it wasn't declared using __declspec(allocate). Instead, j goes into the data section. The integer i does go into mysec because of its __declspec(allocate) storage-class attribute."
(Source: https://docs.microsoft.com/en-us/cpp/preprocessor/section?view=msvc-160)
I have never stated that the code in the PR was invalid, but I stated that I've been able to work with a simpler approach. (Actually, it was you who stated that there is a mistake in my code.) A PR review is about quality control. It does not only mean preventing bugs but also preventing superfluous code leaking in. If there is redundancy in the code, it should be pruned away. Superfluous / redundant / useless code is bad for the maintainers.


Created_at and Updated_at is null when using repl

Brief Description
I ran default User migration and then tried to create a new User using adonis repl. The user got created but the timestamps were null.
Sample Code
await use('Database').table('users').insert({username: 'John',email<EMAIL_ADDRESS>password: 'password'})

Timestamps are set when u use models.

Thanks for your prompt reply. Btw I tried this but failed
await use('Database').table('users').insert({username: 'John',email<EMAIL_ADDRESS>password: 'password', created_at: `${new Date()}`, updated_at: `${new Date()}`})

Yes, the value from new Date() is not valid as per Mysql, so u need to format it properly or use moment to that easily.
If u want to save the current timestamp, then make use of Database.fn.now() function.
Running following code in repl should work
Db = use('Database')
Db.table('users').insert({ created_at: Db.fn.now(), updated_at: Db.fn.now() })


MongoDB support tasks

Bookkeeping tasks for MongoDB support, to be expanded by more issues

BigchainDB init with MongoDB
Connection object with MongoDB
Writes/Queries
Configuration setting for backend
Docker container
Set up indexes

Closing for our initial MongoDB implementation milestone: https://github.com/bigchaindb/bigchaindb/milestone/7


moquette.io not working

Hi, I was trying to check out moquette starting with the docs, but there seems to be an issue with your page moquette.io (also andsel.github.io/moquette).

+1

+1

+1 (moquette.io redirected you too many times.)

Fixed, was the CNAME file in gh-pages that created clash


syntax error line 475 fs2hcp.py

 474         run(['wb_command', '-add-to-spec-file', os.path.realpath(spec_file(
 475                 subject_id, mesh_settings)), 'INVALID', dlabel_file]) << note square bracket

@DESm1th @edickie

I don't see an error...and this seems to be working fine...

Interesting I was getting an error on my machine on this, but that was some time ago, perhaps the code has changed since then


Re-generated site w/ spanish translation

Re-generated site w/ spanish translation

Awesome, thanks for contributing. Thanks for unit tests too!


Find factorial in CPP

I would like to work on this.

Can i work on this?

i would love to work on it

I would like to work on this.....
will you please assign me this issue?


Fixed class name typos in docs and throw.

I noticed this while browsing the code.

Good catch, thanks for the pull request!


Add optional message to progress_bar()

This pull request is split into two commits. 2d79dcf simplifies the actual code of progress_bar() to allow an easier configuration of the actual progress bar. In addition, it adds an optional third argument message which is presented instead of the default Progress message.
The first commit changes nothing on the output of all the progress_bar() calls we have so far in the toolbox.
In the second commit (fe3a46f) I tried another progress bar style. Employing a wider bar and using only #. This is just an proposal, I'm not really decided if I would favor the new version over the old one ;)
@fietew: any opinion on this.
Here is an example of both styles:
>> for ii=1:30, progress_bar(ii,30); pause(0.1); end

The optional message is a good idea. It is possible to automatically get the name of the function calling progress_bar? I think this would be a better default value for the message.
Regarding the style, I would prefer the shorter progress bar to not get into trouble with linebreaks in the MATLAB console.

When I started with this, I was also hoping to get automatically the name of the calling function, but that is not to easy. One has to use dbstack() to get those information, which I thought is to much overhead. And it would also not help in all cases, because in some cases "Progress" would be simply replaced by "sound_field_mono" or "sound_field_imp" where most of the looping is happening. That was the reason why I simply added the optional message as an easy compromise.
I would then propose that I delete the second commit and you do the rebase merge afterwards?


Fix: Update development server to watch correct directory

Problem
The development server was watching the installed package directory (site-packages/app) instead of the actual user's codebase directory. This made the auto-reload feature ineffective during development as it wasn't detecting changes in the user's working directory.
Solution

Replace langchain's serve() with direct uvicorn.run() configuration
Use ZIYA_USER_CODEBASE_DIR environment variable (which points to the user's current working directory) for the reload_dirs parameter
Remove dependency on langchain-cli for serving

Testing
Before: Server watched /path/to/site-packages/app After: Server watches the actual working directory where ziya is run from
This change makes the development experience better by properly reloading the server when files in the user's codebase are modified.

Responded in Slack, but this is already the case. Ziya always looks for latest changes in a file and sends the latest content. So this is not necessary, granted the log statment is misleading

I see, but as I could not find a way to remove this log entry, this was the best second option I found.
I can change the PR description to acknowledge the fact that we always send files from disk, but that log entry is something that everyone worries about.

Right but this kind of changes the functionality when running Ziya locally does it not ? For instance the current serve re-loads for file changes when developing Ziya as it watches any python file change and re-loads. Now this is likely watching some other folder?

In the readme file there is this explanation:

Entering new AgentExecutor chain...
Reading user's current codebase: /Users/vkrishnaprasad/personal_projects/ziya
ziya
├── .gitignore
...

I see currently this isn't showing anymore, but I believe if that showed up with each question/prompt received, that should avoid the confusion for @NightOwlCoder ?

I think ideally we can remove the whole log statement about watching any folder alltogether. But given it uses langserve to host server, I'm not sure how to do that.

So the web server, is watching for files used for the ziya frontend, to change. For users, this usually would not be the case, it is more used for development on the frontend usually I believe.
So the approaches here for users would be:
A. Disable file watching, which should remove that log entry
or
B. One way or another, change the log level for the web server / watcher to omit the INFO log level.


Fix import of distro moule

When using the latest version of this plugin on macOS, with a test directive in the doubt installation configuration like
- ifmacos:
    - shell:
        - echo "is mac!"

Running the ./install in my dotfiles repo gives:
[...]
Traceback (most recent call last):
  File "/Users/dotman/dotfiles/.local/repos/dotbot/bin/dotbot", line 45, in <module>
    main()
  File "/Users/dotman/dotfiles/.local/repos/dotbot/bin/dotbot", line 42, in main
    dotbot.cli.main()
  File "/Users/dotman/dotfiles/.local/repos/dotbot/dotbot/cli.py", line 133, in main
    plugins.extend(module.load(abspath))
                   ^^^^^^^^^^^^^^^^^^^^
  File "/Users/dotman/dotfiles/.local/repos/dotbot/dotbot/util/module.py", line 13, in load
    loaded_module = load_module(module_name, path)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dotman/dotfiles/.local/repos/dotbot/dotbot/util/module.py", line 32, in load_module
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/dotman/dotfiles/.local/repos/dotbot-plugins/ifplatform/ifplatform.py", line 23, in <module>
    import distro
ModuleNotFoundError: No module named 'distro'

I set a pdb breakpoint right before the import at
https://github.com/ssbanerje/dotbot-ifplatform/blob/e35b5c0d7149d97ccecc8676a07895f35add725c/ifplatform.py#L22
and inspect sys.path and can see that it indeed contains the added entry ifplatform/lib/distro
['/Users/dotman/dotfiles/.local/repos/dotbot-plugins/ifplatform/lib/distro', '/Users/dotman/dotfiles/.local/repos/dotbot', '/Users/dotman/dotfiles/.local/repos/dotbot/lib/pyyaml/lib3', '/Users/dotman/dotfiles/.local/repos/dotbot/bin'<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>'/usr/local/lib/python3.11/site-packages']

I discovered though, that instead of adding lib/distro to sys.path adding lib/distro/src/distro did work!
With this change, the install script runs as expected
$ ./install
[...]
is mac!

Unfortunately the issue tracker is not enabled on this repo, but I'd like to report an issue as well.
Using only this plugin, dotbot invoked as
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" --plugin-dir ".local/repos/dotbot-plugins/ifplatform" "${@}"

and with a dotbot installation configuration containing only:
- shell:
  - echo test

then the shell command is executed 2 times instead of the expected 1!
$ ./install
echo test
All commands have been executed
echo test
All commands have been executed

==> All tasks executed successfully

Sure the install config should be idempotent, but it's not good that shell scripts that run slowly are run twice.


Quickstarts OSS site , Repo and App Catalog clean up task list

Say good bye to old quickstarts and hello to new quickstarts....

Acceptance criteria

[x] Wait for repo name change before doing this work https://github.com/newrelic/newrelic-observability-packs/issues/228
[x] Follow these instructions to add this project to the OSS Site and remove the old quickstarts project from the site
[x] Check the usage of the quickstarts app following this process to decide if we can just remove it or if we need to notify users of the app.
[x] commit by using feat or fix so we can bump the version on the OSS site. 🏗
[ ] update application and readme to point users to I/O both internally and externally
[ ] deploy a new version of Nr1 Quickstarts

Also for review:

Archive nr1-quickstarts https://github.com/newrelic/nr1-quickstarts/pull/58

can you fix ) Issues at the project owner's discertion
https://opensource.newrelic.com/oss-category/

Fixed that @jpvajda, do you think usage is low enough to warrant not reaching out to users?

@rudouglas oh let me check the statz...

@rudouglas here's what we need to do to account for the higher usage of this application.

update the readme to specify this project will officially be archived on Nov 1st and all users of quickstarts should visit the I/O external site for more details on what we are changing to . With this being said, let's leave the repo set to nr1 catalog until Nov 1st. I'll create a follow up ticket to archive the repo and remove the app from the catalog on nov 1.

Update the application to point users to the internal I/O experience. include the following to point users to the right place.

Sweety here is the updated application shots

And the PR https://github.com/newrelic/nr1-quickstarts/pull/59

Waiting for this to be pushed to Staging and EU

Waiting on the push to Staging and Production


Use Go 1.16+ to release

Codecov Report

Merging #444 (f942821) into main (2dced74) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #444   +/-   ##
=======================================
  Coverage   53.25%   53.25%
=======================================
  Files          37       37
  Lines        1842     1842
=======================================
  Hits          981      981
  Misses        710      710
  Partials      151      151

Continue to review full report at Codecov.

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


Invalid JSON generated

Hello, I was trying this library out and go an invalid JSON off slightly changing one the prompt on of the examples:
from enum import Enum
from pydantic import BaseModel, constr

import outlines.models as models
import outlines.text.generate as generate

class Weapon(str, Enum):
    sword = "sword"
    axe = "axe"
    mace = "mace"
    spear = "spear"
    bow = "bow"
    crossbow = "crossbow"

class Armor(str, Enum):
    leather = "leather"
    chainmail = "chainmail"
    plate = "plate"

class Character(BaseModel):
    name: constr(max_length=10)
    age: int
    armor: Armor
    weapon: Weapon
    strength: int

model = models.transformers("gpt2")
sequence = generate.json(model, Character)("Give me a character description for an elderly elf wizard")
print(sequence)

parsed = Character.model_validate_json(sequence)
print(parsed)

Gave me:
{
  "name": "old man "}",
  "age": 14,
  "armor": "leather",
  "weapon": "spear",
  "strength": 4
}
Traceback (most recent call last):
...
  Invalid JSON: trailing characters at line 2 column 22 [type=json_invalid, input_value='{\n  "name": "old man "}...r",\n  "strength": 4\n}', input_type=str]

Yeah we didn't escape the " character in the regex I believe. Luckily this is an easy fix.


Support for check actions

Changes here are mostly the addition of an action argument to the check_function decorator for the checks, so that we can easily determine (for the UI) which checks have associated actions.


Favor CompositeMeterRegistry instances in Camel registry before looki…

Description
Let Micrometer component look for an instance of CompositeMeterRegistry on Camel registry before looking for MeterRegistry instances.
Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[x] I formatted the code using mvn -Pformat,fastinstall install && mvn -Psourcecheck

What is the use-case?
Can you create a JIRA ticket for such a change and in the commit refer to the CAMEL-NNNNN ticket. And we need to be able to use JIRA to track changes and also plan for which releases to include. Only do PRs without JIRA for small trivial changes.


ci(NODE-4685): Implement changes to unified spec runner needed to interpret CLAM unified spec tests

Description
Implement changes to unified spec runner to facilitate testing of logging spec implementation
What is changing?

Implement $$matchAsRoot operator
Implement $$matchAsDocument operator
Implement matching and interpretation of new properties

expectLogMessages
expectedLogMessages
expectedLogMessagesForClient
observeLogMessages

Implement unit tests for new operators
Stub out mechanism for UnifiedMongoClient to be able to collect logs from MongoLogger

Is there new documentation needed for these changes?
No
TODOs

[ ] Update AC of NODE-4849/file new ticket to include implementation of modifications to the unified spec runner that require the MongoLogger to be able to write logs to a Writable stream
[ ] ~Update AC of NODE-4849/file new ticket to implement total ordering for LogSeverity~
[x] Break out new ticket to add valid-pass and valid-fail tests to the unified-spec-format spec for $$matchAsRoot and $$matchAsDocument operators

Double check the following

[x] Ran npm run check:lint script
[x] Self-review completed using the steps outlined here
[x] PR title follows the correct format: type(NODE-xxxx)[!]: description

Example: feat(NODE-1234)!: rewriting everything in coffeescript

[x] Changes are covered by tests
[ ] New TODOs have a related JIRA ticket

Once this goes through review, I will skip the CLAM spec tests

Documenting result of Slack discussion:
Going to change implementation of UnifiedMongoClient's constructor to use the ClientEntity object passed into it to configure the wrapped MongoClient's instance of MongoLogger rather than using it to filter logs on the test-runner's end. To facilitate this, we will need to modify the parseOptions function and the OPTIONS object in src/connection_string.ts.


Auth zone: unbound stop resolving

Hello,
I'm using Unbound 1.10.1 on Debian 10.
In my configuration I have multiple zone configured like this:
auth-zone:
name: "xxx.fr"
zonefile: /var/lib/unbound/zones/xxx.fr
master: A.B.C.D
allow-notify: A.B.C.D
for-downstream: no
for-upstream: yes
fallback-enabled: yes
I previously used this configuration without problems in 1.9.6.
Since I've upgraded in 1.10.1, Unbound suddenly stop resolving and answer for any query about this zone: NXDOMAIN
I have several zones but I noticed this problem always on the same zone.
If I look at the serial in the zone, it is perfectly synchronized and Unbound continues to update it as the modifications take place. But it does not respond at all on the zone concerned ...
To return to normal operation, I just do an unbound-control reload and it works immediately ... for 10 minutes, 1 hour, sometimes more but it always ends up stopping.
I have seen several reports of problems indicating approaching symptoms. Wouldn't the correction of the flaw in 1.10.1 have introduced a regression?
Regards

Looks like Unbound after a while caches an NXDOMAIN answer, and returns that to the client. A look at the log might give you an understanding of where the NXDOMAIN is coming from. Looking at a cache dump (unbound-control cache_dump) might also help.
Are you sure you want the for-downstream to be set to no?

Closing this due to inactivity. Feel free to reopen if there is a reason to believe this is a bug. Feel free to use the unbound-users mailing list (https://lists.nlnetlabs.nl/mailman/listinfo/unbound-users) for questions regarding your configuration.

Sorry for the late reply.
I need for-downstream: no / for-upstream: yes, because I use Unbound for speed up the responses for the zone we are authority.
I also need dnssec validation for this zones and I think it's the correct configuration for doing this. (or not ??)
I think there is a bug about this at least in version 1.10 but I can't reproduce it anymore.
Indeed, annoyed by the bug I was forced to no longer use the auth-zone part of Unbound, now I use stub-zones to an NSD.
Occasionally I will try to reproduce the configuration under test with version 1.11 to see if anything has been changed. For now, since I found a workaround in production, I'm happy with it.
Thanks and sorry again for the late reply.


refactor(demo/clock): avoid duplicate graduations

in mapRange function callback, all numbers divisible by 5 are hours,
so use that information to draw all graduations in one loop

Yeah this make sense, I've thought about it, but I prefer the cleaner code, rendering those invisible marks in theory might be useful under other scenarios for animations purposes or something, here they are just completely useless, but I don't think this optimization makes a different in practice, I prefer the cleaner code. Thanks anyway.


Vimeo videos are broken because of mime type

[ x ] Issue does not already exist
[ x ] Issue observed on https://plyr.io

Expected behaviour
Vimeo videos play
Actual behaviour
Vimeo videos are broken
Environment

Browser: All
Version:  All
Operating System: Mac
Version:

Steps to reproduce

Visit homepage and click vimeo

Relevant links

I can't replicate this now - presumably they've fixed it but next time any issues with vimeo's API can be raised with vimeo's repo:
https://github.com/vimeo/player.js


Fixes Issue #577.

resolves issue #577

Thank you!

One minor issue: could you put the genre names inside a single quote so that they're not confused with the rest of the text?

Yeah, I'll add that change in an hour or so.

Thank you!


rubocop: 0.71.0 -> 0.72.0

Motivation for this change
Changelog: https://github.com/rubocop-hq/rubocop/releases/tag/v0.72.0
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[X] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

could you please split the diff into two commits, one where you bump the version and another one where you add yourself as maintainer?

sure, updated


[Feature][docs] Document migration

Purpose of this pull request

Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] Change does not need document change, or I will submit document change to https://github.com/InterestingLab/seatunnel-docs later

Great job

hi, thank you for your contribution. Due to the excessive content, we need to check one by one, whether you can participate in the check together.

Did I miss somethings? I found out we just add markdown file? Does it come from https://github.com/InterestingLab/seatunnel-docs ?

Did I miss somethings? I found out we just add markdown file? Does it come from https://github.com/InterestingLab/seatunnel-docs ?

At present, only the configuration documents of spark and flink of 2.0 have been migrated, other documents, I will add later

Did I miss somethings? I found out we just add markdown file? Does it come from https://github.com/InterestingLab/seatunnel-docs ?

At present, only the configuration documents of spark and flink of 2.0 have been migrated, other documents, I will add later

I got it, but could we add some related issue or the plan of our doc migration to let other users/developers to get this info

Did I miss somethings? I found out we just add markdown file? Does it come from https://github.com/InterestingLab/seatunnel-docs ?

At present, only the configuration documents of spark and flink of 2.0 have been migrated, other documents, I will add later

I got it, but could we add some related issue or the plan of our doc migration to let other users/developers to get this info

My current plan here is

First migrate the configuration files of Spark and Flink
Check whether the migrated documents have outdated configurations and parameters
Waiting for the new official website to be released, other documents will be added
If you need to add other documents, please call me and I will do this part of the work

The plan sound good to me

mark  i will take

mark i will take

If you find any problems with the documentation, please comment below.

@CalvinKirs  I think we'd better complete the document migration work as soon as possible, because we have officially announced it to the public, I think I can do this work, please feel free to call me if you need to

@CalvinKirs I think we'd better complete the document migration work as soon as possible, because we have officially announced it to the public, I think I can do this work, please feel free to call me if you need to

Is there a way to integrate the documentation with the official website? Similar to skywalking https://skywalking.apache.org/docs/main/v8.6.0/readme/

@CalvinKirs I think we'd better complete the document migration work as soon as possible, because we have officially announced it to the public, I think I can do this work, please feel free to call me if you need to

Is there a way to integrate the documentation with the official website? Similar to skywalking https://skywalking.apache.org/docs/main/v8.6.0/readme/

I think I need to try it locally first.


Render DANDI information

This PR renders information from DANDI on the final conversion review page.
It uses the dandi package that I published while developing webnwb to quickly access metadata for a dandiset based on its identifier.

@garrettmflynn Is this ready to go?

Yep!


How to deploy on CPU

Hi @jinyeom ?
Could I ask you how to deploy and run on CPU?
Thank you.

I hope this isn't too late. You can't: TensorRT is exclusively supported on Nvidia GPUs.


Running from source crashes: ../data/system/maps/montlake.bin is missing or corrupt.

   Compiling game v0.1.0 (/Users/jerry/Projekte/ABstreet/abstreet-master/game)
    Finished release [optimized] target(s) in 5m 49s
     Running `/Users/jerry/Projekte/ABstreet/abstreet-master/target/release/game`
Inner window size is PhysicalSize { width: 1600, height: 1200 }, monitor is PhysicalSize { width: 3360, height: 2100 }, scale factor is 2
load map...
Loading map ../data/system/maps/montlake.bin

../data/system/maps/montlake.bin is missing or corrupt. Check https://github.com/dabreegster/abstreet/blob/master/docs/dev.md and file an issue if you have trouble.

 That's the second step in docs/dev one-time setup. Maybe this error message should say that more clearly

Yeah, that solved it. I think I missed it since I didn't initially want to start the game from source and tried to use the importer only.
Thank you.


python 3 fix

Fix for https://github.com/Shopify/themekit/commit/9ae31714bc1a96af2f5703049538a45f989b983d#commitcomment-20733658
"0755 is not a valid numerical literal in python 3.5. If you change it to 0o755, it will be compatible with both 2.7 and 3.5. See: https://www.python.org/dev/peps/pep-3127"

Thanks. Ship it! 👍


Improve Documentation

Items which need new/improved documentation:

[ ] Adapter Configuration (environment variables)
[x] LICENSE
[ ] README.md
[ ] RingCentral Developer Portal - Required application settings
[ ] RingCentral Account - Required settings and configurations
[ ] Add "Usage" section to README.md
[ ] Add "Contributing" section to README.md
[x] Add License reference from README.md
[ ] Include man which can be a "publishConfig" setting for NPM
[ ] Add TravisCI, Coveralls, Version, CodeClimate badges for display

Added link to CHANGELOG in most recent commit.


Add ability to change size programmatically

Hi, please can you add the ability to change size programmatically.
I see your code and I try to set the "size" prop programmatically but nothing.
Into Vue I try to set the localSize property and it work.

Update to latest version (0.0.6)
Bind size to your data.
When you change your data the primary pane will resize.

This work fine, but now the rezied does not work.
This is my template code:
<rs-panes :allow-resize="!shrink" :size="menuSize" :min-size="minMenuSize">

Your template is OK.
I will release 0.0.7 in a bit, that will fix the problem.

Thank you so much


bro what happened to html ports? If you can bring them back please

ı was busy

Nah your fine i was just wondering i was able to get the extra keys done with the google drive so i wanna to do the rest and make website with you as the main html ported

this is the error i get when i try to download them

and can you keep them on google drive

can you fix them?

actually psych 0.5.2 is out just its didnt let me build so download downloadable version

yeah psych 0.5.2h is too bliud, and im talking about the acc hank and changelle edd and Uberkids and psychic

they sucks

ı need more stroage so

Ah i see

but is it possable to send me the flies or something? I tried adding you on discord but heres my email if you can send them<EMAIL_ADDRESS>


AsyncAutoResetEvent doesn't contain reset method

Like other "events", an AsyncManualResetEvent is either set or unset at any time. An AsyncManualResetEvent can be changed from unset to set by calling its Set method, and it can be changed from set to unset by calling its Reset method.

AsyncAutoResetEvent doesn't have a Reset method. AsyncManualResetEvent does.
Using Reset on an auto-reset event would be extremely odd, and probably is an indication that a different synchronization primitive would be a better fit. What's your use case?

Ahh, should have read the docs closer. I changed up the queue to use an autoresetevent because due to the usage we no longer have to get the counts for a semaphore etc.. But I'm noticing one case where it's set before I come into the wait and I know there is nothing there.


Bug: Breaking multicursor-multiline cut and paste

Linter is breaking multicursor functionallity.
If i hold shift+alt and mark a part in a table as below.

then cut the text out

move all the cursors down a step with arrow keys and paste i get.

Notice how each individual cursor only paste the text it cut before and not all the text. This is correct behavior.
If I do the same with linter enabled i get the following when I paste.

Each individual cursor pastes all the text and not just the corresponding text that it is supposed to.

Thanks for reporting this. I do see that this is an issue. The problem I am seeing with this is multicursor-multiline pasting has not been accounted for.
Is your intent to use the Linter option to paste or do you intend to paste the content as is? If the latter, have you tried the command to paste text as it is via the Linter command? I am not sure if that works in this case.
I will reach out to the dev community and see if they are familiar with how to detect a multiline multicursor paste.

The info in this stack overflow post may be useful, so I am adding it here for reference for later: https://stackoverflow.com/questions/9492842/does-codemirror-provide-cut-copy-and-paste-api

Not a developer: I want to confirm it's not just multi-cursor multi-line cut/copy & paste that's broken — I confirmed the same with multiline single cursor. Not sure if that makes a difference, but wanted to report it in case it does.
Also, I seem to see a curios behaviour where the Obsidian file freezes, can no longer be navigated and all that's left for me to do is quit the app and restart.
I'm on a MacBook, CPU is going up high for Obsidian, in the copy&paste scenario. The app itself doesn't seem to freeze but I can't navigate out of the open file to close it without closing the app.

Not a developer: I want to confirm it's not just multi-cursor multi-line cut/copy & paste that's broken — I confirmed the same with multiline single cursor. Not sure if that makes a difference, but wanted to report it in case it does.
Also, I seem to see a curios behaviour where the Obsidian file freezes, can no longer be navigated and all that's left for me to do is quit the app and restart.
I'm on a MacBook, CPU is going up high for Obsidian, in the copy&paste scenario. The app itself doesn't seem to freeze but I can't navigate out of the open file to close it without closing the app.

I am not entirely certain that the slow down you reference is related to copying and pasting. Do you have a reproducible file I could try against? If it is a large file, it could be related to #458.
Was there another type of issue you were referring to that could be related to copying and pasting?

I have a partial fix for this. The main issue I am running into with the issue with multiline multicuror pasting is that I am not seeing how to properly retain the multiline multicusor mode and properly move the cursors. I am reaching out to the dev community for some help around this.

Dev note: it looks like I should be able to use replaceSelections if that is available on the Obsidian editor.
Here is the documentation reference.
If this is not an option. I will be forced to either have the cursor show at the same place it was before paste or follow the suggestions provided by the plugin dev group.

I have not gotten a response, so I will "monkey patch" it as they normal say. So it will just not move the cursor to the end of the pasted values when doing a multicursor multiline paste. If someone does know how to update a specific cursor position, please let me know how.

This should be fixed on master and in the next release. Please let us know if the issue continues to exist.

@sglowa , I don't recall ever addressing multicursor cut, so that could be new. As for the other issue, I will have to see if I can reproduce with the steps listed above.

@sglowa , do you have any paste settings enabled? If not, I may just disable paste override for when no paste rules are active to reduce the likelihood of this kind of issue.

Looks like I have a solution. I just need to verify that the logic is handled properly. I will also add a check to make sure it does not override the paste functionality if the paste rules are not enabled.

I am pushing up a fix that should be in the next release which will hopefully get pushed soon. Thanks for reporting the issue @sglowa

nice, thanks for addressing it so rapidly
On Thu, Sep 7, 2023, 01:00 Peter Kaufman @.***> wrote:

I am pushing up a fix that should be in the next release which will
hopefully get pushed soon. Thanks for reporting the issue @sglowa
https://github.com/sglowa
—
Reply to this email directly, view it on GitHub
https://github.com/platers/obsidian-linter/issues/480#issuecomment-1709234096,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFKMWULVCJCT3PBX73CCMHDXZD6A7ANCNFSM6AAAAAARZSJL7A
.
You are receiving this because you were mentioned.Message ID:
@.***>


Added delete_existing() hook method for model formsets

https://code.djangoproject.com/ticket/25097#ticket

buildbot, add to whitelist.

merged in 0ffa3943fbd100e7de7b1ddbfd301ddc52b57410, thanks.


docs(v2): dark mode syntax highlighting

Motivation

Write docs for dark mode syntax highlighting
Fix a bug in the Prism theme logic for dark mode where it uses no highlighting instead if no darkTheme is specified 😱
Make the line highlighting work for both light and dark modes

Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
See Netlify
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

Gonna self-merge this first. If there's anything that you'd like me to change, let me know and I can follow up! Otherwise this feature is kinda done 😄


Disconnectedclient disconnected from CONNECTED state between every run in Angular

This may be an Angular issue but I have not be able to find much except for similar issues here such as 1514 or 2971. However my issue seems different than those.
Expected behavior
Re-run test suite on change
Actual behavior
Although slow (different issues I suppose) the first round of tests are fine, but with singleRun set to false most changes to the code produce the testing error (shown below). Small changes, like minor html updates don’t always cause the disconnect. After making a change there is a long lag before either the error message pops up or the tests re-run,  and if there is that error sometimes it will start back on its own but much of the time people on the team end up killing and starting over.

Environment Details
package.json
{
"name": "frontend",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"coverage": "ng test --code-coverage",
"lint": "ng lint",
"e2e": "ng e2e",
"serve-site": "ng build && ng serve -o"
},
"private": true,
"dependencies": {
"@angular/animations": "^7.0.4",
"@angular/common": "^7.0.4",
"@angular/compiler": "^7.0.4",
"@angular/core": "^7.0.4",
"@angular/forms": "^7.0.4",
"@angular/http": "^7.0.4",
"@angular/platform-browser": "^7.0.4",
"@angular/platform-browser-dynamic": "^7.0.4",
"@angular/router": "^7.0.4",
"@ng-bootstrap/ng-bootstrap": "^4.0.0",
"auth0-js": "^9.8.2",
"bootstrap": "^4.1.3",
"classlist.js": "^1.1.20150312",
"core-js": "^2.5.4",
"ng2-nouislider": "^1.7.13",
"nouislider": "^12.1.0",
"rxjs": "~6.3.3",
"web-animations-js": "^2.3.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.10.6",
"@angular/cli": "^7.0.6",
"@angular/compiler-cli": "^7.0.4",
"@angular/language-service": "^7.0.4",
"@fortawesome/fontawesome-free": "^5.5.0",
"@types/jasmine": "^2.8.12",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.1"
}
Karma Config
{
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../coverage'),
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
captureTimeout: 210000,
browserDisconnectTolerance: 3,
browserDisconnectTimeout: 210000,
browserNoActivityTimeout: 210000,

}
}
Steps to reproduce the behaviour

npm test
make code change

I guess you have to debug this by using chrome devtools. Somehow your test code or angular is interfering with karma-jasmine. Look in to adapter.js from that package. Also check that you are not interfering with the 'load' event or any other window event accidently in your test (by not mocking something eg).  Check that you are not reloading the page.
I don't think this is something we can fix by any change in karma-runner.

same here, Some knows where could be the problem?

For me disabling source maps helps. I get exactly the same error randomly when running tests with source maps on (which they are by default). When tests are run with command ng test --source-map=false there are no disconnect errors.
I suspect that vendor source maps are generated by default which makes source map files simply too large to load in sensible time.
There seems to be something wrong with sourceMap settings of test target. I created an issue to Angular CLI project :https://github.com/angular/angular-cli/issues/13766

I've reproduced the same error DisconnectedClient disconnected from CONNECTED state with the the following streps:

Run ng test from terminal
Close the browser after the tests are executed
The above mentioned error is shown in the terminal

That message means the browser is no longer connected, so if you close the browser, you should expect that message.

I'm using headless chrome in IntelliJ and randomly (but in about 10-20% of test runs). This is quite annoying. When I rerun, most of the time s it works.

The 'disconnected from CONNECTED' means that the browser socket was connected at one time in the past then disconnected.  The tests either ran to completion or never started.
karma-runner has no direct control over the network or external processes.  It's not like karma-runner can say "stop crashing" or "network don't fail me now".
The place where we could look for improvements is in the browser launchers: these monitor external processes and perhaps they can provide better feedback.
Which launcher are you using? And can you take a look into debugging the state of the process when this happens?

The 'disconnected from CONNECTED' means that the browser socket was connected at one time in the past then disconnected. The tests either ran to completion or never started.

OK, so you're saying Karma is fine and Chrome has a bug? I mean, this is happens a lot and it would be great to fix this issue.

Which launcher are you using?

"karma-chrome-launcher": "~2.2.0"

And can you take a look into debugging the state of the process when this happens?

What exactly do you mean? Which process? Chrome, Node? And how to debug?

I was imagining that one of the trace or log options in chrome might help:
https://peter.sh/experiments/chromium-command-line-switches/
You may be crashing the chrome tab due to say OOM but you are close to the limit so most of the time the tests finish before the memory exhausts.
Have you tried just disabling half of your tests to see if changes? Or split your test so only part of the app code has to be loaded?
(I don't think this is a bug in chrome or karma, but I'm open to ways to make the issue clearer).

This is a common issue at my company, nobody has found a work around yet

Same at the company that I'm working.

I just want to encourage you to think of this as a problem you are in a position to investigate. This does not happen to us even though we run karma on many thousands of tests across many browsers.

@johnjbarton I understand, that it's hard to help when you cannot reproduce the issue. I tried to get some insights by adding
"--enable-tracing"
"--enable-tracing-output ./trace-output.log"

to the Karma config, but no file has been written. Could you provide a configuration that will produce sensible tracing output?

The logging configuration options are documented in http://karma-runner.github.io/4.0/config/configuration-file.html

I changed my loglevel to this
        logLevel: config.LOG_DEBUG,
        loggers: [{type: 'console'}]```
and this is the response I get from my console

[2019-09-04T11:40:18.909] [DEBUG] karma - All browsers are ready, executing
[2019-09-04T11:40:18.909] [DEBUG] karma - Captured 1 browsers
[2019-09-04T11:40:18.915] [WARN] HeadlessChrome 76.0.3809 (Mac OS X 10.14.6) - Disconnected (0 times)Client disconnected from CONNECTED state (ping timeout)
[2019-09-04T11:40:18.915] [DEBUG] HeadlessChrome 76.0.3809 (Mac OS X 10.14.6) - CONNECTED -> DISCONNECTED```

@johnjbarton
Thanks, I think there has been a misunderstanding.
In your previous post, you gave me the command line options for chromium, the last post contains the configuration options for Karma.
As I statted before, I am happy to help investigating the issue further but my knowledge in Chrome and Karma internals is limited.
That's why I asked you, which Karma options should I set so that it would produce sensible debug output that helps you to reproduce it?

That's why I asked you, which Karma options should I set so that it would produce sensible debug output that helps you to reproduce it?

In my experience, I don't believe any karma (or chrome) options will help here. I don't believe this issue can be fixed by karma (or chrome).
The most likely explanation for this problem is in your app or test code.  That code is likely to be far more complex than karma, to be subject to fewer tests, and to be newer and change faster. In addition, the symptoms point in that direction.
Karma is launching the browser, instructing it to load the test page, and responding to the test page requests for test and app content. Then it is waiting for your test and app code to respond with test results.  It never hears back. The simple explanation is that your code is exhausting some resource in the browser. As async code is likely involved, the outcome can be variable from run to run.
In --no-single-run karma is only doing one extra thing: not exiting. So when you reload it is just acting like a web server and giving your content to the browser.
I would also consider removing these options:
captureTimeout: 210000,
browserDisconnectTolerance: 3,
browserDisconnectTimeout: 210000,
browserNoActivityTimeout: 210000,

These values are extraordinary.  Maybe somewhat larger values than default may be needed in your case, but I would check that these are not masking an app or test issue.

@johnjbarton Yes, we have a quite large application that takes a while to load. So this could probably be a reason. But I haven't seen the application / tab etc to crash on my machine. So this would more likely be a timeout issue than an out of memory issue unless the browser would behave differently when started by Karma.

I'm usually running Karme with Headless Chrome. What I meant is that when I run the application in Chrome, the tabs never crash although it takes some time to load.
I've also tried running Headed-Chrome some time ago and got the same issues as with Headless. The browser window stay open and show the Karma page with the red banner saying disconnected, as far as I can recall.

Is the browser running on the same machine as karma?

Yes

I'm usually running Karme with Headless Chrome. What I meant is that when I run the application (not the tests) in Chrome, the tabs never crash although it takes some time to load.
I've also tried running Headed-Chrome some time ago and got the same issues as with Headless. The browser window stay open and show the Karma page with the red banner saying disconnected, as far as I can recall.

I also only have issues when using Chromium or Headless Chrome.

I think I might have found the root cause of all these issues. What node version are you running?
I have two machines one on Node 8 and one on Node 10.
My machine with node 10 is hitting this disconnect issue pretty frequently.

@leonliang33 I think I was using node 6 for quite some time (also having this issue). I switched to node 10 some days ago and still experiencing disconnects.

All signs still point to app/test code here. I know you want this to be an infrastructure issue, but I think you are looking in the wrong direction.   We run a lot of angular tests on node 10 + chrome.

@johnjbarton I agree that I most likely depends on the application. I tried running tests a 100 times in a "tour of heroes" demo project without any issues. However, the application is quite small and has not that many elaborate tests.
Moreover, the application itself runs in prod environment. I've never seen it crashing the browser when opening it. I've never seen that issue happening on Jenkins either. It's only local.
You mentioned out-of-memory could be an issue.
I've also just noticed, that After exiting chrome (ui), there were like 10 chrome processes still running without any Browser or Karma servers running. Maybe it's really Chrome that is crashing somehow.
Is there any way to find traces of that in the logs?

So this is an issue for only one environment? That suggested trying to isolate environment differences.

@johnjbarton

It appears on multiple developer laptops locally
It appears not to happen on Jenkins
We don't see general app crashes in production (this has no direct relation to Karma)

This points to a race in test code.  I guess by 'Jenkins' you mean CI tests on a cloud or cluster machine, typically lower power than desktops.  So in that case one branch wins and the test passes. Locally the CPU/network is faster and a different branch wins the race and the test fails.

This points to a race in test code. I guess by 'Jenkins' you mean CI tests on a cloud or cluster machine, typically lower power than desktops. So in that case one branch wins and the test passes. Locally the CPU/network is faster and a different branch wins the race and the test fails.

Yes, Jenkins is our CI build pipeline.
But do you mean by "tests fail" that the assertions fail? Because they don't. At least the test reporter doesn't even show that tests are running. I'll only get error message mentioned in the title.

ok then "...different branch wins the race and the test page stops responding."

I can immediately rerun tests when this error happens

Please explain the steps you use to rerun.

In IntelliJ, I start tests
Karma Server Starts
second tool window opens that shows test results
after some seconds, the disconnected error is shown
click on rerun tests in tests tool window
tests run fine

second tool window opens that shows test results

This is pass or fail or error?

after some seconds, the disconnected error is shown

If this message did not appear, would everything else be ok?

click on rerun tests in tests tool window

? That is not a karma feature, can you explain it further?  Is it IntelliJ? A button in the web page from the test framework?

This is pass or fail or error?
Just the connection error, no pass/fail

If this message did not appear, would everything else be ok?
Yes. If the message won't appear, the tests run an pass

That is not a karma feature, can you explain it further? Is it IntelliJ? A button in the web page from the test framework?

Yes, it's a button in the top left corner of the karma tool window in IntelliJ to Rerun tests:
https://www.jetbrains.com/help/idea/running-unit-tests-on-karma.html#ws_js_test_rerun_failed_tests

I think this is normal: karma launches the browser and runs the tests. Then you don't close the browser so karma gets bored and disconnects.  You reload the browser and karma works fine.  Rinse and repeat.
I suppose we could suppress this message in the singleRun==false case.

I experimented the same issue with Angular 8.3.20 just because in my test I wrote :
const anchorElement = fixture.nativeElement.querySelector('a');
anchorElement.dispatchEvent(new MouseEvent('click'));

And fixed it with :
const anchorElement = fixture.nativeElement.querySelector('a');
anchorElement.dispatchEvent(new Event('click'));

Not sure how useful to anyone out there but I had an issue with using $event.stopPropagation() on a span element;

simply changed it to be a div and it run fine.

Even when all tested... it gets disconnected
Chrome 84.0.4147.105 (Mac OS 10.15.5): Executed 54 of 54 SUCCESS (17.303 secs / 16.793 secs)
Chrome 84.0.4147.105 (Mac OS 10.15.5) ERROR
  DisconnectedClient disconnected from CONNECTED state (transport close)
05 08 2020 14:07:29.750:INFO [Chrome 84.0.4147.105 (Mac OS 10.15.5)]: Disconnected browser returned on socket

I know it has been said a lot about that Karma is used in large code bases, and this might be a problem in the browser or the application itself and it all might be true but it doesn't change the fact that there is no fix and not way to debug the issue and it is generally extremely time-consuming and annoying.
My whole team is so frustrated with this issue which happens every 1-2 test runs in multiple different applications that we've migrated our Karma/Jasmine tests to Jest which appears very stable so far.
So, good luck to the others with that issue.

I still have the error in karma 5.2. Anecdotally it also works for me when turning off source-maps, but that's not very pleasant when trying to debug something.

I'm having the same problem and one thing that I noticed is that this problem is way more likely to show up after changing the code that is being tested (not the tests) and that sometimes this timeout happens while fetching big vendor package, which causes to hit the timeout and here it helps a bit but this is not the only reason why those disconnects keep happening.
The only other thing I noticed is that I get a "WebSocket is already in CLOSING or CLOSED state." message in Chrome when those disconnects happen and that's it. I think an important part here is that the tests in the browser complete just fine without any errors anywhere except this socket one when Karma tries to send a message back.
With or without those error for some reason new socket connections are being established but the weird part is that even after Karma server detecting the disconnect the WebSocket stays open and the ping/pong messages keep on going even though the server thinks it lost the connection, or maybe there is something else going on here that I'm not aware of.

Yes those are the same symptoms we see. I believe that PR #3653 will "fix" this by removing all of the different code paths in favor of one based on pingTimeout. Then you will increase the pingTimeout or change the size of the content you send to the browser.  In fact you can try that much now.

In my situation, it was happening after a period of testing inactivity, especially if I just left VS Code open, while doing something else, or stepping away entirely.
My "fix" is to touch the karma.conf.js file.  Extremely imperfect solution, but in my case without 100s of tests, it's much faster than restarting that VS node.

I fixed this by changing the node version :)

In my situation, it was happening after a period of testing inactivity, especially if I just left VS Code open, while doing something else, or stepping away entirely.
My "fix" is to touch the karma.conf.js file. Extremely imperfect solution, but in my case without 100s of tests, it's much faster than restarting that VS node.

That actually works. Thank you.

I also get this issue

Faced the same issue with connections and fixed by downgrading karma package from 6.4.2 to previous major version 5.2.3.
And adding
        listenAddress: "localhost",
        hostname: "localhost",

and
"--remote-debugging-address=<IP_ADDRESS>" into ChromeHeadless flags
in karma config file