🎅 🎉 Pico Admin Preview Release

It was exactly one year ago that we released Pico 1.0. Unfortunately Pico 2.0 isn't ready yet, but I think that it might get a nice tradition to release at least something on Christmas Eve. Thus I'm happy to announce the first, just-a-preview pre-alpha release of Pico's brand new admin plugin!
Click here to download the preview: pico-admin-preview.tar.gz
This archive contains a full installation of the current development build of Pico 2.0 (see #334) with all necessary dependencies. Navigate to http://example.com/pico/admin and follow the on-screen instructions to use Pico Admin.
You can find pico-admin's source code at https://github.com/PhrozenByte/pico-admin
Merry Christmas and a Happy New Year 2017! 🎅 🎉

@picocms @smcdougall @theshka

Looks pretty good.  It's got the girlfriend approval factor, lol.  She says she'd probably use that over editing text files directly. (I'd probably stick to text files, but that's just a personal preference :wink:)
I like the password hash generator, it's a nice touch.  Probably a huge usability improvement too (especially over the old readme instructions of the Editor plugins).
From my brief look at it, everything seems really simple, polished, and well thought out.  It seems straightforward enough that anyone could just sit down and use it.  That's a huge plus, as you know how I'm always arguing the case of Pico for the non-techie user.
Also, sorry for the radio-silence lately.  Besides the holidays, I've also been getting ready to move at the end of the month (so... in just a few short days).  It's been really hectic, but everything should be back to business-as-usual in a few weeks.

Merry Christmas, Happy Holidays, and Happy New Year to you and everyone in the Pico community!
@PhrozenByte Thank you for all the hard work you've put into Pico this year.  Looking forward to the 2.0 release (whenever it's ready).
Let's plan for a big push toward growing Pico and its community throughout 2017!

Happy New Year to you all!
@PhrozenByte thank you for the preview, I'm looking forward to the new Version of Pico. Specially the possibility of data files let me try the preview, buuuut.... I couldn't make it work.
Moved Temporarily The server encountered an internal error or misconfiguration and was unable to complete your request. ... Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request.
showed up after I generated the password (in my case 1234) and posted
$config['PicoAdmin']['auth_token'] = '$2y$12$YVdIOfOsXYCdm/MWPtHqC.rKuukJLOp6Ljqp.MudY7seH5mPbx/Hy';
into confi.php at the plugin section and clicked on the link.
Manually i can go to admin/content/edit/index and everything is working nicely - Thanks again!!
Also, directly going to admin/login filling in the password, nothing happens, no redirect which I assumed.
But all in all, thank you for the new PlugIn, letting me learn a lot on how to do things in Pico and Twig ... and of course thank you, @smcdougall and @theshka for the effort you put in Pico.
Yours,
Cornelius

@dkyme, sorry for the late response, thanks for testing! :smiley: Very strange issue. What browser and webserver software are you using?

@PhrozenByte, no problem.
Browser is Chrome latest Version 55, and Webserver both Apache, one Synology and a shared Host.
But on shared Host the new .htaccess didn't work at all, I could not get clean Urls at all, only ?sub/page

@dkyme: Have you checked your webserver's error.log and a possibly existing separate PHP log?

@PhrozenByte: the error.log of synology complains:

comm with server "/php-fpm-handler" aborted: error parsing headers: malformed header '307 Temporary Redirect', referer: http://<IP_ADDRESS>/pico2/admin

So far I failed setting up a separate PHP log on my shared host, since I'm more an Copy'n'PHPaster :-(

Sure, that's fine @dkyme, you don't need a separate PHP error log, I'm mentioning this only because people must look at all possible places where PHP errors can show up. In your case the webserver's error.log already shows everything we need. This was a bug in Pico Admin, I've fixed it. Thanks for reporting! 👍

Thanks @PhrozenByte ... that works wonderful on my Synology NAS!
On shared Host the URL redirect doesn't works properly.
/?sub works - /sub not
/?sub/page AND /sub/page/ works - /sub/page Not
/?admin redirects to /admin/content/edit/index but shows frontpage
if I use the .htaccess of Version 1.0.4 everything works fine.

@dkyme: Again, very strange issue. Can you please add the following code to line 347 in your lib/Pico.php (after the $this->triggerEvent('onRequestFile', ... line)?
var_dump($this->requestUrl, $this->requestFile, $_SERVER, $this->config); die();

Then navigate to the following pages and give me the output (you might want to use pastebin or something similar). When a error page of your webserver shows up, simply tell me what exact error is shown and check your webserver's error.log.

/
/?sub/page
/sub/page/
/?admin
/admin
/?admin/content/edit/index
/admin/content/edit/index

Is it an expected behaviour that navigating to /admin the redirect immediatly goes to /admin/content/edit/index while showing the login?

Yes, this is expected since there's currently just one admin module installed.

this looks really great! is there support for per user permissions?

@rxng: No, there are also no plannings to add such a feature. It definitely is possible (Pico's plugin system is very powerful), however, things like a role system are explicitly out of Pico's scope.

@PhrozenByte is there a plan, when this will be released? I tried Pico Edit, it is ok but your implementation looks much better.

@Chris2011 Unfortunately not, "it's done when it's done" 😞 Releasing Pico 2.0 is more important right now and my time is very limited.

ok, thx for the info :)

Is this the roadmap for the version 2? https://github.com/picocms/Pico/pull/334

It initially was, but isn't anymore. However, it will be the next project right after releasing Pico 2.0.

@PhrozenByte Oh, I see now.
I will have a look at the left tasks and see if I can help at any.
Thank you @PhrozenByte !

One of the more important tasks is updating Pico's changelog (including a "What has changed" page), writing upgrade instructions and updating the docs (including the install instructions, users should now use a composer-based installation when possible). Pico "as is" (i.e. the source code) is basically ready for release.

That's good to know, I liked the idea of having official plugins with basic functionality, I'm sure it will help to get more people used to it and be able to use it in a bit more user-friendly way. 👍

Is Pico Admin still being developed? Last commit was a while ago.

Pico Admin is on hold and isn't in development at the moment. It isn't cancelled, just deferred; time unfortunately is very limited and Pico Admin isn't the top priority project at this point.

@PhrozenByte  It's interesting add meta_ data and robots on head md file ex:
Title:
Description:
Meta_Description:
Meta_Title:
Robots:
For seo like.

@PhrozenByte It's interesting add robots and menu_presence on head md file ex:
Robots: Index,Follow
Menu_presence: true
For seo like.


maven: 3.5.2 -> 3.5.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/apache-maven/versions.
These checks were done:

built on NixOS
/nix/store/zvhkfnxmklx0bas9zmykbmzqphvi6c9p-apache-maven-3.5.3/bin/mvn passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 3.5.3 with grep in /nix/store/zvhkfnxmklx0bas9zmykbmzqphvi6c9p-apache-maven-3.5.3
directory tree listing: https://gist.github.com/9a7bcffed5e910bc831d8fa971bbcec6
du listing: https://gist.github.com/1285616d86145877047eff13f5c9dc6d

meta.description for maven is: '"Build automation tool (used primarily for Java projects)"'.
cc @cko for testing.

Success on x86_64-darwin (full log)
Attempted: maven
Partial log (click to expand)

trying http://www.eu.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8593k  100 8593k    0     0  3853k      0  0:00:02  0:00:02 --:--:-- 3851k
building '/nix/store/n09khykqcwzvr75pb80n4r6x681z9i1r-apache-maven-3.5.3.drv'...
unpacking source archive /nix/store/z73v3a1lm7g953cgqd0wb8yln39avlqx-apache-maven-3.5.3-bin.tar.gz
source root is apache-maven-3.5.3
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file apache-maven-3.5.3/lib/plexus-sec-dispatcher.license
/nix/store/4h4lmnr4ll0v5892pcn0w2p6knqgpa26-apache-maven-3.5.3

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: maven
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: maven
Partial log (click to expand)

trying http://www.eu.apache.org/dist/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8593k  100 8593k    0     0  3166k      0  0:00:02  0:00:02 --:--:-- 3165k
building '/nix/store/zhna75yb4g4d8bsg30x6anldnh1yrzqb-apache-maven-3.5.3.drv'...
unpacking source archive /nix/store/z73v3a1lm7g953cgqd0wb8yln39avlqx-apache-maven-3.5.3-bin.tar.gz
source root is apache-maven-3.5.3
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file apache-maven-3.5.3/lib/plexus-sec-dispatcher.license
/nix/store/zvhkfnxmklx0bas9zmykbmzqphvi6c9p-apache-maven-3.5.3


Bug: Cloud Credentials Name with spaces shows no warning

What kind of request is this (question/bug/enhancement/feature request):
UI-Bug
Steps to reproduce (least amount of steps as possible):

Have a Rancher 2.2.4 installation
Go to Profile | Cloud Credentials | Add Cloud Credentials
Type in your credentials with a name with spaces
Click Create

Result:
Expected: Warning in name input is shown indicating problem with spaces
Actual: Nothing happens after click on Create
Other details that may be helpful:
Without spaces in the name everything seem to work as expected.
May be related to rancher/rancher#20577 and rancher/rancher#19755
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.2.4
Installation option (single install/HA): HA
Browser: Chrome 75.0.3770.100

In general, it seems that there is no error message when the API for creating a cloud credential is invalid:
https://github.com/rancher/rancher/issues/20577
https://github.com/rancher/rancher/issues/19677
https://github.com/rancher/rancher/issues/19759
https://github.com/rancher/rancher/issues/21215

Closing in favor of https://github.com/rancher/rancher/issues/21888 which is our main issue to track problems with UI not showing errors when create Cloud Credentials with invalid names and/or with required fields not filled out.
Your issue mentioned here is in the second issue mentioned in #21888 which talks about spaces in the name of the Cloud Credential.


Resolve incorrect approx_processed in logging

This PR addresses the logging message of 10% approximate processing for images.
In addition, as a further notice, when an image does not have a cv2.CAP_PROP_FRAME_COUNT value, it returns a sys.maxsize().
Closes #304

LGTM


feat: update user app

Add pillow package and JWT authentication
Update urls.py and settings.py
Create initial migration for CustomUser model
Update views.py for user authentication and profile management

Hello @EdinsonRequena! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file tiktok_clone_back/urls.py:

Line 19:80: E501 line too long (80 > 79 characters)
Line 25:80: E501 line too long (80 > 79 characters)
Line 26:80: E501 line too long (81 > 79 characters)

In the file users/migrations/0001_initial.py:

Line 21:80: E501 line too long (117 > 79 characters)
Line 22:80: E501 line too long (88 > 79 characters)
Line 23:80: E501 line too long (103 > 79 characters)
Line 24:80: E501 line too long (196 > 79 characters)
Line 25:80: E501 line too long (329 > 79 characters)
Line 26:80: E501 line too long (104 > 79 characters)
Line 27:80: E501 line too long (102 > 79 characters)
Line 28:80: E501 line too long (165 > 79 characters)
Line 29:80: E501 line too long (203 > 79 characters)
Line 30:80: E501 line too long (117 > 79 characters)
Line 31:80: E501 line too long (104 > 79 characters)
Line 32:80: E501 line too long (90 > 79 characters)
Line 33:80: E501 line too long (141 > 79 characters)
Line 34:80: E501 line too long (266 > 79 characters)
Line 35:80: E501 line too long (229 > 79 characters)

In the file users/views.py:

Line 44:80: E501 line too long (92 > 79 characters)
Line 45:80: E501 line too long (92 > 79 characters)
Line 48:80: E501 line too long (86 > 79 characters)
Line 51:80: E501 line too long (109 > 79 characters)


Fetch on Channel & Playlist entities does not seems to work

Here my simple code:
youtube
  .searchChannels('montemagno', 3)
  .then(results => {
    console.log(results[0].raw.snippet.title)
    console.log(results[0].raw.snippet.description)
    console.log(results[0].raw.snippet.thumbnails.high.url)

    let channel = results[0]
    return channel.fetch({ part: 'snippet,contentDetails,statistics' })
  })
  .then(c => console.log(c))
  .catch(console.log)

// prints

// Marco Montemagno
// I'm a tech entrepreneur with a 1 million strong social media community. Most of all I love table tennis and I'm secretly considering a comeback for the next ...
// https://yt3.ggpht.com/-0PHytwkem3c/AAAAAAAAAAI/AAAAAAAAAAA/5N6tgBUB3Lw/s800-c-k-no-mo-rj-c0xffffff/photo.jpg
// undefined

I would expect to get the full data of the channel instead of undefined

This also appears to be the case with playlists.


Error creating GraphQL model from a Sequelize model with JSON field

Unhandled rejection Error: Unable to convert JSON to a GraphQL type

Please provide more info for how to reproduce.

Hi!
I no longer have this project. But I remember that when some field of JSON type was tried to be parsed this would throw. Maybe cause there is currently no way to parse JSON fields? IDK. Cause JSON does not really have a type information.


add data to model when app is running and use

I am trying to make a talking bot using this library
I admit that the library is incredibly beautiful and the work is set up
But I wanted to know how I can add data to the model when app is running using this library and save it at runtime.

Hey Mohammad,
thank you for playing out with my package!
Would you mind to describe a bit more about your specific use case scenario?
And do you use is as library in your own C# project or do you use it as executable in a script?

Hey Mohammad,
thank you for playing out with my package!
Would you mind to describe a bit more about your specific use case scenario?
And do you use is as library in your own C# project or do you use it as executable in a script?

I am trying to complete my project with this package because it is very accurate and it is the answer for me. The scenario I am implementing is analyzing and categorizing my forum questions thematically I need two vital things in this package 1- Teaching labeled data and saving it and the possibility of reusing it 2- A way to implement active learning with this library and train more data to increase model accuracy over time The latter is very important to me because I currently have very little labeled data and most of my data is unlabeled. are tags (almost 6 million messages)

Thank you for your suggestion.
You can already do that that by writing your own method around the classifier.
I don't know if you are calling the DLL from C# or Powershell or another language, but here an example in C# that you can replicate easily in other languages as well:
using NW.NGramTextClassification;

namespace YourOwnApplication
{
    class Program
    {

        static int Main(string[] args)
        {

            List<TextSnippet> textSnippets = GetTextSnippets();
            IFileInfoAdapter jsonFile = GetLabeledExampleJsonFile();

            ITextClassifier textClassifier = new TextClassifier();
            foreach (TextSnippet textSnippet in textSnippets)
            {

                TextClassifierSession textClassifierSession
                        = LoadSaveAndClassify(textClassifier, textSnippet, jsonFile);

                // Handle Session

            }

            // Handle exit code
            return 0;

        }

        private static List<TextSnippet> GetTextSnippets() { /* .... */ }
        private static IFileInfoAdapter GetLabeledExampleJsonFile() { /* .... */ }

        private static TextClassifierSession LoadSaveAndClassify
            (ITextClassifier textClassifier, TextSnippet textSnippet, IFileInfoAdapter jsonFile)
        {

            List<LabeledExample> labeledExamples
                = textClassifier.LoadLabeledExamplesOrDefault(jsonFile);

            TextClassifierSession textClassifierSession
                = textClassifier.ClassifyOrDefault(textSnippet, labeledExamples);

            LabeledExample labeledExample
                = new LabeledExample(
                        Label: textClassifierSession.Results[0].Label
                        Text: textClassifierSession.Results[0].TextSnippet.Text
                        );

            labeledExamples.Add(labeledExample);

            textClassifier.SaveLabeledExamples(labeledExamples, jsonFile.FullName);

            return textClassifierSession;

        }

    }

}

Obviously, you need to add some error handling logic as well, according to your need.


Identical devices, different behaviors

I have 2 bulbs that are identical to each other (same manufacturer, model, came in a pack together).
These two bulbs load, along with all of my devices in the API response. However the Creating New Accessory has different results for these two identical bulbs.
These two identical bulbs show up with different functions in HomeKit.
One bulb loads as it should with control for Power, Brightness, and Color Temperature.
[03/06/2021, 10:09:31] [TuyaPlatform] Adding: GN-BW231-999 2 (dj / ebfc757038252d0e55kbth)
[03/06/2021, 10:09:31] [TuyaPlatform] Creating New Accessory ebfc757038252d0e55kbth
LightAccessory statusArr. [
  { code: 'switch_led', value: true },
  { code: 'bright_value', value: 202 },
  { code: 'temp_value', value: 102 }
]
LightAccessory functionArr. [
  {
    code: 'switch_led',
    desc: 'switch led',
    name: 'switch led',
    type: 'Boolean',
    values: '{}'
  },
  {
    code: 'bright_value',
    desc: 'bright value',
    name: 'bright value',
    type: 'Integer',
    values: '{"min":25,"scale":0,"unit":"","max":255,"step":1}'
  },
  {
    code: 'temp_value',
    desc: 'temp value',
    name: 'temp value',
    type: 'Integer',
    values: '{"min":0,"scale":0,"unit":"","max":255,"step":1}\t'
  }
]

The 2nd only loads with Power (On/Off capability). As you can see in the logs below, this one throws a warning LightAccessory functionArr. undefined and results in an unhandled exception.
[03/06/2021, 10:09:31] [TuyaPlatform] Adding: GN-BW231-999 3 (dj / eb40e5c0e95fc073cadhpm)
[03/06/2021, 10:09:31] [TuyaPlatform] Creating New Accessory eb40e5c0e95fc073cadhpm
LightAccessory statusArr. [
  { code: 'switch_led', value: true },
  { code: 'bright_value', value: 43 },
  { code: 'temp_value', value: 56 }
]
LightAccessory functionArr. undefined
(node:5018) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'find' of undefined
    at LightAccessory.getFunction (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/light_accessory.js:212:36)
    at LightAccessory.refreshAccessoryServiceIfNeed (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/light_accessory.js:53:29)
    at new LightAccessory (/usr/local/lib/node_modules/homebridge-tuya-platform/lib/light_accessory.js:30:10)
    at TuyaPlatform.addAccessory (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:125:27)
    at TuyaPlatform.initTuyaSDK (/usr/local/lib/node_modules/homebridge-tuya-platform/index.js:84:12)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:5018) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 10)
(node:5018) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Hi @rcoletti116 ,Thank you very much for your feedback.
This discovery is very important for us, and we will solve this problem soon.

Hi @rcoletti116 ,Thank you for your support of our plugin. We have optimized the plugin. Please update and try again.
If you encounter any problems in the process of use, Please timely feedback with us, we will be the first time to respond.

No, did not work. In fact, now none of my devices are added.

~No, did not work. In fact, now none of my devices are added.~
I had to reset everything, but it did work. Steps were unpair the plugin (child bridge), remove devices from Homebridge cache, restart, re-pair.

In general, plugin updates just need reconfiguring the child Bridge, perhaps because previously unavailable plugin cached Tuya devices in HomeBridge, and the Tuya devices were not created when the new plugin service started.

In general, plugin updates just need reconfiguring the child Bridge, perhaps because previously unavailable plugin cached Tuya devices in HomeBridge, and the Tuya devices were not created when the new plugin service started.

I don't exactly agree. The child bridge should only need a restart. There may be some odd caching behavior occurring in the plugin. I'll close this one out though since it is solved.


🐛 BUG: Commenting with crt+/ in the frontmatter uses an html-style comment

Describe the Bug
Using CTRL+/ to comment out a line or several lines creates an HTML-style comment (<!-- -->) instead of a js comment (// )
Steps to Reproduce

npm init astro using template
Open a .astro file in VS Code
Select some code in the frontmatter
Use CTRL+/ to comment it out
Error! Describe what went wrong (and what was expected instead)...

Yeah, confirmed!

Yep, I think this was a regression due to some recent changes to the language definition. We'll take a look!

I’m glad to know it’s a regression! I thought maybe it was always broken. This means the bug is my fault, which is good, because it means I can probably figure out why it broke and how to fix it.


Handling Istiod DNS cert rotation for k8s CA

Please provide a description of this PR:
Handling Istiod DNS cert rotation for k8s CA
resolve #42170

Tested manually for k8sCA (k8s v1.21) and custom signer for cert rotation. Also tested connectivity between sleep and httpbin pods.

To help us figure out who should review this PR, please put an X in all the areas that this PR affects.

[ ] Ambient
[ ] Configuration Infrastructure
[ ] Docs
[x] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[X] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Hi @hemendrateli. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

@hemendrateli: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

@hemendrateli: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test release-notes

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test release-notes

lint_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

release-notes_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test release-notes

lint_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test lint

gencheck_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
197a7aeb8fb78524e84138eb259406b19209e6d0
link
true
/test lint

gencheck_istio
71465b9d07024e19c3c22e1054159132a6de7e1e
link
true
/test gencheck

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

gencheck_istio
71465b9d07024e19c3c22e1054159132a6de7e1e
link
true
/test gencheck

lint_istio
71465b9d07024e19c3c22e1054159132a6de7e1e
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@hemendrateli: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
b54e26d10d094dc83226de8794181925841634cb
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
b54e26d10d094dc83226de8794181925841634cb
link
true
/test unit-tests

unit-tests-arm64_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests-arm64

unit-tests_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests

unit-tests-arm64_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests-arm64

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@hemendrateli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

unit-tests-arm64_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests-arm64

unit-tests_istio
1f670d6f249a76a0c34c81ad592166f4e32efe66
link
true
/test unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn Planning to add only expired cert rotation scenario in unit test by having retryUntill with 10sec timeout. This should work faster in most cases and flakiness would be minimal as timeout is 10sec.

@hemendrateli: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

lint_istio
7770442655d4cab8fd93e336234d1f4dfd48d3e1
link
true
/test lint

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Disabled ALPN, and encountered Expected SETTINGS frame as the first frame, got frame type 80

What version of gRPC and what language are you using?
grpc 1.38.0-dev
exists in 1.36 too
What operating system (Linux, Windows,...) and version?
Windows
What runtime / compiler are you using (e.g. python version or version of gcc)
Python 3.7.9
Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26730 for x64
What did you do?
Please provide either 1) A unit test for reproducing the bug or 2) Specific steps for us to follow to reproduce the bug. If there’s not enough information to debug the problem, gRPC team may close the issue at their discretion. You’re welcome to re-open the issue once you have a reproduction.
Trying to run a Google Document AI sample in windows environment behind a corporate proxy with reference to the following
https://github.com/googleapis/python-documentai/blob/30008b45ecc536ecdd47adc04b37cf9881ca0033/samples/snippets/quickstart_sample.py
However, during runtime, when trying to connect to Google Document AI, it will throw an error
"Cannot check peer: missing selected ALPN property."
Thus, attempt to custom build a grpcio for python with TSI_OPENSSL_ALPN_SUPPORT disabled.
The compilation of of the gprc code and python_build is successful.
However, after the TSI_OPENSSL_ALPN_SUPPORT or ALPN check is disabled, a different error is shown during runtime
"Expected SETTINGS frame as the first frame, got frame type 80"
If attempt to run the same code bypassing the proxy, the execution is successful.
What did you expect to see?
The execution of the program to be successful
What did you see instead?
In the console, the log as below
E0504 15:36:52.742000000 12584 src/core/lib/debug/trace.cc:65] Unknown trace var: 'transport_security'
I0504 15:36:52.770000000 12584 src/core/tsi/ssl_transport_security.cc:223]      HANDSHAKE START -       TLS client start_connect  - !!!!!!
I0504 15:36:52.771000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP -    TLS client enter_early_data  - !!!!!!
I0504 15:36:52.771000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP -   TLS client read_server_hello  - !!!!!!
I0504 15:36:52.793000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_server_certifi  - !!!!!!
I0504 15:36:52.794000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_certificate_st  - !!!!!!
I0504 15:36:52.794000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client verify_server_certi  - !!!!!!
I0504 15:36:52.795000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_server_key_exc  - !!!!!!
I0504 15:36:52.795000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_certificate_re  - !!!!!!
I0504 15:36:52.795000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_server_hello_d  - !!!!!!
I0504 15:36:52.795000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client send_client_certifi  - !!!!!!
I0504 15:36:52.795000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client send_client_key_exc  - !!!!!!
I0504 15:36:52.797000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client send_client_certifi  - !!!!!!
I0504 15:36:52.797000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client send_client_finishe  - !!!!!!
I0504 15:36:52.797000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP -       TLS client finish_flight  - !!!!!!
I0504 15:36:52.797000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_session_ticket  - !!!!!!
I0504 15:36:52.797000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client process_change_ciph  - !!!!!!
I0504 15:36:52.807000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client read_server_finishe  - !!!!!!
I0504 15:36:52.808000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP - TLS client finish_client_hands  - !!!!!!
I0504 15:36:52.808000000 12584 src/core/tsi/ssl_transport_security.cc:223]                 LOOP -                TLS client done  - !!!!!!
I0504 15:36:52.808000000 12584 src/core/tsi/ssl_transport_security.cc:223]       HANDSHAKE DONE -                TLS client done  - !!!!!!
I0504 15:36:52.826000000 12584 src/core/ext/filters/client_channel/subchannel.cc:1012] Connect failed: {"created":"@1620113812.826000000","description":"Failed parsing HTTP/2","file":"src/core/ext/transport/chttp2/transport/chttp2_transport.cc","file_line":2536,"referenced_errors":[{"created":"@1620113812.826000000","description":"Expected SETTINGS frame as the first frame, got frame type 80","file":"src/core/ext/transport/chttp2/transport/parsing.cc","file_line":262},{"created":"@1620113812.826000000","description":"Trying to connect an http1.x server","file":"src/core/ext/transport/chttp2/transport/chttp2_transport.cc","file_line":2489,"grpc_status":13,"http_status":400}]}
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
See TROUBLESHOOTING.md for how to diagnose problems better.
Anything else we should know about your project / environment?
The corporate proxy is a SSL proxy with it's own certificate
If attempt to run the same code bypassing the proxy, the execution is successful.
related issue?
https://github.com/grpc/grpc/issues/7726

Once the HTTP/2 transport receives an established connection, it expects the SETTINGS frame to be the first frame. From a quick look, it looks like the HTTP/2 transport is seeing a different frame, possibly some leftover frames from the security handshake.

Yihua, please take a look. I definitely see code in gRPC around TSI_OPENSSL_ALPN_SUPPORT but I'm not sure if we test it anywhere or if we officially support disabling it.

Sorry for the late reply. Yes, we do have ALPN tests in ssl_transport_security_test.cc. I do not think we should disable  TSI_OPENSSL_ALPN_SUPPORT but rather see what caused  "Cannot check peer: missing selected ALPN property." error. One possible cause may be using an old version of SSL library that does not support ALPN (e.g., only supports NPN).

@hanming-nls keeping in mind that the latest release is 1.52.1 - do you still use 1.38.0 and need a solution for the issue? Assigning P3 priority for now

Closing this because (a) it is likely that the root cause is an old OpenSSL library that only supports NPN and not ALPN, (b) the TSI_OPENSSL_ALPN_SUPPORT macro is an internal implementation detail and it should not be set by users, and (c) no response that this is still an issue when updating to more recent versions.


WIP: Create BUILDING.md

An initial draft of a supported levels table.

There are two other dimensions to this as well.; release and originator  There are platforms that OpenJDK lists as minimum supported and those that OpenJ9 lists as minimum supported.
OpenJDK is published here
Not sure about OpenJ9, I will see if I can find something on their site and update with a url.

See https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

For completeness on this, there is also my initial stab at a supported platforms list at https://github.com/AdoptOpenJDK/openjdk-build/wiki/[WIP]-Minimum-OS-levels

Yeah this should be in the openjdk-build repo and is OK as a wiki I think.  We should mostly just reference the official OpenJDK and OpenJ9 docs for each version and inly add our extra bits for platforms that OpenJDK doesn't cover (build instruction wise)

Sounds like the document I already have in there is the right place to flesh out any further detail, unless we want separate documents for build environments vs running our supplied binaries (My doc is the latter)
@gdams Where did those figures for kernel and glibc versions come from - did you just pull them from a particular OS?

This can probably now be considered superceded by the combination of the compiler table in the new Build FAQ and the wiki document referenced above

No further updates ... closing


examples: Add step-by-step NMO correction using SparseFunctions.

This example is a Normal Moveout (NMO) correction, that shows how Devito is more than a Finite Difference solver, and could help some users a better understanding of Devito.

And the NBVAL_IGNORE_OUTPUTs  in the op() cell to avoid testing erroring from difference in runtime


Bump UToronto image

Brings in https://github.com/2i2c-org/utoronto-image/pull/2.
Fixes https://github.com/2i2c-org/utoronto-image/issues/1

Doing this via PR here so the prepuller works. Manually deployed.


feat: provides a callback with given distance parameter for scrollDuration option

feat: provides a callback with given distance parameter for scrollDuration option

Pull Request Test Coverage Report for Build 931154483

0 of 7 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.7%) to 14.375%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/useVirtual.ts
0
7
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/useVirtual.ts
1
0%

Totals

Change from base Build 931129765:
-0.7%

Covered Lines:
47

Relevant Lines:
279

💛  - Coveralls


Auxiliary Columns in vec0 virtual tables

Similar to auxiliary columns in the R*Tree extension, aux columns in vec0 virtual tables could be declared like so:
create virtual table vec_articles(
  headline_embeddings float[1024],
  +headline text
);

The + prefix denotes that the column is an "auxiliary column", allowing one to attach additional data to a row in a vec0 table that is not vector data, a primary key, or a partition key.
One important note: auxiliary columns cannot be used as filters in KNN queries. In other words, they cannot appear in the WHERE clause of a KNN query like so:
create virtual table vec_articles(
  headline_embeddings float[1024],
  +headline text
);

select rowid, distance
from vec_articles
where headline_embeddings match ?
  and k = 10
  -- illegal use of auxiliary column in a KNN WHERE clause!!
  and headline like 'Breaking News: %';

This is because auxiliary columns are just meant as "side-car" columns to avoid an additional table and JOIN. Values in aux columns can be as large as they want, they are stored in a separate table so performance wouldn't degrade.
for proper "metadata filtering,", see #26 .

Now supported: https://alexgarcia.xyz/sqlite-vec/features/vec0.html#aux


WebSocket handshake: Unexpected response code: 400

Description

Related Issues

WebSocket connection to 'ws://localhost:8443/' failed: Error during WebSocket handshake: Unexpected response code: 400
error on browser

Can you provide more info? Your issue does not detail your error. I alsp neednypur diagnostic information

I clone the repo and build it locally for the latest updates when I start it on browser console it showing the above error.

This does not tell the whole picture. We need the following:

Server Logs
your System information (OS and Version [for Linux, specify Kernel and GLIBC version]).

We can't help you if you don't have these prerequisites - it helps us to get a better picture and allow to reproduce it.

I also want to point out you might have WebRTC disabled as well - check if you have a WebRTC blocker. If you do, you can't use code-server.

I'm also seeing this.  I'm using MacOS 10.14.

CC @Multishifties if this is known

This is a known Error. Unfortunately I have yet to determine the cause of this.

@nishantbhat May I suggest you change this title to WebSocket handshake: Unexpected response code: 400 so that other users may find it and avoid duplicate issues? (please?)

I had same situation, but I turned on and off a few times and wait a minute. then it was fixed.
but I don't know why.
I use CentOS 7.x, and used https://github.com/cdr/code-server/commit/72152f74ab3a9d06ee42f693e191049ad13709ea commit
INFO  webpack {"message":"wait until bundle finished: /"}
webpack built 914fd503f1fcdf6cd102 in 21813ms
WARN  webpack {"message":"\nWARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts 326:96-103\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/platform/environment/node/environmentService.ts 76:74-81\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/contrib/debug/node/debugger.ts 259:72-79\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/contrib/cli/node/cli.contribution.ts 30:46-53\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/contrib/performance/electron-browser/perfviewEditor.ts 243:39-46\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/contrib/externalTerminal/electron-browser/externalTerminalService.ts 113:60-67\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/base/node/processes.ts 54:49-56\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts 31:84-91\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts 38:92-99\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/platform/environment/node/environmentService.ts 183:75-82\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/extensionHost.ts 143:94-101\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/node_modules/getmac/index.js 3:63-70\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/files/node/watcher/win32/csharpWatcherService.ts 35:58-65\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/files/node/watcher/nsfw/watcherService.ts 30:68-75\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/files/node/watcher/unix/watcherService.ts 31:68-75\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/services/search/node/searchService.ts 412:72-79\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/workbench/contrib/debug/node/terminals.ts 124:60-67\nCritical dependency: require function is used in a way in which dependencies cannot be statically extracted\n\nWARNING in ./lib/vscode/src/vs/editor/common/services/editorSimpleWorker.ts 464:12-474:22\nCritical dependency: the request of a dependency is an expression\n\nWARNING in ./lib/vscode/node_modules/vscode-textmate/release/main.js 14:15-27\nCritical dependency: the request of a dependency is an expression"}
INFO  webpack {"message":"Compiled with warnings."}
INFO  WebSocket opened / {"client":1,"ip":"🚫"}
INFO  WebSocket closed / {"client":1,"code":1001}
INFO  Wrote resource {"path":"🚫/code-server/User/workspaceStorage/1fab9dc45b76f1e6a06b4bc07a1e63c6/state.json","content-length":2}
INFO  WebSocket opened / {"client":2,"ip":"🚫"}

From what I can tell this might be a misconfigured reverse proxy, or the network is actively blocking WebRTC requests.

Issue is marked stale. Closing as no longer relevant to current tree.

Description
Related Issues
WebSocket connection to 'ws://localhost:8443/' failed: Error during WebSocket handshake: Unexpected response code: 400
error on browser

Hey， mate, I have faced same issue with Unexpected response code: 200. My app is running behind nginx reversed proxy. I have changed setting to this, and it works for me. I think proxy_pass needs to set to localhost. Hope this will help you out.  Happy coding ~~~
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}

Sorry newbie here, do I just add this to my nginx.config or do I paste it inside one of the existing sections (e.g. events { .. }, http { .. })?

@wesleytian It should be inside a server block. For example: https://github.com/cdr/code-server/blob/master/doc/quickstart.md#nginx-reverse-proxy

And for completeness server blocks go inside the http block.

Description
Related Issues
WebSocket connection to 'ws://localhost:8443/' failed: Error during WebSocket handshake: Unexpected response code: 400
error on browser

Hey， mate, I have faced same issue with Unexpected response code: 200. My app is running behind nginx reversed proxy. I have changed setting to this, and it works for me. I think proxy_pass needs to set to localhost. Hope this will help you out. Happy coding ~~~
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}

Thank you! This works for me.

This issue should be opened because it has not been resolved.

This issue should be opened because it has not been resolved.

Please try to use our setup guide with caddy instead. No evidence of a bug with code-server in this issue.
https://github.com/cdr/code-server/blob/master/doc/guide.md

a


cache[path] is not a function

var doc = {
"books" : [
{
"id"     : 1,
"title"  : "Clean Code",
"author" : { "name" : "Robert C. Martin" },
"price"  : 17.96
},
{
"id"     : 2,
"title"  : "Maintainable JavaScript",
"author" : { "name" : "Nicholas C. Zakas" },
"price"  : 10
},
{
"id"     : 3,
"title"  : "Agile Software Development",
"author" : { "name" : "Robert C. Martin" },
"price"  : 20
},
{
"id"     : 4,
"title"  : "JavaScript: The Good Parts",
"author" : { "name" : "Douglas Crockford" },
"price"  : 15.67
}
]
};
trying to get title using query
JSPath.apply('.books.title',doc )
getting an error
cache[path] is not a function
querying for the first element as
JSPath.apply('.books.id',doc )
getting desire responce but for other elment first throwing an error

@MShidurkar I've tried to run your code and everything worked as expected. Could you provide more details about your environment?

I have this JSON
funionsJSON2= {
"functions": [
{
"name": "trim",
"parameters": 0,
"type": "String"
},
{
"name": "length",
"parameters": 0,
"type": "String"
},
{
"name": "getTime",
"paramters": 0,
"type": "DateTime"
},
{
"name": "getMonth",
"parameters": 0,
"type": "DateTime"
},
{
"name": "getDate",
"parameters": 0,
"type": "DateTime"
},
{
"name": "concat",
"parameters": 1,
"type": "String"
},
{
"name": "substring",
"parameters": 2,
"type": "String"
}
]
};
and I am trying to read all names with parameters 0 using query
var ParameterLessFunctions= JSPath.apply('.functions.name',funionsJSON2,{ paramters : 0 })
but it is not filtering the result also trying to read
JSPath.apply('.functions.type',funionsJSON2) throwing error
cache[path] is not a function

but it is not filtering the result

Substitutions are not intented to be used as filters, checkout documentation. If you need to get all names filtered with parameters 0, use:
JSPath.apply('.functions{.parameters === 0}.name', funionsJSON2));

I was trying to run on console that's why getting a cache[path] error. Inside functionality is working fine


ci/release: Add release tooling

This adds a bot workflow for creating release commits
As with similar tooling this is a first iteration to get things working - there is a lot that it doesnt do which are kinda necessary

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

I tend to run this alot during release as changelogs change etc - so the first update to this wf will be to allow it to update as well as create
I have also have a couple of prs behind for syncing version histories and reopening branches


Sort dependencies in lock file

Sorting the dependencies makes mvnix-update idempotent (the output will not
change unless the dependencies change) so that we can run it on CI.

Very nice, thanks for this!


Stuck on support screen?

Preparation

[X] I tested the latest release
[X] I looked at other issues (even the closed ones)
[X] I read the Troubleshooting Guide

FGO server
NA
FGA build number
1801
Describe the bug
Literally the bug report title.
Video
https://user-images.githubusercontent.com/32769878/187014015-ed64b56e-a781-4dbf-b322-2279f4318353.mp4
Device model
BlueStacks <IP_ADDRESS>3
Android version
7
Screen size
1280x720
RAM
4GB

did you fix it?

Do you mind trying 1080p resolution? Have you set up everything as instructed in the Emulator wiki page?

Hello.
I see this same issue.
Samsung Galaxy Note Ultra.
I tried all of the 3 resolution options with the same results as the original poster.
If I manually choose support, then start FGA, it will play through one battle, then gets confused on the final item screen at the battle end

Have you set up everything as instructed in the Emulator wiki page?

It has been working fine for 3 to 4 days before this issue, so I didn't really paid attention to the instructions. Nevertheless I think I didn't rotate the screen.

Do you mind trying 1080p resolution?

Sure. Will report back.

I tried the rotation method mentioned in the wiki, and also used 1080p, in any order possible.
However it didn't fix the issue. Reinstalling did. I guess there is something inside BlueStacks messing with FGA when I choose the Don't ask again option (seems to happen on my phone too so this should be noted in the wiki?)
Closing.


Safety Manual Added

Fixes: #230
Description:
Added Women's Safety tips with all required changes.
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] My changes generate no new warnings.

Fixes: #230
Description:
Made requested modifications.
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] My changes generate no new warnings.

@anushka1309paul Resolve the conflicts.


Question:

Hi,
When attempting to execute the command colabfold_batch exper/fasta-res/G0_G0.fasta exper/pdbs --num-models 5, I encountered the following warnings and errors:

WARNING: You are welcome to use the default MSA server, however keep in mind that it's a
limited shared resource only capable of processing a few thousand MSAs per day. Please
submit jobs only from a single IP address. We reserve the right to limit access to the
server case-by-case when usage exceeds fair use. If you require more MSAs: You can
precompute all MSAs with colabfold_search or host your own API and pass it to --host-url

2024-04-28 18:59:12,568 Unable to initialize backend 'rocm': NOT_FOUND: Could not find registered platform with name: "rocm". Available platform names are: CUDA
2024-04-28 18:59:12,607 Unable to initialize backend 'tpu': INTERNAL: Failed to open libtpu.so: libtpu.so: cannot open shared object file: No such file or directory
2024-04-28 18:59:12,627 Running on GPU
2024-04-28 18:59:13,528 Found 5 citations for tools or databases
2024-04-28 18:59:13,529 Query 1/1: G0_G0 (length 1334)
2024-04-28 18:59:19,704 Timeout while submitting to MSA server. Retrying...
2024-04-28 18:59:25,876 Timeout while submitting to MSA server. Retrying...

I look forward to your prompt response and assistance in resolving this issue.

Close this issue because this is not a problem with the installation of localcolabfold.


Update the release script to configure gcloud Docker credentials.

/sig multicluster
This should fix the nightly build.
/cc @madhusudancs @font @pmorie

@font Prow.


Suggestions to run the script in the background without opening the UI

Hi,
I am running the script using Raycast but I want it to run in the background without opening any UI. Is that possible?
Can you please point me in the right direction.

Hi! That's really tricky. I've looked into other CLI scripts in the past, but they tend to break / they work until you have to reboot etc. This (painful) AppleScript only works by awkwardly using the UI - so what you're asking for is kinda possible, but not using AppleScript (that I know of)... for me, I trigger this script, then just wait a few seconds and the UI does it's thing, then closes ... which is good enough for me.
If you do find a solution - do let me know. good luck! 👍🏻


3D point-cloud  unable to view each point  X Y Z values

Hi , Is there any feature or plugin that supports the visualization of X, Y, and Z values at each point in the 3D point cloud visualization, or can I get the distance from one point to another point? This feature would be helpful in identifying the distance from the egocentric to object.
please can you support  Thank you  @benjaminpkane @brimoor @swheaton @sashankaryal

Hi @cr7Alex. This is not currently supported, but extensibility in the visualizers will potentially solve this. Stay tuned


Fix all the webtests, except addRevokeUsers

Fix failing webtests.

Revert the commit:
Revert ID.xls file from commit 901cea2
and fix failing tests.

ID.xls file from commit 901cea2 has been reverted.


Merge master into feature branch

For contributor use:

[ ] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

cc @turbolent


Not working, trying to load without the extension name

As you'll see, it doesn't try to load the .js, but an http://localhost:3001/angular2-websocket/angular2-websocket which of course doesn't exist. I'm using a default systemjs configuration.
Error: patchProperty/desc.set/wrapFn@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:830:27
	Zone</ZoneDelegate</ZoneDelegate.prototype.invokeTask@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:423:24
	Zone</Zone</Zone.prototype.runTask@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:320:29
	ZoneTask/this.invoke@http://localhost:3001/node_modules/angular2/bundles/angular2-polyfills.js:490:29

	Error loading http://localhost:3001/angular2-websocket/angular2-websocket as "angular2-websocket/angular2-websocket" from http://localhost:3001/app/chat/chat-service.js

The only way I could get this library working was to just copy the angular2-websocket ts file.


Yikes! KeeperErrorCode = NoAuth for

Hello,
I've been securing a KAfka/Zookeeper  cluster  with SASL (both KAfka and zookeeper) and my broker has been configured with the option 'zookeeper.set.acl=true' which means that it sets acls on resources it creates. It also means that if an application wants to create or modify KAfka nodes in zookeeper, it has to authenticate to the zookeeper ensemble.
I've then adapted the kafka cluster setup (via the UI) to use SASL but from what I could understand the SASL configuration is only used to access the KAfka broker, not Zookeeper.
Do you know if there is a way to configure SASLS to access the zookeeper ensemble associated to a KAfka broker?
Note that the zookeeper ensemble used internally by Kafka manager is not the same as the one used by my Kafka brokers and it is non secured.
Thanks for your help!

@julienmmm I have exactly the same issue, did you find a solution ?
Best,
Jerome

create cmak/conf/jass.conf
Client{  //连接zookeeper
org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="admin";
};
KafkaClient{ //连接kafka
org.apache.kafka.common.security.plain.PlainLoginModule required
username="admin"
password="admin";
};
bin/kafka-manager -Djava.security.auth.login.config=/<your_security_conf_dir>/jaas.conf
but this way has a problem:
1)cmak ZK node must be in the ZK of kafka
2)cmak just ask the the same ZK,other ZK cannot get accessable


CBAPI-2058: add asynchronous query support to process and process event queries

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Tests have been added that prove the fix is effective or that the feature works.
[x] New and existing tests pass locally with the changes.
[x] Code follows the style guidelines of this project (PEP8, clean code, linter).
[x] A self-review of the code has been done.

What is the ticket or issue number?
 https://jira.carbonblack.local/browse/CBAPI-2058
Pull Request Description

Add the asynchronous query functionality (execute_async()) to AsyncProcessQuery (the query for the Process object) and Query (the query for the Event object).
Does this introduce a breaking change?

[ ] Yes
[x] No

How Has This Been Tested?

New unit tests have been added to show that the asynchronous queries performs in the same manner as the synchronous queries.

Looks good to me. Any way to recover some of the lost test coverage?

My latest change does that, because the base Query _search() method was no longer being called.


bug fix: close http response body no longer in use

This is a potential risk which will probably exhaust server file descriptor resource, so invoke response.Body.Close() explicitly
Signed-off-by: Zhang Wei<EMAIL_ADDRESS>

LGTM

good find

LGTM

@jfrazelle Did you cherry-pick this one?

nope but i will

done thanks ;)


Cannot launch server when rate-limited by Github API

Describe the problem
When using a Packwiz modpack, the server script makes an API request to Github each time it's launched:

curl -fsSL https://api.github.com/repos/packwiz/packwiz-installer-bootstrap/releases/latest

However, Github has a very low rate limit for unauthenticated users, so if the server gets stuck in e.g. a crash loop with restart: unless_stopped or similar, the Github API will start returning 403s (from what I can tell, for about an hour) for rate-limiting.
This causes the curl request to fail and the container stops trying to boot:

curl: (22) The requested URL returned error: 403

Ideally, the container would either:

Remove use of the GH API so that the rate-limiting never gets hit
Gracefully handle 403s from the GH API when a cached version of packwiz-installer-bootstrap is available

Container definition
version: "3"

services:
  mc:
    image: itzg/minecraft-server
    ports:
      - 25565:25565
    environment:
      EULA: "TRUE"
      TYPE: QUILT
      VERSION: 1.18.2
      PACKWIZ_URL: REMOVED PACK URL
      MEMORY: 7G
      USE_AIKAR_FLAGS: true
      DEBUG: true
    tty: true
    stdin_open: true
    restart: unless-stopped
    volumes:
    - ./minecraft-data:/data:Z

Container logs
+ export HOME=/data
+ HOME=/data
++ id -u
++ id -g
++ ls -lnd /data
+ log 'Running as uid=1000 gid=1000 with /data as '\''drwxrwxr-x. 11 1000 1000 4096 Aug 15 16:24 /data'\'''
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-08-15 16:28:57+00:00 Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x. 11 1000 1000 4096 Aug 15 16:24 /data'
+ '[' '!' -e /data/eula.txt ']'
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ fixJavaPath
+ which java
+ export VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
+ VERSIONS_JSON=https://launchermeta.mojang.com/mc/game/version_manifest.json
+ case "X$VERSION" in
+ VANILLA_VERSION=1.18.2
+ export VANILLA_VERSION
++ get_major_version 1.18.2
++ version=1.18.2
++ echo 1.18.2
++ cut -d. -f 1-2
+ MAJOR_VANILLA_VERSION=1.18
+ export MAJOR_VANILLA_VERSION
+ log 'Resolved version given 1.18.2 into 1.18.2 and major version 1.18'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-08-15 16:28:57+00:00 Resolved version given 1.18.2 into 1.18.2 and major version 1.18
+ cd /data
+ export ORIGINAL_TYPE=QUILT
+ ORIGINAL_TYPE=QUILT
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ versionLessThan 1.7
+ mc-image-helper compare-versions 1.18.2 lt 1.7
+ log 'Resolving type given QUILT'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-08-15 16:28:58+00:00 Resolving type given QUILT
+ case "${TYPE^^}" in
+ exec /start-deployQuilt
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ LATEST = LATEST ]]
+ log 'Checking Quilt Installer version information.'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-08-15 16:28:58+00:00 Checking Quilt Installer version information.
++ maven-metadata-release https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/maven-metadata.xml
+ QUILT_INSTALLER_VERSION=0.4.3
+ [[ LATEST = LATEST ]]
+ log 'Checking Quilt Loader version information.'
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
[init] 2022-08-15 16:28:58+00:00 Checking Quilt Loader version information.
++ maven-metadata-release https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-loader/maven-metadata.xml
+ QUILT_LOADER_VERSION=0.17.3
+ export INSTALLER=quilt-installer-0.4.3.jar
+ INSTALLER=quilt-installer-0.4.3.jar
+ export SERVER=quilt-server-1.18.2-0.17.3-launch.jar
+ SERVER=quilt-server-1.18.2-0.17.3-launch.jar
+ export QUILT_INSTALLER_URL=https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/0.4.3/quilt-installer-0.4.3.jar
+ QUILT_INSTALLER_URL=https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/0.4.3/quilt-installer-0.4.3.jar
+ [[ ! -e quilt-server-1.18.2-0.17.3-launch.jar ]]
+ [[ ! -e quilt-server-1.18.2-0.17.3-launch.jar ]]
+ export FAMILY=FABRIC
+ FAMILY=FABRIC
+ exec /start-setupWorld
+ '[' QUILT = CURSEFORGE ']'
+ worldDest=/data/world
+ [[ -n '' ]]
+ exec /start-setupVanillaTweaks
+ out_dir=/data/world/datapacks
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n '' ]]
+ [[ -n '' ]]
+ exec /start-setupForgeApiMods
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ '[' '' ']'
+ '[' '' ']'
+ exec /start-setupModpack
+ CURSE_URL_BASE=https://minecraft.curseforge.com/projects
+ isTrue false
+ local oldState
++ shopt -po xtrace
+ oldState='set -o xtrace'
+ shopt -u -o xtrace
+ return 1
+ [[ -n REMOVED PACK URL ]]
++ curl -fsSL https://api.github.com/repos/packwiz/packwiz-installer-bootstrap/releases/latest
curl: (22) The requested URL returned error: 403
+ latestPackwiz=
exit code: 22

Using a cached installer bootstrap seems quite reasonable.
I'm open to suggestions about not calling GitHub in the first place.
In any case, a PR is very welcome if you want to take a shot at it.

I am working on setting up packwiz-installer-bootstrap (and packwiz-installer) to be published to my own Maven repository, which won't have any excessive ratelimits; are you able to handle parsing maven-metadata.xml or would an alternative API be preferred?

That would be great. Yes, I am reading maven metadata elsewhere, so quite doable.

I don't have quite enough time to finish the bootstrap changes now; but I noticed you're already handling updating the bootstrapper, so why not just let you launch packwiz-installer.jar directly?! So I added a main method to packwiz-installer that lets you do so, with a command referencing the main class directly like java -cp packwiz-installer.jar link.infra.packwiz.installer.Main. It isn't the default Main-Class and prints a message, to encourage users to use the bootstrapper if they aren't manually handling updates.
packwiz-installer is available at the release packwiz maven (https://maven.packwiz.infra.link/repository/release/) with the dist classifier to indicate the fatjar including dependencies; i.e. https://maven.packwiz.infra.link/repository/release/link/infra/packwiz/packwiz-installer/v0.5.4/packwiz-installer-v0.5.4-dist.jar

@comp500 FYI the CDN being used doesn't seem to fully process the If-Modified-Since header since it still responds with 200 and the file content.
[mc-image-helper] 21:03:15.293 DEBUG : Request: GET https://maven.packwiz.infra.link/repository/release//link/infra/packwiz/packwiz-installer/v0.5.4/packwiz-installer-v0.5.4-dist.jar with headers [If-Modified-Since: Fri, 2 Sep 2022 01:27:56 GMT, Accept-Encoding: gzip, x-gzip, deflate]
[mc-image-helper] 21:03:15.410 DEBUG : Response: status=200, reason=OK, headers=[Date: Fri, 02 Sep 2022 02:03:19 GMT, Content-Type: application/java-archive, Content-Length: 4371210, Connection: keep-alive, Server: BunnyCDN-IL-940, CDN-PullZone: 402451, CDN-Uid: bcc1cfaa-dbd6-4a99-a5d9-95d88c8e8a34, CDN-RequestCountryCode: US, Cache-Control: public, max-age=2592000, Last-Modified: Thu, 01 Sep 2022 01:47:25 GMT, CDN-StorageServer: DE-169, CDN-FileServer: 435, CDN-ProxyVer: 1.02, CDN-RequestPullSuccess: True, CDN-RequestPullCode: 206, CDN-CachedAt: 09/02/2022 01:21:08, CDN-EdgeStorageId: 940, CDN-Status: 200, CDN-RequestId: a6782f9f9feab434deb617b2ea451115, CDN-Cache: HIT, Accept-Ranges: bytes]

Ah that's interesting, I'll ask BunnyCDN about this since it does seem to store the necessary metadata (it returns a correct Last-Modified, and internally gets a 206 when pulling from storage).

@comp500 here's the meat of the PR I'll merge. Let me know if I missed something there
https://github.com/itzg/docker-minecraft-server/pull/1725/files#diff-9255279722ce6f85d85577416626e911ecf86a348ea9d1de5820810f6a092aefR28-R37


updated airgapped instructions to use hauler

Updated airgapped instructions to usehauler
Backported instructions for previously versions of neuvector/docs

need to add one more change before approving/merging

ready for review and approval... pending any feedback!

ready for review and approval... pending any feedback!


Introduce FeatureValue type to represent features table values

This is the next step towards #1286 (after #5258). The goal here is to have a central place in the code where feature strings are interpreted as (a) a feature, (b) a dependency or (c) a dependency/feature combo, and anchor that interpretation in the type system as an enum.
I've spent quite a bit of effort avoiding extra string allocations, complicating the code a bit; notice in particular the use of Cow<str> in FeatureValue variants, and the slight workaround in Context::resolve_features() and build_requirements(). I hope this is all okay.
cc @Eh2406

I am very looking forward to reviewing this. From the description it sounds like a good approach. With the holiday I have not yet had a chance to review it.

I took a look at it and I think it looks correct. I think using InternedString would make the code easier to read then using Cow. I have tried to convert feature string to be interned before and the hardest part was the code you are rewriting now. I have wondered before what percentage of ram assigned to cargo is storing copies of the string "serde" :-P


Propagate request_id

Hello and thank you very much for this library !
Also high five for the chapters on tracing @LukeMathWalker, these are pure gold ✨ .
I would like to know if there's a way to forward request_id generated by TracingLogger along in my grpc client call inside the server (using tonic crate).
I already know I could basically do something like, e.g. :
let request_id = outer_request // actix incoming request, it should contains `request_id`
    .headers()
    .get("request_id")
    .expect("request_id in headers");
let mut inner_request = tonic::Request::new(());
inner_request
    .metadata_mut()
    .insert(
        "request_id",
        request_id
        .parse()
        .expect("metadata ASCII")
    );
let response = grpc_client.clone().send(inner_request).await?.into_inner();

And I already know how to retrieve it on the grpc server side.
But I keep wondering if I can automate it since I have literally hundreds of grpc calls scattered across the codebase.
What makes this difficult is that:

in RootSpanBuilder impl I only have a immutable borrow to ServiceRequest (see here)
in Interceptor closure or impl I only have access to outgoing gRPC request (see here and there) without any context of the parent HTTP request.
in Span I can record values but AFAIK there's no means to retrieve values stored there previously (on purpose, I guess).
I have looked into Service and used it for my servers, but I'm not sure if it can help on the client side, nor how to properly leverage it if it's the case.

If you guys have any suggestions, that would be very much appreciated ^^

Hey!
You can get the request id using the RequestId extractor - see https://docs.rs/tracing-actix-web/0.5.0-beta.1/tracing_actix_web/struct.RequestId.html
Then you just need to propagate that all the way down to your gRPC client.
You could a task local from tokio + an Interceptor to automate it - you set the request id in a task local in an actix-web middleware and the retrieve from the task local in a tonic Interceptor.

Oh damn that's actually what I was starting to do... manually 😅
Thanks for pointing this out !
I'm not sure abouttokio task though, or I don't get how it can be used to avoid passing down RequestId through functions parameter, would you mind giving a bit more explanations ?

Unfortunately I don't have time right now to flesh out the details - you can look at how this https://github.com/LukeMathWalker/actix-web-flash-messages/blob/3351e3cd1c1494da50d773019f42a6e68cc7ed6f/src/middleware.rs#L13 is used in that codebase to get an idea.

Ah no worries, I think I guess it now 👌
thanks !

Indeed it works like a breeze 🎉
Thanks a lot, feel free to close this issue anytime, and let me know if I should post the solution here too 🙏

Posting it would help other users 😄

@LukeMathWalker Or even open a PR which would provide it for those who need it, gated under an optional feature flag for those who don't ?

If you fancy! Let's see what it looks like.


ESLint error importing module

when I try to import the library, I get eslint errors:
import { AnimatedSwitch } from 'react-router-transition';

the errors are:
[eslint] Unable to resolve path to module 'react-router-transition'. (import/no-unresolved)
[eslint] Missing file extension for "react-router-transition" (import/extensions)

I would love to know whats the error, so I can myself fix this with a PR. I want to contribute!

I meet the same question

It looks like the package does not contain an entry point at the root directory.

Temporarily make the error goes away by importing
'import { spring, AnimatedRoute } from 'react-router-transition/src';

might have something to do with the package.json–i forgot to update the modules and jsnext:main fields. that said, this very likely depends on your webpack/eslint config.

not quite sure what to do... review my eslint config? or check updates on this bug?
is there something I can do to help?

@hhg2288 just published 1.0.1–let me know if this resolves the issue?

now its working!
the only thing I needed to add additionally was the Babel plugin: transform-object-rest-spread
thanks!


Certain TypeScript definitions are not recognised by react-scripts in Yarn PnP mode

Describe the bug
Certain TypeScript definitions are just not recognised in processes spawned by react-scripts, while the rest work fine. VSCode thinks the definitions are present (and I can drill down into them using intellisense) and yarn run tsc compiles fine, so I do think this is somehow introduced by react-scripts, probably by Webpack.
The ones I've noticed are:

@types/loadable__components
@types/styled-system__theme-get
@redux-saga/types

Steps to reproduce

Make a CRA typescript project
Convert to Yarn PnP
Install @loadable/component and @types/loadable__component
Try to import @loadable/component

Expected behavior
It builds or runs successfully
Actual behavior
TypeScript thinks that no types exist for @loadable/component
Reproducible demo
See: https://github.com/gausie/reproduce-cra-pnp-ts-bug

I found that I was able to get it to work by unplugging @types/loadable__component and wrapping the contents in declare module "@loadable__component" { ... }. No idea why the react-scripts webpack config needs this

Ok I've fully looked into this now and ts-pnp is unmaintained because it's redunant as yarn patches TypeScript for pnp. This should be fixed if we update to the latest fork-ts-checker-webpack-plugin


[airgap] add support to private registries

Describe the solution you'd like:
Introduce support to download base OS images from private registry, allowing to store the required credentials in a secret resource.
Anything else you would like to add:
The operator and seedimage builder images should be considered too, anyway they can be integrated in the Rancher Marketplace airgap policy.

Not supported by Rancher (yet)


Adding a Template from a URL from an existing site does not work.

This was reproduced on Version 8.0.3 Build 111
Behavior:  When trying to add a template from a URL on an existing site, the dialog box just sits there at initializing and does nothing.
Steps to reproduce:

From the Design component, choose Add Template from the Action Menu.
When the dialog box appears, select the radio button that says "Enter page URL from an existing site".

Add the following URLhttp://samples.percussion.com/

4) Hit Save.  The following dialog box appears and just sits there forever.

As the dialog box now only has the option for close or done, I cannot bounce over to the Process Gadget to see if it is running.  I do not see any errors on the Java console.  I opened another browser session, added the process gadget, did the steps again and it shows nothing:

@ramdev1980 Can you look at this.  Try to import https://www.intsof.com as a site.  Step through the code and figure out why the import is exiting after 1 page.


Please add support for new LE wildcard certs

Hey!
Love Redbird, nice work! LE's new wildcard cert is out: https://community.letsencrypt.org/t/acme-v2-and-wildcard-certificate-support-is-live/55579 . Would be great to see it integrated with Redbird! (And documented if it requires special handling).

https://github.com/OptimalBits/redbird/issues/137#issuecomment-374337276

Eagerly waiting for this too! I'm running into rate limits by registering too many dynamic subdomains, wildcard certs would be fantastic.


[C++] Small fixes related to protocols

Add compile-time check to ProtocolReader
Generalize mpl iterator usage in protocols
Add get_protocol_writer for marshaled bonded
Fix usage of magic/version in test protocols

The AppVeyor failure is the standard timeout issue. The Travis failure is the new "tests are run twice" issue. I believe this change is actually OK to go into master now ("Rebase and Merge", don't squash).

Merged in commit.


OmniSharp does not work on vs-code

Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
 Version:   2.2.107
 Commit:    2212cac826

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.14
 OS Platform: Darwin
 RID:         osx.10.14-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.2.107/

Host (useful for support):
  Version: 2.2.5
  Commit:  0a3c9209c0

.NET Core SDKs installed:
  2.2.107 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

VS Code version: Version 1.24.1 (1.24.1)
C# Extension version: 1.15.2
Steps to reproduce
When I open a project in VS Code that contains a *.sln, VS code will start loading OmniSharp, but crashes eventually. The only package I have is Microsoft.Azure.ServisBus which I installed with dotnet add package Microsoft.Azure.ServiceBus --version 3.4.0.  My full log output is
Starting OmniSharp server at 2019-8-7 10:35:54
    Target: /Users/jhuneau/Documents/service_bus/service_bus.sln

OmniSharp server started with Mono 5.20.1
    Path: /Users/jhuneau/.vscode/extensions/ms-vscode.csharp-1.15.2/.omnisharp/1.30.1/omnisharp/OmniSharp.exe
    PID: 20955

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on MacOS 10.14.6 (x64)
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 15.0 - "/usr/local/Cellar/mono/<IP_ADDRESS>/lib/mono/msbuild/15.0/bin"
            2: StandAlone 15.0 - "/Users/jhuneau/.vscode/extensions/ms-vscode.csharp-1.15.2/.omnisharp/1.30.1/omnisharp/msbuild/15.0/Bin"
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Resolved 'Microsoft.Build' to '/usr/local/Cellar/mono/<IP_ADDRESS>/lib/mono/msbuild/15.0/bin/Microsoft.Build.dll'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Resolved 'Microsoft.Build.Utilities.Core' to '/usr/local/Cellar/mono/<IP_ADDRESS>/lib/mono/msbuild/15.0/bin/Microsoft.Build.Utilities.Core.dll'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Resolved 'Microsoft.Build.Framework' to '/usr/local/Cellar/mono/<IP_ADDRESS>/lib/mono/msbuild/15.0/bin/Microsoft.Build.Framework.dll'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Resolved 'Microsoft.Build.Tasks.Core' to '/usr/local/Cellar/mono/<IP_ADDRESS>/lib/mono/msbuild/15.0/bin/Microsoft.Build.Tasks.Core.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 15.0 - "/usr/local/Cellar/mono/<IP_ADDRESS>/lib/mono/msbuild/15.0/bin"
            CscToolExe = csc.exe
            CscToolPath = /Users/jhuneau/.vscode/extensions/ms-vscode.csharp-1.15.2/.omnisharp/1.30.1/omnisharp/msbuild/15.0/Bin/Roslyn
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'System.Threading.Tasks.Dataflow, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
[dbug]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Attempting to resolve 'System.Threading.Tasks.Dataflow, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
System.TypeLoadException: Could not load type of field 'OmniSharp.MSBuild.ProjectManager:_queue' (9) due to: Could not load file or assembly 'System.Threading.Tasks.Dataflow, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
  at (wrapper managed-to-native) System.RuntimeType.GetPropertiesByName_native(System.RuntimeType,intptr,System.Reflection.BindingFlags,System.RuntimeType/MemberListType)
  at System.RuntimeType.GetPropertiesByName (System.String name, System.Reflection.BindingFlags bindingAttr, System.RuntimeType+MemberListType listType, System.RuntimeType reflectedType) [0x0001b] in <fcbcc99210424b63b9d0b88bd11ce160>:0
  at System.RuntimeType.GetPropertyCandidates (System.String name, System.Reflection.BindingFlags bindingAttr, System.Type[] types, System.Boolean allowPrefixLookup) [0x00010] in <fcbcc99210424b63b9d0b88bd11ce160>:0
  at System.RuntimeType.GetProperties (System.Reflection.BindingFlags bindingAttr) [0x00000] in <fcbcc99210424b63b9d0b88bd11ce160>:0
  at System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties (System.Type type) [0x00014] in <fcbcc99210424b63b9d0b88bd11ce160>:0
  at System.Composition.TypedParts.Discovery.TypeInspector+<DiscoverPropertyExports>d__7.MoveNext () [0x00030] in <9aac21a4a3f24063b2b8b59143acddfc>:0
  at System.Composition.TypedParts.Discovery.TypeInspector+<DiscoverExports>d__5.MoveNext () [0x000dc] in <9aac21a4a3f24063b2b8b59143acddfc>:0
  at System.Composition.TypedParts.Discovery.TypeInspector.InspectTypeForPart (System.Reflection.TypeInfo type, System.Composition.TypedParts.Discovery.DiscoveredPart& part) [0x00061] in <9aac21a4a3f24063b2b8b59143acddfc>:0
  at System.Composition.TypedParts.TypedPartExportDescriptorProvider..ctor (System.Collections.Generic.IEnumerable`1[T] types, System.Composition.Convention.AttributedModelProvider attributeContext) [0x00037] in <9aac21a4a3f24063b2b8b59143acddfc>:0
  at System.Composition.Hosting.ContainerConfiguration.CreateContainer () [0x00042] in <9aac21a4a3f24063b2b8b59143acddfc>:0
  at OmniSharp.CompositionHostBuilder.Build () [0x00191] in <e53c2b752e604319bef1c55a5946377a>:0
  at OmniSharp.Stdio.Host..ctor (System.IO.TextReader input, OmniSharp.Stdio.Services.ISharedTextWriter writer, OmniSharp.IOmniSharpEnvironment environment, Microsoft.Extensions.Configuration.IConfiguration configuration, System.IServiceProvider serviceProvider, OmniSharp.CompositionHostBuilder compositionHostBuilder, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Threading.CancellationTokenSource cancellationTokenSource) [0x0007e] in <2b6261ffe5a64325b4ca31d51e1800ce>:0
  at OmniSharp.Stdio.Driver.Program+<>c__DisplayClass0_0.<Main>b__1 () [0x00116] in <5fbf8e833fb94e3d93e7569caf9e7b2e>:0
  at OmniSharp.CommandLineApplication+<>c__DisplayClass11_0.<OnExecute>b__0 () [0x0000b] in <e53c2b752e604319bef1c55a5946377a>:0
  at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute (System.String[] args) [0x0035b] in <e56ebbc3ed87488b8e26736bbadaa5d3>:0
  at OmniSharp.CommandLineApplication.Execute (System.Collections.Generic.IEnumerable`1[T] args) [0x00042] in <e53c2b752e604319bef1c55a5946377a>:0
  at OmniSharp.Stdio.Driver.Program+<>c__DisplayClass0_1.<Main>b__0 () [0x00028] in <5fbf8e833fb94e3d93e7569caf9e7b2e>:0
  at OmniSharp.HostHelpers.Start (System.Func`1[TResult] action) [0x0001c] in <e53c2b752e604319bef1c55a5946377a>:0
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

Expected  behavior
OmniSharp to load the files and allow me to have autocomplete.
Actual behavior
OmniSharp times out and dies.

@JakeHuneau Do you have mono installed? Can you try setting the option "omnisharp.UseGlobalMono": "never" and see if that helps?

@rchande This fixed it! I think I installed mono separately for using Omnisharp-vim, so there must have been a version mismatch for omnisharp-vscode. Thank you!


Update front-page copy and add jobs banner

Tweaks front page copy and italicizes article pull quote on press page entries.

Went over this with @dwhly, and added a temporary hiring banner.


optee-os: add optee rpmb support

This patch provides rpmb support for IOT2050 on am65 which includes:

TISCI protocol support
DKEK retrieval
DDR setup for DYNSHM
compile option changes for optee

Signed-off-by: Ivan Mikhaylov<EMAIL_ADDRESS>

We also need that kas option file to enable the special firmware build. And that setup should exclude signing the firmware, ie. detect and reject secure boot mode.

We also need that kas option file to enable the special firmware build.

kas-iot2050-boot-pg1-optee-rpmbw.yml
kas-iot2050-boot-pg2-optee-rpmbw.yml ? Or something else?

Do we need pg1/2 differentiation for that? Officially supported will be pg2 only anyway, but we can leave that door technically open. Otherwise maybe kas/opt/rpbm-setup.yml?

What is now the actual testing status of these OP-TEE patches in the backported environment (3.16.0, rather than master)? Can we trust that? Or should we move at least to 3.17.0 (upstream merged them not that many commits after the release)?

What is now the actual testing status of these OP-TEE patches in the backported environment (3.16.0, rather than master)? Can we trust that? Or should we move at least to 3.17.0 (upstream merged them not that many commits after the release)?

3.16.0 works fine with backported patches. 3.17.0 and 3.17.0-rc1 don't have these patches, probably in new rc or .18 it will be available.

Last version of commits is not tested with 3.18.0, will do it on the current week.

Testing on PG2, below error print could be confusing.
Security ID 0xc8beb00d-0x7f55c02e
Security policy: none
No options found, skip.
Validating FIT...
Loading image atf...
Loading image tee...
Loading image spl...
Loading image k3-am65-iot2050-spl.dtb...
NOTICE:  BL31: v2.6(release):
NOTICE:  BL31: Built : 02:56:00, Sep 14 2022
I/TC:
I/TC: OP-TEE version: 3.18.0 (gcc version 10.2.1 20210110 (Debian 10.2.1-6)) #1 Mon Sep 26 02:11:06 UTC 2022 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: SYSFW ABI: 3.1 (firmware rev 0x0015 '21.9.1--v2021.09a (Terrific Lla')
I/TC: HUK Initialized
I/TC: Activated SA2UL device
E/TC:0 0 ti_sci_get_response:120 Message not acknowledged
E/TC:0 0 ti_sci_do_xfer:149 Failed to get response (-65536)
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot

This happens during Line 64 of core/arch/arm/plat-k3/drivers/sa2ul.c
	/* Try to claim the SA2UL firewall for ourselves */
	ret = ti_sci_change_fwl_owner(fwl_id, sa2ul_region, owner_index,
				      &owner_privid, &owner_permission_bits);
	if (ret) {
		/*
		 * This is not fatal, it just means we are on an HS device
		 * where the DMSC already owns the SA2UL. On GP we need
		 * to do additional setup for access permissions below.
		 */
		DMSG("Could not change SA2UL firewall owner");
	}

So it is expected on HS device. However, it is still confusing if I am a end user. And strictly speaking, the above code would cover some error if something wrong happens within ti_sci_change_fwl_owner on HS device.

Seems CONFIG_CMD_OPTEE_RPMB is missing from u-boot?

I think we should have some wikis regarding how to program the RPMB key, just as what we've done for secure boot otp key programming.

Test passed on PG2 device.


Adding to TOC & landing page

Add object detection tutorial to TOC
#23300
AB#1790837
Preview Link

@BillWagner can I please get a review when you get a chance. Thanks.


set initial form values for format

name: Sets initial values in import/export forms
Problem
It's annoying to have to use the pulldown each time you import/export
Solution
Set initial values for the forms so that default is now the first format listed

Coverage remained the same at 95.553% when pulling 3cc93af63110d704474c9550a0f06a847f1cd506 on benwhalley:master into 86a2912da39dc15c13d68f68f85e9aec9b793f7c on django-import-export:master.

Hey @benwhalley ! We appreciate that you took the time to enhance this project stemming from a possible weakness that you saw.
Any chance you could add a couple of tests to verify your changes against the current implementation?
Thanks! And if you have any questions, feel free to ping me.

I'm not sure this is something we want to have in its current state.  If you think about it, what's significant about the first format? I would argue nothing.  If anything, I adding an option might be appealing to be able to set the initial format. But I wouldn't hard code the default to the 0 index.
What do you think?
Additionally, for this to be merged, we have to add documentation and tests.

I sorry for delay... Agree it might be nicer to have an explicit default. Perhaps this could be added to formats, so you might override it like this:
class MyImportExportMixin(ImportExportMixin):
    formats = {
        'default': base_formats.XLS,
        'alternatives': [base_formats.JSON, base_formats.CSV, ]
    }


Filtered Stream doesn't return any tweet.

Hey there,
I'm trying to use the filtered stream in v2 yet it isn't returning any tweet.
        if(twitterClient.retrieveFilteredStreamRules() != null) {
            twitterClient.deleteFilteredStreamRule("from:CharSequence");
            twitterClient.addFilteredStreamRule("from:CharSequence","from:CharSequence");
            System.out.println("Added rule");
        }

        try {
            System.out.println("Started filtered stream");

            twitterClient.retrieveFilteredStreamRules().forEach(streamRule -> {
                System.out.println(streamRule.getValue());
            });

            Future<Response> future = twitterClient.startFilteredStream(System.out::println);

            try {
                future.get(5, TimeUnit.SECONDS);
            } catch (TimeoutException exc) {
                exc.printStackTrace();
            }
        } catch (Exception exception) {
            exception.printStackTrace();
        }

It should at least return a tweet from my twitter account yet it doesn't return anything, yet the rules are set. Any idea as to why?

Hi @Internalizable,
If it can help you, here is my code using filtered stream :
  public void start() {

      System.out.println("start streaming... ");
      this.streamResponse = TWITTER_CLIENT.startFilteredStream(new IAPIEventListener() {
        @Override
        public void onStreamError(final int httpCode, final String error) {
          ...
        }

        @Override
        public void onTweetStreamed(final Tweet tweet) {
             System.out.println("[mention] from:@" + tweet.getUser().getName() + " : " + tweet.getText());
        }

        @Override
        public void onUnknownDataStreamed(final String json) {
          ...
        }

        @Override
        public void onStreamEnded(final Exception e) {
          ...
        }
      });
  }

It is working well on my side :)

Tried out the code above, doesn't seem to work on my side. Here's the full code with the printout, could it be possibly an issue with the twitter account or the developer application?
    public void run() {
        if(twitterClient == null)
            return;

        if(twitterClient.retrieveFilteredStreamRules() != null) {
            twitterClient.deleteFilteredStreamRule("from:CharSequence");
            twitterClient.addFilteredStreamRule("from:CharSequence","from:CharSequence");
            System.out.println("Added rule");
        }

        twitterClient.retrieveFilteredStreamRules().forEach(streamRule -> {
            System.out.println(streamRule.getValue());
        });

        twitterClient.startFilteredStream(new IAPIEventListener() {
                @Override
                public void onStreamError(final int httpCode, final String error) {
                    System.out.println("Error occurred with http code: " + httpCode + " and error " + error);
                }

                @Override
                public void onTweetStreamed(final Tweet tweet) {
                    System.out.println("[mention] from:@" + tweet.getUser().getName() + " : " + tweet.getText());
                }

                @Override
                public void onUnknownDataStreamed(final String json) {
                    System.out.println("Unknown data streamed: " + json);
                }

                @Override
                public void onStreamEnded(final Exception e) {
                    e.printStackTrace();
                }
        });
    }

Hmmm yes maybe, don't you have any error log ?
You can also post a message on the twitter developer forum here.

Fixed it, turns out the account was private.