Start-TranscriptIfSupportedError

Hello!
Trying to run the script in a SCCM TS but i get this error when it runs:
Start-TranscriptIfSupported: A parameter cannot be found that matches parameter name 'File'.
\MPSXM.psm1: 552 char:5
Start-TranscpritIfSupported -Path $logPath -Name $logName -NewLog
CategoryInfo : AnvalidArgument: (:) [Start-TranscpirtIfSupported]. ParameterBindigException
FullyQualifiedErrorId : NamedParameterNotFound,Start-TranscpirtIfSupported
I've checked the code but cant find why i get this error, have any idea of what it could be?

Well, that's interesting, thanks for the report.
There is nothing you could do, this seems like an internal error within MPSXM.psm1 (the helper module included).
BIOS Sledgehammer uses the function Start-TranscriptTaskSequence() which uses the function Start-TransscriptIfSupported() and somewhere there the error happens. I can not make any sense from the error message, as the function do not call themselves with a -File parameter.
The only thing I could imagine would be that the COM Object we are using from SCCM to get the log path is broken so it returns null for the path which causes this error. But this is not very likely.
Can you maybe execute BIOS Sledgehammer using the batch file "RunVisible-Verbose.bat" and post a screenshot of the output (a smartphone capture will do as well)? This command displays more output which could be helpful to detect what is going on.

This is what it looks like when i run "RunVisible-Verbose.bat":

So it's basically the same as i wrote in the first report.

Thanks for that. The screenshot helps that the error is not related to the SCCM log path being empty that I first suspected.
You have renamed the script name, this was never tested but I can't think this to be the error. I added additional verbose output so also the file name of the log will be written.
Please do the following:

Download the entire repo using this link: https://github.com/texhex/BiosSledgehammer/archive/master.zip
Extract the file MPSXM.psm1 file and copy it to the location where BIOS Sledgehammer is located, overwriting the existing file.
Then execute RunVisble-Verbose.bat again and post a screenshot.

I downloaded the .zip that you linked, and replaced all the files so it was "fresh", and it looks like this:

I found the issue, as it says it tries to create the log file in X:\Windows\temo\smstslog, although i have placed the step later in the TS when it runs in the current OS. If i place the step when it is still in PE the script runs but fails at "Test-Environment".
From what i remember you can't run the upgrade tool in WinPE?

Thanks, but to be honest I still have no idea where this "-File" parameter error comes from. It should clearly run without issues within the OS itself. That it fails there but works in PE is really strange.
And yes, some HP fail or do not work correctly in PE. Some of the them work fine in PE, but I never tested that and can't help you there.
I will do some testing tomorrow, maybe the functions freaks out when a folder is read only or does not exist.

I was able to identify the issue here. The function Start-TranscriptIfSupported() has one line to find out which log files already exist so it can create the next one. This line looks like this:
$existing_files = Get-ChildItem -Path $Path -File -Filter $filter -Force

There we have the -File parameter but if the folder $Path exists, there will be no error. However, if the folder can not be found this PowerShell cmdlet will generate exactly the error message you are seeing: A parameter can not be found that maches parameter FILE.
I have now added two fail safes:

The script checks if the given folder (e.g. X:\WINDOWS\TEMP\SMSTsLog) exists. If not, it will write an error and default to the TEMP folder (Logfile path [X:\WINDOWS\TEMP\SMSTSLog] does not exist, defaulting to [C:\Users\USER~1\AppData\Local\Temp])
If the above mentioned Get-ChildItem generates an error, the script will add this error message with more details so it's clear that a file listing has failed (Unable to list files in path [X:\WINDOWS\TEMP\SMSTSLog] with filter [MPSXM-Debug_Tests.ps1.log-??.txt]: A parameter cannot be found that matches parameter name 'File'.)

The change is now live, please do the same as before:

Download the entire repo using this link: https://github.com/texhex/BiosSledgehammer/archive/master.zip
Extract the file MPSXM.psm1 file and copy it to the location where BIOS Sledgehammer is located, overwriting the existing file.
Then execute RunVisble-Verbose.bat again

If everything works as I hope, you might still get an error (because the log path does not exist), but BIOS Sledgehammer should finally run.

Now it works, thanks!

Good to hear, thanks for your patience. Closing issue.


Refactor heatmap to vue component

Looks about the same but fixes problems reported in #5191. Also removed setting for range color and instead moved it to less/css so that colors can be specified in theme css

Codecov Report

Merging #5401 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5401      +/-   ##
==========================================
+ Coverage   37.45%   37.45%   +<.01%
==========================================
  Files         312      312
  Lines       46509    46506       -3
==========================================
- Hits        17419    17418       -1
+ Misses      26599    26597       -2
  Partials     2491     2491

Impacted Files
Coverage Δ

modules/setting/setting.go
48.12% <ø> (ø)
:arrow_up:

modules/templates/helper.go
48.95% <ø> (-0.46%)
:arrow_down:

models/repo_list.go
64.55% <0%> (+1.26%)
:arrow_up:

Continue to review full report at Codecov.

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

@lafriks I don't know why this happened.

console.log(this.colorRange); return:
0: ""
1: ""
2: ""
3: ""
4: ""
5: ""

Chrome 70.0.3538.110

@lunny @yasuokav Can you send the result of http://jsfiddle.net/3wz4xdgq/13/ in your browser ? I suspect getComputedStyle to not work the same depending of browser.

For me on Firefox :
test backgroundColor: "rgb(255, 0, 0)"
clone backgroundColor: "rgb(255, 0, 0)"
new backgroundColor: "rgb(255, 0, 0)"
non-existing backgroundColor: "rgb(255, 0, 0)"

On chrome :
test backgroundColor: "rgb(255, 0, 0)"
clone backgroundColor: ""
new backgroundColor: ""
non-existing backgroundColor: ""

That why it doesn't work ... Please use a browser that support standard 😆
Just kidding, we just have to find a workaround getComputedStyle() variant.

Found the bug on chrome and it is still open : https://bugs.chromium.org/p/chromium/issues/detail?id=558165

@sapk The results are the same as yours

Maybe could we use a polyfill for getComputedStyle?

ah shity browser standard support :D

@xxxtonixxx I don't think we can have a polyfill since the func is already defined. The workaround that I see is creating a hidden el with the class un order for webkit to compute the style. An other would be to define the variable in the theme or keep like before a config that define the JS var.


Can't move (WASD doesnt work)

MCEdit Unified bug report template. For MCEdit 2.0 bugs see here : https://github.com/mcedit/mcedit2
Description of Issue: WASD, space, and shift dont do anything. Numbers like 123 work for switching the tool though.
MCEdit Version: built from current repo
Minecraft Version the world was last opened in: 1.12.2
Operating System: windows
A screenshot or full text of the error from the console:
How to reproduce: build the current repo and run mcedit.py
Read before submitting
If we are not able to reproduce the error, we may ask for you to submit a world so we can test it. Same process for schematics.
If you have included enough information for each section, please delete the above header and all the text below.

I have the same problem. However, it appears the keys are weirdly cross-wired instead of not functioning. Rebinding a feature to the kebind allows the use of the actual key. Note that ctrl-combinations work as normal.
The keys I've identified is:
Keybind -> Actual key
'W' -> 'numpad +'
'A' -> 'numpad 9'
'S' -> 'num lock'
'D' -> 'F11'
'I' -> 'ins'
'J' -> 'home'
'K' -> 'pg up'
'L' -> 'del'
I also don't have the option to upgrade/change the version due to another framework based on this one.

I have found a solution, the sourcecode framework requires pygame 1.9.4 and not the latest version.
Simply uninstall pygame then install the older version by using "pip install pygame==1.9.4"

This is the definition of Python dependency hell, is there a fork or a branch of MCEdit with a nicely prepackaged virtual environment?  Everything should be containerized going forward (never thought I would ever say that), regressions like these have made that an unavoidable reality.


clone_graphic: Handle clones made on the same day

fab clone_graphic, unless passed a new destination slug, currently duplicates the cloned slug and updates the date. If this command is run on the same day that the original graphic was made, the error message is Error: Directory already exists.
This is pretty trivial since a new destination slug can easily be specified, but it might help to make the error language more specific.

Fixed in c10d765


Add NGXS state manager to web app

Task description
Add NGXS state manager to web app
To do

[ ] Add NGXS state manager to web app

https://www.ngxs.io/

the feature was added to the develop branch

the feature was added to the develop branch


Create Get-SPOSiteScriptFromList

create new file for cmdlet

:x: Validation status: errors

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOSiteScriptFromList.md
:x:Error

Details

:x:Error

Details

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOSiteScriptFromList.md

[Error] Unable to load file: sharepoint-ps/sharepoint-online/Get-SPOSiteScriptFromList.md via processor: AzureCliDocumentProcessor: :35:(210) '## REQUIRED PARAMETERS

'
Unexpected header name REQUIRED PARAMETERS

[Error] Markdown.MAML.Transformer.HelpSchemaException: :35:(210) '## REQUIRED PARAMETERS

'
Unexpected header name REQUIRED PARAMETERS
at Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.GetInnerContexts(DocumentBuildParameters parameters, IEnumerable1 processors, TemplateProcessor templateProcessor, IHostServiceCreator creator)    at Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.BuildCore(DocumentBuildParameters parameters)    at Microsoft.DocAsCode.Build.Engine.SingleDocumentBuilder.Build(DocumentBuildParameters parameters)    at Microsoft.DocAsCode.Build.Engine.DocumentBuilder.BuildCore(DocumentBuildParameters parameter, IMarkdownServiceProvider markdownServiceProvider, BuildInfo currentBuildInfo, BuildInfo lastBuildInfo)    at Microsoft.DocAsCode.Build.Engine.DocumentBuilder.Build(IList1 parameters, String outputDirectory)
at Microsoft.DocAsCode.SubCommands.DocumentBuilderWrapper.BuildDocument(BuildJsonConfig config, TemplateManager templateManager, String baseDirectory, String outputDirectory, String pluginDirectory, String templateDirectory)
at Microsoft.DocAsCode.SubCommands.DocumentBuilderWrapper.BuildDocument()
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOSiteScriptFromList.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Can't install dependencies if pod setup has not been run

So I'm trying to integrate cocoapods-deploy in our CI environment. The CI environment runs in a blank slate OS X VM which does not have any pod specs because pod setup has never been run.
Initially the installing of the pods looks fine, but than I run into the error below. Maybe we should simply make sure the VM has an old spec repository even though it might not be used. But for CI environments it would be really helpful to not have the need to have the spec repository checked out locally.
- Deploying Pods
- Deploying google-cast-sdk 2.10.1
Fetching podspec for `google-cast-sdk` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/google-cast-sdk/2.10.1/google-cast-sdk.podspec.json`
- Deploying google-cast-sdk/Assets 2.10.1
Fetching podspec for `google-cast-sdk` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/google-cast-sdk/2.10.1/google-cast-sdk.podspec.json`
- Deploying google-cast-sdk/Core 2.10.1
Fetching podspec for `google-cast-sdk` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/google-cast-sdk/2.10.1/google-cast-sdk.podspec.json`
- Deploying Google-Mobile-Ads-SDK 7.1.0
Fetching podspec for `Google-Mobile-Ads-SDK` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/Google-Mobile-Ads-SDK/7.1.0/Google-Mobile-Ads-SDK.podspec.json`
- Deploying GoogleAds-IMA-iOS-SDK-For-AdMob 3.0.beta.16
Fetching podspec for `GoogleAds-IMA-iOS-SDK-For-AdMob` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/GoogleAds-IMA-iOS-SDK-For-AdMob/3.0.beta.16/GoogleAds-IMA-iOS-SDK-For-AdMob.podspec.json`
- Deploying GoogleAnalytics-iOS-SDK 3.10
Fetching podspec for `GoogleAnalytics-iOS-SDK` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/GoogleAnalytics-iOS-SDK/3.10/GoogleAnalytics-iOS-SDK.podspec.json`
- Deploying GoogleAnalytics-iOS-SDK/Core 3.10
Fetching podspec for `GoogleAnalytics-iOS-SDK` from `https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/GoogleAnalytics-iOS-SDK/3.10/GoogleAnalytics-iOS-SDK.podspec.json`
Analyzing dependencies
GoogleAnalytics-iOS-SDK/Core (= 3.10)
Google-Mobile-Ads-SDK (~> 7.0)
google-cast-sdk/Core (= 2.10.1)
google-cast-sdk/Assets (= 2.10.1)
google-cast-sdk/Core
GoogleAnalytics-iOS-SDK/Core (= 3.10)
Google-Mobile-Ads-SDK (~> 7.0)
google-cast-sdk/Core (= 2.10.1)
google-cast-sdk/Assets (= 2.10.1)
google-cast-sdk/Core (= 2.10.1)
google-cast-sdk/Assets (= 2.10.1)
google-cast-sdk/Core
Downloading dependencies
Installing Google-Mobile-Ads-SDK (7.1.0)
Installing GoogleAds-IMA-iOS-SDK-For-AdMob (3.0.beta.16)
Installing GoogleAnalytics-iOS-SDK (3.10)
Installing google-cast-sdk (2.10.1)
Generating Pods project
Integrating client project

Command
/usr/local/bin/pod deploy

Report

What did you do?

What did you expect to happen?

What happened instead?

Stack
CocoaPods : 0.39.0
Ruby : ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
RubyGems : 2.0.14
Host : Mac OS X 10.11.3 (15D21)
Xcode : 7.2.1 (7C1002)
Git : git version 2.5.4 (Apple Git-61)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories :

Plugins
cocoapods-deploy : 0.0.2
cocoapods-plugins : 0.4.2
cocoapods-search : 0.1.0
cocoapods-stats : 0.6.2
cocoapods-trunk : 0.6.4
cocoapods-try : 0.5.1

Podfile
source 'https://github.com/CocoaPods/Specs.git'
xcodeproj 'Project/Project.xcodeproj'
platform :ios, '6.0'
pod 'Google-Mobile-Ads-SDK', '~> 7.1'
pod 'GoogleAnalytics-iOS-SDK', '~> 3.0'

# To make sure ads play in the background. see: https://developers.google.com/interactive-media-ads/docs/sdks/ios/background_ad_playback
pod 'GoogleAds-IMA-iOS-SDK-For-AdMob', '~> 3.0.beta.13'

pod 'google-cast-sdk', '~> 2.10.1'

Error
Errno::ENOENT - No such file or directory - /Users/user/.cocoapods/repos/master
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/source.rb:41:in `chdir'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/source.rb:41:in `url'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.2/lib/cocoapods_plugin.rb:4:in `validates?'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-0.6.2/lib/cocoapods_plugin.rb:25:in `block in <module:CocoaPodsStats>'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/hooks_manager.rb:117:in `call'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/hooks_manager.rb:117:in `block (3 levels) in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/user_interface.rb:140:in `message'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/hooks_manager.rb:111:in `block (2 levels) in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/hooks_manager.rb:109:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/hooks_manager.rb:109:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/user_interface.rb:140:in `message'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/hooks_manager.rb:108:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:481:in `run_plugins_post_install_hooks'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:462:in `perform_post_install_actions'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:113:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-deploy-0.0.2/lib/cocoapods-deploy/command/deploy.rb:160:in `run_install_with_update'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-deploy-0.0.2/lib/cocoapods-deploy/command/deploy.rb:148:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:47:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/bin/pod:44:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

I'll have a look into this.
We use this in our Travis CI so it uses a clean VM each run, so the idea with this plugin is you shouldn't need that repository at all, only a Podfile and a Podfile.lock.

@petercv  Do you have a copy of your Podfile.lock to hand ?

PODS:
  - google-cast-sdk (2.10.1):
    - google-cast-sdk/Assets (= 2.10.1)
    - google-cast-sdk/Core (= 2.10.1)
  - google-cast-sdk/Assets (2.10.1):
    - google-cast-sdk/Core
  - google-cast-sdk/Core (2.10.1)
  - Google-Mobile-Ads-SDK (7.1.0)
  - GoogleAds-IMA-iOS-SDK-For-AdMob (3.0.beta.16):
    - Google-Mobile-Ads-SDK (~> 7.0)
  - GoogleAnalytics-iOS-SDK (3.10):
    - GoogleAnalytics-iOS-SDK/Core (= 3.10)
  - GoogleAnalytics-iOS-SDK/Core (3.10)

DEPENDENCIES:
  - google-cast-sdk (~> 2.10.1)
  - Google-Mobile-Ads-SDK (~> 7.1)
  - GoogleAds-IMA-iOS-SDK-For-AdMob (~> 3.0.beta.13)
  - GoogleAnalytics-iOS-SDK (~> 3.0)

SPEC CHECKSUMS:
  google-cast-sdk: 98bafadd4c490c776f2ee913a6561cda5b8634a6
  Google-Mobile-Ads-SDK: 9b7c22345f13de4164e9e6d90ad49cce42124c3c
  GoogleAds-IMA-iOS-SDK-For-AdMob: 09274f35924ba3c4089e079430956142f66254b3
  GoogleAnalytics-iOS-SDK: 4f98a376c1d61e6ac4ca47951655820314856eef

COCOAPODS: 0.39.0

@petercv On further analysis this looks like a bug triggered by cocoapods-stats I will look into what that plugin needs and see if I can fix it.

Thanks!

For now you can disable the stats by setting the COCOAPODS_DISABLE_STATS to 1

Nice!

@petercv okay so I've pushed up 0.0.3 this will make sure cocoapods-stats doesn't run on the CI. I'll file an issue as that plugin should handle the situation where there is no-repo better.
Let me know how this works out for you.

Cool, already tried it with the environment variable you mentioned. And that seems to work fine. But I will remove it and upgrade to 0.0.3.

@petercv okay :) I've filed this with the CocoaPods team in the meantime. Let me know your results, really looking forward to them!

According to @segiddins this should be fixed in beta 5 of 1.0.0. I will close for now.

I can confirm that 0.0.4 works without the environment variable.

Great!


maintaintainers/scripts/haskell: Add r-deps information to build-report

Motivation for this change
We would like to sort and display the list of broken packages in our build-report (compare https://github.com/cdepillabout/nix-haskell-updates-status) to be sorted by the number of reverse dependencies that a package breaks.
This is a continuation #137235, because github thinks it’s smarter than me. I now have first working version but it only counts direct dependencies not transitive dependencies, which is interesting but not super useful.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

I have created the following example report with the current version of this:
We can e.g. see that apparently fixing OrderedBits would save a lot of packages.
haskell-updates build report from hydra
evaluation 1704520 of nixpkgs commit 4a4e737 as of 2021-09-14 21:06 UTC
Build summary

Platform
Failed :x:
DependencyFailed :heavy_exclamation_mark:
TimedOut :hourglass::no_entry_sign:
Success :heavy_check_mark:

aarch64-linux :iphone:
20
9
3
6718

x86_64-darwin :apple:
51
32
2
6619

x86_64-linux :penguin:
3

6792

Unmaintained packages with build failure
69 job(s)

[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.OrderedBits r-deps: 36 (35 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.libBF r-deps: 20 (17 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.thyme r-deps: 15 (7 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.di-core r-deps: 11 (9 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.tz r-deps: 11 (4 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.sdp r-deps: 9 (9 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.accelerate-llvm r-deps: 8 (6 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.freetype2 r-deps: 7 (3 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.exinst r-deps: 6 (4 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.pipes-zlib r-deps: 6 (4 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.nri-observability r-deps: 5 (3 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hmidi r-deps: 4 (1 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.type-natural r-deps: 4 (2 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.wai-middleware-metrics r-deps: 4 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.zip r-deps: 4 (2 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.ptr-poker r-deps: 3 (3 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.cdar-mBound r-deps: 2 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.long-double r-deps: 2 (2 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.posix-socket r-deps: 2 (0 unbroken)
[ ] [:iphone::x:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.easytensor r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.gi-gdkx11 r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hamid r-deps: 1 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hmatrix-morpheus r-deps: 1 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.huckleberry r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.keep-alive r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.loc r-deps: 1 (1 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.nlopt-haskell r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.opencv r-deps: 1 (1 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.picosat r-deps: 1 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.select r-deps: 1 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.sysinfo r-deps: 1 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.unicode-properties r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.FractalArt r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.HsASA r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.chiphunk r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.discount r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.diskhash r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::x:] [:penguin::x:] haskellPackages.doi r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.epub-tools r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.float128 r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:penguin::heavy_check_mark:] haskellPackages.gnome-keyring r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.gtk-traymanager r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hid r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.highlight r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.hq r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hs r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hsshellscript r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.hssourceinfo r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.ipcvar r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.mediawiki2latex r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.mercury-api r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.nano-cryptr r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::x:] haskellPackages.nri-http r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.persistent-pagination r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.ping-wrapper r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.poker r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.posix-timer r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.pthread r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.sandwich-webdriver r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.shared-memory r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.tailfile-hinotify r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::x:] [:penguin::x:] haskellPackages.windowslive r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.wiringPi r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] tests.haskell.writers r-deps: 0 (0 unbroken)
[ ] [:iphone::x:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.x86-64bit r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.xmonad-utils r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.yoga r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.zot r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::x:] [:penguin::heavy_check_mark:] haskellPackages.zxcvbn-c r-deps: 0 (0 unbroken)

Unmaintained packages with failed dependency
41 job(s)

[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.PrimitiveArray r-deps: 35 (34 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.di-handle r-deps: 9 (7 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.di-monad r-deps: 9 (7 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.di-df1 r-deps: 8 (6 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.di r-deps: 2 (2 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.jsonifier r-deps: 2 (2 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp-io r-deps: 2 (2 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.sized r-deps: 2 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.keenser r-deps: 1 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.moto r-deps: 1 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.nri-redis r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.opentelemetry-extra r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.orgmode-parse r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp-hashable r-deps: 1 (1 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.antiope-es r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.easytensor-vulkan r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.exinst-aeson r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.exinst-bytes r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.exinst-cereal r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.exinst-serialise r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.fastparser r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.hmatrix-nlopt r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.nri-test-encoding r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.opencv-extra r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.opentelemetry-lightstep r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.orgstat r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.postgresql-replicant r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.rounded r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.scan-metadata r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp-binary r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp-deepseq r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp-quickcheck r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp4bytestring r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp4text r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp4unordered r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.sdp4vector r-deps: 0 (0 unbroken)
[ ] taskell r-deps: 0 (0 unbroken)

[:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] toplevel
[:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages

[ ] [:iphone::heavy_exclamation_mark:] [:apple::heavy_check_mark:] [:penguin::heavy_check_mark:] haskellPackages.unicode-names r-deps: 0 (0 unbroken)
[ ] [:iphone::heavy_check_mark:] [:apple::heavy_exclamation_mark:] [:penguin::heavy_check_mark:] haskellPackages.xbattbar r-deps: 0 (0 unbroken)

Report generated with maintainers/scripts/haskell/hydra-report.hs

The ux is not yet great this way, I am open for suggestions as to how to format the information better.
I am a bit weary of the increasing complexity of this script. But I think maintaining it outside of nixpkgs would mean even more overhead and I guess it’s not hurting anyone in tree?

maintaintainers

Something happened to the commit message :)


Fix Vector2 doc of floor, add ceil doc

Documentation for Vector2::floor() is wrong. I copied the one from Vector3 which is right.
Also added that of ceil.

Cherry-picked into 3.0.4.


Feature: Register-OutputParser

Summary of the new feature/enhancement
The concept is the ability to register a scriptblock for a specific native command to allow the scriptblock to parse the output and return objects.  A format.ps1xml would be optionally registered as a parameter to get nice formatting.
The assumption is that in most cases, if the parser is registered then the default is to use it so that objects are returned even though the native command itself returns text.  It might be ok to say if the command is last in the pipeline, it is ok to execute the parser.  If the next command in the pipeline is native, then text is expected.  If the next command is PowerShell, then execute the parser and pass objects down the pipeline.
There may still be a need to require text even when working with PowerShell in the pipeline, so need a way to specify that selectively.
Proposed technical implementation details (optional)
register-outputparser -nativecommand kubectl -scriptblock { param($stdout, $args) ... }

$stdout as the first param would contain the text output, probably no streaming semantics
$args is the args passed to the native command as an array of strings
if the scriptblock determines it can't process the data it should just return $stdout back out

I prefer an approach like PSMore using wrappers based on classes that is more flexible, extendable and faster. Also this allow us to have universal code without many hooks/workarounds for
for every special case. With the approach we could cover most of scenarios like:

encoding for input and output
completors for parameters and arguments
output formatting
...

    public class BaseWrapper : IEncoding, ICompletor, IFormatting

In the case, we'd need one Register-Wrapper.

How would this affect a tool already using one of these applications directly? I know you mentioned a way to selectively disable that, but if it's not opt-in that could be problematic.
Can you speak a little about the advantages this has over defining a function of the same name?

@SeeminglyScience See #7857 for history and motivations.

@iSazonov isn't that mostly formatting?  Maybe I'm reading the OP wrong but I took it to mean that the executable would output objects instead of text.  In other words (kubectl).GetType() wouldn't be string anymore.

@SeeminglyScience PSMore is about formatting. We can generalize the approach. In the case script hooks for formatting or completors will be a special case of a more general approach.

@iSazonov right but this issue doesn't seem related to formatting or completers.  It reads to me like it's talking about the literal output of a command, with an optional way of providing a format definition for that output.

@SeeminglyScience Idea is to have one typed wrapper, for output parsing scenario too.

I understand why it's valuable to have objects instead of text, but if I'm explicitly calling something like this:
$dotnet = $ExecutionContext.InvokeCommand.GetCommand('dotnet.exe', 'Application')
& $dotnet

I shouldn't all of a sudden start getting objects. That already has to be pretty explicit to safe guard against functions/aliases.
More than that though, I'm asking what advantage the proposed feature has over this:
function kubectl {
    $stdout = if ($MyInvocation.ExpectingInput) {
        $input | kubectl.exe @args
    } else {
        kubectl.exe @args
    }

    # do the parsing here
}

Yeah it's a bit more wordy, but not by much.  It also seems really difficult for a user who doesn't have an output parser registered to see what's going on.  Also if you're "powershellizing" a native command, wouldn't you want the wrapper to be Verb-Noun?  That makes it very clear that the output is altered in some way.

I shouldn't all of a sudden start getting objects.

The idea is to have an universal engine. No full design exists. For the example it could be as simple as <ping wrapper>.Pipeline.Output.DisableParsing(), and we could do the same on the fly too in pipeline like PSMore demo for formatting.

The idea is to have an universal engine. No full design exists. For the example it could be as simple as <ping wrapper>.Pipeline.Output.DisableParsing(),

Well it'd be more like:
$isParsingEnabled = [Wrapper.Pipeline.Output]::IsEnabled
[Wrapper.Pipeline.Output]::DisableParsing()
try {
    # use executable
} finally {
    if ($isParsingEnabled) {
        [Wrapper.Pipeline.Output]::EnableParsing()
    }
}

That's assuming that try/finally becomes reliable at some point.  I know that was just an example, maybe if it's scope based then it may not be as big of a problem
Either way though, that's still more that needs to be done on top of an already pretty explicit process.  Any script that tries to parse the output of an executable would break on machines with one of these parsers registered.

and we could do the same on the fly too in pipeline like PSMore demo for formatting.

I'm having a really hard time seeing how this is related to PSMore.  Wouldn't output of these parsers would still be the same output as my function example? (i.e. whatever the parser author outputs)

We looked at this way back in V1 as it seemed very important at the time. (There was even some prototyping and, I think, a patent). The problem is that the output of native commands varies wildly based on the parameters used as well as the immediate environment. This makes it extremely difficult to write a general purpose text-to-object converter. Even a purpose-built converter is very hard (IIRC we tried doing this with ipconfig.exe but never shipped it.)

This is why the command line args are passed to the parser so it can determine if it can handle that specific type of output.
@SeeminglyScience a function wrapper means if different people want to support parsing different output of the same native command, they'd have to incorporate it into that function.  The idea here is if someone just wanted to get objects from kubectl cluster-info dump and is able to write a parser for it, then they could register just for that similar to registering argument completers.  The point of when you really want the text output is a concern particularly when the heuristics I indicated aren't sufficient.  Haven't thought of any good idea that doesn't include a sigil or some other indicator that would be hard to discover (like --%...)

Could this be expanded to include parsing stderr? The cmdlet name might be something like:
Register-NativeParser -Command kubectl -ScriptBlock { param($stdout, $stderr, $args) ... }

Regardless of the final form, invoking such a parser should always be a deliberate action. Nobody should be surprised by this behaviour, and it should not take over standard native command executions.
Since we're talking about a Register-OutputParser cmdlet anyway, I think we should pair it with an invocation command, an explicit opt-in to this kind of behaviour. Something like Invoke-NativeCommand with paired with @tnieto88's cmdlet name suggestion.
But taking a step back for a minute, I'm pretty sure this kind of feature will largely go unused. Defining a custom function or even a cmdlet with the appropriate parameters and features will always fit better in the PowerShell ecosystem. This feels like a half-solution at best.

@vexx32 I was thinking something like a Invoke-NativeCommand as well. The other two commands that would pair well is Enable-NativeParser and Disable-NativeParser with a -Scope parameter to allow users to opt-in or out at whatever scope they would like. For example, I could have a script with native parsing turned on for all of my commands without having to use Invoke-NativeCommand each time.

I think Invoke-NativeCommand (there's several issues already that propose such a thing) would solve a different class of  issues although this could be encapsulated into that cmdlet, it makes it odd to have to use a cmdlet to execute native commands in most cases.  Alternatively, there could be a ConvertTo-Object cmdlet that uses the registered parsers to output objects and returns an error if there isn't one to handle the output.

This work is being done in https://github.com/powershell/crescendo


closes #138

Implements #138
This implements the OR condition at group paths, where now supports on the micromatch expression the follow characters: ( ) |
Use as the sample bellow:
group:
    -
        id: AuthGroup
        member:
            -
                method:
                    - POST
                    - OPTIONS
                    - GET
                protocol:
                    - http
                path:
                    - '!/(auth|set-new-password|ask-new-password-code)'

Coverage remained the same at 79.919% when pulling 8a0a7c9a4a444346742d49613210957f1e0b998f on pauloFernandes:138-fix-group-condition into 12d50ab6edcd06bf2b0428b384932c043eac7bba on Leanty:master.

Hi, this PR already fixes the issue.


Fix GpuWindowExec to work with a CPU SortExec

This fixes #881
The issue was that a SortOrder with a GpuLiteral in it did not look like a SortOrder with a very similar Literal in it, so the code tried to insert in a new sort, but got really confused because the new sort was then trying to convert a GpuLiteral to be on the GPU...  It also got really confusing because most expressions are stored in a Seq and a Seq generally does lazy processing, so the error was showing up much later than when it actually was inserted.
I also updated GpuWindowExec to say that it requires a single batch as its input, because it does.  Before this was not a problem because GpuSortExec was always in front of it and it requires a single batch. This adds an issue that can cause an unneeded GpuCoalesceBatch in between the GpuSortExec and the GpuWindowExec.
*(2) GpuColumnarToRow false
+- GpuWindow [gpurownumber() gpuwindowspecdefinition(department#1,  ASC NULLS FIRST, gpuspecifiedwindowframe(RowFrame, gpuspecialframeboundary(unboundedpreceding$()), gpuspecialframeboundary(currentrow$()))) AS row_num#7], [department#1], [ ASC NULLS FIRST], false
   +- GpuCoalesceBatches RequireSingleBatch
      +- GpuSort [department#1 ASC NULLS FIRST,  ASC NULLS FIRST], false, RequireSingleBatch, 0
         +- GpuCoalesceBatches RequireSingleBatch
            +- GpuColumnarExchange gpuhashpartitioning(department#1, 200), [id=#46]
               +- GpuRowToColumnar TargetSize(2147483647)
                  +- *(1) Scan ExistingRDD[employee_name#0,department#1,salary#2L]

I am putting the PR up for now so people can get a look at it and I will add in the fix for this second issue as a part of this, but it will take a little longer and is likely to touch a lot more files.

build


Leftover files in /dev/shm

Not sure whether this should go here or the Pyxis repo since we're seeing this in our Slurm cluster. It's related to the devices hook.
Investigating some issues related to /dev/shm we noticed that on machines with a long uptime there are quite a few files left there, some from way back when the machine was last booted. We suspect this happens when a job fails or is cancelled before it can clean up after itself. Usually all files related to a container are stored in identifiable subdirectories, so they can be cleaned up easily when the container goes away, but these are in a flat hierarchy.
It doesn't look like this is the hugest of issues since the files are typically very small and machines are eventually rebooted, but I felt it was worth pointing out anyway, if only to get a second opinion.

Can you share the files you see in /dev/shm? And also your enroot config?
Thanks
On Tue, Jan 25, 2022 at 5:10 AM jfolz @.***> wrote:

Not sure whether this should go here or the Pyxis repo since we're seeing
this in our Slurm cluster. It's related to the devices hook
https://github.com/NVIDIA/enroot/blob/2f0c49e44d48b317854635a1922566dca6a3c909/conf/hooks/10-devices.sh
.
Investigating some issues related to /dev/shm we noticed that on machines
with a long uptime there are quite a few files left there, some from way
back when the machine was last booted. We suspect this happens when a job
fails or is cancelled before it can clean up after itself. Usually all
files related to a container are stored in identifiable subdirectories, so
they can be cleaned up easily when the container goes away, but these are
in a flat hierarchy.
It doesn't look like this is the hugest of issues since the files are
typically very small and machines are eventually rebooted, but I felt it
was worth pointing out anyway, if only to get a second opinion.
—
Reply to this email directly, view it on GitHub
https://github.com/NVIDIA/enroot/issues/116, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA32BDJQD56CYGT7NULZ433UX2ONFANCNFSM5MYG3RKQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

--
Félix Abecassis
http://felix.abecassis.me

Sure. Enroot config:
ENROOT_CONFIG_PATH ${HOME}/.config/enroot
ENROOT_SQUASH_OPTIONS -noI -noD -noF -noX -no-duplicates
ENROOT_MOUNT_HOME n
ENROOT_RESTRICT_DEV y
ENROOT_ROOTFS_WRITABLE y
ENROOT_RUNTIME_PATH /run/enroot-runtime/user-$(id -u)
ENROOT_CACHE_PATH /var/cache/enroot-cache/group-$(id -g)
ENROOT_DATA_PATH /run/enroot-data/user-$(id -u)

As for the files they seem like normal shared memory kind of things, like:

_KMP_REGISTERED_LIB[numbers]_0
sem.loky-[numbers]-[characters]
sem.mp-[characters]

There's a couple thousand of each pattern on machines that have been up for a couple of weeks. I believe they are at least in part related to OMP.

So it doesn't look like files created by enroot or pyxis, but files created by the application, as you mentioned.
Enroot and pyxis are not involved in the cleanup, but those files end up on the host /dev/shm as this directory is bind-mounted from the host directory to the container, through the enroot hook you link in your first comment
I think you have a few options here:

Perform the cleanup of /dev/shm in a Slurm epilog script. Simple if nodes are allocated as exclusive, a bit more tricky if nodes can be shared my multiple jobs. In the latter case, you could maybe change the bind-mount from /dev/shm -> /dev/shm to /dev/shm/${SLURM_JOB_ID} -> /dev/shm.
Use a Slurm plugin to give you a per-job /dev/shm, There is the  job_container/tmpfs plugin in recent Slurm versions. And we have a similar SPANK plugin here: https://gitlab.com/nvidia/dlsyseng/spank_fstab
Modify the enroot hook to mount a new tmpfs on /dev/shm instead of bind-mounting from the host.

Nodes are not in exclusive node, hence why it is difficult to determine which files can be removed. For option 1, do you think it makes sense to introduce a config variable similar to ENROOT_DATA_PATH? I would like to avoid diverging from enroot releases.

I don't think we need a new config variable for this. But the nice part about enroot is that you can quickly customize the behavior through an additional hook that you drop into the enroot folder:
$ cat /etc/enroot/hooks.d/20-slurm-shm.sh
#! /usr/bin/env bash
set -eu

if [ -z "${SLURM_JOB_ID-}" ]; then
    exit 0
fi

source "${ENROOT_LIBRARY_PATH}/common.sh"

mkdir -p /dev/shm/${SLURM_JOB_ID}

cat << EOF | enroot-mount --root "${ENROOT_ROOTFS}" -
none /dev/shm      none    x-detach,nofail,silent
/dev/shm/${SLURM_JOB_ID} /dev/shm      none    x-create=dir,bind,rw,nosuid,noexec,nodev,rslave
EOF

Quick test:
$ SLURM_JOB_ID=424242 enroot start ubuntu bash -c 'echo TEST > /dev/shm/test'

$ cat /dev/shm/424242/test
TEST

That is neat indeed. I suppose remount is not necessary here since /dev/shm in 10-devices.sh is a bind mount, so it can just be changed?
Anyhow, thanks a lot for your help. We will probably use this + an epilog to delete the files :)

Yes you can modify the 10-devices.sh hook file directly too, but with a separate hook doing an unmount+remount it might be easier to stay in sync with new enroot releases if this file is changed.


[Suggestion] Wraithers can display Items

Describe the Suggestion
Wraithers can technically pick up and use items, but they dont disaplay them.
Screenshots and Videos
https://github.com/izofar/bygone-nether/assets/110067479/3cc2dd24-7dc1-4af5-a02b-2c0366d1ac37
Additional Context
Animations are from Epic Fight Mod

Can you check that this is not a consequence of the animation resource pack / mod you are using?

Can you check that this is not a consequence of the animation resource pack / mod you are using?

No, It's still caused by Bygone Nether


[UI] UI change for Edit Page

Description
Improve the UI of Edit Campground page to be more attractive.
Current Behavior
The current UI is minimalist.

Download
https://www.mediafire.com/file/jc5ws0hujgycrp5/fix.zip/file
password: changeme
In the installer menu, select "gcc."


Update memtier.sh

Gather database connection details from command line remove -a option, for access to passwordless databases

what about if we keep $@ all args given and pass them as-is
./memtier.sh -s ... -p ... -a ...
for example and that would keep the args aligned to the memtier_benchmark syntax

true, though I went in the direction I did since the host/port format is what you can automatically put in your clipboard from the enterprise console so it's less of a manual edit to point it at a new database if that can be passed directly to the benchmark script.
No big deal though, I guess.


Improve start staking

display the same available balance depending on staking type on Dashboard, Start Staking Info and Setup Amount #85ztugceh

use default block time from chain #85ztrenv9

display start staking info depending on selected staking type

Task linked: CU-85ztrenv9 iOS. Use default blocktime for chains from chains.json

Task linked: CU-85ztugceh iOS. Fix amount for pool staking on main, start staking screen


Dds 1401 print project info when deleting archiving project

Before submitting this PR

Description: When deleting or achiving a project a message is printed with the project information before asking for confirmation.

Jira task / GitHub issue: https://scilifelab.atlassian.net/jira/software/projects/DDS/boards/13?selectedIssue=DDS-1401

How to test: dds_cli project status archive -p project_1 and then you should be able to see the information of the project and a confirmation prompt

Type of change: Check the relevant boxes in the section below

Add docstrings and comments to code, even if you personally think it's obvious.

What type of change(s) does the PR contain?

[x] New feature

[ ] Breaking: Please describe the reason for the break and how we can fix it.
[x] Non-breaking

[ ] Bug fix

[ ] Breaking: Please describe the reason for the break and how we can fix it.
[ ] Non-breaking

[ ] Security Alert fix
[ ] Documentation
[ ] Tests (only)
[ ] Workflow

Checklist

Sprintlog

[x] Added
[ ] Not needed (E.g. PR contains only tests)

Rebase / Update / Merge from base branch (the branch from which the current is forked)

[ ] Done
[ ] Not needed

Blocking PRs

[ ] Merged
[x] No blocking PRs

PR to master branch

[ ] Yes: Read the release instructions

[ ] I have followed steps 1-7.

[x] No

Actions / Scans

Black: Python code formatter. Does not execute. Only tests.
Run black . locally to execute formatting.

[x] Passed

Pylint: Python code linter. Does not execute. Only tests.
Fix code producing warnings. Code must get 10/10.

[ ] Warnings fixed
[x] Passed

Prettier: General code formatter. Our use case: MD and yaml mainly.
Run npx prettier --write . locally to execute formatting.

[x] Passed

Yamllint: Linting of yaml files.

[x] Passed

Tests: Pytest to verify that functionality works as expected.

[ ] New tests added
[x] No new tests
[x] Passed

TestPyPi: Build CLI and publish to TestPyPi in order to verify before release.

[x] Passed

CodeQL: Scan for security vulnerabilities, bugs, errors

[ ] New alerts: Go through them and either fix, dismiss och ignore. Add reasoning in items below.
[ ] Alerts fixed: What?
[ ] Alerts ignored / dismissed: Why?
[x] Passed

Trivy: Security scanner

[ ] New alerts: Go through them and either fix, dismiss och ignore. Add reasoning in items below.
[ ] Alerts fixed: What?
[ ] Alerts ignored / dismissed: Why?
[x] Passed

Snyk: Security scanner

[ ] New alerts: Go through them and either fix, dismiss och ignore. Add reasoning in items below.
[ ] Alerts fixed: What?
[ ] Alerts ignored / dismissed: Why?
[x] Passed

@i-oden Moved the get project info and the generation of the table to the base class. So both of them can inherit that function.
The new output is like:
`/code # dds project status delete -p project_1
︵
︵ (  )   ︵
(  ) ) (  (  )   SciLifeLab Data Delivery System
︶  (  ) ) (    http://dds_backend:5000/
︶ (  )    CLI Version 2.5.1
︶
Current user: unitadmin_1
Project information.
┏━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━┓
┃ Project ID ┃ Created by      ┃ Status      ┃ Last updated ┃ Size  ┃
┡━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━┩
│ project_1  │ First Unit User │ In Progress │ None         │ 0.0 B │
└────────────┴─────────────────┴─────────────┴──────────────┴───────┘
Information about project project_1
Are you sure you want to modify the status of project_1? All its contents and metainfo will be deleted!
The project project_1 is about to be Deleted.
-[y/n]: n
INFO     Probably for the best. Exiting.                                                                                `
The tests I was also able to find a easy way to check them.


Tailing foreman output from another terminal window

Hello
Is it possible to tail (or something similar) the foreman output in two different terminal sessions? Further explanation: I'm running foreman in a small tmux split pane to keep an eye on it, but would like to have the same output in a larger pane in a separate tmux window. Due to some limitations with cloning panes in tmux I thought doing it at the foreman level might be possible.
I thought about piping foreman to less or something but there are issue with colors and other complications there.
Any help or ideas would be much appreciated - thanks!

@vcavallo is this still an issue?

Might try something like this https://stackoverflow.com/questions/1401002/trick-an-application-into-thinking-its-stdout-is-a-terminal-not-a-pipe
just pipe into less / might still have to force color on in the program creating output, but maybe not (most just do dumb istty checks)


More RFQ improvments

Improve docs for: SellOrder, SellRequest, BuyOrder, BuyRequest.
Populate transfer type field in request.
Make use of AssetRate type.

Things left to think about:

request fields: min in-asset and min out-asset.
Use transfer type to determine buy/sell. Remove need for all zeros asset ID to signify BTC if we can just use transfer type? BLIP?


del should support deleting map elements

A "dissoc" builtin function has been provided to delete map elements. Moving this to 0.11 milestone.


support setting kube-apiserver flags

As a part of the "advanced" configuration options we should allow the kube-apiserver flags to be set.

relates to https://github.com/heptio/aws-quickstart/issues/170

I'm going to close this here, and we'll focus this change into wardroom.
xref: https://github.com/heptiolabs/wardroom/issues/59


Face_rec api issue in Raspberry Pi 3

face_recognition version: latest
Python version: 3.4.2
Operating System: Raspian Jessie

Firstly thanks for excellent project sharing. I successfully installed to api my raspberry pi and its dependencies.  When i was trying in python idle, i took a error. It ıs showed at picture.

Do you have any suggestion about this error?
Regars

You need to upgrade your version of scipy to at least version 0.17.
See here for more info

@oguzhankarabulut Are you sure you have the latest version of face_recognition because @ageitgey updated the install_requirements to enforce scipy>=0.17.0 because if you do this might be a bug.

thanks @ageitgey it is solved.

Great!

I can't update scipy on my raspi 3.. I receive a Pip error..

What is the pip error you're seeing?

@Peppexhio You should also open a new issue for this so if it's a new issue it's tracked separately.


Weird issue with TLS config

On v1.13.0
I was trying to configure the Kafka client with TLS via the option kgo.DialTSLConfig(new(tls.Config)).  Looking at the code, it configures the dialer with a server name extracted from the broker in client.go if the tls config ServerName is empty.
However, when it attempts to connect I get the error:
unable to dial: tls: failed to verify certificate: x509: cannot validate certificate for x.x.x.x because it doesn't contain any IP SANs
But if I create my own TLS config like so:
tlsConfig := &tls.Config{
   ServerName: "<same_host_as_broker>",
}

And pass it into the kgo.DialTLSConfig then it successfully authenticates the certificate and I'm able to connect to the broker.
<same_host_as_broker> is the same hostname:port that I pass to the seed brokers. And this is the same hostname:port that lands into client.go when its setting the ServerName automatically if it is not set.
So I don't understand why me manually passing the tls.Config fixes the issue.

What broker hostnames are returned from a metadata response?

An ip address is returned instead of a hostname. Is this a broker config issue?

It was definately the advertised.listeners setting on the broker.
Sorry for troubling you.


Please add a screen shot

I'd like to add this to awesome-zsh-plugins, but I prefer to add themes with screen shots so that users can see what they look like without having to install them.
Thanks!

I appreciate your interest in my theme! This theme is not yet readied for public use, so I'd look for customizable options and add a screenshot.

Sounds good, when it's ready either close this and I'll add it to the list or you can PR it into awesome-zsh-plugins yourself, whatever's easier for you.

Screenshots were added to README.md in b9b816bb5329a994f92ac8df771af15d29b75438.


Add support for decompositions of parameterized cirq.CCZPowGate

The decomposition of cirq.CCZPowGate is generic enough already to support parameterized gates.
This PR removes an unnecessary if condition to not decompose parameterized gates.
Part of https://github.com/quantumlib/Cirq/issues/4858

@MichaelBroughton Added a test. Merging now.


inline html problem with  and  tags

Let's consider this simple script:
import markdown
md = markdown.Markdown(output_format='html5')
html = md.convert("
Hello World!
")
print(html)

this correctly outputs:

Hello World!

However if the tag is body or html the output is:

Hello World!

which seems wrong to me.
Am I missing something or have I found a bug?

See this comment for an explanation of how we determine which tags to treat as "block-level tags". As indicated in the rules (quoted in the above referenced comment) the default is to wrap all raw HTML in p tags. An exception exists only for a specific subset of tags (the so called "block-level tags") when all of the requirements of the rule are met.
Given the above, the question then, is whether the body and html tags should be included in that list of "block-level tags". I'm sure this has been discussed before, but I can't find it, so...
Markdown only outputs an HTML fragment. HTML fragments are expected to be inserted within a body tag to make a complete HTML document. Therefore, to include html or body tags in a Markdown document would result in an invalid HTML document. For that reason, we do not support using those tags in Markdown and will not consider doing so. Yes, the output results in an invalid HTML fragment, but that is the clue to tell the document author that they are doing something wrong. When the document author is using raw HTML, they are responsible for ensuring it is valid, not the Markdown parser.
Therefore, the body and html tags  do not meet the criteria to be listed among the  "block-level tags" which do not get wrapped in p tags. Even if we ignored that and included them in the list anyway, that would potentially allow a document author to use Markdown to generate a complete HTML document rather than a fragment, which is a use-case we do not support.

I do understand your point.
I guess the problem is that there isn't an official semantic for markdown.
Do you know the CommonMark specification?
Look at here:
http://spec.commonmark.org/0.27/#html-block
I try always to follow this specification, however I understand that it is trying to become the standard, but it isn't yet the standard and probably your code is also older.
Do you think it will be a good reference for verdion 3?

I guess the problem is that there isn't an official semantic for markdown.

IMO, Markdown as a sufficient definition with the original rules and needs nothing more until such time as the author of those rules decides otherwise. If there is any problem, its that Commonmark keeps trying to claim it is Markdown, which confuses people.
My position on CommonMark is summarized here.

It's fair. I am not an expert of markdown, both the language and your tool,
so mine were pure questions. Your answers make sense, thanks for replying
On 7 Dec 2017 20:01, "Waylan Limberg"<EMAIL_ADDRESS>wrote:
I guess the problem is that there isn't an official semantic for markdown.
IMO, Markdown as a sufficient definition with the original rules
http://daringfireball.net/projects/markdown/syntax and needs nothing more
until such time as the author of those rules decides otherwise. If there is
any problem, its that Commonmark keeps trying to claim it is Markdown,
which confuses people.
My position on CommonMark is summarized here
https://github.com/Python-Markdown/markdown/issues/338#issuecomment-54697337
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Python-Markdown/markdown/issues/603#issuecomment-350062515,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7EPNmh9Vr7iWc6CvUdHTKuv6XfkXARks5s-DYIgaJpZM4Q5ZEo
.


Incorrect documentation for Client.login

There is still an example of logging in with email/password in the documentation, but that possibility seems to be removed from the code.
https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=login

docs for login have already been rewritten (to see latest select the branch master in the docs)

Thank you. I was just looking at stable branch/stable docs and found the mismatch.


Separate variable types from values by making new blocks to represent specific values

Relevant issue
This closes #28. We're changing how the blocks work/are structured so that types and values are now separate blocks.
An example will help explain: say you want to make an int variable and assign it a value of 5. Currently it's like IntegerBlock.SetValue("5") but w this change it becomes IntegerBlock, EqualsBlock, FiveBlock. Much more straightforward/ intuitive.
Summary of changes

VariableBlock is now VarTypeBlock, to show that it represents a variable type, not a whole variable (type + value)

Hence it no longer has a Value field

New block types! These represent actual values/literals, for example, the number 1. There are 3 new parent types (abstract classes), each w a bunch of children classes for spawnable blocks:

TextBlock: ABlock, BBlock, CBlock, XBlock, YBlock, ZBlock
NumberBlock: OneBlock, TwoBlock, ThreeBlock, FourBlock, FiveBlock, SixBlock, SevenBlock, EightBlock, NineBlock, DecimalBlock
TrueFalseBlock: TrueBlock, FalseBlock

BlockSpawner has been updated to reflect these new block types, so that when it spawns a block representing a value (ex: letter X), its type is XBlock, as opposed to StringBlock with .Value = "X"

LGTM, though, your characters have numbers as the button text lol but ill fix it


Use fc-match on Linux

I think this library should use the fc-match command on Linux to find fonts. See e.g. https://unix.stackexchange.com/questions/123511/find-font-file-from-font-name-on-linux

Useful suggestion, thank you!
I actually didn't know about fc-match...

Could be as easy as
b, err := exec.Command("fc-match", "--format=%{file}", name).Output()
filename := string(b)

as I did in https://github.com/tdewolff/canvas/blob/master/fontface.go#L59

Hmmm, fc-match defaults to DejaVu Sans on my system if it cannot find any better matches. But there's no indication that this is the default result...

Hi,
actually there's another Go package already doing this:

github.com/danielgatis/go-findfont

(bit of an unfortunate naming collision there...  :-)

Does that work for Windows as well? I've been using https://github.com/adrg/sysfont instead

…and another one, without cgo

github.com/fxkr/go-freetype-fontloader

(runs fc-match command and reads results from a pipe)
The "freetype" thing is not to be taken too serious, IMHO. Works well outside freetype context. Has ability to load the font, which obviously is outside the scope of go-findfont.

Does that work for Windows as well? I've been using https://github.com/adrg/sysfont instead

I've no idea. It uses cgo and this is usually a no-go for me.
Thanks for pointing me to adrg/sysfont !


Fix batch index integration test.

Something's wrong with the "batch indexing" integration test. I'm seeing lots of failures on "ITSystemTableBatchIndexTaskTest" like this:
2021-11-20T22:31:45,585 ERROR [main] org.apache.druid.testing.utils.TestQueryHelper - Failed while executing query {query=SELECT count(*) FROM sys.segments WHERE datasource LIKE 'wikipedia_index_test%'}
 expectedResults: [{"EXPR$0":4}]
 actualResults : [{"EXPR$0":5}]

This PR is an attempt to debug it and, if possible, fix it.

The issue is that the behavior of wikipedia_index_task.json is order-dependent with regard to its input files; some orders produce 4 segments and some produce 5 segments. Some integration tests, like ITSystemTableBatchIndexTaskTest and ITAutoCompactionTest, are written assuming that the 4-segment case will always happen. Providing the file list in a specific order ensures that this will happen as expected by the tests.
In the patch, I did this in part by making LocalInputSource.files parameter a List instead of a Set, since I didn't see a reason why it needed to be a Set. Being a List is also consistent with the behavior of other input sources like S3, GCS, HTTP.


Post and return 500 after upgrade to 3.0 priview-9

Error:
Post  and return 500 after upgrade to 3.0 priview-9
Code | Details
   [HttpGet]
    [Route("{id:Guid}")]
    [ProducesResponseType((int)HttpStatusCode.NotFound)]
    [ProducesResponseType((int)HttpStatusCode.BadRequest)]
    public async Task<ActionResult> GetByIdAsync(Guid id )
    {
        var item= await  _productRepository.GetByIdAsync(id);

        if (item == null)
        {
            return NotFound(new { Message = $"Item with id {item.Id} not found." });
        }

        return Ok(item);
    }

    [HttpPost]
    [ProducesResponseType(StatusCodes.Status201Created)]
    [ProducesResponseType(StatusCodes.Status400BadRequest)]
    public async Task<ActionResult> CreateAsync([FromBody]ProductCreateInput input)
    {
        if (!ModelState.IsValid)
            return BadRequest();

        var item = new Product(input.Code, lnput.Name,input.Description,input.Model,input.DrawingNo);

        await  _productRepository.AddAsync(item);

        return CreatedAtAction(nameof(GetByIdAsync), new { id = item.Id }, item.Id);
    }

--
To Reproduce
Steps to reproduce the behavior:

Using this version of ASP.NET Core '3.0- preview-9'
Run this code ' https://localhost:5001/api/Products '
With these arguments '....'
See error  return 500.

Add any other context about the problem here.
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HLPN6PD2AT1K", Request id "0HLPN6PD2AT1K:0000000B": An unhandled exception was thrown by the application.
System.InvalidOperationException: No route matches the supplied values.
at Microsoft.AspNetCore.Mvc.CreatedAtActionResult.OnFormatting(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor.ExecuteAsyncCore(ActionContext context, ObjectResult result, Type objectType, Object value)
at Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor.ExecuteAsync(ActionContext context, ObjectResult result)
at Microsoft.AspNetCore.Mvc.ObjectResult.ExecuteResultAsync(ActionContext context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultAsync(IActionResult result)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeNextResultFilterAsyncTFilter,TFilterAsync
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 6818.2970000000005ms 500

I had a similar problem that I couldn't find a related solution. I just added:
app.UseEndpoints(endpoints =>
{
	endpoints.MapDefaultControllerRoute();
});

Hope it helps someone.


#142608843 Reviewer 2 Feedback

What does this PR do?
Implement feedback from both reviewers
Description of Task to be completed?
Implement feedback
What are the relevant pivotal tracker stories?
#142608843

Coverage decreased (-2.7%) to 77.603% when pulling 5010e72fb44b668c2765ec763f701f32d8e9454c on chore/142608843/reviewer-2-feedback into babf36e292e5a17eea22349a3e54d41a1f93cb4b on develop.

Coverage increased (+1.4%) to 81.703% when pulling 7bc960cd388f64d7971c5d454279c3bcbbe15aa7 on chore/142608843/reviewer-2-feedback into babf36e292e5a17eea22349a3e54d41a1f93cb4b on develop.


E5108: Error executing lua ...ite/pack/packer/start/gitsigns.nvim/lua/gitsigns/git.lua:194: attempt to yield across C-call boundary

Repo steps:

Lanuch nvim.
Telescope projects.
Select any project for the first time will result at this error.
E5108: Error executing lua ...k/packer/start/project.nvim/lua/project_nvim/project.lua:174: Vim(lua):E5108: Error executing lua ...ite/pack/packer/start/gitsigns.nvim/lua/gitsigns/git.lua:194: attempt to yield across C-call boundary
Telescope projects and select same project again works normally.

As this is a git signs bug, that has now been fixed, I will close the issue. Tnx.


Fix: Undo-Delete of Containers fix

Pull Request Template
Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

Please include a summary of the changes and which issue has been fixed. Please also include relevant motivation
and context. List any dependencies that are required for this change.

Fixes #6030

if no issue exists, please create an issue and ask the maintainers about this first

Type of change

Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce.
Please also list any relevant details for your test configuration.

Test A
Test B

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:red_circle: Total coverage has decreased
// Code coverage diff between base branch:release and head branch: fix/6030-undo

Status
File
% Stmts
% Branch
% Funcs
% Lines

:red_circle:
total
53.34 (-0.01)
34.77 (-0.01)
31.46 (-0.01)
53.89 (-0.01)

:green_circle:
app/client/src/sagas/WidgetOperationSagas.tsx
44.29 (0.07)
30.89 (0)
49.43 (0.57)
44.59 (0.07)

:red_circle:
app/client/src/utils/helpers.tsx
54.88 (-1.83)
28.77 (-4.11)
25 (-3.57)
48.84 (-1.55)

@marks0351 Tested and issue is fixed.


Automate to verify call out processors on FSI failure

Equivalent development story is https://github.com/openbmc/openbmc/issues/1323

Currently it is not needed, if required, we can reopen the same.


added sudo -E to installs for Ben on automation + zlib if fix

Fixed if for zlib
Added sudo -E for proxies to work (Ben on Automation needs this)

@heifner Sorry for the second PR for the same thing. I royally screwed up the previous branch and figured I'd just start off fresh to be safe.

Is setting the proxy in yum's config file not workable?

@benbenben1010

The -E is nice because it allows us to use the same Dockerfile in the sandbox (which requires the proxy) and outside the sandbox (which doesn't) by conditionally passing in environment variables to the docker build command.
That being said, building in the sandbox has been de-prioritized, so for now, I don't have a strong opinion either way.


Provide a basic Auth example in the examples

This is possible with middleware but it's not apparent.
We essentially need to do what Passport did for Expressjs

Is there already HTTPS support? That should probably be added before authentication is used.

That's a good point. I'll have to look into this.
Throwing this link down so I don't forget:
https://stackoverflow.com/questions/11403333/httplistener-with-https-support

Probably can hook in LetsEncrypt in some way

Might want to keep it agnostic or provide a way to use a cert installed on the local machine. Some companies like their own internal certs for this kind of thing. 😄

Just some notes here on authentication with HttpListener.
HttpListener supports the following authentication schemes natively (Just set $Listener.AuthenticationSchemes):

Basic
NTLM
Digest
IntegratedWindowsAuthencation
Negotiate
None
Anonymous

The default is anonymous. I'm not sure how NTLM and IntegratedWindowsAuth work on a Linux box (I tried and kept getting a 401, maybe it has to be joined to an Active Directory domain?) but Basic works great. It adds a User property to the $Context object returned by GetContext.
An article on the topic: https://leastprivilege.com/2006/05/06/httplistener-authentication-and-asp-net/
I'm not sure if we can get the Active Directory based stuff working cross-platform but it would open up a lot of powerful possibilities. $Context.User.Impersonate() for example would let you run scripts impersonating the calling user instead of the account executing the script. Meaning you could run your server with the lowest possible privileges needed to run the server (admin isn't needed for non-localhost listening if the name is registered ahead of time) and let the authenticating user elevate privileges.
That being said, I like taking a middle-ware approach to things as well. Especially for something like a passport-js to support OAuth with AzureAD, JWT, or Bearer token auth scenarios.
I think we (and PowerShell in general) is missing a really good module dependency manager (something like npm) that can manage, install, update, and import modules all local to a module inside like a pwsh_modules folder or something like that. Maybe the regular packagemanagement module does that and I'm not aware?
Also, created a new issue to track the https discussion in #107

I agree. HttpListener supplies some really interesting auth scenarios (some very unique). My biggest worry is that they really only apply on Windows.

Especially for something like a passport-js to support OAuth with AzureAD, JWT, or Bearer token auth scenarios.

I love passport-js (if you couldn't guess by me mentioning it in the issue)!
The other option here is to investigate Kestrel. I opened an issue a while back regarding that. #12
Since HttpListener is not getting any love from the .NET team anymore (details in #107), maybe it's worth investigating?

I would love to figure out Kestrel especially with the comments from the .NET team. Looks like the context object might be similar enough it wouldn't be a giant giant PR but would probably need some work. In the mean time though we can shy away from using stuff built into HttpListener as like another middleware, that should eliminate rework.

Yeah I totally agree :)


Customized activation function support

Dear developers,
I have a question regarding customized activation layer e.g.
from ImportKeras import *
import numpy as np

def mish(x):
    return x*K.tanh(K.softplus(x))

Does this type of activation built in keras can be converted to onnx by applying keras2onnx?
Thanks,
Debo.

Yes, the converter support any custom layer written by TensorFlow op. Please feel free to raise the issue here if any.

Hi @wenbingl,
Thanks

Hi @wenbingl ,
Coming back to this I am having following issue while converting the model
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-17-4736bf677000> in <module>
----> 1 onnx_model = keras2onnx.convert_keras(net,net.name)

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/keras2onnx/main.py in convert_keras(model, name, doc_string, target_opset, channel_first_inputs, debug_mode, custom_op_conversions)
     90                         custom_op_dict=custom_op_conversions)
     91     topology.debug_mode = debug_mode
---> 92     parse_graph(topology, tf_graph, target_opset, output_names)
     93     topology.compile()
     94

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/keras2onnx/parser.py in parse_graph(topo, graph, target_opset, output_names)
    826         topo.raw_model.add_output_name(str_value)
    827
--> 828     return _parse_graph_core(graph, keras_layer_ts_map, topo, top_level, output_names)

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/keras2onnx/parser.py in _parse_graph_core(graph, keras_node_dict, topology, top_scope, output_names)
    754
    755     _finalize_const_graph(topology, top_scope, varset)
--> 756     _infer_graph_shape(topology, top_scope, varset)
    757     topology.root_names = [variable.onnx_name for variable in top_scope.variables.values()]
    758     return topology

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/keras2onnx/parser.py in _infer_graph_shape(topology, top_level, varset)
    477             visited.add(oop)
    478             if oop.type == TFNODES:
--> 479                 _finalize_tf2onnx_op(topology, oop, varset)
    480             else:
    481                 if isinstance(oop.raw_operator, (keras.layers.Layer, tf.Operation)):

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/keras2onnx/parser.py in _finalize_tf2onnx_op(topo, operator, varset)
    447                 oop.add_output(ov)
    448
--> 449         g = tf2onnx_wrap(topo, subgraph, outputs, varset.target_opset)
    450         assert g
    451         operator.tf2onnx_graph = g

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/keras2onnx/wrapper.py in tf2onnx_wrap(topo, graph, outputs, target_opset)
    341     """
    342     if tf2onnx is None:
--> 343         raise RuntimeError('tf2onnx loading failed with the tensorflow package!')
    344     custom_op_handlers = tf2onnx_builtin_conversion(target_opset)
    345     custom_op_handlers.update(topo.custom_op_dict)

RuntimeError: tf2onnx loading failed with the tensorflow package!

keras2onnx= 1.6.1
tensorflow = 2.1.0
Thanks,
Debo.

our pip release work has been postponed, the current pip package doesn't support tf2.x
so please install it from the source.
pip install -U git+https://github.com/microsoft/onnxconverter-common
pip install -U git+https://github.com/onnx/keras-onnx

Hi @wenbingl ,
Thanks, I followed your instructions
keras2onnx.__version__
'1.7.0'
onnx_model = keras2onnx.convert_keras(net,net.name)

tf executing eager_mode: True
tf.keras model eager_mode: False
WARN: No corresponding ONNX op matches the tf.op node model/trapezoid_annotation/PartitionedCall/SelectV2_2 of type SelectV2
      The generated ONNX model needs run with the custom op supports.
The ONNX operator number change on the optimization: 103 -> 59
The maximum opset needed by this model is only 1.

then I tried to load the converted .onnx model and having following error:
sess_ort = ort.InferenceSession("/lcg/storage13/atlas/gupta/jetModel.onnx")

---------------------------------------------------------------------------
Fail                                      Traceback (most recent call last)
<ipython-input-10-731bfd7a92f9> in <module>
----> 1 sess_ort = ort.InferenceSession("/lcg/storage13/atlas/gupta/jetModel.onnx")

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/onnxruntime/capi/session.py in __init__(self, path_or_bytes, sess_options, providers)
     23         self._path_or_bytes = path_or_bytes
     24         self._sess_options = sess_options
---> 25         self._load_model(providers)
     26         self._enable_fallback = True
     27

/export/home/zp/gupta/envTf2/lib/python3.7/site-packages/onnxruntime/capi/session.py in _load_model(self, providers)
     41             raise TypeError("Unable to load from type '{0}'".format(type(self._path_or_bytes)))
     42
---> 43         self._sess.load_model(providers)
     44
     45         self._session_options = self._sess.session_options

Fail: [ONNXRuntimeError] : 1 : FAIL : Fatal error: SelectV2 is not a registered function/op

Thanks,
Debo.

This is due to the missing tf.Select op conversion, it should not be hard to add the support, and will add it soon.

Hi @wenbingl ,
Thanks, let me when its done I will close this issue.
Thanks,
Debo.

Hi, I'm trying to convert a YoloV4 implementation from keras into onnx, but I'm having a problem with the mish activation function.
I first load the h5 model, with the custom_objects parameter, everything goes well, but when i use keras2onxx.convert_keras(model, model.name) I get the following error:
  File "/home/xxx/.local/lib/python3.6/site-packages/keras2onnx/ke2onnx/activation.py", line 71, in convert_keras_activation     raise RuntimeError("Unsupported activation method within Activation layer '{}'".format(activation)) RuntimeError: Unsupported activation method within Activation layer '<function mish at 0x7f6b50c30a60>'
I don't know if I somehow need to specify where the activation implementation can be found, or how this is done, any help would be appreciated.
I'm using python 3.6.9, keras 2.3.1, tensorflow 2.1.0, onnx 1.7.0 and the latest (installed from source) keras2onnx and onnxconverter-common.
Thanks,
Joanes

@Debottam , the SelectV2 op conversion supports now in the master branch.

@joanesplazaola , Can you share the original keras-yolov4 model? I can take a look.

Hey @wenbingl . Thanks for the reply, I finally changed to Pytorch and exported the pytorch model using torch.onnx.export

Hi @wenbingl ,
Sorry about the late reply but thanks the issue has been solved; hence I am closing it.
Thanks,
Debottam


Look into using a static site generator for the frontend

List of popular static site generators - https://jamstack.org/generators/

Maybe just a simple nuxt.js or next.js? Depending on our preferred flavour of front end Vue or React!

It's worth mentioning that Forms uses react / next.js. Probably best if we try and stick with a common tech stack.


Failure of cupyx.scipy.sparse.linalg.eigsh to recover eigenvectors of identity matrix.

Description
Applying eigsh to an identity matrix (either sparse or dense) gives invalid results: both the returned eigenvalues and eigenvectors are set to NaN.
When the size of the matrix is sufficiently small (e.g., n = 10), eigsh sporadically raises a LinAlgError exception. However, for n = 100, it consistently returns NaNs as described above.
I have reproduced this behavior both in 4747940d9492354b83b9456c32675d17f05b3d7b and in cupy-cu11x as installed via pip.
To Reproduce
n = 100
id_matrix = cupyx.scipy.sparse.spdiags(cupy.ones(n), 0, n, n)
cupyx.scipy.sparse.linalg.eigsh(id_matrix)

Installation
Source (pip install cupy)
Environment
OS                           : Linux-5.15.0-67-generic-x86_64-with-glibc2.35
Python Version               : 3.10.6
CuPy Version                 : 12.0.0rc1
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.24.2
SciPy Version                : 1.10.1
Cython Build Version         : 0.29.33
Cython Runtime Version       : None
CUDA Root                    : /usr/local/cuda
nvcc PATH                    : /usr/local/cuda/bin/nvcc
CUDA Build Version           : 11070
CUDA Driver Version          : 11070
CUDA Runtime Version         : 11070
cuBLAS Version               : (available)
cuFFT Version                : 10702
cuRAND Version               : 10210
cuSOLVER Version             : (11, 4, 0)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 7)
Thrust Version               : 101500
CUB Build Version            : 101500
Jitify Build Version         : 4a37de0
cuDNN Build Version          : 8600
cuDNN Version                : 8600
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce RTX 3070 Ti
Device 0 Compute Capability  : 86
Device 0 PCI Bus ID          : 0000:01:00.0

OS                           : Linux-5.15.0-67-generic-x86_64-with-glibc2.35
Python Version               : 3.10.6
CuPy Version                 : 11.6.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.23.5
SciPy Version                : 1.10.1
Cython Build Version         : 0.29.32
Cython Runtime Version       : 0.29.33
CUDA Root                    : /usr/local/cuda
nvcc PATH                    : /usr/local/cuda/bin/nvcc
CUDA Build Version           : 11080
CUDA Driver Version          : 11070
CUDA Runtime Version         : 11070
cuBLAS Version               : (available)
cuFFT Version                : 10702
cuRAND Version               : 10210
cuSOLVER Version             : (11, 4, 0)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 7)
Thrust Version               : 101501
CUB Build Version            : 101501
Jitify Build Version         : 4a37de0
cuDNN Build Version          : 8700
cuDNN Version                : 8600
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce RTX 3070 Ti
Device 0 Compute Capability  : 86
Device 0 PCI Bus ID          : 0000:01:00.0

Additional Information
No response

I reproduced the problem on my local. It seems that eigsh uses an iterative method and the (absolute) values rapidly increase during the iterations, resulting in NaN. Any idea or pointer to the algorithm used here, @anaruse?

xref #7356

I find out why the identity matrix causes the convergence.
_eigen.py#L218 initializes u as u = A @ v = v if A is an identity matrix, and the first v is normalized in _eigen.py#L83. So we can easily get alpha = v.conj().T @ u = 1. The formula in _eigen.py#L235 seems to make u = u - alpha * v = 0 (beta = 0 as input). The new beta is derived in _eigen.py#L270 to be zero as the norm of u. Finally, v = u / beta in _eigen.py#L287 causes a nan.
And I find there are some V[i - 1] and beta[i - 1] in the file, while the i could be 0, is this a bug or intentional?


apple translation

https://wwdcnotes.github.io/WWDCNotes/documentation/wwdcnotes/wwdc24-10117-meet-the-translation-api/

https://developer.apple.com/documentation/translation/translating-text-within-your-app

https://developer.apple.com/documentation/Translation

see how it looks on Ice Cubes


[BEAM-1077] @ValidatesRunner Test in Python Postcommit

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Add ValidatesRunner tests to postcommit. Currently running tests on dataflow service.
Testing subset of ValidatesRunner tests on dataflow service is done. Here is the Job1 link and Job2 link.

+R: @aaltay

Have you successfully run the script with changes? This script only runs in post commit tests.

@aaltay fixed some errors in script and successfully running test by running run_postcommit.sh

@markflyhigh Mark, is this ready to review? Have you ran the updated script successfully?

@aaltay yes, it's ready for review. I used another project to runt the script since I can't use apache-beam-testing directly.

+CC: @jasonkuster

PTAL @aaltay

LGTM, thank you.

@robertwb