Add rollout mode

This adds a new RolloutMode enum to the UpdateConfig. Two values are
supported:

STOP_FIRST: The old behavior - wait for the old task to shut down
before starting the new one.

START_FIRST: Start the new task, and wait for it to reach RUNNING
before shutting down the old task.

Comply with this flag in the updater, add a flag to swarmctl, and add a
unit test.
Based on #1144
Fixes #1177
ping @stelund @dongluochen @aluzzardi

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "actual-rollout-strategy" git@github.com:aaronlehmann/swarmkit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~2
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "actual-rollout-strategy" git@github.com:aaronlehmann/swarmkit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~2
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "actual-rollout-strategy" git@github.com:aaronlehmann/swarmkit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~2
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Current coverage is 55.27% (diff: 66.66%)

Merging #1383 into master will decrease coverage by 0.03%

@@             master      #1383   diff @@
==========================================
  Files            80         80
  Lines         12650      12650
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           6996       6992     -4
- Misses         4694       4698     +4
  Partials        960        960

Powered by Codecov. Last update 58c0bfb...9ed60c1

@aaronlehmann awesome! Thanks for the effort and the big refactor with tasks to instances.
I'm still on holiday but I can give this a spin next week.

Rebased, removed WIP.

@aaronlehmann I've tested this during the morning today didnt find any problems. Great!

Rebased, and made the cosmetic changes that were requested. PTAL. I'd like to get consensus on the protobuf changes so I can start working on engine API and docker integration.

@stelund @aaronlehmann: Sorry if this crossed my mind only now, but:
This feature builds on top of those two facts:

Running more than one instance at the same time is NOT a problem (so this is not a mysql or any kind of singleton service)
Having the instance being down for a few seconds is NOT acceptable

Therefore:
Why would you not run 2 instances in the first place?
We discussed that running more than one instance simultaneously is not a problem since you have to support it anyway for this to work.
We also stated that having the instance being down is NOT acceptable. A rolling update is just a special case of failure. If the node was to fail, you'd end up with one less instance so you have to handle this anyway.
So the question is: Why use this feature rather than running an extra instance?

A hypothetical scenario I can think of is if it's possible to run more than one instance, but not desirable to do it long-term. Let's say it takes more resources to do so, or the two instances will fight over some shared resource, or it will make administration complicated. In that kind of situation, updating without the alternative rollout mode means first scaling up, then updating, then scaling down. Admittedly it's possible to do that already, but it's an awkward set of operations.
@stelund Any thoughts?

@aluzzardi @aaronlehmann that is one use case yes. But what I was to solve is to be able to leave the old container waiting to shutdown for a longer period of time. Say you have an web server which handles users uploads and downloads of sometimes large files. 10 seconds grace period will not due when the upload can take an hour to complete. By increasing the grace period and then the whole rolling update becomes hideously slow.
Second solution it solves is when you don't want to have an rolling update scenario. But you want to update all your containers at once. Then you increase parallelism to as many replicas you have an do an start first update.

(@aaronlehmann asked for my feedback; so here it is!)
I have a naive question; I thought the sequence of events was:

new task is created, with desired state set to READY
once the task is READY, the old task desired state is set to SHUTDOWN
once the old task state is SHUTDOWN, the new task desired state is set to RUNNING

Why can't it be the case? (I'm probably missing an obvious, yes critical piece of info :))

@jpetazzo: There used to be technical limitations preventing this, but it should be possible to support it now. If we went with the RolloutMode concept in this PR, we could potentially add a mode that does exactly this.

Rebased.
ping @aluzzardi @dongluochen

@aaronlehmann needs rebase again :/

Rebased

Rebased again. Also added support this flag on rollback (--rollback-rollout). PTAL.

--rollback-rollout seems weird :)

Any suggestions? We can leave it out of rollback for now, I guess.

--update-order // --rollback-order?

SGTM

Updated, PTAL

LGTM

@aluzzardi: Ok to merge?

Code LGTM, sorry, I'm going to nitpick on the feature name.
Rollout seems to be tied to the order of events (e.g. rollout vs rollback).
Perhaps this should be called update order?

Let's rename to UpdateOrder and keep START_FIRST / STOP_FIRST.

Updated. I think the naming questions should be resolved now. I'll merge this unless I hear otherwise in the next few days.

Rebased. @dongluochen: Does this look good to you? The renaming is based on a discussion with @aluzzardi.

LGTM


Presence of tasks from a deleted study in the task view.

Description
When you delete a study that has tasks and these are still present in the application's tasks page, the name of the study no longer appears in the list. Instead we have the Unknown name followed by the study ID.
And when you click on it to be redirected to this study that has been deleted, we have an empty page that grinds and returns nothing.
Possible Solution
As a solution, after deleting the study, remove all of its tasks from the tasks page. or again, if one clicks on a task called Unknown (study id) the user receives a message informing them that the study no longer exists (because it has been deleted).
And when you click on it to be redirected to this study that has been deleted, we have a black page that grinds and returns nothing.
Screenshot

Environment

[x] Production
[x] Staging
[x] Desktop

An easy quick win concerns the jobs (also the example in the screenshot above). Currently when clicking on the Tasks View, the API call GET /jobs is made with filter_orphans=False. It should be True and any job belonging to a deleted study will disappear from this view.


Precompile Issue

With Gurobi v1.3 im getting a precompile error, with v1.2.3 it works:
Failed to precompile Gurobi [2e9cd046-0924-5485-92f1-d5272153d98b] to "C:\\Users\\KaisermayerV\\.julia\\compiled\\v1.10\\Gurobi\\jl_4AA8.tmp".
ERROR: LoadError: InitError: IOError: chmod("C:\\Users\\KaisermayerV\\.julia\\packages\\DelaunayTriangulation\\04bDL\\test\\refinement\\refine_curve_bounded_example_11_multiply_connected_piecewise_linear_elliptical_bspline_piecewise_linear_catmull_bezier_piecewise_linear_circle_extra_points_1957263201006735060.png", 0o755): no such file or directory (ENOENT)

Now that I look closer, I'm not sure why I have dirname(dirname(artifact_dir)) in
https://github.com/jump-dev/Gurobi_jll.jl/blob/7808a850452a400f65aabb6b6ece177a6ce01da9/src/wrappers/x86_64-w64-mingw32.jl#L22

If the tests pass on https://github.com/jump-dev/Gurobi_jll.jl/pull/25, can you try ] add Gurobi_jll#odow-patch-2?

Now I understand why https://github.com/jump-dev/Gurobi_jll.jl/issues/22 took 1 minute. We were changing the permission of every file in .julia!!! Oops.

I'm off to bed, but if you can confirm this is a fix, I'll sort a release tomorrow.


Extend Frame Into Client Area setting not saving

In the MFE Settings app, checking or unchecking the Extend Frame Into Client Area setting and clicking the Save button causes the focus to return to the General area, but then clicking on the desired rule shows that the checkbox state was not saved (and the config file is not updated).
When the config file is manually edited to change the True/False value of ExtendFrameToClientArea, and the file is saved, the Settings app properly reflects the state and, when reloading MFE, the change is applied (if the target app supports it, of course).

The state of the checkbox and the value in the config file are now updating as expected.  Thanks!
That said, only switching from false to true actually gets applied to the already-open window (I'm testing with Windows Explorer).  So, an Explorer window without the frame extended into the client area will immediately display the additional transparency after you check the box and click Save.  But an Explorer window with the frame extended into the client area already will not remove that additional transparency when you _un_check the box and click Save.  If you close and reopen Explorer, the change is applied.
This may be an issue with Explorer specifically and not something you can fix, but I thought it worth noting.


[SEI-6235]: SEI HOTFIX RELEASE VERSION 202403.1.1

Harness Developer Pull Request
SEI HOTFIX RELEASE VERSION 202403.1.1
What Type of PR is This?

[ ] Issue
[ ] Feature
[X] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[X] Tested Locally
[ ] Optional Screenshot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65fbe3044405a8875bae5b12--harness-developer.netlify.app


Add elytrafly mode

So basically if you are playing on server where modifying clients is allowed (in heavy way) (aka hacks) why not just use elytrafly, not only it is faster but it can also be safer and have more variability to path selection since you don't need to worry about getting speed.

The feature would require modified packets, that being outside the scope of the project. This mod could theorically be mixed with a hacked client, but by itself only uses legal movements


fixRestarts

I fixed restarting VoiceOver with this spoon running crashing Hammerspoon
for a few minutes. We now check if VoiceOver is running before running any
Applescript.

Oh yeah, because I forgot, this will close #1


Material buttons do not allowed a font-weight overwrite

Bug
MatButtonModule
What is the expected behaviour?
when being specific with a css class or when using inline styling a Matbutton should allow a overwrite of the styling on the * { font-weight: 300 }
What is the current behaviour?
font-weight is not being overwritten on the matButtons when using a class or inline styling when a asterisk/universal selector with font-weight is used on everything.
What are the steps to reproduce?
using a * selector to target every font-weight on all the pages and then trying to change the mat button with a class or inline styling see https://stackblitz.com/edit/angular-2nryr7
What is the use-case or motivation for changing an existing behaviour?
Trying to change the font-weight on the text inside the material button
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular & Angular material version 7.0.1
Google Chrome build 70.0.3538.77 (64-bit)
Firefox Quantum 63.0.2 (64-bit)
Microsoft Edge 42.17134.1.0 (64-bit)
Opera 56.0.3051.52 (64-bit)
Microsoft Windows Prof 64 bit
Is there anything else we should know?
As shown in the stackblitz page the overwriting of the styling works as it should on the normal button and on other elements like paragraph.

I don't think there's much we can do here. You have to increase the specificity of your selector.

The selectors work fine, the example demonstrates that the selectors work on regular buttons/elements but not on material buttons.
It only fails when you add the material classes/directives (e.g mat-raised-button).
Try adding "mat-raised-button" to the regular, working, button and you can see it fail for yourself.

The selectors work fine, the example demonstrates that the selectors work on regular buttons/elements but not on material buttons.
It only fails when you add the material classes/directives (e.g mat-raised-button).
Try adding "mat-raised-button" to the regular, working, button and you can see it fail for yourself.

And I would like to add that being more specific in targeting the buttons does not work (tried this and it didn't work). And as you can see in the example forcing it by using inline or !important does not help either.

@justixnl you can't see the font-weight in your example because of view encapsulation. Here's a working fork: https://stackblitz.com/edit/angular-dy2bsj.

@crisbeto,
Thanks for taking the time to look at it again, and provide a more detailed answer.
I didn't even think about encapsulation :+1: !

@justixnl you can't see the font-weight in your example because of view encapsulation. Here's a working fork: https://stackblitz.com/edit/angular-dy2bsj.

Indeed thank you for taking a second look and taking the time to respond :D


Some modules are not automatically imported

I have 2 different .NET Framework modules - "MSI" and "VSSetup" both available on the PSGallery - that are not automatically loading in Core like they do in desktop. I've tried installing them for CurrentUser and for AllUsers, but when typing one of their cmdlets - even when discoverable (i.e. exported via ModuleInfo) - the module is not loaded automatically.
Steps to reproduce
install-module MSI -scope currentuser -force
get-msiproductinfo

Expected behavior
# module is loaded and output returned, e.g.
ProductCode                            ProductVersion      ProductName
-----------                            --------------      -----------
{90160000-008C-0000-0000-0000000FF1CE} 16.0.8827.2036      Office 16 Click-to-Run Extensibility Component

Actual behavior
get-msiproductinfo : The term 'get-msiproductinfo' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-msiproductinfo
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (get-msiproductinfo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Environment data
> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.0.0-rc
PSEdition                      Core
GitCommitId                    v6.0.0-rc
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

This is working fine for me with 6.0.0-rc.  Did you install them with PSCore6 or with Windows PowerShell?  They have independent PSModulePaths.  If you want to use modules installed from Windows PowerShell in PSCore6, you can use https://www.powershellgallery.com/packages/WindowsPSModulePath/1.0.0

I can repro this. on
Name                           Value
----                           -----
PSVersion                      6.0.0-rc
PSEdition                      Core
GitCommitId                    v6.0.0-rc
OS                             Microsoft Windows 10.0.15063
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

$Module = Get-Module -ListAvailable MSI
'Aliases: {0}' -f ($Module.ExportedAliases.Keys -join ', ')
'Cmdlets: {0}' -f ($Module.ExportedCmdlets.Keys -join ', ')
'Functions: {0}' -f ($Module.ExportedFunctions.Keys -join ', ')

6.0.0-rc results:
Aliases:
Cmdlets:
Functions: Install-MSIAdvertisedFeature, Get-MSIComponentState, Get-MSISharedComponentInfo

5.1 results:
Aliases:
Cmdlets: Add-MSISource, Clear-MSISource, Edit-MSIPackage, Export-MSIPatchXml, Get-MSIComponentInfo, Get-MSIFeatureInfo, Get-MSIFileHash, Get-MSIFileType, Get-MSILoggingPolicy, Get-MSIPatchInfo, Get-MSIPatchSequence, Get-MSIProductInfo, Get-MSIProperty, Get-MSISource, Get-MSISummaryInfo, Get-MSITable, Get-MSIRelatedProductInfo, Install-MSIPatch, Install-MSIProduct, Measure-MSIProduct, Remove-MSILoggingPolicy, Remove-MSISource, Repair-MSIProduct, Set-MSILoggingPolicy, Test-MSIProduct, Uninstall-MSIPatch, Uninstall-MSIProduct
Functions: Get-MSIComponentState, Get-MSISharedComponentInfo, Install-MSIAdvertisedFeature

The psd1 for this module has
CmdletsToExport = '*'
FunctionsToExport = '*'

On 5.1, that is picking up the available cmdlets on on 6.0.0 it is not.

@SteveL-MSFT yes these were installed under PowerShell Core - same session as when I tried to load them. They are also installed under PowerShell 5 but I am aware these have separate $PSModulePath values by default (mine still do).
After I closed and restarted PowerShell Core, running get-msiproductinfo worked correctly. But I also noticed my binary module (even though it does use a PSD1 file, the effective RootModule is indeed a DLL) is not showing any exported commands in Core:
> get-module -list msi, vssetup

    Directory: C:\Users\heaths\Documents\PowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.2.26.... MSI                                 {Get-MSIProductInfo, Remove-MSILoggingPolicy, Install-MSIPr...

    Directory: C:\program files\powershell\6.0.0-rc\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     <IP_ADDRESS>... VSSetup

However, in PowerShell desktop the same module works:
> get-module -list msi, vssetup
    Directory: C:\Users\heaths\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.2.26.... MSI                                 {Get-MSIProductInfo, Remove-MSILoggingPolicy, Install-MSIP...
Binary     <IP_ADDRESS>... VSSetup                             {Get-VSSetupInstance, Select-VSSetupInstance}

It is installed per-user, but even when VSSetup was installed per-user in Core it yields the same results (i.e. no exported commands). That said, this is a .NET Framework assembly targeting .NET 4.5 (I have desktop environments I need to support and 4.5 is nearly ubiquitous on Win7 even though it's not installed by default).

We should investigate this to understand what is happening

Hello...  I am facing the same issue.. any solution??

@SteveL-MSFT I understand the dilemma and have fixed my module, but in the interest of back-compat would it be worth it to only parse PSM1 files if the PSD1 does not explicitly list any cmdlets, functions, variables, etc.? (I.e. if it populates one you could probably assume everything exportable is specified)

@heaths I believe this issue is somewhat mitigated by this PSScriptAnalyzer rule: https://github.com/PowerShell/PSScriptAnalyzer/issues/434, so I'm closing this for now.


I'm trying to create a AKS service, I received this error  unrecognized arguments: --enable-rbac, tried over debugging, but issue haven't resolved. Attached screenshots for your reference.

I'm trying to create a AKS service, I received this error  unrecognized arguments: --enable-rbac, tried over debugging, but issue haven't resolved. Attached screenshots for your reference.

Originally posted by @Varunr1995 in https://github.com/Azure/azure-cli/issues/16018#issuecomment-1404025467

route to CXP team

@Varunr1995 Thank you for reporting this, we are looking into it.

@Varunr1995 can you please share az version details? We are able to use the flag without any issue see below screenshot

Also which document are you referring to, because the flag name is  --enable-azure-rbac. While using --enable-azure-rbac you should remember that we cannot specify "--enable-azure-rbac" if managed AAD is not enabled so you must use it like this --enable-aad --enable-azure-rbac


Flutter web app is not working in mobile browser

Steps to reproduce

I was trying to build a web app everything was going well in Chrome and Edge in my laptop.
I wanted to test it using my phone so I used this
flutter run --web-hostname <IP_ADDRESS> --web-port 8080
but nothing appeared on the screen (I tried different browsers)
i tried also running
python -m http.server 8080
but i got the same result

Expected results
I tested very simple code :
import 'package:flutter/material.dart';

void main() => runApp(const SignUpApp());

class SignUpApp extends StatelessWidget {
  const SignUpApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      routes: {
        '/': (context) => const SignUpScreen(),
      },
    );
  }
}

class SignUpScreen extends StatelessWidget {
  const SignUpScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey[200],
      body: const Center(
        child: SizedBox(
          width: 400,
          child: Card(
            child: SignUpForm(),
          ),
        ),
      ),
    );
  }
}

class SignUpForm extends StatefulWidget {
  const SignUpForm({super.key});

  @override
  State<SignUpForm> createState() => _SignUpFormState();
}

class _SignUpFormState extends State<SignUpForm> {
  final _firstNameTextController = TextEditingController();
  final _lastNameTextController = TextEditingController();
  final _usernameTextController = TextEditingController();

  double _formProgress = 0;

  @override
  Widget build(BuildContext context) {
    return Form(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          LinearProgressIndicator(value: _formProgress),
          Text('Sign up', style: Theme.of(context).textTheme.headlineMedium),
          Padding(
            padding: const EdgeInsets.all(8),
            child: TextFormField(
              controller: _firstNameTextController,
              decoration: const InputDecoration(hintText: 'First name'),
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(8),
            child: TextFormField(
              controller: _lastNameTextController,
              decoration: const InputDecoration(hintText: 'Last name'),
            ),
          ),
          Padding(
            padding: const EdgeInsets.all(8),
            child: TextFormField(
              controller: _usernameTextController,
              decoration: const InputDecoration(hintText: 'Username'),
            ),
          ),
          TextButton(
            style: ButtonStyle(
              foregroundColor: WidgetStateProperty.resolveWith((states) {
                return states.contains(WidgetState.disabled)
                    ? null
                    : Colors.white;
              }),
              backgroundColor: WidgetStateProperty.resolveWith((states) {
                return states.contains(WidgetState.disabled)
                    ? null
                    : Colors.blue;
              }),
            ),
            onPressed: null,
            child: const Text('Sign up'),
          ),
        ],
      ),
    );
  }
}

the resault from laptop browsers :

Actual results
the result from my phone browsers is :

flutter_bootstrap.js code is :
(()=>{var I=()=>navigator.vendor==="Google Inc."||navigator.agent==="Edg/",T=()=>typeof ImageDecoder>"u"?!1:I(),E=()=>typeof Intl.v8BreakIterator<"u"&&typeof Intl.Segmenter<"u",S=()=>{let o=[0,97,115,109,1,0,0,0,1,5,1,95,1,120,0];return WebAssembly.validate(new Uint8Array(o))},p={hasImageCodecs:T(),hasChromiumBreakIterators:E(),supportsWasmGC:S(),crossOriginIsolated:window.crossOriginIsolated};var w=U(L());function L(){let o=document.querySelector("base");return o&&o.getAttribute("href")||""}function U(o){return o===""||o.endsWith("/")?o:`${o}/`}var f=class{constructor(){this._scriptLoaded=!1}setTrustedTypesPolicy(e){this._ttPolicy=e}async loadEntrypoint(e){let{entrypointUrl:n=`${w}main.dart.js`,onEntrypointLoaded:r,nonce:t}=e||{};return this._loadJSEntrypoint(n,r,t)}async load(e,n,r,t,i){if(i??=s=>{s.initializeEngine(r).then(a=>a.runApp())},e.compileTarget==="dart2wasm")return this._loadWasmEntrypoint(e,n,i);{let s=e.mainJsPath??"main.dart.js",a=`${w}${s}`;return this._loadJSEntrypoint(a,i,t)}}didCreateEngineInitializer(e){typeof this._didCreateEngineInitializerResolve=="function"&&(this._didCreateEngineInitializerResolve(e),this._didCreateEngineInitializerResolve=null,delete _flutter.loader.didCreateEngineInitializer),typeof this._onEntrypointLoaded=="function"&&this._onEntrypointLoaded(e)}_loadJSEntrypoint(e,n,r){let t=typeof n=="function";if(!this._scriptLoaded){this._scriptLoaded=!0;let i=this._createScriptTag(e,r);if(t)console.debug("Injecting <script> tag. Using callback."),this._onEntrypointLoaded=n,document.head.append(i);else return new Promise((s,a)=>{console.debug("Injecting <script> tag. Using Promises. Use the callback approach instead!"),this._didCreateEngineInitializerResolve=s,i.addEventListener("error",a),document.head.append(i)})}}async _loadWasmEntrypoint(e,n,r){if(!this._scriptLoaded){this._scriptLoaded=!0,this._onEntrypointLoaded=r;let{mainWasmPath:t,jsSupportRuntimePath:i}=e,s=`${w}${t}`,a=`${w}${i}`;this._ttPolicy!=null&&(a=this._ttPolicy.createScriptURL(a));let d=WebAssembly.compileStreaming(fetch(s)),c=await import(a),u;e.renderer==="skwasm"?u=(async()=>{let m=await n.skwasm;return window._flutter_skwasmInstance=m,{skwasm:m.wasmExports,skwasmWrapper:m,ffi:{memory:m.wasmMemory}}})():u={};let l=await c.instantiate(d,u);await c.invoke(l)}}_createScriptTag(e,n){let r=document.createElement("script");r.type="application/javascript",n&&(r.nonce=n);let t=e;return this._ttPolicy!=null&&(t=this._ttPolicy.createScriptURL(e)),r.src=t,r}};async function b(o,e,n){if(e<0)return o;let r,t=new Promise((i,s)=>{r=setTimeout(()=>{s(new Error(`${n} took more than ${e}ms to resolve. Moving on.`,{cause:b}))},e)});return Promise.race([o,t]).finally(()=>{clearTimeout(r)})}var h=class{setTrustedTypesPolicy(e){this._ttPolicy=e}loadServiceWorker(e){if(!e)return console.debug("Null serviceWorker configuration. Skipping."),Promise.resolve();if(!("serviceWorker"in navigator)){let a="Service Worker API unavailable.";return window.isSecureContext||(a+=`
The current context is NOT secure.`,a+=`
Read more: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts`),Promise.reject(new Error(a))}let{serviceWorkerVersion:n,serviceWorkerUrl:r=`${w}flutter_service_worker.js?v=${n}`,timeoutMillis:t=4e3}=e,i=r;this._ttPolicy!=null&&(i=this._ttPolicy.createScriptURL(i));let s=navigator.serviceWorker.register(i).then(a=>this._getNewServiceWorker(a,n)).then(this._waitForServiceWorkerActivation);return b(s,t,"prepareServiceWorker")}async _getNewServiceWorker(e,n){if(!e.active&&(e.installing||e.waiting))return console.debug("Installing/Activating first service worker."),e.installing||e.waiting;if(e.active.scriptURL.endsWith(n))return console.debug("Loading from existing service worker."),e.active;{let r=await e.update();return console.debug("Updating service worker."),r.installing||r.waiting||r.active}}async _waitForServiceWorkerActivation(e){if(!e||e.state==="activated")if(e){console.debug("Service worker already active.");return}else throw new Error("Cannot activate a null service worker!");return new Promise((n,r)=>{e.addEventListener("statechange",()=>{e.state==="activated"&&(console.debug("Activated new service worker."),n())})})}};var v=class{constructor(e,n="flutter-js"){let r=e||[/\.js$/,/\.mjs$/];window.trustedTypes&&(this.policy=trustedTypes.createPolicy(n,{createScriptURL:function(t){if(t.startsWith("blob:"))return t;let i=new URL(t,window.location),s=i.pathname.split("/").pop();if(r.some(d=>d.test(s)))return i.toString();console.error("URL rejected by TrustedTypes policy",n,":",t,"(download prevented)")}}))}};var y=o=>{let e=WebAssembly.compileStreaming(fetch(o));return(n,r)=>((async()=>{let t=await e,i=await WebAssembly.instantiate(t,n);r(i,t)})(),{})};var C=(o,e,n,r)=>window.flutterCanvasKit?Promise.resolve(window.flutterCanvasKit):(window.flutterCanvasKitLoaded=new Promise((t,i)=>{let s=n.hasChromiumBreakIterators&&n.hasImageCodecs;if(!s&&e.canvasKitVariant=="chromium")throw"Chromium CanvasKit variant specifically requested, but unsupported in this browser";let a=s&&e.canvasKitVariant!=="full",d=e.canvasKitBaseUrl??`https://www.gstatic.com/flutter-canvaskit/${r}/`;a&&(d=`${d}chromium/`);let c=`${d}canvaskit.js`;o.flutterTT.policy&&(c=o.flutterTT.policy.createScriptURL(c));let u=y(`${d}canvaskit.wasm`),l=document.createElement("script");l.src=c,e.nonce&&(l.nonce=e.nonce),l.addEventListener("load",async()=>{try{let m=await CanvasKitInit({instantiateWasm:u});window.flutterCanvasKit=m,t(m)}catch(m){i(m)}}),l.addEventListener("error",i),document.head.appendChild(l)}),window.flutterCanvasKitLoaded);var _=(o,e,n,r)=>new Promise((t,i)=>{let s=e.canvasKitBaseUrl??`https://www.gstatic.com/flutter-canvaskit/${r}/`,a=`${s}skwasm.js`;o.flutterTT.policy&&(a=o.flutterTT.policy.createScriptURL(a));let d=y(`${s}skwasm.wasm`),c=document.createElement("script");c.src=a,e.nonce&&(c.nonce=e.nonce),c.addEventListener("load",async()=>{try{let u=await skwasm({instantiateWasm:d,locateFile:(l,m)=>{let k=m+l;return k.endsWith(".worker.js")?URL.createObjectURL(new Blob([`importScripts('${k}');`],{type:"application/javascript"})):k}});t(u)}catch(u){i(u)}}),c.addEventListener("error",i),document.head.appendChild(c)});var g=class{async loadEntrypoint(e){let{serviceWorker:n,...r}=e||{},t=new v,i=new h;i.setTrustedTypesPolicy(t.policy),await i.loadServiceWorker(n).catch(a=>{console.warn("Exception while loading service worker:",a)});let s=new f;return s.setTrustedTypesPolicy(t.policy),this.didCreateEngineInitializer=s.didCreateEngineInitializer.bind(s),s.loadEntrypoint(r)}async load({serviceWorkerSettings:e,onEntrypointLoaded:n,nonce:r,config:t}={}){t??={};let i=_flutter.buildConfig;if(!i)throw"FlutterLoader.load requires _flutter.buildConfig to be set";let s=l=>{switch(l){case"skwasm":return p.crossOriginIsolated&&p.hasChromiumBreakIterators&&p.hasImageCodecs&&p.supportsWasmGC;default:return!0}},a=l=>l.compileTarget==="dart2wasm"&&!p.supportsWasmGC||t.renderer&&t.renderer!=l.renderer?!1:s(l.renderer),d=i.builds.find(a);if(!d)throw"FlutterLoader could not find a build compatible with configuration and environment.";let c={};c.flutterTT=new v,e&&(c.serviceWorkerLoader=new h,c.serviceWorkerLoader.setTrustedTypesPolicy(c.flutterTT.policy),await c.serviceWorkerLoader.loadServiceWorker(e).catch(l=>{console.warn("Exception while loading service worker:",l)})),d.renderer==="canvaskit"?c.canvasKit=C(c,t,p,i.engineRevision):d.renderer==="skwasm"&&(c.skwasm=_(c,t,p,i.engineRevision));let u=new f;return u.setTrustedTypesPolicy(c.flutterTT.policy),this.didCreateEngineInitializer=u.didCreateEngineInitializer.bind(u),u.load(d,c,t,r,n)}};window._flutter||(window._flutter={});window._flutter.loader||(window._flutter.loader=new g);})();
//# sourceMappingURL=flutter.js.map

if (!window._flutter) {
  window._flutter = {};
}
_flutter.buildConfig = {"engineRevision":"edd8546116457bdf1c5bdfb13ecb9463d2bb5ed4","builds":[{"compileTarget":"dart2js","renderer":"auto","mainJsPath":"main.dart.js"}]};

_flutter.loader.load({
  serviceWorkerSettings: {
    serviceWorkerVersion: "4040159426"
  }
});

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
PS F:\programming\flutter\flutter_application_1\build\web> flutter upgrade
Flutter is already up to date on channel stable
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (2 weeks ago) • 2024-06-05 22:15:13 +0200
Tools • Dart 3.4.3 • DevTools 2.34.3
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.

Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:

    flutter --disable-analytics

If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).

PS F:\programming\flutter\flutter_application_1\build\web> flutter doctor -v
[!] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.19045.2311], locale ar-SY)
    • Flutter version 3.22.2 on channel stable at C:\Users\Domino\AppData\Local\flutter
    ! Warning: `flutter` on your path resolves to F:\programming\flutter\flutter_application_1\build\web\flutter.js, which      is not inside your current Flutter SDK checkout at C:\Users\Domino\AppData\Local\flutter. Consider adding
      C:\Users\Domino\AppData\Local\flutter\bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (2 weeks ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to
      perform update checks and upgrades.

[√] Windows Version (Installed version of Windows is version 10 or higher)

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.6)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.7.34221.43
    • Windows 10 SDK version 10.0.22621.0
    X The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code, 64-bit edition (version 1.90.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.90.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19045.2311]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 126.0.6478.63
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 126.0.2592.61

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 4 categories.
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.

Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:

    flutter --disable-analytics

If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).

</details>

@noone-m It seems to throw a syntax error pointing to bootstrap_js file:

Please fix it and re-run your scenario to see if it helps to resolve or not. If still not, can you try to run in actual mobile browser from emulator or physical device to see if you still see a blank screen ?

Thank you @darshankawar for your response and suggestion.
After some investigations, I found that the problem is due to the version of chrome on my phone. (version was 80.0.3987.149)
It seems that the browser was not able to understand JavaScript newer syntax leading to syntax errors.
After updating chrome to a newer version on my phone the problem was solved :-).


[SPARK-19969] [ML] Imputer doc and example

What changes were proposed in this pull request?
Add docs and examples for spark.ml.feature.Imputer. Currently scala and Java examples are included. Python example will be added after https://github.com/apache/spark/pull/17316
How was this patch tested?
local doc generation and example execution

Test build #74689 has started for PR 17324 at commit f2e7a69.

Test build #74690 has started for PR 17324 at commit ac0683b.

Test build #74689 has finished for PR 17324 at commit f2e7a69.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
public class JavaImputerExample

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/74689/
Test PASSed.

Test build #74690 has finished for PR 17324 at commit ac0683b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/74690/
Test PASSed.

Will take a look this week

Generally looks fine - made a few small comments.

Test build #75031 has started for PR 17324 at commit 4bbe2f7.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75031/
Test FAILed.

Jenkins retest this please

Test build #75058 has started for PR 17324 at commit 4bbe2f7.

Test build #75059 has started for PR 17324 at commit 8755dde.

Test build #75058 has finished for PR 17324 at commit 4bbe2f7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75058/
Test PASSed.

Test build #75059 has finished for PR 17324 at commit 8755dde.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75059/
Test PASSed.

Merged build finished. Test PASSed.

@hhbyyh #17316 is merged.

Test build #75197 has started for PR 17324 at commit a2e24c0.

Test build #75197 has finished for PR 17324 at commit a2e24c0.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75197/
Test PASSed.

Merged build finished. Test PASSed.

Updated with python example.

Sure
On Mon, 27 Mar 2017 at 19:53, Yuhao Yang<EMAIL_ADDRESS>wrote:

@hhbyyh commented on this pull request.
In examples/src/main/python/ml/imputer.py
https://github.com/apache/spark/pull/17324#discussion_r108235749:

+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#

+# $example on$
+from pyspark.ml.feature import Imputer
+# $example off$
+from pyspark.sql import SparkSession
+
+if name == "main":

spark = SparkSession\

   .builder\

   .appName("imputer example")\

Sure. For consistency, how about just keep it "ImputerExample"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/17324#discussion_r108235749, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA_SByob4PtcqvZG_bOqxjJpXViK76eeks5rp_eggaJpZM4Mf8oS
.

Test build #75271 has started for PR 17324 at commit 7df70b7.

Test build #75271 has finished for PR 17324 at commit 7df70b7.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75271/
Test PASSed.

Test build #75346 has started for PR 17324 at commit 48a1361.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75346/
Test FAILed.

Merged build finished. Test FAILed.

The test was interrupted and need a retest.

Jenkins retest this please

Test build #75383 has started for PR 17324 at commit 48a1361.

Test build #75383 has finished for PR 17324 at commit 48a1361.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75383/
Test PASSed.

Test build #75396 has started for PR 17324 at commit e17f997.

Test build #75396 has finished for PR 17324 at commit e17f997.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/75396/
Test PASSed.

Viewed generated docs and ran examples locally.
👍
Merged to master. Thanks!


Non-interactive mode for the master controller

In order to better fit into highly-automated environments, the master controller should be improved for better scriptability. Currently, the master controller can be used either in interactive mode or in auto mode. None of them is suited when tasks like the following should be carried out in a scripted manner:

upload the test suite and start the load test
download the results of a running load test and generate a report from them
abort a running load test
abort a running load test, download the final results, and generate a report from them

What we need is a non-interactive mode where the user can configure on the command line what is to be done.

See branch "MasterControllerCommands".

Branch merged.


Fix grammar in HashPortManyFiles warning message

Previous message said The zlib contains 42 files. Now says The port 'zlib' contains 42 files

Thanks for the fix!


two CTE with

Hi,
I have this CTE in sqlite3:
  WITH aCTE AS (SELECT 'a'),
             bCTE AS (SELECT 'b')
  SELECT * FROM aCTE, bCTE;

now I know how to select from one:
let temp = knex.with('aCTE', knex.raw("select 'a'")).select("*").from('aCTE')
    let m = await temp;

how to do a 'SELECT * FROM aCTE, bCTE;'? thanks

select * from aCte, bCte is equivalent to select * from aCte cross join bCte so you should be able to just use crossJoin

You can define multiple with clauses in the Knex builder and access them however you wish, for example using the crossJoin, if desired.
knex
    .with('aCTE', knex.raw('...'))
    .with('bCTE', knex.raw('...'))
    .select()
    .from('aCTE as A')
    .crossJoin('bCte as B')


Don't use the versions file for tools installed via NPM

The versions file exists to avoid rate limits imposed by GitHub when getting the latest release for various tools via the GitHub API. However, if a user specifies they want the latest tool and the tool is installed via NPM, then we should skip the versions file and just NPM install the latest.

This function decides whether to fetch an exact version of a tool (because the user specified an exact version) or to look up the latest version in the versions file:
https://github.com/purescript-contrib/setup-purescript/blob/915bfb653aecc5e87c39601c4c7f10e7372578fd/src/Setup/BuildPlan.purs#L54-L80
However, if the InstallMethod for a tool is NPM:
https://github.com/purescript-contrib/setup-purescript/blob/915bfb653aecc5e87c39601c4c7f10e7372578fd/src/Setup/Data/Tool.purs#L78-L80
...then we should skip the versions file altogether and just NPM install the tool at its latest version according to NPM:
https://github.com/purescript-contrib/setup-purescript/blob/915bfb653aecc5e87c39601c4c7f10e7372578fd/src/Setup/Data/Tool.purs#L94-L148
Currently that only covers psa and purs-tidy.


Desktop media query for React

Problem Description
In php we can use the different media queries to apply CSS only on certain devices. In React we use the static css(props) function for this.
If you don't provide a media query (php) or a device (react), the CSS is applied always but if you provide a media query for desktops (min_981) in php, the CSS is not used on smaller devices (as intended). In react you can't do that but it would be great if CSS with the device "desktop" would only be applied on desktop devices.
Instead, if you use the device "desktop" at the moment, it is also applied to all device sizes so you need to write additional CSS for tablet and phone to unset what you wanted to do only for the desktop.
I'm not sure if there actually is a "desktop" device and if so if it is just not working correctly or if I am doing something wrong but I believe if I set the device to desktop it should use the media query min_981 behind the scenes.
I hope you understand what I mean and that this makes sense to you.

QA Checklist
Reporter

[ ] Helpful title used

Helpful title format: Scope(s) :: One Sentence To Describe The Issue
Example: VB :: Floating Toolbar :: Jumps To Top Of Page

[ ] Detailed description

Description should usually be 150+ characters.

[ ] Steps to reproduce included
[ ] Support Ticket URL included
[ ] Image and/or gif

Developer

[ ] Steps to reproduce proven solved
[ ] Test included and coverage acceptable and all Tests passing?
[ ] PR description has layman's description of problem and solution and "Areas Affected" listed/explained?
[ ] PR branch includes latest commits from master branch (at the time of checking)?
[ ] Estimated points on issue
[ ] Proper code documentation and conventions?
[ ] Proper RTL appearance
[ ] i18n used if applicable
[ ] Ajax/Form used? Nonce used? Perms checked? All user input sanitized and validated? Intentional unsanitized/unescaped functions used?
[ ] Database saved/updated? Data sanitized and validated?
[ ] Variable output properly escaped and validated?

Peer Review

[ ] PR branch includes latest commits from master branch (at the time of checking)?
[ ] Steps to reproduce proven solved
[ ] Affected areas are tested and ok
[ ] Proper code documentation and conventions
[ ] Proper RTL appearance
[ ] i18n used if applicable
[ ] Test(s) included and coverage acceptable
[ ] Ajax/Form used? Nonce used? Perms checked? All user input sanitized and validated? Intentional unsanitized/unescaped functions used?
[ ] Database saved/updated? Data sanitized and validated?
[ ] Variable output properly escaped and validated?

Quality Assurance

[ ] All tests passed on CircleCI.
[ ] Steps to reproduce passed, the fix works.
[ ] No errors in console or output
[ ] Affected areas are tested and ok
[ ] The fix does not change a customer's website in any surprising or unintended way

[ ] If Divi's design is adjusted, settings are migrated gracefully and invisibly

Design Review

[ ] UI is to spec
[ ] UX is to spec
[ ] Design is to spec
[ ] No surprising visual changes to a customer's website will be experienced after updating

[ ] Any/all visual changes are migrated gracefully

Dev Review

[ ] Test(s) included and coverage acceptable
[ ] Ajax/Form used? Nonce used? Perms checked? All user input sanitized and validated? Intentional unsanitized/unescaped functions used?
[ ] Database saved/updated? Data sanitized and validated?
[ ] Variable output properly escaped and validated?
[ ] i18n used if applicable
[ ] Implementation acceptable, DRY, Scaleable, future safe
[ ] Best practices used, cleverness and grokage, ES6 use, etc.

HI
Have the same question:
I'm using Range element with 'mobile_options'  => true.
Source code (php) helped me understood how to "transform" mobile_options to media_queties in php. It works.
But how to do it in JSX with additionalCss in static css(){}

Currently this is how I solve it in react:
    const mobile = props.height_last_edited && props.height_last_edited.startsWith('on');
    const height = props.height;
    const height_tablet = mobile && props.height_tablet ? props.height_tablet : height;
    const height_phone = mobile && props.height_phone ? props.height_phone : height_tablet;

    css.push([{
        selector: "%%order_class%% .wrapper",
        declaration: `height: ${height}`
    }])

    css.push([{
        selector: "%%order_class%% .wrapper",
        declaration: `height: ${height_tablet}`,
        device: 'tablet',
    }])

    css.push([{
        selector: "%%order_class%% .wrapper",
        declaration: `height: ${height_phone}`,
        device: 'phone',
    }])


Neither does Observe

See #14. Here's the output of the correct solution:
TAP version 13
# (anonymous)
ok 1 loaded scenario OK
ok 2 test bootstrapper was passed a server
ok 3 test bootstrapper was passed a REPL
not ok 4 REPL client ran without error
  ---
    operator: equal
    expected: 0
    actual:   8
  ...
not ok 5 got expected value from REPL client
  ---
    operator: ok
    expected: true
    actual:   null
  ...
not ok 6 got no error output from REPL client
  ---
    operator: notOk
    expected:
      false
    actual:
      '\r\nc:\......\\node_modules\\bug-clinic\\node_modules\\.bin\\rc:2\r\nbasedir=`dirname "$0"`\r\n        ^\r\nSyntaxError: Unexpected token ILLEGAL\r\n
   at Module._compile (module.js:439:25)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:929:3\r\n'
  ...

1..6
# tests 6
# pass  3
# fail  3

I've had this problem, too


Bulk preview and publish tool

Please note that this is a draft PR and it is still work in progress.

it adds support for bulk previewing and publishing of urls

Resolves: MWPW-125675
Features

result feedback for each action
only authorised users can perform a bulk operation
only supported sites can be bulk operated
to track bulk usage, a report is persisted in an Excel file for each operation with: timestamp, user, operation, site, number of urls, number of success
urls added by the user are not lost between reloads
IMS sign-in is enabled
the number of successful bulk actions is displayed
maximum batch size: 1000 urls
throttling of 100 ms between actions
result rows are appended one after the other
the results can be copied to the clipboard and copied-pasted into Excel
the URLs input can be hidden/shown to save some browser real estate
the single bulk action (fetch) times out after 5 s
supports resuming the bulk process after a refresh

Bulk UI

Report (Excel file)

Test URLs:

Before: https://main--milo--adobecom.hlx.page/tools/bulk?martech=off
After: https://bulk-publish--milo--adobecom.hlx.page/tools/bulk?martech=off

When hitting the "run process" button, with no URLS added, I do get the message that tells me no URLS were processed and I need to add urls. When I add URLS and click "run process" again the page does nothing.
In the console I see:

Refreshing the page and adding my urls again works as expected - preview/publishing the urls.

Note: the bad PSI score (68) is achieved because IMS log in is enabled. When disabled the PSI is 98 (see above).

@mokimo thx for your feedback!

If you continue bulk publishing after navigating away from the page, you lose the history of the first few entries. It would make sense to also store that in localstorage so you see which URLs already have been previewed/published & their status

good point, the results from the previous run are now stored in local storage and displayed when resuming: see https://github.com/adobecom/milo/pull/559/commits/3c8cc9387ed85003d8590024063603cba69b2b11

filtered duplicate URLs could be logged, so an author can look why/which duplicates are even showing up

you're right, duplicate URLs are now displayed in the results with a duplicate status. See https://github.com/adobecom/milo/pull/559/commits/3c8cc9387ed85003d8590024063603cba69b2b11

consider adding LANA logs so you can monitor any JS errors encountered. Though I'd imagine authors would bug you otherwise, if something is not working!

Which JS errors are you thinking about?

Cool, great to see the feedback addressed! 👍
As for JS errors, any uncaught errors would be interesting to observe.
It's a lot of code so it might make sense to have an eye on that after the first few weeks when the tool is used, to catch any unexpected behavior.


Fix Issue With Remote Test Runner Only Running Last Built Test

The remote runner is currently building all the tests properly, but it is only running the most recently built test.

this has been fixed


Docker image improvements

This PR removes unnecessary commands in the Dockerfile such as mkdir (WORKDIR creates it if it's not there.
Adding a cache to the yarn install command will speed up builds when updating any dependency.
The final image was being build with the data folder created by docker-compose mongo container and the .git folder, increasing its size.
The image size went from 1.3~GB to around 400MB.

@all-contributors please add @Tarliton for code and infra


Script Errors when trying to create mailbox

When I run the script and select for it to create the mailbox on Exchange On-Premise I am always getting an error relating to changing the password, the account I use has full AD, Exchange, Skype Admin permissions;
Creating Mailbox
..............................You don't have permission to directly change a mailbox account password without providing old password. Reset Password role is required for directly changing password.
+ CategoryInfo          : NotSpecified: (skype.room3@domain.com:MailboxIdParameter) [Set-Mailbox], TaskArgumentException
+ FullyQualifiedErrorId : [Server=UABZEX02,RequestId=f531b30d-a990-4b74-a967-d3735964ceb4,TimeStamp=06/11/2018 12:55:02] [FailureCategory=Cmdlet-TaskArgumentException] 8A097A14,Microsoft.Exchange.Management.Re
cipientTasks.SetMailbox
+ PSComputerName        : ex02.domain.com
Failed to create a new mailbox on exchange.
Remove-PSSession : Cannot bind parameter 'Id'. Cannot convert the "[PSSession]Session4" value of type "System.Management.Automation.Runspaces.PSSession" to type "System.Int32".
At X:\20 Infrastructure\Powershell\Skype\SkypeRoomProvisioningScript-Updated.ps1:77 char:30

    Remove-PSSession -Id $sessExchange

                         ~~~~~~~~~~~~~

CategoryInfo          : InvalidArgument: (:) [Remove-PSSession], ParameterBindingException
FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.RemovePSSessionCommand

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

ID: 6d495057-36be-b228-0483-aae89fd01666
Version Independent ID: f02fa875-b84b-5501-5879-17ea3d017142
Content: Configure accounts for Skype Room Systems v2
Content Source: Skype/SfbServer/deploy/deploy-clients/room-systems-v2-configure-accounts.md
Product: skype-for-business-itpro
GitHub Login: @jambirk
Microsoft Alias: jambirk

@grahambird80 Thank you for this inquiry.
I am not sure why you are getting a change your password error with this script. I want to make sure you get the best help possible. I think the best thing is to get you over to Support. They have more resources to dig into this issue and find a resolution.
Here is a quick video on opening a ticket: https://www.youtube.com/watch?v=puuOy0sEg1Y
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.


cannot import name 'nms_impl' from partially initialized module 'lanedet.ops'

when i run main.py
The following errors are reported:
Traceback (most recent call last):
File "C:/Users/MINHOO/Desktop/大三下比赛/lanedet-main/main.py", line 8, in
from lanedet.utils.config import Config
File "C:\Users\MINHOO\Desktop\大三下比赛\lanedet-main\lanedet_init_.py", line 1, in
from .ops import *
File "C:\Users\MINHOO\Desktop\大三下比赛\lanedet-main\lanedet\ops_init_.py", line 1, in
from .nms import nms
File "C:\Users\MINHOO\Desktop\大三下比赛\lanedet-main\lanedet\ops\nms.py", line 29, in
from . import nms_impl
ImportError: cannot import name 'nms_impl' from partially initialized module 'lanedet.ops' (most likely due to a circular import) (C:\Users\MINHOO\Desktop\大三下比赛\lanedet-main\lanedet\ops_init_.py)
Process finished with exit code 1

Refer this issue: https://github.com/Turoad/lanedet/issues/3.
Please read the existing issue before raising new issue.

All right Thank you!
------------------ 原始邮件 ------------------
发件人: @.>;
发送时间: 2022年4月13日(星期三) 中午1:02
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [Turoad/lanedet] cannot import name 'nms_impl' from partially initialized module 'lanedet.ops' (Issue #46)
Refer this issue: #3.
Please read the existing issue before raising new issue.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Allow for editing with Test Window Open?

I have no idea how doable this is with the LUnit Architecture. I know it was doable with VI Tester. I'm not sure the difference is.
Basically in VI Tester if ran all the tests and one test failed I can doubleclick on the failed test in the Test GUI Window and it opens up the test vi. LUnit does the same. So far, so good.
However, when the test VI opens in VI Tester I can edit it. Then I can just save the test and use the run one test button in the GUI and it runs the one test and I can verify if I fixed the test or not. If I fixed it, then for good measure I can then run all the tests to make sure I didn't break anything else. Makes troubleshooting very easy.
With LUnit, the problem is that the test VI is locked for some reason... Not sure why that is. You might consult with Darren. My immediate thought is something to do with application instances. As is I have to close the LUnit GUI in order to switch the test VI to edit mode. Now I've lost the test GUI window. It just makes troubleshooting a little harder.
As I mentioned VITester does open it in edit mode so under circumstances it is possible. I'm not sure how different the LUnit architecture is.
Anyway, if that could be fixed it would make my life a lot easier.

That sounds reheaally painful. Interestingly I do not see the same behavior. Are your test methods by any chance configured as Dynamic Dispatch? This would cause them to be locked while the UI is open as the Test Case.lvclass is loaded in memory.

I'm not in front of that project right now. That could very well be the case. I will check tomorrow.

Alright, thanks.
Are you (or anyone else) using the dynamic test methods? Now I mean in the sense of how it was originally intended, where a test case would inherit tests from parent test case classes and the tests would be run for each class in the hierarchy.
This was an idea I had and found useful a few years ago, but I am not using it in any other projects and I would guess no-one else is either. Since it adds complexity I'm considering deprecating it or potentially changing the implementation. As a first step the dynamic .vit-file should probably be dropped from the test case class generated by the framework.

I had the idea of doing that one time when I was using VI Tester.
I thought it would be nice to somehow take a child class and run all the parent tests on it and then add some tests for the child specifically. In theory it sounded great, but it never really panned out, mostly because VI Tester didn't support it, and then I forgot about it.

I can confirm that dynamic dispatch was the problem. All works as expected now after making the test methods static.
As far as I am concerned you can close this issue.


Signed package for target.

for GAC type stuff.

Beware of your assembly version (and file version) when you strong name you package.
See
http://stackoverflow.com/a/802038

thanks @304NotModified !, will keep that in mind.


Fix datalib mergeResults function to properly handle time frames that are in the future compared to the cached results

This PR resolves issue #1671
The problem was that if it takes a long time writing data to disk, the carbon-cache will hold the results in memory. When graphite-web asks carbon for its data, it gives him the entire cache, which may hold older data than the query's time frame. The mergeResults function doesn't handle this scenario properly, and will mistakenly return the cache data, even though it is irrelevant.
Note that this issue exists in master as well, however, only in the CeresReader.
Should i create a PR against master as well?

Nice catch! Yes, please create same for the master, much appreciated!

Cool, ill do that shortly.

@obfuscurity thanks for the quick merge! :)
@deniszh regarding the PR against master, should i create a corresponding issue? or just edit #1671 and reference it?

@iliapolo - up to you. Issue edit is fine.


Temporarily Deferred Error Though IP Address Not on Any Blacklist

The IP address (2<IP_ADDRESS>) where the email is being delivered from is not on any blacklist when checked on Mxtoolbox
But I observed that the IP address hosting the "From Email Address" is on  Spamhaus ZEN Blacklist, which then auto place the "From Email Address" on Blacklist.
Can the IP address hosting the "From Email Address" affect the delivery of emails with the error
"421 4.7.0 [TSS04] Messages from 2<IP_ADDRESS> temporarily deferred due to user complaints" ?

An IP address cannot contain 287 so I'm not sure how you're getting that specific message. Are you seeing it in Postal when trying to send messages?

@willpower232 I tweaked it because of public space
Please help with the your advice.
I am waiting. Thanks

Are you seeing this error in Postal when trying to send messages?

Yes please see the screenshot here https://m.imgur.com/gallery/HWv9JBP

Its possible Yahoo is using its own blacklist or one that isn't checked by mxtoolbox. How mail servers handle blacklists is totally down to them so if they think you're spamming them, you'll have to appeal directly to them or any random blacklist you can find that you're even slightly mentioned on.

This error clearly states that your host has been sending spam and people have complained :(
As Will says, Yahoo will have their own internal blacklists, there's no way for you to query them.


Create NuGet package

This is a very cool proof-of-concept. Have you considered packaging the re-usable pieces of this up into a NuGet package? (i.e. the TerraformPluginDotNet project piece)

Hi, thanks for your interest in this project. I have published it to NuGet here:
https://www.nuget.org/packages/TerraformPluginDotNet

Awesome! Thank you 👍


How do you start the project?

I have followed everything on the git page to install the project but it refuses to run can you please assist?
I have tried npm start, npm run and nothing works. Well karma start works but it does not give me the project view.
Please assist?

@chrisformula hello, what exactly went wrong?
Do you have any error or stacktrace?
npm run build_prod  was successful?

Sweet thanks @dmitrykurmanov that worked but how can I get the Editor to work and actually start building surveys?

@chrisformula if I understand you correctly, editor is another project. You can build it and use as well as surveyjs. It contains example folder too.

do I use the same npm i live-server to build it?

@chrisformula you could install live-server globally:  npm i live-server -g and use it in any folder.

awesome thanks ill try that

@chrisformula ok feel free to reopen this issue or post something else

I've implemented npm start command. @chrisformula - you can use after npm i (dev dependencies now contain live-server reference).


Getting ValueError: Invalid device ID (0)

render from the NeRF camera pose
def show_humans(human_obj_meshes, pose, K, image_name):
image = media.read_image(f"/content/sitcoms3D/data/sparse_reconstruction_and_nerf_data/{sitcom_location}/images/{image_name}")
color_h, depth_h, alpha_h = render_human(human_obj_meshes, pose, K)
media.show_image(image, height=200, title="Image we use for camera pose and intrinsics")
media.show_image(color_h, height=200, title="Image of humans rendered from this camera")
composited = (color_h * alpha_h[...,None] + image * (1 - alpha_h[...,None])).astype("uint8")
media.show_image(composited, height=200, title="Composited image")
pose = nerf_image_name_to_info[image_name]["camtoworld"]
K = nerf_image_name_to_info[image_name]["intrinsics"]
show_humans(human_obj_meshes, pose, K, image_name) # image_name to read the background image
OUTPUT :
ValueError                                Traceback (most recent call last)
 in
10 pose = nerf_image_name_to_info[image_name]["camtoworld"]
11 K = nerf_image_name_to_info[image_name]["intrinsics"]
---> 12 show_humans(human_obj_meshes, pose, K, image_name) # image_name to read the background image
4 frames
/usr/local/lib/python3.7/dist-packages/pyrender/platforms/egl.py in get_device_by_index(device_id)
81     devices = query_devices()
82     if device_id >= len(devices):
---> 83         raise ValueError('Invalid device ID ({})'.format(device_id, len(devices)))
84     return devices[device_id]
85
ValueError: Invalid device ID (0)

Hi @tanishq-1011, were you able to solve this issue? I'm not too familiar with this EGL issue. I guess we were following this doc for offscreen rendering.


Update price-management.md

Correct statements related to price adjustment.

:x: Organization membership check failed
Members of the MicrosoftDocs organization should use the private repo. Please move your changes to https://github.com/MicrosoftDocs/Dynamics-365-Operations, and close this pull request.

@Adrian-Zhang please copy these changes into a branch in the private repo and close this PR.


Data_Eval_ScoringFunction.json File

Hello!
The JSON file on https://wildltr.github.io/ptranking/how_to_start/Configuration/ is not available. Would you pls share the JSON file?
Many thanks,
Charlotte

@CharlotteYang12345 hi, sorry for the inconvenience, please first refer to the source code folder: ptranking/testing/ltr_adhoc/json/
we will update it ASAP, thanks.


[web][canvas_kit] Canvaskit throws Exception: RuntimeError: null function or function signature mismatch when using TextPainter with custom font

Steps to Reproduce
this is minimum code
import 'package:flutter/material.dart';

class SamplePage extends StatefulWidget {

  SamplePage(): super();

  @override
  SamplePageState createState() => SamplePageState();
}

class SamplePageState extends State<SamplePage> with WidgetsBindingObserver {

  @override
  void initState(){
    super.initState();
  }

  Widget build(BuildContext context){
    for(int i=0; i<100; i++){
      TextPainter(
        text: TextSpan(
          text  : "こんにちは今日は",
          style : TextStyle(
            locale    : Locale("ja", ''),
            fontFamily: "NotoSansJP",
          ),
        ),
        maxLines: null,
        textDirection: TextDirection.ltr
      )..layout();
    }

    Widget bodyScaffold = Scaffold( body: Container(child: Text("sample"),));

    return bodyScaffold;
  }
}

pubspec.yaml
  fonts:
    - family: NotoSansJP
      fonts:
       - asset: fonts/NotoSansJP-Regular.otf

You can get NotoSansJP-Regular.otf from
https://fonts.google.com/noto/specimen/Noto+Sans+JP

Run sample code in web mode

Expected results:
web page will be shown without error
Actual results:
error occur
error code is this

logs
CanvasKit threw an exception while laying out the paragraph. The font was "NotoSansJP".
Exited (sigterm)

flutter doctor -v
[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19043.1237], locale ja-JP)
    • Flutter version 2.5.2 at C:\Users\81708\Desktop\develop\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3595343e20 (12 days ago), 2021-09-30 12:58:18 -0700
    • Engine revision 6ac856380f
    • Dart version 2.14.3

[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at C:\Users\81708\AppData\Local\Android\sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] VS Code (version 1.61.0)
    • VS Code at C:\Users\81708\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.27.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.71
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 94.0.992.38

On the master channel just running the app is able to reproduce it, but on stable I had to reload it.

Thanks, with that code I can repro reliably in release mode with both versions of CanvasKit. I'm able to get slightly better error messages now. This looks like a bad malloc somewhere:
RuntimeError: memory access out of bounds
main.dart.js:22472     at SkPaint::SkPaint(SkPaint const&) (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.wasm:wasm-function[305]:0xc7ff)
main.dart.js:22472     at skia::textlayout::TextStyle::TextStyle(skia::textlayout::TextStyle const&) (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.wasm:wasm-function[614]:0x3ae80)
main.dart.js:22472     at skia::textlayout::ParagraphBuilderImpl::pop() (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.wasm:wasm-function[7635]:0x3b9ad7)
main.dart.js:22472     at emscripten::internal::MethodInvoker<void (GrDirectContext::*)(), void, GrDirectContext*>::invoke(void (GrDirectContext::* const&)(), GrDirectContext*) (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.wasm:wasm-function[2478]:0x115d02)
main.dart.js:22472     at ParagraphBuilder$pop [as pop] (eval at new_ (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.js:9:157752), <anonymous>:8:1)
main.dart.js:22472     at JavaScriptObject.pop$0 (http://localhost:64253/main.dart.js:34342:23)
main.dart.js:22472     at Object.pop$0$x (http://localhost:64253/main.dart.js:24189:43)
main.dart.js:22472     at CkParagraphBuilder.pop$0 (http://localhost:64253/main.dart.js:27617:9)
main.dart.js:22472     at TextSpan.build$3$dimensions$textScaleFactor (http://localhost:64253/main.dart.js:56243:17)
main.dart.js:22472     at TextPainter._createParagraph$0 (http://localhost:64253/main.dart.js:56123:12)

and
RuntimeError: table index is out of bounds
main.dart.js:22472     at skia::textlayout::ParagraphImpl::layout(float) (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.wasm:wasm-function[7626]:0x3b2e9f)
main.dart.js:22472     at emscripten::internal::MethodInvoker<void (SkFont::*)(float), void, SkFont*, float>::invoke(void (SkFont::* const&)(float), SkFont*, float) (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.wasm:wasm-function[2477]:0x115cce)
main.dart.js:22472     at Paragraph$layout [as layout] (eval at new_ (https://unpkg.com/canvaskit-wasm@0.30.0/bin/profiling/canvaskit.js:9:157752), <anonymous>:9:1)
main.dart.js:22472     at JavaScriptObject.layout$1 (http://localhost:57479/main.dart.js:34450:23)
main.dart.js:22472     at Object.layout$1$x (http://localhost:57479/main.dart.js:24174:43)
main.dart.js:22472     at CkParagraph._ensureInitialized$1 (http://localhost:57479/main.dart.js:27492:13)
main.dart.js:22472     at CkParagraph.layout$1 (http://localhost:57479/main.dart.js:27579:13)
main.dart.js:22472     at TextPainter._layoutParagraph$2 (http://localhost:57479/main.dart.js:56130:24)
main.dart.js:22472     at TextPainter.layout$2$maxWidth$minWidth (http://localhost:57479/main.dart.js:56157:13)
main.dart.js:22472     at TextPainter.layout$0 (http://localhost:57479/main.dart.js:56161:19)

thanks!

CanvasKit has been rolled since October 15, 2021. Closing.


Kubernetes?

I would love to have/see an easy Windows environment for a Kubernetes cluster as simple as vagrant up. :-)

Here is a work in progress
https://github.com/PatrickLang/windows-k8s-lab/blob/kubeadm/README.md

Look: https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/getting-started-kubernetes-windows

Here is a Vagrant env: https://github.com/rjmorse/kubernetes-windows-vagrant

Great stuff!

A few personal preferences/notes:
Instead of chocolatey I personally tend to use scoop:
https://github.com/lukesampson/scoop/wiki/Chocolatey-Comparison
I'll request for the nightly build of docker and dockerd to be available in the main scoop bucket next to the docker.json:
https://github.com/lukesampson/scoop/blob/master/bucket/docker.json
Nothing wrong with the Invoke-WebRequest and Expand, just prob slightly faster to do without it, and everything would be nicely packed into ~/scoop/apps

Also regarding the module at OneGet and installing it on Windows 10 Pro (its not possible due to an error):
https://github.com/OneGet/MicrosoftDockerProvider
Hope they take a look at the outstanding pull request (not possible to install on 10 pro)
https://github.com/OneGet/MicrosoftDockerProvider/pull/36
Here is another fix (although if not wrong the wildcard should be 'Microsoft Windows 10*' to no break non Pro versions)
https://github.com/lambdalisue/MicrosoftDockerProvider/commit/1c4185ef724f4c0603a2596ecdafab0bf16b15e1

Closing this. I'm far away of setting up a Kubernetes environment and there are better repos out there where we should put our help into.


Add appveyor.yml

I've fixed a few of the errors, there are 2 left:

some very strange environment variable that can't be Setenv
icmd tests can't find the binary that is built, but it seems to exist on the filesystem.

Ok, this is now green. The icmd problem was that exec.LookPath on windows only considers files that have an appropriate extension... So I added a .exe.
I've skipped the PatchAll test on windows for now. If the issue with unsettable environment variables exists in most windows environments (not just appveyor) then we should probably document that PatchAll should not be used on windows.


Concurrency control

Goal of PR
Please describe exactly what the goal of your PR is (and link to any relevant issues)
Implementation
Describe how that goal was achieved through the submitted implementation.
Manual Testing
Describe how the new functionality can be tested manually.
Automated Testing
Describe the automated testing you included which covers any and all new functionality.
Submission Checklist

[ ] Based on correct branch: feature submissions should be on develop, hotfixes should be on master

[ ] The code passes our eslint definitions, unit tests, and
contains correct TypeFlow annotations.

[ ] Submission contains tests that cover any and all new functionality or code changes.

[ ] Submission documents any new features or endpoints, and describes how developers
would be expected to interact with them.

[ ] Author has agreed to our contributor's agreement.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Using esp-idf

Is there an official way of using it for development?

Hello. esp-idf currently does not have a relatively complete A7608 instruction library. It will take quite a while to support.


Unable to deploy it on Azure web app using docker

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
Am trying to setup application on Azure Web App using docker.
But trying to do so, am getting error.
2022-10-19T17:08:45.444255094Z 2022-10-19T17:08:45.444Z [NOTIFICATION] INFO: Prepare Notification Providers
2022-10-19T17:08:45.695753612Z 2022-10-19T17:08:45.695Z [SERVER] INFO: Version: 1.18.5
2022-10-19T17:08:46.166167200Z 2022-10-19T17:08:46.165Z [DB] INFO: Data Dir: ./data/
2022-10-19T17:08:46.170528508Z 2022-10-19T17:08:46.170Z [SERVER] INFO: Copying Database
2022-10-19T17:08:46.208334743Z 2022-10-19T17:08:46.208Z [SERVER] INFO: Connecting to the Database
2022-10-19T17:08:47.733044220Z Trace: [Error: PRAGMA journal_mode = WAL - SQLITE_BUSY: database is locked] {
2022-10-19T17:08:47.733086324Z   errno: 5,
2022-10-19T17:08:47.733092324Z   code: 'SQLITE_BUSY'
2022-10-19T17:08:47.733096824Z }
2022-10-19T17:08:47.733101225Z     at process. (/app/server/server.js:1728:13)
2022-10-19T17:08:47.733106125Z     at process.emit (node:events:513:28)
2022-10-19T17:08:47.733110426Z     at emit (node:internal/process/promises:140:20)
2022-10-19T17:08:47.733114726Z     at processPromiseRejections (node:internal/process/promises:274:27)
2022-10-19T17:08:47.733119027Z     at processTicksAndRejections (node:internal/process/task_queues:97:32)
2022-10-19T17:08:47.745408376Z If you keep encountering errors, please report to https://github.com/louislam/uptime-kuma/issues

👟 Reproduction steps

Create Azure web app with docker option
Provide below details in config
version: "3.7"
services:
myapp:
image: louislam/uptime-kuma:1
volumes:

monitordata:/app/data
ports:
3001:3001

Also in Configuration section, add volume (File Share)
Enable logging
Check logs

👀 Expected behavior
Initial setup should work fine
😓 Actual Behavior
Error in SQLLite setup
🐻 Uptime-Kuma Version
louislam/uptime-kuma:1
💻 Operating System and Arch
Linux
🌐 Browser
Chrome
🐋 Docker Version
louislam/uptime-kuma:1
🟩 NodeJS Version
No response
📝 Relevant log output
2022-10-19T17:08:45.444255094Z 2022-10-19T17:08:45.444Z [NOTIFICATION] INFO: Prepare Notification Providers
2022-10-19T17:08:45.695753612Z 2022-10-19T17:08:45.695Z [SERVER] INFO: Version: 1.18.5
2022-10-19T17:08:46.166167200Z 2022-10-19T17:08:46.165Z [DB] INFO: Data Dir: ./data/
2022-10-19T17:08:46.170528508Z 2022-10-19T17:08:46.170Z [SERVER] INFO: Copying Database
2022-10-19T17:08:46.208334743Z 2022-10-19T17:08:46.208Z [SERVER] INFO: Connecting to the Database
2022-10-19T17:08:47.733044220Z Trace: [Error: PRAGMA journal_mode = WAL - SQLITE_BUSY: database is locked] {
2022-10-19T17:08:47.733086324Z   errno: 5,
2022-10-19T17:08:47.733092324Z   code: 'SQLITE_BUSY'
2022-10-19T17:08:47.733096824Z }
2022-10-19T17:08:47.733101225Z     at process.<anonymous> (/app/server/server.js:1728:13)
2022-10-19T17:08:47.733106125Z     at process.emit (node:events:513:28)
2022-10-19T17:08:47.733110426Z     at emit (node:internal/process/promises:140:20)
2022-10-19T17:08:47.733114726Z     at processPromiseRejections (node:internal/process/promises:274:27)
2022-10-19T17:08:47.733119027Z     at processTicksAndRejections (node:internal/process/task_queues:97:32)
2022-10-19T17:08:47.745408376Z If you keep encountering errors, please report to https://github.com/louislam/uptime-kuma/issues

Just a suspicion; but have you checked the (Folder)Permissions for monitordata?

Just a suspicion; but have you checked the (Folder)Permissions for monitordata?

not a permission issue. I tried setting up another docker with volume and that works perfectly fine

4. Also in Configuration section, add volume (File Share)

Could this be the issue?

How to Install
🐳 Docker
⚠ Please use a local volume only. Other types such as NFS are not supported.

Also in Configuration section, add volume (File Share)

Could this be the issue?

How to Install
🐳 Docker
⚠ Please use a local volume only. Other types such as NFS are not supported.

Still no luck. Followed end-to-end doc but still same error.

I'm currently having the same issue when using Azure App Services Container. Have you found a workaround?

No chance. Please use a normal VPS.

⚠ Please use a local volume only. Other types such as NFS are not supported.

I'm currently having the same issue when using Azure App Services Container. Have you found a workaround?

No. no luck. Still having same issue. Looks like we cant have this app on Azure. Havent tried terraform script which doc. provides to setup app on Azure


fix: Added hackerrank problem

reason for deleting keep - it is of zero byte and no significance in the repo
reason for deleting problem1 and solution.c - it is the helloword program whose solution already exists in the repository in the same language
reason for adding array problems - Mera Dil Bahut Bada Hai

Just pull changes from original repository, you will get to know that I already have deleted such files and made the changes.

And if you further want to contribute to this project then you can join program CrossWoc because this project is now under the CrossWoC. For now I am closing this pull request.


Implement rom_e2e_asm_interrupt_handler test

Fixes #14490

OK, this is ready for review :)

Merging this now to unblock #15713. Changes in the tests fields in the HJSON file, if needed, should be trivial.


[WB-8550] Upgrade to click > 8.0.0

Fixes WB-8550
Description
Upgrade to click > 8.0.0.
Testing
How was this PR tested?

We require Click>=7.0,!=8.0.0, (see client/requirements.txt at master · wandb/client ) so it’s only about the specific version that was broken (8.0.0; the issue that was causing problems was fixed in 8.0.1, see flag_value converted to str in Click 8 · Issue #1886 · pallets/click ). Any other 8.0.x version will work fine with wandb.
Closing.


Chore fix block used after it was moved

Proposed changes
/mnt/disk2/pengyu/codebase/apache/doris/be/src/vec/common/sort/heap_sorter.cpp:91:23: error: 'tmp_block' used after it was moved [bugprone-use-after-move,-warnings-as-errors]
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


add gpt-moe poetry text generation dsw example

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jerry.lp seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Change wording & link when nothing is owned

Overview
When a user logs in, and owns nothing, and clicks "Find something cool" they're taken /brands instead of /releases:
https://share.brandonontheinternet.com/RBuE4OnG

The wording is weird because the error seems very specific to not owning anything yet, which isn't an error.

I'm hoping we can change this wording and/or the root cause that's triggering that error.


Possibility to upload video ? and png image ?

Thanks for your amazing Work @terkelg !!!
Is it in the schedule the support of video  upload?
Cheers

We can only do what Instagram themself allow. It's not possible at the moment, but thanks for the feature request and interest in Ramme. 👍

PNG uploads do work, but for some reason the file picker doesn't allow you to 'see' them. It only shows .jpg and .jpeg files.

Can you do that from the web site? If so, can you reopen a new issue about that and i will see how i can fix it :)


fix: avoid direct assignment of innerHTML for Advanced Marker-based c…

Fixes issue #729 as per the recommended remedies here.

Thanks for contributing this fix, @sandeepk-e!


Export chords in MusicXML #24

I've updated the dependencies that broke some already failing tests.
test this please


error

Have you checked for the reasons outlined in the Exception details?

I do not know about this project? can help me the way to test it is not?


Multiple locations

Porting multiple locations from Python into Rust. As of now the restriction on the droplet is that the shape is rectangular, the size of which are specified by the dimensions field.

Merged in a squashed commit.

You can delete the branch.


Improve error reporting

This PR updates getDevices() and openDeviceById() to throw a NotAllowedError exception if the user has no permission to access a device supported by the library. This is important for the CLI which should be able to automatically update udev rules if necessary.
Steps to test
Connect a Boron and a Xenon to your computer and run:
RUN_INTEGRATION_TESTS=1 npm test

[ch29154]


Sass Compilation Error in 6.3.1

What should happen?
I am trying to upgrade my ember project. We include foundation but the newer versions of ember upgraded jQuery and thus broke the current version of foundation. To fix that I updated the version to 6.3.1 however it no longer imports.
Basically we do copy foundation min from the node modules:
new Funnel(new UnwatchedDir('node_modules/foundation-sites/dist/js'), { files: ['foundation.min.js'] })
Then we import that in to our vendor file. This all worked with previous builds.
Our app.scss looks this this:
@import "settings";
@import "foundation";
@include foundation-everything;
@import "globals";
@import "mixins/responsive";
@import "mixins/flex-layout";
@import "mixins/cta-button";
@import "mixins/sprite-helpers";
@import "sprites";
@import "sstfonts";
@import "layout-common-component";
@import "multi-line-buttons";
@import "wizard-buttons";
@import "stacked-buttons";
@import "redeem-code";
@import "info-table";
@import "handle-korra-exception";
@import "scroll-fader";
@import "warning-text";
@import "manage-credit-card";
@import "ember-power-calendar";
@import "modal-dialog";
// This needs the scss extension because component-css generates both a .scss and .css file
@import "pod-styles.scss";
What happens instead?
Now when we import this, it fails with the following.
Sass Syntax Error (SassCompiler) in /Users/bmoellers/GitHub/personal/valkyrie-transact/node_modules/foundation-sites/scss/util/_breakpoint.scss:176:28
Error: Undefined operation: "3 lte null".
on line 176 of node_modules/foundation-sites/scss/util/_breakpoint.scss, in mixin breakpoint
from line 45 of node_modules/foundation-sites/scss/components/_reveal.scss
from line 40 of tmp/sass_compiler-input_base_path-syxudCsS.tmp/app/styles/_foundation.scss
from line 3 of tmp/sass_compiler-input_base_path-syxudCsS.tmp/app/styles/app.scss

  @if $bp != null and ($bp <= $pbp or $dir == down) {

---------------------------^
Possible Solution

...
Test Case and/or Steps to Reproduce (for bugs)

Test Case:

How to reproduce:
1.
2.
3.
Context

Just trying to update to the newest version of ember.
Your Environment

Foundation version(s) used:
Browser(s) name and version(s):
Device, Operating System and version:
Link to your project:

Checklist

[ ] I have read and follow the CONTRIBUTING.md document.
[ ] There are no other issues similar to this one.
[ ] The issue title and template are correctly filled.

Hi @bmoellers,
which sass version do you use?
Did you also copy the new scss files including the sass-lists and util files?
Maybe you are missing some files.
See<EMAIL_ADDRESS>

Not sure what version of sass that ember-cli-sass version 6.0 includes to be honest. We include the compiled min version of the foundation.js but we include files directly from the node modules in our scss file.
 Still has the same problem.

So this can be ruled out.
The code which returns null is $pbp: index($-zf-breakpoints-keys, $print-breakpoint);.
So it seems the $print-breakpoint is not set or $-zf-breakpoints-keys does not contain it.
You can test the values with @debug $-zf-breakpoints-keys and @debug $print-breakpoint.

These are the default values:
/// A list of named breakpoints. You can use these with the `breakpoint()` mixin to quickly create media queries.
/// @type Map
$breakpoints: (
  small: 0,
  medium: 640px,
  large: 1024px,
  xlarge: 1200px,
  xxlarge: 1440px,
) !default;

/// The largest named breakpoint in which to include print as a media type
/// @type Keyword
$print-breakpoint: large !default;

$-zf-zero-breakpoint: small !default;

$-zf-breakpoints-keys: map-to-list($breakpoints, 'keys');

Maybe // @include foundation-reveal; in your foundation-everything mixin is the issue.

Not sure why this mixin is even used here. See https://github.com/foundation/foundation-zurb-template/blob/2706b837898c0d6c21913538f724c4924fa50e18/src/assets/scss/app.scss for an example setup. Including the settings file at https://github.com/foundation/foundation-zurb-template/blob/2706b837898c0d6c21913538f724c4924fa50e18/src/assets/scss/_settings.scss
Use the mixin OR the list of imports.
I recommend to go with the long list of imports. See https://get.foundation/sites/docs/sass.html#adjusting-css-output

I found our settings file. It did not have a full list of the breakpoints so that was the problem. Of course then I get another breakage because:
Sass Syntax Error (SassCompiler) in /Users/bmoellers/GitHub/personal/valkyrie-transact/node_modules/foundation-sites/scss/util/_color.scss:21:10
Error: $color: foreground(#5887F5) is not a color.
╷
21 │   $rgba: red($color), green($color), blue($color);
So I am not sure where they got the foreground from but I assume it is not defined somewhere.

So I am not sure where they got the foreground from but I assume it is not defined somewhere.

Do you use an old version of the settings file? Also see https://github.com/foundation/foundation-rails/issues/214
You can see it in<EMAIL_ADDRESS>but not in<EMAIL_ADDRESS>When you upgrade Foundation Sites you also have to migrate the settings.

I am sure the settings file is old. I checked the history and they reverted changes in it several times after the last foundation update. That was before I was even ever aware of the project. I guess that is the problem with working for a larger company with very strict brand and UX considerations... I can update it and then see what happens or I can try and cherry pick changes. Either way is going to be a lot of work. I do know that if I remove the foreground function it will then compile so that is the last hurdle. I will probably just do a best guess and then work backwards to see what changes are needed. At least I learned to trouble shoot SASS and foundation much better for any future issues.

If you miss anything you can get it from<EMAIL_ADDRESS>and the other files, like the foreground function.

I copied over the settings files and it fixes all the compilation issues. But the main problem is that everything became super small.

I noticed the breakpoint sizes changed so I tried setting them back to what was there before but it remains super small. Do you know what possibly changed to control this size change? And what I can do to get it back to the larger size?

Do you mean the global font size? This can be set in the settings too.
You may want to check if the browser window is zoomed or from where the smaller values come from.


Strange (wrong) results from *, /, -, +, ==, >, >=, <, <= operations when internal-call--transformation: true

https://github.com/phalcon/zephir/pull/1993 fixes the compile errors when internal-call-transformation: true however now some math operations are returning strange results. The results are normal with internal-call-transformation: false or in plain PHP.
For example, the following elementwise addition test fails on ColumnVector with these strange results when the extension is compiled with the internal call tranformation optimzation.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => Array (
         0 => -8.77
-        1 => -16
-        2 => -14.97
+        1 => 24
+        2 => 35.03
     )
     1 => Array (
-        0 => 25.01
+        0 => -14.99
         1 => 27.009999999999998
-        2 => 26
+        2 => 36
     )
     2 => Array (
-        0 => 36.1
-        1 => 40
+        0 => -13.9
+        1 => 30
         2 => 30
     )
 )

/mnt/c/Users/User/Workspace/Rubix/Tensor/tests/ColumnVectorTest.php:103

There is similar behavior when using all the other operators (except modulus)
Math sanity is restored by compiling with the optimization disabled

Did a zephir fullclean and now everything works
False alarm


[GOBBLIN-1396]Enable HiveWriter to consume gmce and register into hive MetadataStore [WIP]

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[ ] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1396

Description

[ ] Here are some details about my PR, including screenshots (if applicable):
Add hiveWriter as one subtype of metadataWriter, so that it can consume gmce and register into hive metaStore. The writer should avoid trying to register the same HiveSpec several times also it should be able to handle the schema evolution.

Tests

[ ] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Add unit test for HiveMetadataWriter

Commits

[ ] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Seems there's a github action failure above. Can you also check ? Thanks.

Codecov Report

Merging #3234 (790363f) into master (520eca8) will decrease coverage by 37.35%.
The diff coverage is 7.84%.

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


Atm8

Is it compatible with atm8 ? Or ever planing on adding compatibility or even collaborate with them to have it in a update bc I tried getting it to work and it just breaks the mod pack and crashes every time

Roughly Enough Items is causing the issue as it's faking JEI being installed when it's not.

Hello, I have found out how to use your mod on ATM8. Here is what I wrote on the other topic.
:
Hello, it's not an error but a solution to use Controllable on ATM8. You need to download version controllable-0.16.6-1.19.2. Make sure to check the 'meta inf/mods.toml' file to ensure that it is using the correct version of Forge (43). Once you've done that, it should work. Here's the link to download Forge: https://www.curseforge.com/minecraft/mc-mods/controllable/files/4120620.
Note : I using on ATM8


Intermittent rich text test: "should filter and commit first mention into the editor on Enter"

🧹 Tech Debt
This test is intermittent and is going to be disabled in #2151:
"RichTextEditorMentionListbox user mention via mention list box should filter and commit first mention into the editor on Enter"
Failing build
https://github.com/ni/nimble/actions/runs/9353948801/job/25745664409?pr=2149
Error message
[test-concurrent:nimble-components] [test-chrome:verbose] 1) should filter and commit first mention into the editor on Enter
RichTextEditorMentionListbox user mention via mention list box
Uncaught InvalidStateError: Failed to execute 'collapseToEnd' on 'Selection': there is no selection. thrown
Context
Nimble updated dependencies recently in #2148 and that included a change to prosemirror so it's possible that contributed to this.

@vivinkrishna-ni let me know if you'd like an AzDO bug to track this

Added three more tests that I had fail on me.