ld: framework not found Pods_OneSignalNotificationServiceExtension

Wanted to run synth in an emulator, ABLink error is now resolved, but im getting another one:
Ld /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal x86_64
    cd /Users/krzyh/code/AudioKitSynthOne
    export IPHONEOS_DEPLOYMENT_TARGET=11.3
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk -L/Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -F/Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Products/Debug-iphonesimulator -F/Users/krzyh/code/AudioKitSynthOne/Pods/AudioKit/iOS -F/Users/krzyh/code/AudioKitSynthOne/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -filelist /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=11.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.swiftmodule -lstdc++ -ObjC -lstdc++ -framework AVFoundation -framework AudioKit -framework AudioKitUI -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent -framework Pods_OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-bzbrlkwdxzubzhaurxngoqdckeyl/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension

ld: framework not found Pods_OneSignalNotificationServiceExtension
clang: error: linker command failed with exit code 1 (use -v to see invocation)

My steps:

Change branch to develop
Update repo (git pull)
pod repo update
pod install
Run xcode
Hit Build and run
Get build error

Hello @krzysztofwolski. Perhaps try:

Closing Xcode
Deleting your derived data folder & empty trash
Opening the workspace and clean (CMD + Shift + K)

@analogcode thanks for the response!

I've removed the project from xcode
cleared workspace
cleared trash
deleted and downloaded repo again (develop branch)
installation steps again

No changes.
Compiler warnings and errors I'm getting did not changed:

For emulation target I'm choosing iPad Pro 12.9 2nd gen.

@aure received that error one time as well. Aure, how did you fix it on your machine?

@krzysztofwolski double checking, did you delete the contents of your derived data folder? (/Users/krzyh/Library/Developer/Xcode/DerivedData/). Deleting the project will not delete it. In the first screen shot you posted, it looks like Xcode is caching your derived data folder.

Yes, I've removed it.
Wanted to check now if change of project folder has any impact:

Closed xcode
rm -rf /Users/krzyh/Library/Developer/Xcode/DerivedData/
removed cloned repo
Empty trash
clone repo to folder with changed name git clone https://github.com/AudioKit/AudioKitSynthOne.git SynthOne
Change branch git checkout develop
pod repo update
pod install
Start xcode and open AudoKitSynthOne.xcodeproj
choose iPad Pro 12.9 2nd gen for emulating
hit run and get same error :(

Ld /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal x86_64
    cd /Users/krzyh/code/SynthOne
    export IPHONEOS_DEPLOYMENT_TARGET=11.3
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk -L/Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -F/Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Products/Debug-iphonesimulator -F/Users/krzyh/code/SynthOne/Pods/AudioKit/iOS -F/Users/krzyh/code/SynthOne/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -filelist /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=11.3 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fapplication-extension -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.swiftmodule -lstdc++ -ObjC -lstdc++ -framework AVFoundation -framework AudioKit -framework AudioKitUI -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent -framework Pods_OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Intermediates.noindex/AudioKitSynthOne.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/krzyh/Library/Developer/Xcode/DerivedData/AudioKitSynthOne-giqlrjlstzxsjxbshctozdvjuvoa/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension

ld: framework not found Pods_OneSignalNotificationServiceExtension
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Are there any steps which should be done to use this OneSignal extension? I'm not experienced with swift ecosystem so I could be missing something essential.

I'm sorry - the issue was on my side. I've got instructions from README wrong 🤦♂
What I did: Opened AudioKitSynthOne.xcodeproj in xcode
What I should do: Open AudioKitSynthOne.xcworkspace
@analogcode thank you for help!


ScatterMoE feature

I would like to request ScatterMoE feature in Megablocks
https://arxiv.org/abs/2403.08245
https://github.com/shawntan/scattermoe

We'd love community PRs for this! Happy to help review and design. It's not currently on our roadmap, but we are evaluating it.

Eric, do you know that Scatter MoE is beneficial for your use case or are you interested based on the results from the paper? If the former, it would be very helpful if you could share!
I have some scripts from Shawn and it is on my list to benchmark and see if we could get some wins from their kernels. I am a bit buried though, so I am not sure when I'll get to it 😓

we know that it's much more efficient training with Scatter MoE and we would like to benefit from the cost savings

Thanks, Eric. Can you share more about your use case so that we can include it in our analysis? Scripts to reproduce would be excellent, if possible :)

this is feature request, not a bug that could be reproduced.
The academic paper I am requesting is linked above.


Support for bitwise operators

https://github.com/biscuit-auth/biscuit/pull/112

done in 145fea900d5cb963931f2ba76ff36bb5528c057e


@jpellizzari TODO: rework these tests helpers to not be so cumbersome to use

@jpellizzari TODO: rework these tests helpers to not be so cumbersome to use
Originally posted by @jpellizzari in https://github.com/weaveworks/weave-gitops/pull/1550#discussion_r816346499

@jpellizzari still valid?

Nope


Update tsa server url to include custom tsa namespace

This should fix a bug in the timestamping, once https://github.com/sigstore/helm-charts/pull/712 is also merged upstream

❤ thank you!

@joshrwolf this is ready for review!


Type's errors are not shown when there is a relative path import

Hi,
When I make an import with a relative path (i.e. import myModule from './myModule') the type's errors are not shown anymore.
I've made a project that reproduce this problem here :
https://github.com/blemoine/typescript-plugin-problem
To reproduce, you have to :

checkout the project
execute npm install
execute node_modules/.bin/jspm install
execute ./node_modules/.bin/jspm bundle-sfx src/app bundle.js, which show correctly the type error
execute ./node_modules/.bin/jspm bundle-sfx src/app2 bundle.js, which doesn't show the error

The only difference between app.ts and app2.ts is that in the second file, there is an import.
In a browser, when not bundled, it's the exact same behaviour.

Thanks for raising this, there seems to be some incompatibility with TypeScript 1.6.2.

This should be fixed in 2.0.15.


nixosTests.sway: don't use ORC

Description of changes
Factor out ORC. Also don't time out the gpg-agent. Should fix #238642

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.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

[x] Fits CONTRIBUTING.md.

Thanks.  Given that nixos-unstable is on a five day old commit, let me merge this early.  That should not prevent you from further work and discussion on improving the test.


First cut of a simple log preload util.

For preloading one log with the contents of another.

Needs some tweaking, it looks like...
# _/home/travis/build/google/certificate-transparency/go/scanner
go/scanner/scanner_test.go:186: cannot use func literal (type func(int64, *"github.com/google/certificate-transparency/go/x509".Certificate)) as type func(*client.LogEntry) in argument to scanner.Scan
go/scanner/scanner_test.go:190: cannot use func literal (type func(int64, *client.Precertificate)) as type func(*client.LogEntry) in argument to scanner.Scan
=== RUN TestGetEntriesWorks
--- FAIL: TestGetEntriesWorks (0.00s)
	logclient_test.go:48: EOF

LGTM, pending Travis.


HHH-3813 Automatic flush to the join table before a criteria query (4.3)

Same PR as #885 but on 4.3 branch. Fixes HHH-3813.

Thanks for the Pull Request. Did you sign the CLA?

@EtienneMiret Did you sign the Contributor License Agreement (CLA)?

Hello. Yes, I signed it a while ago. On March 5, 2015 according to jboss.org.

Applied upstream, thanks


Pause/Play Button or gesture whenever auto scroll is enabled.

Describe your suggested feature
Maybe an easy access Play/Pause button somewhere above the quick page selector?
Preferably easily accessible, or even a gesture.
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.

This will be added

Added


Formatting with %loc does not work with el::Loggers::getLogger("default");

Code:
int main(int argc, char** argv)
{
el::Configurations conf("/etc/snap/logger.conf");
el::Loggers::reconfigureLogger("default", conf);
el::Loggers::reconfigureAllLoggers(conf);
    LOG(INFO) << "Test with LOG(INFO)";

    el::Logger* logger = el::Loggers::getLogger("default");
    logger->info("Test with el::Loggers::getLogger(\"default\");");

}
Output:
2015-12-10 15:48:08,743 [../src/TestClass.cpp:74] - Test with LOG(INFO)
2015-12-10 15:48:08,743 [FILE:0] - Test with el::Loggers::getLogger("default");

contents of logger.conf:

GLOBAL:
FORMAT               =  "%datetime [%loc] - %msg"
FILENAME             =  "/var/log/testlog"
ENABLED              =  true
TO_FILE              =  true
TO_STANDARD_OUTPUT   =  true
PERFORMANCE_TRACKING =  true
MAX_LOG_FILE_SIZE    =  50000000
DEBUG:
FORMAT               = "%datetime [%loc] - %msg"

I confirm this bug. Any of following specifiers is not working properly when "printf Like Logging" is being used.
%file	File name of source file (Full path) %fbase	File name of source file (Only base name) %line	Source line number %func	Logging function %loc	Source filename and line number of logging (separated by colon)

%file %line %loc %func and %fbase depend on compiler and availability of certain macros (e.g, __LINE__), what compilers are you using?


Add kits for SCX version 1.6.3-212

@jeffaco
@lagalbra
This is the first official scx kit to be used by omsagent.
It has the recovery mechanism implemented to recover from
failed upgrade cases.
The bundle contains:
SCX v1.6.3-212
OMI v1.2.0-35
Apache Provider v1.0.1-9
MySQl Provider v1.0.1-5
git seems to have detected the rm and add operation as rename. I have verified by cloning the branch that correct version of bundle is getting downloaded.

I checked with Andy briefly. We expected that git used a SHA1 checksum (like it uses SHA1 for everything else, like commit history/chains) to determine if a file had changed. But obviously, based on what you found, this isn't true.
Since, in the end, the actual repository was fine, we can safely ignore this. It was odd, though, that these showed up as rename operations vs. delete+add operations. Never saw that before ...

PR #71 was for a bug reported on unix bundles. It should not be required for omsagent.


Add a check to make sure that all working_dirs are valid

After #196 I realized there should be a check for this.

You can see what a failure looks like here: https://github.com/saturncloud/examples/runs/4192337989?check_suite_focus=true


'Cannot read properties of undefined' while call

I have parts of code:
this.multicall = new ethereumMulticall       .Multicall({ nodeUrl: config.rpc, tryAggregate: true });
or
this.multicall = new ethereumMulticall       .Multicall({ ethersProvider: connect.provider, tryAggregate: true });
and
   let answ = await this.multicall.call({});
or
   answ = await this.multicall.call(multicallContext);
All combinations (with empty context too) executing gives same error:
`
/node_modules/ethereum-multicall/node_modules/@ethersproject/abi/lib/interface.js:101
properties_1.defineReadOnly(this, "fragments", abi.map(function (fragment) {
^
TypeError: Cannot read properties of undefined (reading 'map')
`

Where's the root and how can I handle this?

It was wrong context structure in both case, this is the point. In second case with answ = await this.multicall.call(multicallContext); was wrong context struct too -- I was pushed context arrays to multicallContext. Solution in a simply concat, not a pushing

Hey all sorted then.. was just bad mapping your end? Glad your sorted! Here to help if you need anything else! 👍👍


MB-6483 Update host names to match GovCloud

Description
We still had some files where we were referring to the old host names
before the migration to GovCloud. This PR updates them to the correct
host names.
Code Review Verification Steps

[ ] If the change is risky, it has been tested in experimental before merging.
[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Warnings

:warning:

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?
View the frontend file org ADR for more information

Messages

:book:
:link: MB-6483

  Generated by :no_entry_sign: dangerJS against<PHONE_NUMBER>a1e9b9196c369e4b27f2714410c8a6

Warnings

:warning:

Files located in legacy directories (src/shared or src/scenes) have
been edited. Are you sure you don’t want to also relocate them to the new file structure?
View the frontend file org ADR for more information

Messages

:book:
:link: MB-6483

  Generated by :no_entry_sign: dangerJS against<PHONE_NUMBER>a1e9b9196c369e4b27f2714410c8a6

Thanks for the tips, @kilbergr! I tried the script but I couldn't get authenticated, which is why I asked for Infra's review because I knew I would likely miss some things. For some reason, those links in your comment aren't working. On what line is transcom-ppp being used, and what should it change to?

Thanks for the tips, @kilbergr! I tried the script but I couldn't get authenticated, which is why I asked for Infra's review because I knew I would likely miss some things. For some reason, those links in your comment aren't working. On what line is transcom-ppp being used, and what should it change to?

It looks like you made the changes ! It was line 37 (which you removed) and making sure the right ids were passed in for each env. The reason you couldn't run it with auth before I believe would be due to the fact that it was in com. Now that it's in gov, you may have the perms to run. Give it a try! I suspect the incantation would be something like DISABLE_AWS_VAULT_WRAPPER=1 aws-vault exec transcom-gov-milmove-exp -- scripts/health-tls-check. If you still have auth problems, lmk and I'll run to confirm.

It looks like you made the changes ! It was line 37 (which you removed) and making sure the right ids were passed in for each env. The reason you couldn't run it with auth before I believe would be due to the fact that it was in com. Now that it's in gov, you may have the perms to run. Give it a try! I suspect the incantation would be something like DISABLE_AWS_VAULT_WRAPPER=1 aws-vault exec transcom-gov-milmove-exp -- scripts/health-tls-check. If you still have auth problems, lmk and I'll run to confirm.

Thanks @kilbergr! I updated the Readme.

Thanks @kilbergr! I updated the Readme.


Update to 1.21

Updates the docs to 1.21.

[x] Getting Started
[x] Advanced Topics
[x] Block Entities
[x] Blocks
[x] Concepts
[x] Datagen
[x] Data Maps
[x] Data Storage
[x] GUIs
[x] Items
[x] Legacy
[x] Miscellaneous
[x] Networking
[x] Resources

[x] Client

[x] Models

[x] Datapacks

[x] Recipes

Preview URL: https://pr-108.neoforged-docs-previews.pages.dev

Ok, done with the update. Will set ready to review once the 1.21.x branch comes out so I can update the code example links.

With the release of the 1.21 branch, this is now ready for review.


[Improve ]Improve flink env check method

What changes were proposed in this pull request
improve hard code in FlinkEnvServiceImpl check method

Brief change log
add FlinkEnvStatus.java in
streampark-common/src/main/java/org/apache/streampark/common/enums/
modifty FlinkEnvServiceImpl.java in
streampark-console-service/src/main/java/org/apache/streampark/console/core/service/impl/FlinkEnvServiceImpl.java

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts

Dependencies (does it add or upgrade a dependency): (no)

Looks good, The front-end code also needs improvement. Looking forward to your next update! 😊
https://github.com/apache/incubator-streampark/blob/203c7516ecfe5f0ca659cdd5b1ea96a458e4c126/streampark-console/streampark-console-webapp/src/views/flink/home/components/Modal.vue#L103


Not obvious error message in bot service channels page

I followed "Connect a bot to Direct Line" documentation article. But when I try to open channels settings page I see "Error retrieving bot data" error message. This error affects all my bots. In the JS browser console I see two 500 error logs. I attached them in screenshots. Can you provide more obvious error messages if I done something wrong. Or this is botframework internal error?

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

ID: 71081bf9-a44f-7f24-040a-fcc6bc6dca02
Version Independent ID: d5f6d9e6-9522-5915-0bbe-28b9b7f4725f
Content: Connect a bot to Direct Line in Bot Framework SDK - Bot Service
Content Source: articles/bot-service-channel-connect-directline.md
Service: bot-service
GitHub Login: @JonathanFingold
Microsoft Alias: iawilt

@aarsenn
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.
@JKirsch1
Can you please check and add your comments on this doc update request as applicable.

Unfortunately I'm not familiar with this technology because I'm not the author. My only involvement with this article is an edit I made to the metadata a few years ago.
The current owner of the document doesn't seem to be available. I'm looking for someone who has worked on this article, who can provide some detailed information about the error.

Hi all, thanks for raising this. I've reached out to the product team about this. We'll be in touch shortly!

@aarsenn Is this still happening or it has been resolved? Could you sing out and sign in again ?

I seem to be having the same problem. I tried signing out & in and the problem persists. Hopefully it will be resolved in due time.

Hi all, thanks for replies. @hibrenda now it has been resolved, thanks.

The problem persists on my azure account though...

@mchatzinikolaou  If you login this (https://dev.botframework.com/) before, maybe you can try to sign out and sign in again.

This is the landing page i get. The html code is:
`

| <!DOCType html>
-- | --
  |
  |
  |
  | Microsoft Bot Framework
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |
  |

Microsoft Bot Framework

`

Happening again.


Put field type and short_name in tr class for styleability

If you need this, a custom widget should be fairly straightforward. The name part is especially problematic because names can easily be generic and interfere with other CSS rules.


Didn´t find csharp folder

I downloaded Visual Studio 2017. I searched for the csharp  folder in the SSEtoRserve plugin but its is not there. Therefore, I cannot open ServerSideExtension.sln and build a project.
Operating system where the SSE plugin is deployed
[ ] Windows

##### Qlik Sense

[ ] Desktop
### Versions

* sse-r-plugin: 1.0.0
* Qlik Sense: November 2017
* Operating system: 64-bit, x64
* R: 3.4.3

Hi Tobias! I was able to run some R code from QlikSense but not all. It would be great if you could create a video explaining how to build a project and run the examples (particularly time series).


Fixed thread-unsafe access to dictionary

Reading a dictionary while it's being modified can cause an
infinite loop to manifest.
See docs:
https://msdn.microsoft.com/en-us/library/xfhwa508(v=vs.110).aspx#Anchor_10
We discovered this on a few of our servers. CPU would spike for a period of time until the thread was eventually aborted. The profile below shows that a large chunk of time was being spent in this method.

We've updated AWSSDK.Core to <IP_ADDRESS> and AWSSDK.DynamoDBv2 to <IP_ADDRESS> with this fix. Thank you for the pull request.

Thanks!


Installation with python 2.7 on MacOS,  attribute doc not writable

As shown in title, I was compiling from source with python 2.7 on MacOS, and found failure described as "AttributeError: attribute 'doc' of 'type' objects is not writable"
"* ONLY_FIRST_TOWER: Deprecated alias for `ONLY_FIRST_REPLICA'.\n"
Then I changed this file "variables.py" and recompile only to found the same bug in other files.

@RickLee26  Request you to fill this template which helps us to look into this issue. Thanks !

@RickLee26 I got the same error on Ubuntu 16.04. For me it was related to the enum / enum34 packages.
Maybe have a look at #12491

@RickLee26  Any update on this ?

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

We are closing this issue for now due to lack of activity. Please comment if this is still an issue for you. Thanks!


[lancedb] SQLITE_BUSY when embedding many documents

When embedding a larger number of docs (> 100 (>100k tokens)), the DB seems to lock itself during the process (using lancedb as vector db):
INSERT INTO document_vectors (docId, vectorId) VALUES ('f03e0ec4-1307-4928-b982-91a8a2e34563', '5a791ec8-f1be-4276-8928-5e129accc0d6')
{ result: 0 }
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: SQLITE_BUSY: database is locked
--> in Statement#run([
  '4f09f8e7-b1a8-4c0b-82e0-bbde80473612',
  '05-26-2023-db4e845d-9c45-4d80-9581-73c53844132c.json',
  'custom-documents/05-26-2023-db4e845d-9c45-4d80-9581-73c53844132c.json',
  2,
  '{"id":"db4e845d-9c45-4d80-9581-73c53844132c","url":"file:///home/<username>/git/anything-llm/collector/hotdir/processed/05-26-2023.md","title":"05-26-2023.md","description":"a custom file uploaded by the user.","published":"2023-06-12 09:26:29","wordCount":12758,"token_count_estimate":2849}'
], [Function (anonymous)])
    at /home/<username>/git/anything-llm/server/node_modules/sqlite/build/Statement.js:80:23
    at new Promise (<anonymous>)
    at Statement.run (/home/<username>/git/anything-llm/server/node_modules/sqlite/build/Statement.js:78:16)
    at Object.addDocuments (/home/<username>/git/anything-llm/server/models/documents.js:89:12)
    at async /home/<username>/git/anything-llm/server/endpoints/workspaces.js:35:7 {
  errno: 5,
  code: 'SQLITE_BUSY',
  __augmented: true
}

Node.js v18.16.0
[nodemon] app crashed - waiting for file changes before starting...

Cannot tell if this is caused by the larger number of docs or if the issue is caused by token count (as in, the issue would be caused even with low doc but high token count).

connect #19

This should be resolved now with #19!
Can you pull in an try again? Was a concurrency issue with SQLite

This should be resolved now with #19!
Can you pull in an try again? Was a concurrency issue with SQLite

Will do! Thank you :-)

Seems to have been fixed! Closing as complete ...
Thanks


Lots of errors in Build from VS

This is one a fresh clone on parallels on my mac. build vs was run before this:
Severity	Code	Description	Project	File	Line	Suppression State
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.UIResources\bin\Debug\FSharp.UIResources.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\src\FSharp.Editor C:\repos\visualfsharp\Debug\net40\bin	FSharp.Editor	C:\repos\visualfsharp\vsintegration\src\FSharp.Editor\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.Editor\bin\Debug\FSharp.Editor.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp C:\repos\visualfsharp\Debug\net40\bin	ProjectSystem	C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.UIResources\bin\Debug\FSharp.UIResources.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp C:\repos\visualfsharp\Debug\net40\bin	ProjectSystem	C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.Editor\bin\Debug\FSharp.Editor.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\Salsa C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.Salsa	C:\repos\visualfsharp\vsintegration\tests\Salsa\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\bin\Debug\FSharp.ProjectSystem.FSharp.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\Salsa C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.Salsa	C:\repos\visualfsharp\vsintegration\tests\Salsa\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.UIResources\bin\Debug\FSharp.UIResources.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\Salsa C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.Salsa	C:\repos\visualfsharp\vsintegration\tests\Salsa\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.Editor\bin\Debug\FSharp.Editor.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\UnitTests C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.UnitTests	C:\repos\visualfsharp\vsintegration\tests\UnitTests\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\bin\Debug\FSharp.ProjectSystem.FSharp.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\UnitTests C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.UnitTests	C:\repos\visualfsharp\vsintegration\tests\UnitTests\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\src\FSharp.UIResources\bin\Debug\FSharp.UIResources.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\UnitTests C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.UnitTests	C:\repos\visualfsharp\vsintegration\tests\UnitTests\FSC	1	Active
Error	FS0078	Unable to find the file 'C:\repos\visualfsharp\vsintegration\tests\Salsa\bin\Debug\VisualFSharp.Salsa.dll' in any of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6 C:\repos\visualfsharp\vsintegration\tests\UnitTests C:\repos\visualfsharp\Debug\net40\bin	VisualFSharp.UnitTests	C:\repos\visualfsharp\vsintegration\tests\UnitTests\FSC	1	Active
Error	CS0006	Metadata file 'C:\repos\visualfsharp\vsintegration\src\FSharp.Editor\bin\Debug\FSharp.Editor.dll' could not be found	VisualFSharpFull	C:\repos\visualfsharp\vsintegration\Vsix\VisualFSharpFull\CSC	1	Active
Error	CS0006	Metadata file 'C:\repos\visualfsharp\vsintegration\src\FSharp.ProjectSystem.FSharp\bin\Debug\FSharp.ProjectSystem.FSharp.dll' could not be found	VisualFSharpFull	C:\repos\visualfsharp\vsintegration\Vsix\VisualFSharpFull\CSC	1	Active
Error	CS0006	Metadata file 'C:\repos\visualfsharp\vsintegration\src\FSharp.UIResources\bin\Debug\FSharp.UIResources.dll' could not be found	VisualFSharpFull	C:\repos\visualfsharp\vsintegration\Vsix\VisualFSharpFull\CSC	1	Active
Error	FS0229	Error opening binary file 'C:\repos\visualfsharp\Debug\net40\bin\FSharp.Core.dll': Could not find file 'C:\repos\visualfsharp\Debug\net40\bin\FSharp.Core.dll'.	FSharp.Editor	C:\repos\visualfsharp\vsintegration\src\FSharp.Editor\Completion\CompletionProvider.fs	1	Active
Error		Assets file 'C:\repos\visualfsharp\tests\fsharpqa\testenv\src\PEVerify\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.	PEVerify	C:\Program Files\dotnet\sdk\2.1.102\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets	327
Error		Assets file 'C:\repos\visualfsharp\tests\fsharpqa\testenv\src\PEVerify\obj\project.assets.json' not found. Run a NuGet package restore to generate this file.	PEVerify	C:\Program Files\dotnet\sdk\2.1.102\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets	167

@cartermp Do you have in-memory cross proejct references turned off?  Did you do build vs debug?

I can't seem to repro this on latest master anymore. Closing!

Any chance this is related to #4506 ?

@BentTranberg I'm not sure. It's a possibility, but given that I can't reproduce it it's really hard to say.

I did produce a repro for #4506, and then that issue disappeared in 15.6.3 for reasons we don't know. If they do happen to be related, going back and investigate #4506 might also solve this one. That's what I was driving at. Whether it's worth spending more time on any of these issues I wouldn't know of course - though I guess not.


Blazor — Passing object to sibling component

I am not sure if this is due to a lack of documentation, or there is some missing feature, but I have found a not really related question here:

https://github.com/dotnet/docs/issues/16001

and a similar unanswered question on SO:

https://stackoverflow.com/questions/58276236/passing-object-between-siblings-components

and I am still looking for a solution. What fallows come from the above mentioned question in SO.

Say I have a first component like this:
<EditForm Model="@forecasts" OnValidSubmit="@HandleValidSubmit">
    <DataAnnotationsValidator />
    <ValidationSummary />

                Id
                Date
                Temp. (C)
                Temp. (F)
                Summary

            @foreach (var forecast in forecasts)
            {

                    <NavLink href="<EMAIL_ADDRESS>                    @forecast.Date.ToShortDateString()
<EMAIL_ADDRESS><EMAIL_ADDRESS>                    <InputText<EMAIL_ADDRESS>

            }
                <button class="btn btn-primary" type="submit">Save</button>

</EditForm>

@code {
    List<WeatherForecast> forecasts;

    protected override async Task OnInitializedAsync()
    {
        forecasts = await Http.GetJsonAsync<List<WeatherForecast>>("https://localhost:5000/WeatherForecast/");
    }
    private async Task HandleValidSubmit()
    {
        // What should be put there???
    }
}

Now, as I have already retrieved the list of forecast objects, I want to pass one of them to any other component, say an edit component like the following:
@page "/WeatherForecast/Edit/"
@inject HttpClient Http

@code {
    [Parameter]
    WeatherForecast Forecast { get; set; }

    protected override async Task OnInitializedAsync()
    {
        forecast = // **How to pass the forecast object here from the previous one** //
    }
    private async Task HandleValidSubmit()
    {
        await Http.PostJsonAsync($@"https://localhost:5000/WeatherForecast/", Forecast);
    }
}

(Indeed, it will be wasteful and useless to get again the object for edition…)
How to achieve this with Blazor? I know how to pass value and so on, but not how to pass custom object between siblings components, and for now, did not found how to do this…

In the first component have a property, then bind the Forecast parameter of your second component to that.
<Other Forecast=MyForecast/>
You may wish to make the source property capable of two way binding.
https://blazor-university.com/components/two-way-binding/

Thanks @mrpmorris for your recommendation. I've also found this blog post pretty useful: https://chrissainty.com/3-ways-to-communicate-between-components-in-blazor.
@vintzl I'll encourage you to continue pursuing this discussion on StackOverflow if you need further help.

And what about adding these informations in https://docs.microsoft.com/?

@vintzl the docs typically don't cover application programming patterns. That said, we'd be happy to accept a PR that elaborates this or points to the blog post above.


Docs for creating .appxupload file using the UWP task is wrong

When using the Universal Windows Platform build task the docs (https://www.visualstudio.com/en-us/docs/build/apps/windows/universal) say that one has to use the UapAppxPackageBuildMode switch set to CI in order to create the .appxupload file for store uploads. However, this does not work. Took me a while to figure out that the value of this switch needs to be set to StoreUpload instead. The documentation should be updated accordingly. Pls. find more info here:
http://stackoverflow.com/questions/37713237/vsts-build-for-uwp-app-not-producing-a-appxupload-file/37722883#37722883

Thanks! Fixed.


How to process Robust04 dataset?

I get the Robust04 dataset file as follow:
1.TREC-Disk-4.tar.gz
2.TREC-Disk-5.tar.gz
and while unzip those files, I get a lot of files named "LAL010289" which contains many documents with HTML labels(,).
Could you give me some advice on what should I do next?
Should I move the document files to the same file folder and install the Indri engine to index them?
Thank you very much!

I see the same issue in https://github.com/Georgetown-IR-Lab/cedr/issues/9, so i close it


Census Data 2000 rather than 2010

The CFPB Model uses 2010 geocode data. This uses 2000. Minimal skew, but requires update.

To be closed in v.2010.1.1


Update labeling and exchange rate provider for Envoy

Labeling was added in 1.4.0 alongside coin control, and we host our own exchange rate provider server.

Thanks for the collaboration :)

There is an issue with the JSON format

You can run
cd scripts/
node json-format.js

after fixing the issue, to verify the json is well formatted.

Not sure why it is still failing. I will merge it and then fix it locally. Thanks


Descriptions of crend, end and rend in the table of functions is incorrect

crend description is "Returns a const iterator to the end of a reversed vector." It should be like the descritpion for cend eg
"Returns a const iterator that points just beyond the end of of a reversed vector."
end description is "Returns a random-access iterator that points to the end of the vector." Should be "Returns a random-access iterator that points just beyond the end of the vector."
rend description is "Returns an iterator to the end of a reversed vector."  Should be "Returns an iterator to just beyond the end of a reversed vector."
[Enter feedback here]

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

ID: 36cd55b4-5345-3493-9d05-12868315571d
Version Independent ID: 8e501921-6f1d-7705-231b-7ed0eded02ae
Content: vector class
Content Source: docs/standard-library/vector-class.md
Product: visual-cpp
Technology: cpp-standard-libraries
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

@FlyingDutchman1965, thank you for pointing that out. I've fixed it and the changes should be live in a couple days.
Thank you for helping us improve the docs.

@FlyingDutchman1965 , just FYI that we are having some issues with our publishing pipeline. I hope that the fix will be out sometime next week.


tvos : Error Domain=NSCocoaErrorDomain Code=513

I perform a task download data to a file like guide "Download File Destination" in your README.md.
It builds OK on simulator of tvOS
But when It builds on real device then appear error : Error Domain=NSCocoaErrorDomain Code=513 "“CFNetworkDownload_Fzn4Rg.tmp” couldn’t be moved because you don’t have permission to access “Documents”."
Here is my code :
let destination: DownloadRequest.DownloadFileDestination = { (temporaryURL, response) in
            print("\(response.description)")
            let documentsURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]
            let fileURL = documentsURL.appendingPathComponent("tnt.png")
            return (fileURL, [.removePreviousFile, .createIntermediateDirectories])
        }
download("https://dantricdn.com/thumb_w/640/2017/1-1510200476450.png", to: destination).response { (response) in
            print("\(response.error.debugDescription)")
            guard let destURL = response.destinationURL else {
                return
            }
        }

Can you guide me the right way.
Thanks

@ThanhTrung90 Are you still seeing this issue?


USB discovery

Find a way of addressing USB devices by name (and refer to names in the conf file) instead of tty/USB devices whose indexing depends on external factors, including the order the devices are plugged into the ports

This is actually more for plico than for plico_motor_server

This is now included in the main plico package in plico/utils/serial_or_usb_connection.py


Clarify UpdateNonceState in ledger spec

Closes #1624
Due to persistent hash collisions in tests, this PR (a minor latex edit) now also includes

updating to the newer cardano-base (now with 8 byte ShortHash)
updating extras.cddl

thank you @redxaxder !


DOC/BUG: min_only result does not match documentation

When using the recently introduced min_only parameter in scipy.sparse.csgraph.dijkstra, the results do not match the documentation.
Reproducing code example:
Consider the input also used by the docstring for dijkstra:
from scipy.sparse import csr_matrix
from scipy.sparse.csgraph import dijkstra

graph = [
[0, 1, 2, 0],
[0, 0, 0, 1],
[0, 0, 0, 3],
[0, 0, 0, 0]
]
graph = csr_matrix(graph)

Then, letting indices=[0, 1], we get the following output:
In [11]: dijkstra(csgraph=graph, directed=True, indices=[0, 1], return_predecessors=True, min_only=True)
Out[11]:
(array([0., 0., 2., 1.]),
 array([-9999, -9999,     0,     1]),
 array([0, 1, 0, 1]))

Now, according to the documentation,

[if] min_only=True, dist_matrix has shape (n_nodes,) and contains the shortest path from each node to any of the nodes in indices.

In particular, this would suggest that the shortest path from vertex 2 to any of the vertices 0 and 1 is 2, but there is no path at all from vertex 2 to any of vertices 0 and 1.
Scipy/Numpy/Python version information:
In [14]: import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.3.1 1.16.4 sys.version_info(major=3, minor=7, micro=1, releaselevel='final', serial=0)

I get it now; it's just the wrong way around in the documentation: The number 2 for the vertex 2 means that the minimal path length among all shortest paths starting in indices and ending at 2 is 2. Attempted to spell this out in #10734.


Question regarding Node Evaluation Phase

First of all, thx a lot for this interesting paper and the code to follow along your ideas!
I was also looking through the RAP paper, and it seems that you specifically highlighted the evaluation phase in the phases of MCTS. For the reflection, I understand why you highlight it specifically, but for the evaluation phase I am a bit confused. Is there something inherently special about the evaluation phase in LATS? As far as I understand MCTS, in the expansion phase there is a reward calculation happening, estimating which action to continue from the current node defined from the selection phase before (and this is done in RAP too).
It would be amazing if you could highlight that for me; thank you already :)

Thanks for reaching out, the evaluation for LATS is a bit different than in RAP, we specifically ask the agent to score its own responses, but after environment feedback is obtained. This makes the evaluation more accurate since it involves external feedback. These values are assigned to the node states to guide the search process.

Awesome! Thx for the quick response :) Two short follow-up questions:

Does this replace the reward calculation before the state transition or are both rewards used?
Finally, what would be environment feedback for HotpotQA? The ground-truth whether eg a search got the correct sources?

It depends on the environment, but for cases where rewards are available they are used for the backpropagation step, which updates the state values.
We use an oracle setup for HotPotQA, so there is ground-truth feedback.


Update go version in pipeline_definitions

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/lgtm


Stable version of BUnit

Can u share the information about the stable version of the bunit. Because right now only Beta and preview version are there.
Please share the approx. date

Let's talk in the discussion forum.

Let's talk in the discussion forum.


Prevent Nest component setup crash due insufficient permission.

Description:
Nest component setup will crash if the client_id lack permission for specific APIs. For example, if user didn't select Smoke+CO Alarm read permission, not only Nest Protect, but all Nest sensors will failed to setup.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

@balloob don't know why coverage, but I already followed your comment. Now Configuration will get error message, not Homepage.


Layered operator

Description
Operator was redesigned in order to:

Have more testable and documentable layered design
Be closer to "desired state" driven operator design
Move majority of tests to test unit level and reduce number of controller tests (still have all the original controller tests in place to be able to compare)
Make it fit design document

Which issue(s) does this PR fix or relate to
https://github.com/janus-idp/operator/issues/69
PR acceptance criteria

[x] Tests
[x] Documentation

How to test changes / Special notes to the reviewer
make test

One more thing to check... I used to delete the Deployment after a change to my custom app-config ConfigMap, and then the Operator would recreate an updated Deployment (until https://github.com/janus-idp/operator/issues/236 is implemented).
Now, in this PR, the Deployment is no longer recreated by the Operator after a deletion.
This will make it difficult to reconfigure the application, as currently documented.
@gazarenkov Did you face the same issue?

One more thing to check... I used to delete the Deployment after a change to my custom app-config ConfigMap, and then the Operator would recreate an updated Deployment (until #236 is implemented). Now, in this PR, the Deployment is no longer recreated by the Operator after a deletion. This will make it difficult to reconfigure the application, as currently documented. @gazarenkov Did you face the same issue?

Yes, Deployment is not recreated b/c Operator does lot listen to Deployments. It used to initially, but, as it was correctly mentioned - we must be very careful watching all the object in the cluster scoped controller as may dramatically impact performance:
I believe the reason why 0.1.0 version listen to Deployment is because it can not work correctly otherwise :) .
Fortunately here we have a choice and will use it consciously.


Regression in 0.22.2018.2: Cannot resolve method 'build()'

Short description
Since the update to 0.22.2018.2, we get some classes marked as invalid in intelliJ 2018.2.5.
They get 'red' as soon as they are opened in the editor, however the build runs through smoothly and the 'redness' can temporarily be removed by manually rebuilding that module.
The effect is always:

Some statically imported builder's ".build()" method is marked red with the message "Cannot resolve method 'build()'"
Quite often also the corresponding static import is marked as 'unused'
IntelliJ also fails to display the type of the static method:

Expected behavior
No red markers, intellij detects the build() method correctly.
Version information

IDEA Version:
IntelliJ IDEA 2018.2.5 (Ultimate Edition)
Build #IU-182.4892.20, built on October 16, 2018
Licensed to Ergon Informatik AG / Matthias Keller
Subscription is active until July 5, 2019
JRE: 1.8.0_152-release-1248-b19 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
JDK Version: OpenJDK 11.0.1
OS Type & Version: Windows 10 Pro
Lombok Plugin Version: 0.22.2018.2
**Lombok Dependency Version:**lombok:1.18.2

Hello Matthias,
do you have some reproducible example for your issue? Can you tell some more details? Do you have current issue only with static imports?

Well, I'll close it for now. Please retest with last plugin version 0.27 and feel free to open a new issue if it doesn't help...


Feature manager filter parameters parsed incorrectly

Describe the bug
Hello, I have an issue with Feature Manager stuff (I know that it is in preview).
In particular it is command "az appconfig feature filter add" and "--filter-parameters" part.
Documentation said it is space separated pairs Key=Value but they work not as expected.

Any Value treated as string and wrapped into double quotes. So no chance to set any non string value.
Array parsed with error: KeyName=[arrayValues] results into 2 keys:
"KeyName"="[arrayValues"
"]"=""
(closing bracket becomes new key and again array is a string now, moreover if there was an array of strings inner values have NO string quotes anymore)
If a value is an Object type then it fails the command entirely. (maybe the command doesn't like curly braces)

To Reproduce
Just call this command.
az appconfig feature filter add --feature "FlagName" --label "testEnv" --filter-name "FilterName" --filter-parameters PropertyName="UserName" IsOneOf=["user1","user2","user3","user4"] IntValueCheck=50 BoolValueCheck=true --yes
For object test something like this.
az appconfig feature filter add --feature "FlagName" --label "testEnv" --filter-name "FilterName" --filter-parameters ObjectValueCheck={"a": 50, "b": true}  --yes
Actual behavior
"parameters": {
"PropertyName": "UserName",
"IsOneOf": "[user1,user2,user3,user4",
"]": "",
"IntValueCheck": "50",
"BoolValueCheck": "true"
}
Expected behavior
"parameters": {
"PropertyName": "UserName",
"IsOneOf": ["user1","user2","user3","user4"],
"IntValueCheck": 50,
"BoolValueCheck": true
}
Ability to pass an object should exist.
I would be grateful if you could allow this command to take a json as input.
I think it is the simplest and convenient way to take a json as it is. Because currently I'm parsing json to make space separated pairs which in turn should create the same json as I've parsed.
Environment summary
Azure Powershell Task in Azure DevOps 5.179.0, azure-cli 2.11.0, Az-Account 1.9.3
Additional context
I've tried it by installing azure cli on local PC, result is the same

route to appropriate team

Hi @HarrowinG, we only support adding filter parameters which are strings, or array of strings. Other data types such as numbers, booleans and JSON objects will be converted to strings. However, we are considering changing this behavior to allow storing data types other than strings as filter parameter values. But this will not be a trivial change and might take some time to release. In the meantime, you might be able to achieve what you want by importing your feature flags from a JSON file.
Since you already have a JSON file where your filter parameters are stored, you might be able to tweak your original JSON file in order to import it. The JSON schema to denote feature flags is described here.
In your case, your JSON file being imported should look like this:
{
  "FeatureManagement": {
    "FlagName": {
      "EnabledFor": [
        {
          "Name": "FilterName",
          "Parameters": {
            "PropertyName": "UserName",
            "IsOneOf": [
              "user1",
              "user2",
              "user3",
              "user4"
            ],
            "IntValueCheck": 50,
            "BoolValueCheck": true,
            "ObjectValueCheck": {
              "a": 50,
              "b": true
            }
          }
        }
      ]
    }
  }
}

You can import this file into your App Configuration by running this command:
az appconfig kv import -s file -n <storeName> --format json --path <filePath> --label testEnv
Let me know if this workaround doesn't work for you.

Hi @avanigupta, thanks for your answer. But the logic a bit more complex. When service is deploying it knows which flags it needs. But if such flags already there we need to skip it to not override existing configuration. As I understand it will just replace all flags or filters. Can this command handle partial flag names extraction?

Hi @avanigupta, thanks for your answer. But the logic a bit more complex. When service is deploying it knows which flags it needs. But if such flags already there we need to skip it to not override existing configuration. As I understand it will just replace all flags or filters. Can this command handle partial flag names extraction?

Hi @HarrowinG, you are right, importing from file will update all feature flags which match the specified label in AppConfig with the values from file.
If I understand correctly, your current approach is to fetch each feature flag that the service needs and perform some checks:

If the feature flag exists, check its filter parameters.

If the feature flag in AppConfig has all the filter parameters that your service needs, do nothing.
If the filter parameters required by the service are missing, update that feature flag with new filter parameters without overriding existing filter parameters.

If the feature flag does not exist, add a new feature flag.

Can you confirm if my understanding is correct?

Hi @HarrowinG, you are right, importing from file will update all feature flags which match the specified label in AppConfig with the values from file.
If I understand correctly, your current approach is to fetch each feature flag that the service needs and perform some checks:

If the feature flag exists, check its filter parameters.

If the feature flag in AppConfig has all the filter parameters that your service needs, do nothing.
If the filter parameters required by the service are missing, update that feature flag with new filter parameters without overriding existing filter parameters.

If the feature flag does not exist, add a new feature flag.

Can you confirm if my understanding is correct?

Hi @avanigupta, yes, you are right.

Hi @avanigupta, yes, you are right.

Hi @HarrowinG, this feature will be available in the next release of Azure CLI.

Hi @HarrowinG, this feature will be available in the next release of Azure CLI.


Subtitles: Admin

Motivation and Context
Admins should be able to generate subtitles.
Description

Link Worker and Voice Service
Implement Receiver
Add a button for subtitle generation on the admin course page

Steps for Testing

course Admin
voice-service running @ localhost:5055 (or configured otherwise)
update VOD file to a local file in database

e.g. update tumlive.files set path = '/Users/hansi/Desktop/video.mp4' where stream_id = 11111;

Log in
Head to admin course page
Generate subtitles (Next to VOD download button)
Check database if subtitles have been inserted
🌟

Amazing! Can you add the voice-service to docker-compose.yml (referencing the image url instead of build folder)?

Amazing! Can you add the voice-service to docker-compose.yml (referencing the image url instead of build folder)?

Good catch. Almost forgot about that 😅
Be aware that the voice service currently throws an error when starting since we still need to create a new release. Plus, the environment has to be updated too once queueing is merged.
But I guess this PR isn't mergeable anyways until the voice-service is deployed. 😬


reeindex posts when changed

currently reindexing happens by manual command on the backend. Ideally reindexing would talk place automatically whenever posts are added, edited, removed

done with 1 (!) line of code added to howto/settings/base.py:
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'


Add support for connected devices

Moved and improved from Fastlane core repo.
https://github.com/fastlane/fastlane_core/pull/120
This change adds support for usb connected tvOS and iOS devices

This seems great - thanks for the contribution! :+1:
It would also be great to see some tests for this functionality. Do you think you can start with some canned output from system_profiler SPUSBDataType and xcrun simctl list devices in spec/fixtures and make some assertions from there?

Thanks @matthewellis

Thanks @matthewellis, I added a comment regarding how we read the output of the USB devices. There seems to be no JSON API, however we can read this data using XML, so that's better than manually parsing the text :+1:

Updated my pull request to use xml output of system_profiler and add refactored simulator_spec into device_manager_spec to add tests for connected devices and a test for all simulator types. I also moved the output of simctl to a file in the fixtures folder.
Let me know if there is anything else i need to tidy up. :rocket:

Are we all good to merge? :smile:

Made the changes to include iPod's :+1:

Great, I will have a look tomorrow!

Fixed subclass, could you have a look when you get a chance?

Looking good to me. @KrauseFx what are your thoughts?

Hey @mfurtak, sorry I somehow missed that notification, thanks for merging :+1: I'll take a look at the source code now

This is great, thank you so much for working on this 👍


Rectangular problems not supported by lapmod()?

I tried to exectue lapmod() on a simple rectangular problem (10x20), but got a segmentation fault. Differently, lapjv supports rectangular problems. Here the code to reproduce, with sparse_from_dense() taken from your tests:
## test_rlap.py ##

import numpy as np
from lap import lapjv, lapmod

def sparse_from_dense(cost):
    cc = cost.flatten()
    n_rows = cost.shape[0]
    n_columns = cost.shape[1]
    ii = np.empty((n_rows+1,), dtype=int)
    ii[0] = 0
    ii[1:] = n_columns
    ii = np.cumsum(ii)
    kk = np.tile(np.arange(n_columns, dtype=int), n_rows)
    return n_rows, cc, ii, kk

if __name__ == '__main__':
    n_rows = 10
    n_cols = 20
    min_value = 0
    max_value = 1000
    cost = np.random.randint(low=min_value, high=max_value, size=(n_rows, n_cols))
    cost_opt, row_col, col_row = lapjv(cost, extend_cost=True)
    print("lapjv: %s" % cost_opt)
    n_rows, cc, ii, kk = sparse_from_dense(cost)
    cost_opt, col_row, row_col = lapmod(n_rows, cc, ii, kk)
    print("lapmod: %s" % cost_opt)

## executed:
In [1]: run test_rlap.py
lapjv: 444.0
*** Error in `/usr/bin/python': malloc(): memory corruption: 0x0000000002f907d0 ***
...

Are there plans to add support for rectangular problems in lapmod()? Am I missing something?
Thanks for your efforts and code!

Conversely, if the rectangular cost matrix has more rows than columns, e.g. n_rows=20, n_cols=10, then lapmod() does not segfault but the result is puzzling: the optimized final cost is "infinite" and the assignment is wrong and does not match at all with that of lapjv() - which correctly works in this case too.

Yes, you are completely right lapjv can deal with non-square matrices but lapmod cannot.
This has been already brought up once, see https://github.com/gatagat/lap/issues/4#issuecomment-314847414

What would be ideal is to make lapmod(..., extend_cost=True) analogous to lapjv(..., extend_cost=True) as that it what everybody expects.
I'd be happy to include a PR that adds this.

First of all, thank you for the prompt answer and the code. I tried to use the code you referenced, but it does not seem to work because the results of lapjv and lapmod differ:
import numpy as np
from lap import lapjv, lapmod
from lapmod import prepare_sparse_cost
from scipy.sparse import coo_matrix, csr_matrix

def lapmod_rectangular(cost_coo, cost_limit=1e3):
    cc = cost_coo.data
    ii = cost_coo.row
    jj = cost_coo.col
    shape = cost_coo.shape
    n_rows = shape[0]
    cc, ii, kk = prepare_sparse_cost(shape, cc, ii, jj, cost_limit)
    ind1, ind0 = lapmod(len(ii)-1, cc, ii, kk, return_cost=False)
    ind1[ind1 >= shape[1]] = -1
    ind0[ind0 >= shape[0]] = -1
    ind1 = ind1[:shape[0]]
    ind0 = ind0[:shape[1]]
    return ind1, ind0

if __name__ == '__main__':
    np.random.seed(0)
    n_rows = 5
    n_cols = 10
    min_value = 0
    max_value = 10
    cost = np.random.randint(low=min_value, high=max_value, size=(n_rows, n_cols))
    print("cost matrix:")
    print(cost)
    cost_opt, x, y = lapjv(cost, extend_cost=True, return_cost=True)
    print("lapjv cost_opt: %s" % cost_opt)
    print("lapjv x: %s" % (x,))
    print("lapjv y: %s" % (y,))
    cost_coo = coo_matrix(cost)
    cost_limit = 1e3
    ind1, ind0 = lapmod_rectangular(cost_coo, cost_limit)
    print("lapmod ind1: %s" % (ind1,))
    print("lapmod ind0: %s" % (ind0,))
    print("lapmod cost_opt: %s" % cost[range(n_rows), ind1].sum())

### execution ###
cost matrix:
[[5 0 3 3 7 9 3 5 2 4]
 [7 6 8 8 1 6 7 7 8 1]
 [5 9 8 9 4 3 0 3 5 0]
 [2 3 8 1 3 3 3 7 0 1]
 [9 9 0 4 7 3 2 7 2 0]]
lapjv cost_opt: 1.0
lapjv x: [1 4 9 8 2]
lapjv y: [-1  0  4 -1  1 -1 -1 -1  3  2]
lapmod ind1: [8 9 7 3 6]
lapmod ind0: [-1 -1 -1  3 -1 -1  4  2  0  1]
lapmod cost_opt: 9

Am I doing something wrong?
I'm targeting (very) large (very) sparse (slightly) rectangular cost matrices, around 1Mx1M. I'm also having a look at the auction algorithm to understand whether it could address my problems or not. Would you suggest it in such a setting? Unfortunately, I cannot find a nice Python implementation of it, like your lapmod().

Thanks for the test case, that helps a lot.
From a quick look it really seems there is some issue with the way the matrix gets extended in prepare_sparse_cost. I'll try to find out whats happening and let you know.
Concerning the auction algorithm, i am not aware of a nice python implementation.

Ok, the way cost is extended in lapjv and the proposed extension for lapmod above differ from each other, which could in principle cause some issues and i am looking into it, but the issue is elsewhere.
Your usage of scipy.sparse.coo_matrix assumes that the zero values in your cost matrix are the ones that can be left out, which is wrong. All entries "missing" from the sparse cost matrix are assumed to be infinite (not zero). So in the test case this effectively excludes all originally zero entries from the lapmod solution.
If you modify the original cost as follows, you will get the cost that lapmod is using. For this modified cost matrix also lapjv will output an optimal solution with optimum of 9.
cost[cost == 0] = cost_limit

Does this make sense?

Yes! Sorry for the rookie mistake! Indeed avoiding zeros in the cost matrix solves the problem, even just by setting min_value = 1:
cost matrix:
[[6 1 4 4 8 4 6 3 5 8]
 [7 9 9 2 7 8 8 9 2 6]
 [9 5 4 1 4 6 1 3 4 9]
 [2 4 4 4 8 1 2 1 5 8]
 [4 3 8 3 1 1 5 6 6 7]]
lapjv cost_opt: 6.0
lapjv x: [1 8 6 7 4]
lapjv y: [-1  0 -1 -1  4 -1  2  3  1 -1]
lapmod ind1: [1 8 6 5 4]
lapmod ind0: [-1  0 -1 -1  4  3  2 -1  1 -1]
lapmod cost_opt: 6

(the two solutions of lapjv and lapmod are slighty different but equivalent in terms of cost).
About how to describe this issue in the docs: clearly, coo_matrix(cost) is not the way to get cc, ii, jj in a straighforward way, because of the handling of zeros as special values, i.e. as missing data that lapmod() will consider instead as infinite value, as you pointed out. Maybe adding WARNING: scipy.sparse.coo_matrix(cost) will not return the correct (cc, ii, jj) if cost has some zero values. in the docstring of prepare_sparse_cost()?. Alterntively, scipy.sparse.coo_matrix() should trigger a warning every time it is instanced from a dense matrix with some zero values. After all, those values will disappear and such behavior is not even documented in the documentation(!).


Patterns reusing variables

The following two programs from the gradualizer test suite type check successfully but they should fail:
-module(case_pattern).
-export([f/2]).

-spec f(integer(), atom()) -> ok.
f(X, Y) ->
    case Y of
        X -> ok
    end.

-module(case_pattern2).
-export([f/2]).

-spec f(integer(), atom()) -> ok.
f(X, Y) ->
    case {X, Y} of
        {Z, Z} -> ok
    end.

They are also marked as "should fail" in the gradualizer test suite.
The following programs seems related:
-module(varbind_in_block).

-export([add_vars/2]).

-spec add_vars(1..2, 2..3) -> 2.
add_vars(A, B) ->
    V = A,
    V = B,
    V.

However, this program is marked as "should pass" in gradualizer. I think it should fail because the call add_vars(1,3) triggers a runtime error.

Currently, all three tests do not fail in our case. Is this a bug or a missing feature @skogsbaer ?


add Matt Nolan as a collaborator

Add Matt Nolan as a collaborator to this project.  He has been active in the TDML code with Mike Hoke.

+1 👍 I think this may need my PR merged before it will fully pass CI though

I think it's ok to merge because we really know this change has nothing to do with the build failure. Do I dare press the button?


Gradient Bleed

gradient_bleed_issue.pdf
Configuration:

Chrome (latest)
Mac OS X Big Sur
PDF.js version: latest (reproduced on pdf.js demo page)

Steps to reproduce the problem:

Open attached pdf in pdf.js demo viewer
Notice the gradients spilling over the stop color into solid vertical lines

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)

Might be related to:
https://github.com/mozilla/pdf.js/issues/11018

WFM on Windows; this is likely a MacOS-specific bug.

WFM too on Linux in Firefox nightly.

WFM on Windows; this is likely a MacOS-specific bug.

Yep, I just tried on Win, works fine there.

It seems to be specific to Chromium on OS X (Chrome & MS Edge), as Firefox and Safari also work as expected.


[Improvement] Add possibility to set date filter to 'Today'

As a user I'd like to have a possibility to create filter which show me test runs that were conducted today

done


Can't get ChatterBot to work

Hi, I installed version 0.8.6 on Ubuntu 16.04 and am using Python 3.x, and the first thing that I tried to do is get some examples up and running. The first time I installed chatterbot, it somehow worked but would only reiterate the words which I entered. I then tried the quick start guide code, but that one would only reply with the time for some reason. I uninstalled and reinstalled chatterbot, and now when I try to run any of the code, it comes up with this error:
List Trainer: [#######             ] 33%Traceback (most recent call last):
  File "chatbot.py", line 13, in <module>
    "Your flight has been booked."
  File "/usr/local/lib/python2.7/dist-packages/chatterbot/trainers.py", line 110, in train
    statement = self.get_or_create(text)
  File "/usr/local/lib/python2.7/dist-packages/chatterbot/trainers.py", line 48, in get_or_create
    statement = self.storage.find(temp_statement.text)
  File "/usr/local/lib/python2.7/dist-packages/chatterbot/storage/sql_storage.py", line 132, in find
    record = query.first()
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2825, in first
    ret = list(self[0:1])
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2617, in __getitem__
    return list(res)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 98, in instances
    util.raise_from_cause(err)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 79, in instances
    rows = [proc(row) for row in fetch]
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 508, in _instance
    loaded_instance, populate_existing, populators)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/loading.py", line 608, in _populate_full
    dict_[key] = getter(row)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/sqltypes.py", line 1588, in process
    return loads(value)
ValueError: unsupported pickle protocol: 4

and when I try running it with python3, it does this:
List Trainer: [#######             ] 33%Traceback (most recent call last):
  File "chatbot.py", line 13, in <module>
    "Your flight has been booked."
  File "/home/dylan/.local/lib/python3.5/site-packages/chatterbot/trainers.py", line 110, in train
    statement = self.get_or_create(text)
  File "/home/dylan/.local/lib/python3.5/site-packages/chatterbot/trainers.py", line 48, in get_or_create
    statement = self.storage.find(temp_statement.text)
  File "/home/dylan/.local/lib/python3.5/site-packages/chatterbot/storage/sql_storage.py", line 128, in find
    Statement = self.get_model('statement')
  File "/home/dylan/.local/lib/python3.5/site-packages/chatterbot/storage/storage_adapter.py", line 34, in get_model
    return get_model_method()
  File "/home/dylan/.local/lib/python3.5/site-packages/chatterbot/storage/sql_storage.py", line 89, in get_statement_model
    from chatterbot.ext.sqlalchemy_app.models import Statement
  File "/home/dylan/.local/lib/python3.5/site-packages/chatterbot/ext/sqlalchemy_app/models.py", line 8, in <module>
    from chatterbot.conversation import StatementMixin
ImportError: cannot import name 'StatementMixin'

I have no idea what's going on at this point, and I am in dire need of some help, which would be greatly appreciated. Thanks so much.
PS I tried running everything with sudo.

One more thing is that I ~just got it to do something else with the "basic example", and all it does is consistently reply "I am sorry, but I do not understand". Still no luck with any other example.

It seems to me you are using old version of chatterbot, could you try to upgrade to latest version pip install --upgrade chatterbot still you are getting errors please post stack trace.

@dylanail The upgrade command will also make sure that you have the latest supported dependencies installed for ChatterBot, such as sqlalchemy.

I'm uncertain about the cause of the import error. What does the structure of your working directory look like?


ENH: Option to load pipeline on creation

Option to load pipeline on creation
Also option to add pipeline output directory to additional module paths

Ran into an issue with the text label being scrunched. Pushed a small fix for it, but it isn't the best approach (setting a minim size).  Couldn't find any other setting that would fix it.


Create new user on compute and storage instances

The "instances_ssh_user" should be used as the user name.

@ntrishal Thank you for looking into and passing changes. After broader discussion with the team;

vpcuser is created as a default user. However, the ssh redirect from the root is not enforced currently.
Our changes;

Remove taking instance_ssh_user input from user.
Remove user-data related to ssh keys. And add below for bastion as well scale instances.

#!/usr/bin/sh
sed -i -e 's/^/no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo '\''Please login as the user \\"vpcuser\\" rather than the user \\"root\\".'\'';echo;sleep 10;exit 142" /' /root/.ssh/authorized_keys

@ntrishal Thank you. My apologies for the delay. Based on the advancements from the cloud team. we can do;
github.com/sasikeda/ibm-spectrum-scale-cloud-install/ibmcloud_scale_templates/ibmcloud_new_vpc_scale# git diff ibmcloud_new_vpc_scale_variables.tf
diff --git a/ibmcloud_scale_templates/ibmcloud_new_vpc_scale/ibmcloud_new_vpc_scale_variables.tf b/ibmcloud_scale_templates/ibmcloud_new_vpc_scale/ibmcloud_new_vpc_scale_variables.tf
index a76b5ae..df9663c 100755
--- a/ibmcloud_scale_templates/ibmcloud_new_vpc_scale/ibmcloud_new_vpc_scale_variables.tf
+++ b/ibmcloud_scale_templates/ibmcloud_new_vpc_scale/ibmcloud_new_vpc_scale_variables.tf
@@ -129,12 +129,6 @@ variable "filesystem_block_size" {
   description = "Filesystem block size."
 }

-variable "instances_ssh_user" {
-  type        = string
-  default     = "root"
-  description = "Name of the administrator to access the bastion instance."
-}
-
 variable "instances_ssh_private_key" {
   type        = string
   sensitive   = true

github.com/sasikeda/ibm-spectrum-scale-cloud-install/ibmcloud_scale_templates/ibmcloud_new_vpc_scale# git diff ../../resources/ibmcloud/compute/bastion_vsi/bastion_vsi.tf
diff --git a/resources/ibmcloud/compute/bastion_vsi/bastion_vsi.tf b/resources/ibmcloud/compute/bastion_vsi/bastion_vsi.tf
index 0bacd16..d7840eb 100755
--- a/resources/ibmcloud/compute/bastion_vsi/bastion_vsi.tf
+++ b/resources/ibmcloud/compute/bastion_vsi/bastion_vsi.tf
@@ -14,6 +14,28 @@ variable "vsi_user_public_key" {}
 variable "resource_grp_id" {}

+data "template_file" "metadata_startup_script" {
+  template = <<EOF
+#!/usr/bin/env bash
+if grep -q "Red Hat" /etc/os-release
+then
+    USER=vpcuser
+    if grep -q "platform:el8" /etc/os-release
+    then
+        PKG_MGR=dnf
+    else
+        PKG_MGR=yum
+    fi
+elif grep -q "Ubuntu" /etc/os-release
+then
+    USER=ubuntu
+    PKG_MGR=apt-get
+fi
+sed -i -e "s/^/no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo \'Please login as the user \\\\\"$USER\\\\\" rather than the user \\\\\"root\\\\\".\';echo;sleep 10; exit 142\" /" /root/.ssh/authorized_keys
+$PKG_MGR install -y python3 unzip kernel-devel-$(uname -r) kernel-headers-$(uname -r)
+EOF
+}
+
 resource "ibm_is_instance" "vsi" {
   count   = var.total_vsis
   name    = "${var.vsi_name_prefix}-vsi-${count.index + 1}"
@@ -29,6 +51,7 @@ resource "ibm_is_instance" "vsi" {
   zone           = element(var.zones, count.index)
   resource_group = var.resource_grp_id
   keys           = var.vsi_user_public_key
+  user_data      = data.template_file.metadata_startup_script.rendered

   boot_volume {
     name = "${var.vsi_name_prefix}-vsi-${count.index + 1}-vol"

github.com/sasikeda/ibm-spectrum-scale-cloud-install/ibmcloud_scale_templates/ibmcloud_new_vpc_scale# git diff ../../resources/ibmcloud/compute/scale_vsi_0_vol/scale_vsi_0_vol.tf
diff --git a/resources/ibmcloud/compute/scale_vsi_0_vol/scale_vsi_0_vol.tf b/resources/ibmcloud/compute/scale_vsi_0_vol/scale_vsi_0_vol.tf
index a9127a1..7ec6035 100755
--- a/resources/ibmcloud/compute/scale_vsi_0_vol/scale_vsi_0_vol.tf
+++ b/resources/ibmcloud/compute/scale_vsi_0_vol/scale_vsi_0_vol.tf
@@ -22,25 +22,21 @@ variable "resource_grp_id" {}
 data "template_file" "metadata_startup_script" {
   template = <<EOF
 #!/usr/bin/env bash
-mkdir -p ~/.ssh/
-echo "${var.vsi_meta_private_key}" > ~/.ssh/id_rsa
-echo "${var.vsi_meta_public_key}" > ~/.ssh/id_rsa.pub
-cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
-echo "StrictHostKeyChecking no" >> ~/.ssh/config
-sed -i 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config
-systemctl restart sshd
-chmod 600 ~/.ssh/id_rsa
-chmod 600 ~/.ssh/id_rsa.pub
-chmod 600 ~/.ssh/authorized_keys
 if grep -q "Red Hat" /etc/os-release
 then
+    USER=vpcuser
     if grep -q "platform:el8" /etc/os-release
     then
         PKG_MGR=dnf
     else
         PKG_MGR=yum
     fi
+elif grep -q "Ubuntu" /etc/os-release
+then
+    USER=ubuntu
+    PKG_MGR=apt-get
 fi
+sed -i -e "s/^/no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo \'Please login as the user \\\\\"$USER\\\\\" rather than the user \\\\\"root\\\\\".\';echo;sleep 10; exit 142\" /" /root/.ssh/authorized_keys
 $PKG_MGR install -y python3 unzip kernel-devel-$(uname -r) kernel-headers-$(uname -r)
 EOF
 }

github.com/sasikeda/ibm-spectrum-scale-cloud-install/ibmcloud_scale_templates/ibmcloud_new_vpc_scale# git diff ../../resources/ibmcloud/compute/scale_vsi_multiple_vol/scale_vsi_multiple_vol.tf
diff --git a/resources/ibmcloud/compute/scale_vsi_multiple_vol/scale_vsi_multiple_vol.tf b/resources/ibmcloud/compute/scale_vsi_multiple_vol/scale_vsi_multiple_vol.tf
index 46bd6f8..5a14e58 100755
--- a/resources/ibmcloud/compute/scale_vsi_multiple_vol/scale_vsi_multiple_vol.tf
+++ b/resources/ibmcloud/compute/scale_vsi_multiple_vol/scale_vsi_multiple_vol.tf
@@ -29,25 +29,21 @@ locals {
 data "template_file" "metadata_startup_script" {
   template = <<EOF
 #!/usr/bin/env bash
-mkdir -p ~/.ssh/
-echo "${var.vsi_meta_private_key}" > ~/.ssh/id_rsa
-echo "${var.vsi_meta_public_key}" > ~/.ssh/id_rsa.pub
-cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
-echo "StrictHostKeyChecking no" >> ~/.ssh/config
-sed -i 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config
-systemctl restart sshd
-chmod 600 ~/.ssh/id_rsa
-chmod 600 ~/.ssh/id_rsa.pub
-chmod 600 ~/.ssh/authorized_keys
 if grep -q "Red Hat" /etc/os-release
 then
+    USER=vpcuser
     if grep -q "platform:el8" /etc/os-release
     then
         PKG_MGR=dnf
     else
         PKG_MGR=yum
     fi
+elif grep -q "Ubuntu" /etc/os-release
+then
+    USER=ubuntu
+    PKG_MGR=apt-get
 fi
+sed -i -e "s/^/no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command=\"echo \'Please login as the user \\\\\"$USER\\\\\" rather than the user \\\\\"root\\\\\".\';echo;sleep 10; exit 142\" /" /root/.ssh/authorized_keys
 $PKG_MGR install -y python3 unzip kernel-devel-$(uname -r) kernel-headers-$(uname -r)
 EOF
 }


account.md:6: Complete information of Krungthai bank in Thai -->

The puzzle DATA-0004-071f4d6a from #DATA-0004 has to be resolved:
https://github.com/kamontat/thaibank/blob/ff70516ca9755eb0bd7ed7c466aba844f6633c29/website/compare/account.md#L6-L6
The puzzle was created by @kamontat on 23-Apr-19.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle DATA-0004-071f4d6a has disappeared from the source code, that's why I closed this issue.


Use scala metals instead of ENSIME

https://github.com/scalameta/metals

Going to hold off on this until metals is a little more mature.


Track keycloak-gatekeeper project

Track RedHat's adoption of the upstream project.

This is the wrong repo for that. This is a variant of the NGinX proxy rather than the Keycloak proxy.


Small change for test

I'm having some problems with the benchmarking machine.


Adopt jobcacher plugin

Description
In agreement with @petehayes,  I am adopting the jobcacher plugin.
Submitter checklist for adding or changing permissions

Always

[x] Add link to plugin/component Git repository in description above

When adding new uploaders (this includes newly created permissions files)

[x] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[x] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[x] Make sure to @mention the users being added so their GitHub account names are known if they require GitHub merge access (see below).
[x] All newly added users have logged in to Artifactory at least once

Reviewer checklist (not for requesters!)

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo (please @ the people/person with their GitHub username in this issue as well). If needed, it can be done using an IRC Bot command
[ ] Check that the $pluginId Developers team has Admin permissions while granting the access.
[ ] In the case of plugin adoption, ensure that the Jenkins Jira default assignee is either removed or changed to the new maintainer.
[ ] If security contacts are changed (this includes add/remove), ping the security officer (currently @Wadeck) in this pull request. If an email contact is changed, wait for approval from the security officer.

There are IRC Bot commands for it

Don't forget to enable CD in this repo as well if you're doing https://github.com/jenkinsci/jobcacher-plugin/pull/11
https://www.jenkins.io/doc/developer/publishing/releasing-cd/#enable-cd-permissions

Don't forget to enable CD in this repo as well if you're doing jenkinsci/jobcacher-plugin#11
https://www.jenkins.io/doc/developer/publishing/releasing-cd/#enable-cd-permissions

Thanks for the hint. I created #2581 to enable CD.

@petehayes Many thanks for the work and effort you put into the plugin.


Check for multi-assignee Pull Request

Description
Will be useful to check even for multi-assignee pull request in order to don't loose something that will should track instead.

It's done

❓

The plugin is already checking for multi-assigned PR right?

Actually no, because i guess than when there are multiple assignee to a PR, the github API will return an array-like structure into the response JSON, so i have to introduce this functionality


Can anyone help me learn how to login? Getting 429 error (New at coding/python)

Ive been trying to run instaloader,
Ive Installed Instaloader and updated as directed in the readme and ive tried to do a basic command of instaloader "Username" and its coming up with this error:

This is the terminal transcript from when ive been trying stuff. Just wanted to make sure there isnt anything im doing that is obviously not right so i can learn what not to do next time?
I've seen that i need to enter password and username for it to work again, do i do that in my code editor (im using Visual studio code).
Thanks in advance anyone who can quickly look over this!
<3
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\MMCS\Desktop\Repository\Instaloader Repository Source Code\Instaloader
test>C:/Users/MMCS/AppData/Local/Programs/Python/Python38-32/python.exe "c:/Users/MMCS/Desktop/Repository/Instaloader Repository Source Code/Instaloader test/Jablinski_Scraper.py"
File "c:/Users/MMCS/Desktop/Repository/Instaloader Repository Source Code/Inst
aloader test/Jablinski_Scraper.py", line 1
$pip3 install instaloader
^
SyntaxError: invalid syntax
C:\Users\MMCS\Desktop\Repository\Instaloader Repository Source Code\Instaloader
test>C:/Users/MMCS/AppData/Local/Programs/Python/Python38-32/python.exe "c:/Users/MMCS/Desktop/Repository/Instaloader Repository Source Code/Instaloader test/Jablinski_Scraper.py"
File "c:/Users/MMCS/Desktop/Repository/Instaloader Repository Source Code/Instaloader test/Jablinski_Scraper.py", line 1
instaloader [--login jonathan_cervantes92]
^
SyntaxError: invalid syntax
C:\Users\MMCS\Desktop\Repository\Instaloader Repository Source Code\Instaloader test>C:/Users/MMCS/AppData/Local/Programs/Python/Python38-32/python.exe "c:/Users/MMCS/Desktop/Repository/Instaloader Repository Source Code/Instaloader test/Jablinski_Scraper.py"
File "c:/Users/MMCS/Desktop/Repository/Instaloader Repository Source Code/Instaloader test/Jablinski_Scraper.py", line 1
instaloader [--login jonathan_cervantes92]
^
SyntaxError: invalid syntax
C:\Users\MMCS\Desktop\Repository\Instaloader Repository Source Code\Instaloader test>
C:\Users\MMCS\Desktop\Repository\Instaloader Repository Source Code\Instaloader test>pip3 install --upgrade instaloader
Requirement already up-to-date: instaloader in c:\users\mmcs\appdata\local\programs\python\python38-32\lib\site-packages (4.4.4)
Requirement already satisfied, skipping upgrade: requests>=2.4 in c:\users\mmcs\appdata\local\programs\python\python38-32\lib\site-packages (from instaloader) (2.24.0)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in c:\users\mmcs\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.4->instaloader) (2.10)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\users\mmcs\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.4->instaloader) (2020.6.20)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in c:\users\mmcs\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.4->instaloader) (3.0.4)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\mmcs\appdata\local\programs\python\python38-32\lib\site-packages (from requests>=2.4->instaloader) (1.25.9)
C:\Users\MMCS\Desktop\Repository\Instaloader Repository Source Code\Instaloader test>instaloader 6amfeeling
HTTP redirect from https://www.instagram.com/6amfeeling/ to https://www.instagram.com/accounts/login/?next=/6amfeeling/
JSON Query to 6amfeeling/: 429 Too Many Requests: redirected to login [retrying; skip with ^C]
HTTP error code 429 was returned because too many queries occurred in
the last time. Please do not use Instagram in your browser or run
multiple instances of Instaloader in parallel.
The request will be retried in 664 seconds, at 22:42.
GraphQL requests:
other
last 10 minutes: 1 requests
last 11 minutes: 1 requests
last 15 minutes: 1 requests
last 20 minutes: 1 requests
last 30 minutes: 1 requests
last 60 minutes: 1 requests

As I replied in #726 check/change your ip address. It seems to be blocked by instagram. refer to: https://instaloader.github.io/troubleshooting.html#too-many-requests
If you use your account to login now, it also will be blocked by instagram.
Everything else is well described in the manual: https://instaloader.github.io/


relax test

The introduction of linear solve vs matrix inversion method in PowerNetworkMatrices created some numerical differences in the PTDF values that seem to be enough to cause a larger difference in the cost of PTDF vs DCP.
The optimization json file diffs are shown below.


App.jsx changes to work with staking contract example

Ethers.utils and duration imported fixed some undefined errors.
Removed address from withdraw function as example uses msg.sender.

looks good


Support CKAN 2.10

In CKAN 2.10, they have renamed the IPackageController hooks, this PR adds support for this while maintaining CKAN 2.9 support.
Fixes #80

coverage: 64.719% (+0.2%) from 64.474% when pulling 44e14bb8626c1dbdba74195a87a323d4539c8bb1 on josh/ckan-2.10 into cec490c4526aa3eb14263dd0df9ad760d068f4ba on dev.


CreateProcess failed GLE =2 and drrun.exe with -debug reports nothing

I am trying run winafl on a Delphi 32bit executable, but afl-fuzz fails with a GLE=2 and no further details
S:\winafl\bin32>afl-fuzz -i input -o output -t 1000 -D s:\DynamicRIO\bin32\ -- -coverage-module dwsFuzz.exe -target_module dwsFuzz.exe -target_method FuzzTest -nargs 1 -- s:\winafl\bin32\dwsFuzz.exe "@@"
WinAFL 1.16b by<EMAIL_ADDRESS>Based on AFL 2.43b by<EMAIL_ADDRESS>[+] You have 8 CPU cores and 0 runnable tasks (utilization: 0%).
[+] Try parallel jobs - see docs\parallel_fuzzing.txt.
[*] Checking CPU core loadout...
[+] Found a free CPU core, binding to #0.
[*] Setting up output directories...
[+] Output directory exists but deemed OK to reuse.
[*] Deleting old session data...
[+] Output dir cleanup successful.
[*] Scanning 'input'...
[+] No auto-generated dictionary tokens to reuse.
[*] Creating hard links for all input files...
[*] Attempting dry run with 'id_000000'...

[-] PROGRAM ABORT : CreateProcess failed, GLE=2.

         Location : create_target_process(), c:\work\winafl\source\afl-fuzz.c:2330

(I tried the @@ with and without simple and double quotes)
when attempting a debug run with drrun.exe, no log file is created and no error is reported, the command
S:\winafl\bin32>\DynamoRIO\bin32\drrun.exe -c winafl.dll -debug -target_module dwsFuzz.exe -fuzz_iterations 10 -target_offset 0x002EFBE4 -nargs 1 -- s:\winafl\bin32\dwsFuzz.exe s:\winafl\bin32\input\test.pas
Just returns with an empty line.
I also tried -target_method with the method name (I checked it is properly exported with Nirsoft DLL export viewer), but no difference.
Any hints as to what is missing ?

GLE means "GetLastError",  so GLE=2 indicates ERROR_FILE_NOT_FOUND
so, please be sure that s:\winafl\bin32\dwsFuzz.exe and DynamoRIO files exist.

GLE means "GetLastError",  so GLE=2 indicates ERROR_FILE_NOT_FOUND
so, please be sure that s:\winafl\bin32\dwsFuzz.exe and DynamoRIO files exist.