Install-DbaMaintenanceSolution: Issue from Slack

Unsure if this was fixed, but I had it in my queue and wanted to make an issue
Hi, got this error message when running Install-DbaMaintenanceSolution. Any ideas what the problem can be?
Remove-DbaAgentJob : Cannot convert the "CommandLog Cleanup" value of type "Microsoft.SqlServer.Management.Smo.Agent.Job" to type "Microsoft.SqlServer.Management.Smo.Agent.Job[]".
At C:\Program Files\WindowsPowerShell\Modules\dbatools\allcommands.ps1:47928 char:46

Hi, I'm encountering the same overall issue from what it looks like. I'm running 'Install-DbaMaintenanceSolution' (with the -InstallJobs parameter) which runs fine.  I'm then immediately using 'Set-DbaAgentJob' and 'New-DbaAgentSchedule' to edit/schedule the created jobs.  It only works about 20% of the time without warnings whereas in most cases some or all of the commands will give warnings like this:
WARNING: [13:08:08][Set-DbaAgentJob] Something went wrong retrieving the job | Cannot convert the "CommandLog Cleanup"
value of type "Microsoft.SqlServer.Management.Smo.Agent.Job" to type "Microsoft.SqlServer.Management.Smo.Agent.Job[]"
I've attached the commands I'm running in sequence if it helps reproducing the issue.  Thank you!
DbaMaintenanceSolution-Commands.txt

thats useful info, thank you

dang, i am unable to see from the code why it wouldnt work and i cant repro. how about you @sanderstad ?

I think the first question might come from my question in slack, but that's not an issue anymore.
I figured out that If I ran the commands directly from command line or from a script with nothing else in the scripts, The commands worked. But when included as a part in my installation scripts, they didn't work. So something else in my script apparently, broke something. I also noticed that when running the scripts my path was changed from a local disk drive to SQLSERVER: and the command that changed that was INVOKE-SQLCMD.
I changed all occurances of INVOKE-SQLCMD to INVOKE-SQLCMD2. After that, is everything working great.

thank you both so much for this feedback. We do not support dbatools and sqlserver/sqlps because there's essentially a conflict.
@wlansdowne - if you can, use Microsoft's SqlServer module instead of SQLPS. They fixed a bunch of stuff and continue to develop it, unlike SQLPS.

Hi All -
I've only been able to initially test a few times, but can report back that after completely removing references to 'SQLPS' to prevent importing the module and converting everything else over to using DBAtools equivalents I'm no longer seeing warnings like I was.  I don't believe I'd have been able to do several test runs and not encounter them, so this appears resolved/mitigated.  Should anything come up, I'll post again with further details.
Thank you to everyone for taking a look and providing feedback.  I greatly appreciate it and all your efforts on this wonderful tool!

excellent news. thanks so much!


fluent api

Codecov Report

Merging #5 into master will decrease coverage by 1.14%.
The diff coverage is 95.65%.

@@             Coverage Diff              @@
##             master       #5      +/-   ##
============================================
- Coverage     94.73%   93.58%   -1.15%
  Complexity        8        8
============================================
  Files             2        2
  Lines            76       78       +2
  Branches          4        4
============================================
+ Hits             72       73       +1
- Misses            2        3       +1
  Partials          2        2

Impacted Files
Coverage Δ
Complexity Δ

...main/java/dev/rus4j/collect/TriggerCollection.java
96.55% <100%> (+0.06%)
6 <0> (ø)
:arrow_down:

src/main/java/dev/rus4j/collect/TriggerList.java
85% <66.66%> (-4.48%)
2 <0> (ø)

Continue to review full report at Codecov.

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


CI/CD

although there aren't that many tests, we would benefit from automated builds, tests, and deployments

I'll take this one

I'll take this one

awesome. Thanks


RedisHash with local cache enabled should only push actual changes

Currently it pushes the whole locally cached version of the data, but we should only ever push stuff that was actually changed (because it overwrites existing entries on match, and might overwrite changes that have been made intermediately)

fixed in v.0.1.3


Day257

Resolves #529.

Pull Request Test Coverage Report for Build 1005

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 1003:
0.0%

Covered Lines:
5

Relevant Lines:
5

💛  - Coveralls


⚠ Bofrost.be has degraded performance

In 8473458, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1242 ms

Resolved: Bofrost.be performance has improved in 95c8f78 after 6 minutes.


Implement PerceptionSimulationPlayback API

Shared project\HoloLend\PerceptionSimulationPlayback.cs

Remaining APIs to be implemented:
api/holographic/simulation/playback/files
api/holographic/simulation/playback/session/files
api/holographic/simulation/playback/session
api/holographic/simulation/playback/session/pause
api/holographic/simulation/playback/session/play
api/holographic/simulation/playback/session/stop
api/holographic/simulation/playback/session/types


Equalise volume between tracks (ReplayGain?)

Feature request

We need this, it's so annoying when one track is super loud and you lower the volume, only to not be able to hear the next track.

+1
An enable/disable command would be awesome! (!normalization true/false)

Normalization between tracks is most likely not going to happen.  I'll probably experiment with it when I do single track normalization stuff, but don't expect anything.


Code Backend

Is your feature request related to a problem? Please describe.
Yes it s related to a problem , otherwise nothing ill be visible on landing page
Describe the solution you'd like
I will create separate JSON file to store all the data and then fetch it to display on the landing page
Steps Followed✅
Check the box with [x] If you followed all the steps.

[x] Is your feature request related to a problem? Please describe.
[x] Describe the solution you'd like
[x] Describe alternatives you've considered
[x] Additional context

Code of Conduct✅

[x] I agree to follow this project's Code of Conduct.
[x] I checked the current issues for duplicate problems.
[x] I have gone through project README.

@Astrodevil PLease Assign this


Train task classifyapp on same data as for training the embedding

Hello together,
we want to train a Keras model with the train_task_classifyapp.py script to make a simple binary classification:

class: Applications which perform a stencil operation
class: Applications which do not perform a stencil operation

For this purpose we created a dataset based on your synthetic datasets

Eigen-synthetic https://polybox.ethz.ch/index.php/s/52wWiK5fjRGHLJR
GEMM-synthetic https://polybox.ethz.ch/index.php/s/Bm6cwAY3eVkR6v3
Stencil-synthetic https://polybox.ethz.ch/index.php/s/OOmylxGcBxQM1D3

The dataset has the following directory structure so the python script can handle it:
.
├── ncc
│   ├── train
│   │   ├── classifyapp
│   │   │   ├── ir_train
│   │   │   │   ├── 1
│   │   │   │   ├── 2
│   │   │   ├── ir_val
│   │   │   │   ├── 1
│   │   │   │   ├── 2
│   │   │   ├── ir_test
│   │   │   │   ├── 1
│   │   │   │   ├── 2

Folder 2 is a mixture of applications from the Eigen- and GEMM-synthetic dataset, folder 1 has only applications from the Stencil-synthetic dataset.
My questions are the following:

Since the Eigen-, GEMM- and Stencil-synthetic dataset have been used for training the inst2vec embedding, will this affect the training for classifyapp Keras model (positive or negative way)?
What was your setup for training and how long did it take? In our current setup, each folder for class 1 and 2 has 80 randomly picked applications, batch size is 4, epochs is 20 and number of  training samples per classis 20. We are running the training on a Nvidia 1080 Ti. Only with this setup we could train the network in an affordable time (45 minutes per epoch). We are aware that this can yield in bad accuracy.
In another setup, we had 2000 sample applications for each class in each set (train, val and test). The batch size was 4, number of training samples per class were 30 and 20 epochs. With this setup, the training time for each epoch went up to 55 hours (Keras ETA)! Using larger batch sizes leads to an error within Cuda since it can not allocate enough memory.
Do you have any experience with these parameters for training? What could be the reason for such a high training time? In your script, you are using 64 batch size and 1500 training samples for class. Did it also take so much time for training 104 classes?

For the sake of making the training setting more challenging, we tried to completely separate the tasks of training inst2vec from training the downstream tasks. However, for real problems I don't see a point in ensuring such a split. It's ok if you use Stencil-synthetic in your classifyapp sample
The slow training time may be related to a bug that was fixed in #16, which isn't merged yet since we need to verify some further results. Please try it and see the performance for your case.

Closed due to inactivity. Hope I could help!


fix: receipt placeholder not shown

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/47903
PROPOSAL: https://github.com/Expensify/App/issues/47903#issuecomment-2306618219
Tests

Precondition:

User is invited to a WS
Submit 2 dupe expenses

Go to any of the transaction threads
Click Review duplicates
Keep this one on any expense
In confirmation page, verify that: The receipt placeholder is shown

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

Precondition:

User is invited to a WS
Submit 2 dupe expenses

Go to any of the transaction threads
Click Review duplicates
Keep this one on any expense
In confirmation page, verify that: The receipt placeholder is shown

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/user-attachments/assets/5daf883f-8c1f-4235-a5f8-0d07cfe9a495

Android: mWeb Chrome
https://github.com/user-attachments/assets/4c299262-2835-445f-9313-6eb1aff237a2

iOS: Native

https://github.com/user-attachments/assets/cf83a851-a6b3-4bd8-ab8a-35f58257bfcc

iOS: mWeb Safari
https://github.com/user-attachments/assets/5ed09ca6-5c62-4bcc-b9d1-f6e674569fd4

MacOS: Chrome / Safari
https://github.com/user-attachments/assets/47b0a58e-9ea8-4685-a6e5-febdf45db619

MacOS: Desktop
https://github.com/user-attachments/assets/2ff86c89-bff8-4feb-ba0b-f3d1cc90192d

Reviewer Checklist

[ ] I have verified the author checklist is complete (all boxes are checked off).
[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[ ] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the steps for local testing are in the Tests section
[ ] I verified the steps for Staging and/or Production testing are in the QA steps section
[ ] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[ ] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I included screenshots or videos for tests on all platforms
[ ] I verified tests pass on all platforms & I tested again on:

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

[ ] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[ ] I verified proper code patterns were followed (see Reviewing the code)

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[ ] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[ ] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[ ] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[ ] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

[ ] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines
[ ] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[ ] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[ ] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[ ] If a new component is created I verified that:

[ ] A similar component doesn't exist in the codebase
[ ] All props are defined accurately and each prop has a /** comment above it */
[ ] The file is named correctly
[ ] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[ ] The only data being stored in the state is data necessary for rendering and nothing else
[ ] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[ ] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[ ] All JSX used for rendering exists in the render method
[ ] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[ ] If any new file was added I verified that:

[ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[ ] If a new CSS style is added I verified that:

[ ] A similar style doesn't already exist
[ ] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[ ] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[ ] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[ ] I verified that all the inputs inside a form are aligned with each other.
[ ] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[ ] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[ ] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[ ] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

@daledah After merging the latest main, I don't see the Review duplicates button any more. Can you please double check if that is still visible? Thanks

@allroundexperts I think dupeDetection is behind beta, so to test this locally we need to enable all permissions.

I did that. and it did not work. Can you merge main and test?

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/roryabraham in version: 9.0.40-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Make Vcc an input as a field of SensorsData

This PR implements #10.
We can start testing the architectural changes once @sgiraz is done with the low-level handling of the Vcc readings.
@marcoaccame already implemented the reading of Vcc on the AMC board.

[!important]
Clearly, the glue code now needs to pass Vcc as an input. Find below the related references.

struct SupplyVoltage
{
  real32_T voltage;
};

struct SensorsData
{
  // position encoders
  JointPositions jointpositions;

  // motor probes
  MotorSensors motorsensors;

  // supply probes
  SupplyVoltage supplyvoltagesensors;
};

[!note]
Prior to this PR, Vcc was initialized to $44$ V as a configuration parameter.

@mfussi66, once the PR is merged, you'd need to update the new project consistently.

cc @Nicogene

77f20f407a6c2118d40c99820464b09954a18843 adds the wrapping angle functionality so that FOC can now guarantee that the input electrical angle is always in the correct range [0, 2$\pi$] to let the CMSIS sin/cos operate as expected. This is much safer.

[!Warning]
In order to generate the code, I had to enable the configuration option variable-sized signals for all the models.

@sgiraz, we can give it a run to the whole PR.
@mfussi66, we should consider this point as well to be ported to the new architectural model.

a3f07fd939d528447d3a961f8a0276d5587c9198 introduces a variant subsystem approach to disable temperature estimation, which is currently unfinished. This could give us some margin on the overall FOC computation time.

By default, the variant parameter is set such that the temperature estimation is off.
The variant manager can be used to switch the functionality on/off.

To settle things once for good, I've provided variants implementations of the Sin/Cos with CMSIS and STD:

[!important]
To use the new variant features, we're required to install the Variant Manager Adds-On.

Hi @pattacini, PR Tested successfully on lego-setup! 👍🏻
FOC duration is about 15.5 us:

global view
zoomed in

Here are the current (Iq), velocity, and position at different targets in current control mode:

cc @marcoaccame @Nicogene

Thanks heaps @sgiraz!
Merging.

Important
To use the new variant features, we're required to install the Variant Manager Adds-On.

cc @mfussi66 @valegagge @ale-git

Important
To use the new variant features, we're required to install the Variant Manager Adds-On.

cc @mfussi66 @valegagge @ale-git

What do you think if we create a wiki page where all necessary adds-on are listed, so those are not used to work with the model could install all necessary stuff?
@pattacini @sgiraz @mfussi66

Yes, I took note of this request.
My idea is rather to fill in the documentation with the missing information.
We still have to complete the (long overdue) task of documenting our journey 😄


Tab titles in dashboard tab layout

Giving the option to add a title for the tabs
To consider:

how do we handle multiple languages
how do we handle long titles

@KerstinFaye there is already an issue for this here https://github.com/visualize-admin/visualization-tool/issues/1587

Fixed via https://github.com/visualize-admin/visualization-tool/pull/1584


Error in config file :  Cannot find module 'angular-cli/plugins/karma'

Please provide us with the following information:

OS?

Windows 10 x64

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.18
node: 6.4.0
Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Created the app usin the CLI (updated yesterday to the latest version). The app works and loads in Chrome. For now there's just an input field.
I created a service using "ng g myservice"
Then I wrote some tests in myservice.service.ts
I ran "ng test"
The log given by the failure.

Normally this include a stack trace and some more information.

$ ng test --watch=false
22 10 2016 11:05:54.156:ERROR [config]: Error in config file!
{ Error: Cannot find module 'angular-cli/plugins/karma'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at module.exports (D:\dev\wiki_a2\karma.conf.js:12:7)
at Object.parseConfig (D:\dev\wiki_a2\node_modules\karma\lib\config.js:377:5)
at new Server (D:\dev\wiki_a2\node_modules\karma\lib\server.js:56:20)
at C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\tasks\test.js:25:31
at Class.exports.default.Task.extend.run (C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\tasks\test.js:15:16)
at Class.TestCommand.extend.run (C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\commands\test.js:26:25)
at Class. (C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\node_modules\angular-cli\lib\models\command.js:152:17)
at tryCatch (C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\lib\rsvp-internal.js:215:12)
at invokeCallback (C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\lib\rsvp-internal.js:230:13)
at C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\lib\rsvp\then.js:29:16
at flush (C:\Users\Elg\AppData\Roaming\npm\node_modules\angular-cli\node_modules\rsvp\dist\lib\rsvp\asap.js:85:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9) code: 'MODULE_NOT_FOUND' }

Mention any other details that might be useful.

Thanks! We'll be in touch soon.

Hi,
I'm experiencing the same issue -> fresh node and angular-cli installation, everything works, just the ng test doesn't (same error message and no karma plugin found).
Cheers

Hi,
I'm experiencing the same issue.
angular-cli: 1.0.0-beta.16
node: 6.6.0
os: Linux x64

I found my error which was that I had not provider a service. This service is used in the component that I want to test.

In my particular case, this error don't happen.

Closing as inactive.

Check if angular-cli/plugins/karma exists in the node_modules directory.
In my case the problem was that I had migrated to @angular/cli package, but karma.conf.js was still referencing the angular-cli paths.  I updated my references by comparing to the karma.conf.js from this repo: https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/blueprints/ng2/files/karma.conf.js

@juhap  this work for me but in the karma.conf.js have issue
Error: No provider for "framework:angular-cli"! (Resolving: framework:angular-cli)

@ahelord check the answer provided by @juhap there are multiple locations that angular-cli needs to be changed to @angular/cli

@juhap It seems that your link is broken. Could you take a look and fix it please? I'm also having a similar issue.

@frank-productops  New link you can check out: https://github.com/angular/angular-cli/blob/b15d1f37b6c6d7e57d969359b8b7d8a916465362/packages/%40angular/cli/blueprints/ng/files/karma.conf.js

@frank-productops i modify proyect little bit https://github.com/ahelord/angular-cli-primeng-example

Hi,
When I updated from angular-cli to @angular/cli, i also faced the same issue:
Error: Cannot find module 'angular-cli/plugins/karma'
The solution worked for me is to update the karma.conf.js file present in root folder of the project.
frameworks: ['jasmine', '@angular/cli'],
...
plugins: [
      require('karma-jasmine'),
      require('karma-chrome-launcher'),
      require('karma-remap-istanbul'),
      require('@angular/cli/plugins/karma')
    ],
...
preprocessors: {
      './src/test.ts': ['@angular/cli']
    },
...

After this change, ng test should work.

Detailed guide on changes to karma.conf.js after upgrading to @angular/cli rc1: https://github.com/angular/angular-cli/wiki/stories-rc.0-update

Since Google highly prefers Github issues instead of StackOverflow when it comes to debugging Angular 2 applications, I figured I would chime in here.
The issue is that the Node package for Angular's CLI was changed from angular-cli to @angular/cli.  If you go through your karma.conf.js file and replace all instances of angular-cli you should be good to go.
Shout out to this StackOverflow post that got me to the correct answer.  Also shout out to @softgandhi  for answering the same thing.  Unfortunately for him I lack reading comprehension.

I had a project in angular2, primeng and angular-cli. I decided to migrate angular4 and @ angular-cli
  When with the own guide angular but I did not work out errors when finding the core module. Then I decided to create a new project with the new @ angular-cli and pass the source code, there were errors where we had to add the Angular animations module and update Primeng.

You may also need to update the environments section in angular-cli.json
Old version
"environments": {         "source": "environments/environment.ts",         "dev": "environments/environment.ts",         "prod": "environments/environment.prod.ts"       }
New version
"environmentSource": "environments/environment.ts",       "environments": {                 "dev": "environments/environment.ts",         "prod": "environments/environment.prod.ts"       }


fea(newsfeed): add total number of likes to a post

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#111  👈
#110
#109
#108
#107
#106
#105
#104
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @xdjeremy and the rest of your teammates on  Graphite


Introduce rueidisprom subpackage

Introduce a new subpackage for adding support for prometheus metrics in Rueidis.
Add a separate go.mod file for it.
#444

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (3b113fc) 95.96% compared to head (9c5cfaa) 95.97%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #448      +/-   ##
==========================================
+ Coverage   95.96%   95.97%   +0.01%
==========================================
  Files          77       77
  Lines       32421    32421
==========================================
+ Hits        31113    31117       +4
+ Misses       1113     1110       -3
+ Partials      195      194       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Hi @DestroyerAlpha, would you also add the implementation?

@rueian How about doing it in a separate PR? We can merge this

Ok


Fix session key generation for wagtail previews

Closes #7392
To test:

Try and preview the creation of two different page types and refresh the preview pages
Repeat the same for previewing an edit of a page

Preview session keys will now be unique again.

Nicely caught - thanks @tomkins! Merged in c825261bd171b9ec47a197ef6c4a04c594d74d45.


chore(main): release 2.1.1

:robot: I have created a release beep boop
2.1.1 (2023-12-04)
Bug Fixes

add missing clsx in external config (83e100a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mddanish00/mui-image/releases/tag/v2.1.1 :sunflower:


fix(DeviceMotion): ignore dm event with no sensor value

Issue
#160
Details
fix(DeviceMotion): ignore dm event with no sensor value

Coverage remained the same at 90.488% when pulling f5dfbd4955e18114cd49ec6fe8286fe964d8833a on DeviceMotion#160 into 299a69635d922392d6f1d043144c92e10dc2eef5 on 3.0.0-rc.


Feature/cab 2749 e2e

Coverage remained the same at 83.322% when pulling 365318ff4f2b7624c35b02d19aa614b99dc6ef74 on feature/cab-2749-e2e into 385bcdd4ee1aa401a92f8d0ce875689366267717 on develop.


using llama index to query/inference a LLM using GPU

Hi,
I am building a chatbot using LLM like fastchat-t5-3b-v1.0  and want to reduce my inference time.
Below is the code that I am using to do inference on Fastchat LLM.
from llama_index import GPTListIndex, SimpleDirectoryReader, GPTVectorStoreIndex, PromptHelper, LLMPredictor
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
from llama_index import LangchainEmbedding, ServiceContext
from transformers import T5Tokenizer, T5ForConditionalGeneration

model_name = 'lmsys/fastchat-t5-3b-v1.0'
tokenizer = T5Tokenizer.from_pretrained(model_name)
model = T5ForConditionalGeneration.from_pretrained(model_name)

from transformers import pipeline

pipe = pipeline(
    "text2text-generation", model=model, tokenizer=tokenizer,
    max_length=1024, temperature=0, top_p = 1,no_repeat_ngram_size=4, early_stopping=True
)

from langchain.llms import HuggingFacePipeline
llm = HuggingFacePipeline(pipeline=pipe)

embed_model = LangchainEmbedding(HuggingFaceEmbeddings())

# set maximum input size
max_input_size = 2048
# set number of output tokens
num_outputs = 512
# set maximum chunk overlap
max_chunk_overlap = 20
# set chunk size limit
chunk_size_limit = 512
prompt_helper = PromptHelper(max_input_size, num_outputs, max_chunk_overlap)

service_context = ServiceContext.from_defaults(embed_model=embed_model, llm_predictor=LLMPredictor(llm), prompt_helper=prompt_helper, chunk_size_limit=chunk_size_limit)

# build index
documents = SimpleDirectoryReader('data').load_data()

new_index = GPTListIndex.from_documents(documents, service_context=service_context)

# query with embed_model specified
query_engine = new_index.as_query_engine(
    retriever_mode="embedding",
    verbose=True,
    #streaming=True,
    similarity_top_k=1
    #service_context=service_context
)

response = query_engine.query("sample query question?")

Here the "data" folder has my full input text in pdf format, and am using the llama_index and langchain pipeline to build the index on that and fetch the relevant chunk to generate the prompt with context and query the FastChat model as shown in the code.
This takes around 2 mins on average to get a response for a query. I want to bring down this inference time.
is there any way to introduce GPU for the inference with llama_index and langchain/huggingface pipeline steps above? Also if there is any way to optimize these steps to get better response time?
Please let me know your thoughts on this.

I have the same question

Hello!
I understand that you want to reduce the inference time for your chatbot using LLama, specifically the FastChat model. To speed up the processing and achieve better response times, here are some suggestions:
GPU Usage: To increase processing speed, you can leverage GPU usage. The Hugging Face Transformers library supports GPU acceleration. You may need to use a deep learning framework like PyTorch or TensorFlow with GPU support to run your model on a GPU.
For example, to enable GPU usage with PyTorch:
python
Copy code
import torch
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = model.to(device)
This will run your model on a CUDA-enabled GPU.
Data Size Reduction: To improve processing speed, you can reduce the size of the data used. For instance, you can experiment with smaller values for parameters like "max_input_size," "num_outputs," "max_chunk_overlap," and "chunk_size_limit." These parameters limit the input size, output length, and chunk size.
Parallel Processing: Consider parallel processing strategies that can handle multiple queries simultaneously. You can use libraries like "concurrent.futures" or "multiprocessing" in Python to process queries in parallel. This way, you can obtain the outputs faster.
Caching: Cache frequently used queries to reduce response times. Caching stores the results of recurring queries, enabling faster responses.
Model Optimization: Explore techniques to optimize your model by reducing memory usage and computational costs. For example, you can compress your model to a smaller size or research memory-efficient solutions.
These suggestions serve as starting points to reduce inference time and achieve faster responses. However, since I don't have detailed information about the specific dependencies and libraries you mentioned, I recommend exploring customized solutions tailored to your specific context.

just need to set the device or device_map on the pipeline there. Feel free to read more on the hugging face docs!

does it use multi GPU or is does it only uses the single GPU

Just a single. If you want multi gpu, use a framework like text generation interface or vllm


How to use this tool？

Is there any steps to install or setup the tool. When I run the examples  there are some error"ModuleNotFoundError: No module named 'cpytraceafl'" ,but I can't pip install cpyctraceafl.
And I want to know how to use this with AFL. Thanks very much!

I can't pip install cpyctraceafl

Are you just spelling it wrong?


Add full scene support in json metadata

We'll use the json file in Android to determine the list of supported extensions. On top of that we need to know if we can call loadScene or loadGeometry. This PR adds a field full_scene which is true if loadScene is supported.

I suppose this is needed for f3d-android, is that correct ? Could you explain a bit the usecase in the PR description ?

Done


added invisible field to search_status enum, added visible scope to d…

First PR Request! Work in progress but I wanted to submit a draft because I might need a bit of help.
-Goal:  give developers the option to hide their profile .
so far, i've  added 'invisible' option to the search_status and created a visible scope. I've never seen a developer_query class so I am a bit confused with it.
…eveloper.rb

Pull request checklist

[ ] Your code contains tests relevant for code you modified
[ ] You have linted and tested the project with bin/check

Struggling a bit with i18n-tasks. my code passes bin/check locally, but won't pass ci/test on github.  When I run i18n-tasks health I get 167 missing translations. I'm not sure that the main branch has those translations

We only care about the English translations (for now). Run this instead:
bundle exec i18n-tasks health en
``

Here's a rookie question. Is it ok to make some of these changes on the github branch? I've been making changes locally and re committing. also,  I'm guessing I can commit your suggestions here in github, right?

Feel free to click the commit button on GitHub if it's easier for you! I don't have a preference either way.

I had some time so I ended up finishing this up. Thanks again for the contribution! I'm going to give it another review this weekend before merging.

Thank you! A big part of my struggle was my lack of experience with Github in collaborative settings. A 30 minutes tutorial would have saved me a lot of headaches.
The next PR will go much smoother.


Make reading json genesis file faster

Optimize the time to load the genesis from json file. Fixes #11867
I loads a genesis file of 5GB in 5 minutes instead of 1h30.

Thanks!
There is also a json::from_reader, which looks less hacky than the mmap. Have you considered using that?
Out of interest: How are you creating the forked chain-specs of your network? Do you have own tooling?

There is also a json::from_reader, which looks less hacky than the mmap. Have you considered using that?

Maybe using of the BufReader can be a decent option: with a large buffer it won't be much different from mmap and it seems to be less hacky.

Benchmark: (~5.5GB file, 5950X/64GB, SSD)
from_reader  (default): ~42:30 min
└--╼ time ./target/release/moonbeam --tmp --log=info --chain moonriver-state.json
2022-07-20 10:12:35 Moonbeam Parachain Collator
2022-07-20 10:12:35 ✌  version 0.25.0-dc9d72b668a
2022-07-20 10:12:35 ❤  by PureStake, 2019-2022
2022-07-20 10:12:35 📋 Chain specification: Moonriver
2022-07-20 10:12:35 🏷  Node name: tightfisted-slave-2527
2022-07-20 10:12:35 👤 Role: FULL
2022-07-20 10:12:35 💾 Database: RocksDb at /tmp/substratevKzGJB/chains/moonriver/db/full
2022-07-20 10:12:35 ⛓  Native runtime: moonriver-1700 (moonriver-0.tx2.au3)
2022-07-20 10:31:28 Parachain id: Id(2023)
2022-07-20 10:31:28 Parachain Account: 5Ec4AhPZYgv9Q1KUajtv2RieJJmhPdn9cnvKxjpxuJHVoGFt
2022-07-20 10:31:28 Parachain genesis state: 0x0000000000000000000000000000000000000000000000000000000000000000001bc6099aa912157433f6b269dc7ff2159ae83cbe556a9504ebd20b33a907e09303170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
2022-07-20 10:50:32 [🌗] 🔨 Initializing Genesis block/state (state: 0x1bc6…e093, header-hash: 0x1cc6…7dcb)
2022-07-20 10:55:00 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)
2022-07-20 10:55:00 [Relaychain] 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.

mmap : ~6:30 min
2022-07-20 09:29:36 Moonbeam Parachain Collator
2022-07-20 09:29:36 ✌  version 0.25.0-654e47ea208
2022-07-20 09:29:36 ❤  by PureStake, 2019-2022
2022-07-20 09:29:36 📋 Chain specification: Moonriver
2022-07-20 09:29:36 🏷  Node name: sour-skin-8115
2022-07-20 09:29:36 👤 Role: FULL
2022-07-20 09:29:36 💾 Database: RocksDb at /tmp/substratenLO8Im/chains/moonriver/db/full
2022-07-20 09:29:36 ⛓  Native runtime: moonriver-1700 (moonriver-0.tx2.au3)
2022-07-20 09:30:26 Parachain id: Id(2023)
2022-07-20 09:30:26 Parachain Account: 5Ec4AhPZYgv9Q1KUajtv2RieJJmhPdn9cnvKxjpxuJHVoGFt
2022-07-20 09:30:26 Parachain genesis state: 0x0000000000000000000000000000000000000000000000000000000000000000001bc6099aa912157433f6b269dc7ff2159ae83cbe556a9504ebd20b33a907e09303170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
2022-07-20 09:32:07 [🌗] 🔨 Initializing Genesis block/state (state: 0x1bc6…e093, header-hash: 0x1cc6…7dcb)
2022-07-20 09:36:03 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)
2022-07-20 09:36:03 [Relaychain] 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.

BufReader: ~8:00 min
2022-07-20 10:57:52 Moonbeam Parachain Collator
2022-07-20 10:57:52 ✌  version 0.25.0-dc9d72b668a
2022-07-20 10:57:52 ❤  by PureStake, 2019-2022
2022-07-20 10:57:52 📋 Chain specification: Moonriver
2022-07-20 10:57:52 🏷  Node name: poised-baseball-2523
2022-07-20 10:57:52 👤 Role: FULL
2022-07-20 10:57:52 💾 Database: RocksDb at /tmp/substratenHRYuD/chains/moonriver/db/full
2022-07-20 10:57:52 ⛓  Native runtime: moonriver-1700 (moonriver-0.tx2.au3)
2022-07-20 10:59:25 Parachain id: Id(2023)
2022-07-20 10:59:25 Parachain Account: 5Ec4AhPZYgv9Q1KUajtv2RieJJmhPdn9cnvKxjpxuJHVoGFt
2022-07-20 10:59:25 Parachain genesis state: 0x0000000000000000000000000000000000000000000000000000000000000000001bc6099aa912157433f6b269dc7ff2159ae83cbe556a9504ebd20b33a907e09303170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
2022-07-20 11:01:54 [🌗] 🔨 Initializing Genesis block/state (state: 0x1bc6…e093, header-hash: 0x1cc6…7dcb)
2022-07-20 11:06:02 [Relaychain] 🔨 Initializing Genesis block/state (state: 0xb000…ef6b, header-hash: 0xb0a8…dafe)
2022-07-20 11:06:02 [Relaychain] 👴 Loading GRANDPA authority set from genesis on what appears to be first startup.

BufReader: ~8:00 min

Just curious, what buffer size have you tested? I would suggest to use about 1-2Mb.

There is also a json::from_reader, which looks less hacky than the mmap. Have you considered using that?

Maybe using of the BufReader can be a decent option: with a large buffer it won't be much different from mmap and it seems to be less hacky.

See the discussion in the old pr: https://github.com/paritytech/substrate/pull/10137

Just curious, what buffer size have you tested? I would suggest to use about 1-2Mb.

I've updated the results to include BufReader with 2Mb capacity. It doesn't change much

Thanks for the test! The CI still needs a format.

should be good now


[posix.mak]: Build @betterC extracted tests without -unittest

We don't want to compile -betterC test files with -unittest because this
will also compile the unit tests of imported files, and those unit tests
were not written in -betterC in mind.
PR https://github.com/dlang/tools/pull/386 allows us to not compile with
-unittest such files and this commit makes this change.
Also enable command output for the last 2 lines of the %.betterc rule is
it's quite helpful in order to see what's going on.
Blocked on:

[x] https://github.com/dlang/tools/pull/386

It's now passing with the PR for the tools repo merged:
...
+ make -f posix.mak -j2 betterc
mkdir -p generated/linux/release/64/betterctests || exists generated/linux/release/64/betterctests
touch generated/linux/release/64/betterctests/.directory
generated/linux/release/64/tests_extractor --betterC --attributes betterC \
	--inputdir  std/array.d --outputdir generated/linux/release/64/betterctests
generated/linux/release/64/tests_extractor --betterC --attributes betterC \
	--inputdir  std/ascii.d --outputdir generated/linux/release/64/betterctests
parsing std/array.d
parsing std/ascii.d
../dmd/generated/linux/release/64/dmd  -conf= -I../druntime/import  -w -de -preview=dip1000 -m64 -fPIC -transition=complex -O -release -defaultlib= -debuglib= -L-lpthread -L-lm -betterC -run generated/linux/release/64/betterctests/std_ascii.d
../dmd/generated/linux/release/64/dmd  -conf= -I../druntime/import  -w -de -preview=dip1000 -m64 -fPIC -transition=complex -O -release -defaultlib= -debuglib= -L-lpthread -L-lm -betterC -run generated/linux/release/64/betterctests/std_array.d
...


react-slide-swiper sample upgraded to SPFx version 1.7.0

Q
A

Bug fix?
no

New feature?
yes

New sample?
no

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
react-slide-swiper sample upgraded to SPFx version 1.7.0

thx @VelinGeorgiev, appreciated.


sample introduction parameter NMR:1400129

NMR Tube
-MATCH NMR Tube
---- Diameter (mm) 4.0 mm 2.5 mm 3.0 mm 5.0 mm 1.0 mm 1.7 mm 2.0 mm 4.25 mm
-STANDARD 3.0 mm 5.0 mm 1.0 mm 1.7 mm
-Shaped Tubes
-Shigemi
HR MAS  has size 3.2 mm 4.0 mm  7.0 mm and volume 12 ul,  50 ul
-MAS Rotors Zirconia

Kel-F Drive Caps
Vespel Drive Caps
MAS Rotors ZrO2

High Temperature MAS Rotor ZrO2
High Speed Vespel Drive Caps
High Temperature MAS Rotor ZrO2
Boron Nitride Drive Cap
Zirconia Drive Cap

The XSD requires a sampleContainer to be sprcified via a CVTerm.
Def: The container used to introduc the sample into the autosampler. Example:
tube, flow probe, rotor. Must reference a CV term.


Line break/whitespace boondoggle

Please investigate: I had my media queries written thusly:
@media
only screen and (max-width: 768px),
only screen and (max-width: 1024px) {
}

And they did not work ('null object').

Thanks @danhq. Going through some old tickets and this one appears to be fixed now. Let me know if you experience it again!


Error: No such file or directory - /usr/local/Caskroom/robomongo/.metadata/1.0.0,89f24ea/20170613211700.029/Casks/robomongo.rb

General troubleshooting steps

[ ] I have checked the instructions for reporting bugs (or making requests) before opening the issue.

[ ] None of the templates was appropriate for my issue, or I’m not sure.

[ ] I ran brew update-reset && brew update and retried my command.
[ ] I ran brew doctor, fixed as many issues as possible and retried my command.
[ ] I understand that if I ignore these instructions, my issue may be closed without review.

Description of issue
Error: No such file or directory - /usr/local/Caskroom/robomongo/.metadata/1.0.0,89f24ea/20170613211700.029/Casks/robomongo.rb
Follow the instructions here:
https://github.com/caskroom/homebrew-cask#reporting-bugs
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1380:in initialize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1380:in open'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1380:in copy_file' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:477:in copy_file'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:394:in block in cp' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1558:in block in fu_each_src_dest'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1572:in fu_each_src_dest0' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:1556:in fu_each_src_dest'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/fileutils.rb:393:in cp' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:345:in save_caskfile'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:87:in stage' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:106:in install'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/installer.rb:116:in reinstall' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb:15:in block in install_casks'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb:6:in each' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/reinstall.rb:6:in install_casks'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:13:in run' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:98:in run_command' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:168:in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in run' /usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:101:in `'
Output of your command with --verbose --debug
brew cask install Robomongo --verbose --debug
Error: No available Cask for robomongo
Error: nothing to install
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/install.rb:16:in run' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli/abstract_command.rb:35:in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:98:in run_command' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:168:in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in run' /usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:101:in <main>' Error: Kernel.exit /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in exit'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:173:in rescue in run' /usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:156:in run'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cli.rb:132:in run' /usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:8:in cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:101:in `'
Output of brew cask doctor
brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.2.3
caskroom/homebrew-cask (git revision 98312; last commit 2017-06-20)
==> Homebrew-Cask Install Location

==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (5 files, 334.4MB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3639 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin16
/Library/Ruby/Site/2.0.0/universal-darwin16
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16
==> Environment Variables
LC_CTYPE="UTF-8"
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:~/Library/Android/sdk/platform-tools:~/.yarn/bin:~/.nexustools:/usr/local/Homebrew/Library/Taps/beeftornado/homebrew-rmtree/cmd:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/cmd:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"

robomongo has been renamed to robo-3t


Even less dependencies?

Tried using this in filepath, but on windows I get circular dependencies:

https://gitlab.haskell.org/haskell/filepath/-/blob/c0467cd31e209ca665c45239d5fadfa9e66a15f8/filepath.cabal#L190
https://gitlab.haskell.org/haskell/filepath/-/jobs/1087047

Not sure what exactly is causing it. I think something about optparse-applicative.
For now I disabled the benchmark suite on windows, but I fear this could cause issues down the line.

Backjump limit reached (currently 4000, change with --max-backjumps or try to run with --reorder-goals).

Could you try this suggestion please? There is a build plan for tasty, but a rather exotic one with Win32-2.4 and ansi-terminal-<IP_ADDRESS>, so I assume that adding tasty-bench just passes over --max-backjumps limit.

I'm currently ripping out all tasty code from the module and will try to integrate it into my test suite directly.
It seems I can get away with measureUntil or measure as my runner functions. Since cabal files can't set flags on dependencies, I cannot force -f-tasty.

I'm almost sure that increasing --max-backjumps should work, but otherwise you don't need to rip anything manually, just copy-paste Test.Tasty.Bench into your tree and import it.

If someone else comes across this, I went with something like:
data Config = Config {
    format  :: Format
  , stdev   :: Double
  , timeout :: Integer
  }

data Format = Print
            | CSV
  deriving (Read, Show)

defaultConfig :: Config
defaultConfig = Config defaultFormat defaultStdev defaultTimeout

defaultFormat :: Format
defaultFormat = Print

defaultStdev :: Double
defaultStdev = 0.02

defaultTimeout :: Integer
defaultTimeout = 800000

parseConfig :: [String] -> Config
parseConfig [] = defaultConfig
parseConfig xs =
  let format'  = maybe defaultFormat  (read . fromJust . stripPrefix "--format=" ) $ find ("--format="  `isPrefixOf`) xs
      stdev'   = maybe defaultStdev   (read . fromJust . stripPrefix "--stdev="  ) $ find ("--stdev="   `isPrefixOf`) xs
      timeout' = maybe defaultTimeout (read . fromJust . stripPrefix "--timeout=") $ find ("--timeout=" `isPrefixOf`) xs
  in Config format' stdev' timeout'

main :: IO ()
main = do
  args <- getArgs
  let config = parseConfig args
  benchGroup config
    [ ("filepath (string)",
      [("splitExtension (posix)"      , nf PF.splitExtension posixPath),
      ....
      ]
   ]

benchGroup :: Config -> [(String, [(String, Benchmarkable)])] -> IO ()
benchGroup _ [] = pure ()
benchGroup format ((name, benchs):xs) = do
  putStrLn name
  bench format benchs
  benchGroup format xs

bench :: Config -> [(String, Benchmarkable)] -> IO ()
bench _ [] = pure ()
bench<EMAIL_ADDRESS>(x:xs) = do
  let (name, benchmarkable) = x
  case format of
    CSV -> putStr (name ++ ",")
    Print -> putStr ("    " ++ name ++ ": ")
  est <- measureUntil CpuTime False (Timeout timeout "") (RelStDev stdev) benchmarkable
  case format of
    CSV -> putStr $ csvEstimate est
    Print -> putStr $ "\n      " ++ prettyEstimate est
  putStr "\n"
  bench config xs

@hasufell sorry, I don't quite understand. Why do you need to craft https://gitlab.haskell.org/haskell/filepath/-/blob/master/bench/TastyBench.hs yourself? Would not it work if you replace its contents with the original Test.Tasty.Bench (without adding tasty to build-depends)? In any case please retain provenance, so that future generations of maintainers would have a clue where to look for patches / bug fixes.
If all boot libraries used tasty-bench, it would be easy to dump benchmarks to CSV and use it for GHC performance dashboard. Probably tasty itself can use less dependencies. I'd like to have an opportunity to take a look, but I'm busy for the next two weeks.

The key bit in https://gitlab.haskell.org/haskell/filepath/-/jobs/1087047 is
[_15] rejecting: mintty:+win32-2-13-1 (conflict: Win32==<IP_ADDRESS>, mintty
+win32-2-13-1 => Win32>=2.13.1)
[_15] rejecting: mintty:-win32-2-13-1 (cyclic dependencies; conflict set:
ansi-terminal, ansi-wl-pprint, filepath, mintty, optparse-applicative, tasty,
tasty-bench)

It should be resolved by https://github.com/RyanGlScott/mintty/issues/5.

@Bodigrim I'm not sure what you're asking here. I want zero added dependencies and I don't want to tweak cabal resolver to be able to build the benchmarks. When I inline a package, I want to inline the minimal amount of code, so I remove all ifdefs and functions I don't need, in order to keep it light and reduce maintenance.

Closing, this is tracked further upstream in https://github.com/UnkindPartition/ansi-terminal/issues/151.


v4 format doesn't work

I'm not sure if it's supposed to work, but the title of #78 seems to suggest that.

NotebookRunner.iter_code_cells() tries to access worksheets, which doesn't seem to exist anymore on v4

cell.input seems to be cell.source in v4

After changing this, I was able to successfully run_notebook(), but the resulting notebook caused an error when loading it in IPython:
Notebook validation failed
An invalid notebook may not function properly. The validation error was:
Notebook Validation failed: Additional properties are not allowed ('prompt_number' was unexpected)

I changed cell['prompt_number'] to cell['execution_count'], which caused a new error:
Notebook Validation failed: Additional properties are not allowed ('stream' was unexpected)

This were the exact commands I tried:
import nbformat
from runipy.notebook_runner import NotebookRunner

nb = nbformat.read('tests/input/HelloWorld.ipynb', 4)
r = NotebookRunner(nb)
r.run_notebook()
nbformat.write(nb, 'NewHelloWorld.ipynb', 4)

I can work around this by using the v3 format for run_notebook() and converting the result to v4 afterwards:
import nbformat
from runipy.notebook_runner import NotebookRunner

nb = nbformat.read('tests/input/HelloWorld.ipynb', 3)
r = NotebookRunner(nb)
r.run_notebook()
nbformat.write(nb, 'NewHelloWorld.ipynb', 3)
nb = nbformat.read('NewHelloWorld.ipynb', 3)
nbformat.write(nb, 'NewHelloWorld.ipynb', 4)

... but it would be great if this would work directly in v4 notebooks.

So, the referenced issue is simply noting how this backwards compatibility with older notebooks/iPython versions is making things a bit messy and hard to deal with. The suggestion is that as it is too much of pain to support the old versions while trying to add support for the new ones that we instead should simply make breaking changes and start supporting only the new ones. In short, that support does not exist.
That aside, I agree that it would be nice to use v4 directly. However, as you have noted, we have no problem supporting v3 so if you can convert your notebook back into that format everything works fine. Currently, I use v4 notebooks in production (independent of this project) and that is also how I solve this issue for now.


IQueryableExtensions.ToParameterizedSql Assumes DateTime Parameters are Always DateTime and not DateTime2

Hello,
Here is a self-contained reproduction of the issue >> https://github.com/paulsavides/DateTimeTesting (Just using LocalDB)
The alternative title to this issue could be SqlParameter defaults are not always correct. But, the issue title is a bit more specific to what I'm seeing.
The Problem
Somewhere in my application I am executing code something like:
var minRecordCreateTime = await context.Entities.Where(e => e.SomeCondition).Select(e => e.CreateTime).FirstOrDefaultAsync();
await context.Entities.Where(e.CreateDate < minRecordCreateTime).BatchDeleteAsync();

The CreateDate column is of type datetime2(7). However, in IQueryableExtensions.ToParameterizedSql the code will allow SqlParameter to select whatever type it finds is most appropriate. In the case of System.DateTime, SqlParameter will map that to SqlDbType.DateTime instead of SqlDbType.DateTime2.
Because sqlserver datetime is lower precision than sql server datetime2(7), when the query is actually executed, I end up with rounding errors causing the datetime to always be lower or greater than I expected. Sometimes causing the minRecordCreateTime record to be deleted.
Of course, this could generally impact any scenario where the SqlParameter default is lower precision than the actual data type in the database.
Potential Code Fixes
Debugging through IQueryableExtensions I did notice that there is a private property on the implementation of IRelationalParameter that stored what EFCore knows about the actual database type.
This could potentially be fixed by grabbing that private property and always creating the SqlParameter with the most specific DbType possible.
Thank you for looking at this issue and for the library. Let me know if you require any clarification.

I'm not sure how to get and set most specific DbType from Relational ParameterValues.
If you manage to implement proposed solution you can send PullRequest.

Fixed with v3.4.3


I have finished deploying the project and then modified the code, how can I upload it again to the previous project？

On now.sh?

yes

Now has something called immutable deployments. There's no way to update the code but you can use aliases. Hangout our Zeit's slack for more info.


add StackBars type definition

replace StackBars props stackData?: any with stackData?: Array<{ stacks: ... }>
update docs

Thanks @abeyuya ❤
Your contribution matters. It will help users get a suggestion for props. Thanks!


Manually add regions when 'interact' is 'false' and 'enableDragSelection' is not enabled

I would like users to create regions by double-clicking on the waveform that don't have any regions to being with.
wavesurfer.container.addEventListener("dblclick", function (e) {
  // do wavesurfer.addRegion({start, end }) here
});

But I couldn't find a way to get the value for the start time for addRegion() from the double-clicks.
I tried listening to dblclick on wavesurfer, but no events there either.
Did I miss an official API that does that or I have to calculate them myself?

You have to calculate them yourself, but you are right, this should be part of the Wavesurfer API.
Here's an example that should work:
wavesurfer.container.addEventListener("dblclick", function (e) {
    const rect = e.target.getBoundingClientRect();
    const x = e.clientX - rect.left; // x position along the waveform
    const percent = x / e.target.scrollWidth; // 0 to 1 range, 0 = start, 1 = end
    const time = wavesurfer.getDuration() * percent;

   wavesurfer.addRegion({start: time, end: time + 5 });
});

The example was much appreciated - thank you 🙇


FOR REVIEW: Voted Operational Process Framework RPIP

Will add discussions-to very shortly.
Needs general draft-level checks.
Hold off on doing final-status checks until I can get feedback from community.

Some minor stuff - none of it big enough to block merging as Draft if the author desires

Yes please. Merge as draft and will address the above prior to Finalization.


Initial gRPCRoute

Please provide a description of this PR:

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

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

Test name
Commit
Details
Required
Rerun command

integ-pilot-multicluster_istio
2471f5c56300c783329c19da00836551a33aacdb
link
unknown
/test integ-pilot-multicluster

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

/retest


where for router controller on client/server or both?

I use router controller, but i am no sure for the place.
on client/server or both?

I generally create a "lib" folder inside of the root directory and put all my routing logic inside of a routes.js file inside the lib folder. This should work for both client and server side routing, though I admit not trying out server side routing yet.

very thanks


Unable to install/upgrade some helm charts - got status code 413

Rancher Server Setup

Rancher version: 2.6.2
Installation option Docker install/Helm Chart): Docker install on 3 node cluster

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE1

Proxy/Cert Details: Let's Encrypt certificate

Information about the Cluster

Kubernetes version: v1.21.4
Cluster Type (Local/Downstream): Imported self-hosted Vanilla k8s cluster in vCenter 7.0

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)

If custom, define the set of permissions: Owner

Describe the bug
When I try to install or upgrade some "bigger" helm charts (kube-prometheus-stack, Thanos) I get the following error:
UPGRADE FAILED: create: failed to create: the server responded with the status code 413 but did not return more information (post secrets). If I kubeconfig file /etc/kubernetes/admin.conf retrieved from the master node the installation completes fine.
To Reproduce

Install vanilla k8s cluster in vCenter
Import that cluster into Rancher
Attempt to install kube-prom-stack (https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)

Result
INSTALLATION FAILED: create: failed to create: the server responded with the status code 413 but did not return more information (post secrets)
Expected Result
Installation/upgrade succeeds.
Screenshots
Unnecessary.
 Just using DNS round-robin.

Have the same issue with deploying kube-prom-stack . Apparently it has some thing to do with using secretes as the helm backend storage driver. If you do export HELM_DRIVER=configmap it works fine. I am wondering if it has something to do with #37060 or no.

Having the same issue as well.

Having the same issue as well.

@Alan-R We had this issue as well. The 413 status code came from the Pods handling the Ingress logic within the Rancher MGMT cluster not the Kubernetes API itself.
See this issue over at the repository hosting the kube-prometheus-stack chart.
Stack Overflow thread about this, a good read with comments that summarizes the issue and how to fix it.
To fix this it's possible to reconfigure the Rancher MGMT cluster Ingress using this annotation.
That kube-prometheus-stack helm release Secret is a bit over 1MB, which is the default setting for client_max_body_size hence the 413 Entity too large error response from Nginx Pods.

Have the same issue with deploying kube-prom-stack . Apparently it has some thing to do with using secretes as the helm backend storage driver. If you do export HELM_DRIVER=configmap it works fine. I am wondering if it has something to do with #37060 or no.

@ehsank777 We did try this also, but since the default helm driver is Secret it became confusing to list all installed charts.

If you are running into this issue when deploying using helm from gitlab, using kas, as well as the gitlab provided ingress, this can be mitigated by modifying your gitlab deployment to add this annotation to the ingress:
gitlab:
kas:
ingress:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 8m

Using export HELM_DRIVER=configmap fixed the error message below for me. Thank you.

Error: INSTALLATION FAILED: create: failed to create: the server responded with the status code 413 but did not return more information (post secrets)

helm repo add seldonio https://storage.googleapis.com/seldon-charts
helm repo update
kubectl create namespace seldon-system
helm install seldon-core-operator seldonio/seldon-core-operator --namespace seldon-system

https://github.com/SeldonIO/seldon-core/tree/v1.17.1/helm-charts/seldon-core-operator

Using export HELM_DRIVER=configmap fixed the error message below for me. Thank you.

Error: INSTALLATION FAILED: create: failed to create: the server responded with the status code 413 but did not return more information (post secrets)

helm repo add seldonio https://storage.googleapis.com/seldon-charts
helm repo update
kubectl create namespace seldon-system
helm install seldon-core-operator seldonio/seldon-core-operator --namespace seldon-system

https://github.com/SeldonIO/seldon-core/tree/v1.17.1/helm-charts/seldon-core-operator

Where did you run export HELM_DRIVER=configmap?
on Master node or somewhere


Test failure: StringSegment_ImplicitConvertToSpan

This test fails occasionally with the following error:
System.IO.FileLoadException : Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at System.MemoryExtensions.AsSpan(String text, Int32 start, Int32 length)
   at Microsoft.Extensions.Primitives.StringSegmentTest.StringSegment_ImplicitConvertToSpan() in /_/test/Microsoft.Extensions.Primitives.Tests/StringSegmentTest.cs:line 48

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.
This test failed on master.
CC @Eilon (because the bot doesn't know who else to pick)
This issue was made automatically. If there is a problem contact ryanbrandenburg.

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

Is this actually a flaky test?

No, this is a regular test failure, fix the test/product (TODO: Link to commit/PR)
Yes, proceed below...

Is this test failure caused by product code flakiness? (Either this product, or another product this test depends on.)

[ ] File a bug against the product (TODO: Link to other bug)
Is it possible to change the test to avoid the flakiness?

Yes? Go to the "Change the test!" section.
No?

[ ] Disable the test (TODO: Link to PR/commit)
[ ] Wait for other bug to be resolved
[ ] Wait for us to get build that has the fix
[ ] Re-enable our test (TODO: Link to PR/commit)
[ ] Close this bug

Is it that the test itself is flaky? This includes external transient problems (e.g. remote server problems, file system race condition, etc.)

Is there is a way to change our test to avoid this flakiness?

Yes? Change the test!

[ ] Change the test to avoid the flakiness, for example by using a different test strategy, or by adding retries w/ timeouts (TODO: Link to PR/commit)
[ ] Run the test 100 times locally as a sanity check.
[ ] Close this bug

No?

Is there any logging or extra information that we could add to make this more diagnosable when it happens again?

Yes?

[ ] Add the logging (TODO: Link to PR/commit)

No?

[ ] Delete the test because flaky tests are not useful (TODO: Link to PR/commit)

This comment was made automatically. If there is a problem contact ryanbrandenburg.

StringSegment_AsSpan failed with about the same error on master.
This comment was made automatically. If there is a problem contact ryanbrandenburg.

Same as https://github.com/aspnet/Home/issues/3544

StringSegment_AsSpan failed with about the same error on master.
This comment was made automatically. If there is a problem contact ryanbrandenburg.

There were 2 failures with about the same error on master:

StringSegment_ImplicitConvertToSpan
StringSegment_AsSpan

This comment was made automatically. If there is a problem contact ryanbrandenburg.

There were 2 failures with about the same error on master:

StringSegment_ImplicitConvertToSpan
StringSegment_AsSpan

This comment was made automatically. If there is a problem contact ryanbrandenburg.

There were 2 failures with about the same error on master:

StringSegment_ImplicitConvertToSpan
StringSegment_AsSpan

This comment was made automatically. If there is a problem contact ryanbrandenburg.

There were 2 failures with about the same error on master:

StringSegment_ImplicitConvertToSpan
StringSegment_AsSpan

This comment was made automatically. If there is a problem contact ryanbrandenburg.

There were 2 failures with about the same error on master:

StringSegment_AsSpan
StringSegment_ImplicitConvertToSpan

This comment was made automatically. If there is a problem contact ryanbrandenburg.

@pranavkm, can you please handle this? Thanks!

Dup of https://github.com/aspnet/Home/issues/3544


Fill response attributes from JSON results doesn't work as expected

Here is the function in class SplashJsonResponse.
def _load_from_json(self):
        """ Fill response attributes from JSON results """

        # response.status
        if 'http_status' in self.data:
            self.status = int(self.data['http_status'])
        elif self._splash_options().get('http_status_from_error_code', False):
            if 'error' in self.data:
                try:
                    error = self.data['info']['error']
                except KeyError:
                    error = ''
                http_code_m = re.match(r'http(\d{3})', error)
                if http_code_m:
                    self.status = int(http_code_m.group(1))

        # response.url
        if 'url' in self.data:
            self._url = self.data['url']

        # response.body
        if 'body' in self.data:
            self._body = base64.b64decode(self.data['body'])
            self._cached_ubody = self._body.decode(self.encoding)
        elif 'html' in self.data:
            self._cached_ubody = self.data['html']
            self._body = self._cached_ubody.encode(self.encoding)
            self.headers[b"Content-Type"] = b"text/html; charset=utf-8"

        # response.headers
        if 'headers' in self.data:
            self.headers = headers_to_scrapy(self.data['headers'])

It assume self.data is a dict like
 {'html':'.*', 'cookies': []}

but in fact the self.data is a dict like
{'1':{'html': '.*', 'cookies': []}}

Thus makes an issure if you are using render.execute or render.json as endpoint.
I found this when i'm using Splash 2.2.1 and Splash 2.3 with the lastest version of scrapy-splash.

@kmike I use scrapy-splash with scrapy-redis, and i got no idea why this happened every time. I have to replace response.data with response.data["1"] before parse. What you think?

@tyong920 Did you ever manage to find the root cause of the issue?

Closing due to a lack of feedback.


Support cuSparse generic API

This PR is to support cuSparse generic API introduced in CUDA 10.1.
https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-api-reference
All cuSparse generic API functions such as cusparseSpMV and cusparseSpMM will get available in CuPY with this PR.  In addition, functions spmv and spmm, those are implemented as alternatives to csrmv and csrmm, have been added in cupy/cusparse.py to make it easier to use cusparseSpMV and cusparseSpMM.

Will this fix #3131?
Thanks!!

cusparseSpMV and cusparseSpMM used in spmv and spmm support FP16 data type, though FP16 support is not implemented in this PR.
Thanks.

I gave a first complete look to this PR and just to clarify 😃
This PR exposes the new cuSPARSE APIs and provides a sparse-matrix-vector routine for current cupyx.scipy.sparse matrices.
However, these APIs are not currently being used inside cupyx.scipy.sparse.
Is this correct?
The PR looks good to me and I don't have any major objections.
I will give it another look.

That's correct.
You can use spmv and spmm as alternatives to csrmv* and csrmm* that are used in cupyx.scipy.sparse, but so far I've not applied spmv and spmm to any functions in cupyx.scipy.sparse.
After this PR is merged, I will work on this.

@grlee77 Seems like you can revisit the comparison of CUB spmv vs the new spmv from cuSparse? 😆

Jenkins, test this please

Jenkins CI test (for commit aa4952fb7ab7e41db0307d329b2b511ce8a39f94, target branch master) failed with status FAILURE.

cupy-py3 tests with cuda 10.0 and cupy-py25 tests with cuda 10.2 thats the reason of why errored only on py35 😃

It looks complex dtypes are not supported by scipy in cupy-py35 testing environment.
Would it be OK to remove complex dtypes from the unit tests?
        if dtype.char not in 'fdg':
>           raise NotImplementedError("type %s not supported" % dtype)
E           NotImplementedError: type complex64 not supported

data_rvs   = None
density    = 0.5
dtype      = dtype('complex64')
format     = 'csr'
m          = 3
n          = 2
random_state = None

/usr/local/lib/python3.5/dist-packages/scipy/sparse/construct.py:750: NotImplementedError

        if dtype.char not in 'fdg':
>           raise NotImplementedError("type %s not supported" % dtype)
E           NotImplementedError: type complex128 not supported

data_rvs   = None
density    = 0.5
dtype      = dtype('complex128')
format     = 'coo'
m          = 2
n          = 4
random_state = None

/usr/local/lib/python3.5/dist-packages/scipy/sparse/construct.py:750: NotImplementedError

Let's skip complex dtypes then

It looks scipy.sparse.random supports complex dtype from version 1.2.0, so I changed the requirements for TestSpmv and TestSpmm.

Could you run tests again?

Jenkins, test this please

Jenkins CI test (for commit 74ca80f9f7943490c1caf1e0fb3a6366d1cb34fe, target branch master) succeeded!

This PR needs to be reverted, it is causing issues with windows builds

I wonder why Appveyor didn't catch this?

I am wondering if the Windows build issue could be simply worked around by having a build time flag so as to make the generic API not available on Windows? For example, cupy.cuda.thrust can be absent, and a RuntimeError is raised if its functionality is called but the module is not built.

The problem seemed to be in the cusparse.h header in windows, there is something there that makes cython go nuts.

I see, thanks Emilio! Just took a quick look at my cusparse.h on Linux (don't have a Windows, but they should be the same?), and I see this line
#ifdef _WIN32
#define CUSPARSEAPI __stdcall

and it seems Cython does support __stdcall, with the caveat that the function signature must declare it too: https://cython.readthedocs.io/en/latest/src/userguide/external_C_code.html#windows-calling-conventions
If this is the only problem, I think it should be easy to work around.
The bigger problem is CUDA documentation does say it's not supported on Windows...

LIMITATION: The generic APIs are currently available for all platforms except Windows. Using these APIs in any other systems will result in compile-time or run-time failures. Their support will be extended in the next releases.

https://docs.nvidia.com/cuda/cusparse/index.html#cusparse-generic-api-reference


OCPBUGS-30333: Remove Helm

Replaces all the manifests with required intermediate state versions. They then get further munging via yq and script.

/retest

Closing in favor of #837


firebase auth iOS: verifyPhoneNumber is crashing the app

When using @nativescript/firebase-auth 1.0.0-alpha.31, a call to verifyPhoneNumber is crashing the app (Simulator and physical device).
PhoneAuthProvider.provider().verifyPhoneNumber("+44 7123 123 456").then((verificationId: string) => {
    console.log("verifyPhoneNumber received verification id:");
    console.log(verificationId);
  }, (e) => {
    console.log(e);
});

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught Error: The default FirebaseApp instance must be configured before the default Authinstance can be initialized. One way to ensure this is to call FirebaseApp.configure() in the App Delegate's application(_:didFinishLaunchingWithOptions:) (or the @main struct's initializer in SwiftUI).
at
provider(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/firebase-auth/index.ios.js:682:0)
at submitLoginPhone(file: app/webpack:/@nativescript/template-hello-world-ts/app/main-page.ts:86:2)
at _handleEvent(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/data/observable/index.js:233:0)
at notify(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/data/observable/index.js:216:0)
at _emit(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/data/observable/index.js:256:0)
at TapHandlerImpl.tap(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/ui/button/index.ios.js:261:0)
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught Error: The default FirebaseApp instance must be configured before the default Authinstance can be initialized. One way to ensure this is to call FirebaseApp.configure() in the App Delegate's application(_:didFinishLaunchingWithOptions:) (or the @main struct's initializer in SwiftUI).
at
provider(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/firebase-auth/index.ios.js:682:0)
at submitLoginPhone(file: app/webpack:/@nativescript/template-hello-world-ts/app/main-page.ts:86:2)
at _handleEvent(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/data/observable/index.js:233:0)
at notify(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/data/observable/index.js:216:0)
at _emit(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/data/observable/index.js:256:0)
at TapHandlerImpl.tap(file: app/webpack:/@nativescript/template-hello-world-ts/node_modules/@nativescript/core/ui/button/index.ios.js:261:0)
', reason: '(null)'
*** First throw call stack:
(0x1840ddd3c 0x19b4426a8 0x104ca20b8 0x10501e6e4 0x10501e550 0x104f5f2b8 0x104eb7aa4 0x104eb7058 0x104d0a50c 0x104be4794 0x104cd7974 0x104cd81b4 0x18684ec98 0x1869701e4 0x186703198 0x186799de0 0x186a14d1c 0x1865064ac 0x186537c40 0x1865445d4 0x1866e80d8 0x186519124 0x18650e070 0x186513400 0x1840f<\M-b\M^@\M-&>

By chance did you initialize the firebase app ?

@triniwiz
I added the following import:
import '@nativescript/firebase-auth'; // only needs to be imported 1x
and I am calling firebase().auth() to get the auth instance.
Actually this should be enough right? On Android this seems to work as expected.
Full sample app can be found here:
ns-firebase-auth.zip
By the way, I am still struggeling with other firebase auth methods on iOS as well:
<EMAIL_ADDRESS>"password") gives the following error:

TypeError: Cannot read property 'createUserWithEmailPasswordCompletion' of null

<EMAIL_ADDRESS>gives the following error:

Cannot read property 'sendPasswordResetWithEmailCompletion' of null

On Android, this methods are working as expected.

Did you call the following?
import { firebase } from '@nativescript/firebase-core'
const defaultApp = firebase().initializeApp()

Ahh...... Indeed I forgot that. Not sure why it has worked on Android then, but on iOS I have to call it :)
Thank you!!


[Feature Request] Reduce autok3s binary size by using plugin mode for providers

Is your feature request related to a problem? Please describe.
For now, the autok3s binary size is very huge for a k3s cli tools. The cause of the problem is from the SDK of aliyun/aws/google and etc.
Describe the solution you'd like
We should try to build those providers as a plugin of autok3s and download/load it when needed.
Following is the goweight file for the v0.8.0-rc1 version of autok3s: size.txt
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

I test to remove all public cloud provider, the size of Darwin binary goes down ~40MB.
And I test to remove kubectl, the size goes down ~15MB.
With the native and k3d provider embedded, the binary goes to 50 - 57 MB, reduced 50% before binary compress.

No need to make fancy improvement. The binary size is acceptable for now. Will re-open this issue when the binary size gets unacceptable.


Add support to release linux aarch64 wheels

On aarch64, pip install cupy-cuda100 and pip install cupy-cuda101 give the following errors:
ERROR: Could not find a version that satisfies the requirement cupy-cuda100 (from versions: none)
ERROR: No matching distribution found for cupy-cuda100

ERROR: Could not find a version that satisfies the requirement cupy-cuda101 (from versions: none)
ERROR: No matching distribution found for cupy-cuda101

@kmaehashi , Please let me know your interest in releasing aarch64 wheels. I can help with this.

We currently distribute binary wheels for jetson devices pip install cupy-cuda112 -f https://pip.cupy.dev/pre

Thanks for the feedback! CUDA 10.0/10.1 support has been dropped in CuPy v10 (#5717) so we have no plan to release wheels for legacy JetPacks (2019 or earlier). Upgrading JetPack is the best option here, but you can also build CuPy v9 from source on CUDA 10.0 + aarch64.


Dictionary Support

The command .get_holidays() provides a list of 42 dictionaries, but summer bank holidays aren't included in the list. Is there a reason for that?

England-and-Wales and Northern Ireland have a different date for the summer bank holiday to Scotland. If you don't supply a "division" when you call get_holidays, you only get a list of holidays shared between all regions of the UK, which will exclude these.


Subject verb agreement is incorrect in page title

The page's title should read "What are managed identities for Azure resources?
The lack of standard English grammar and syntax across the Azure documentation set makes using and understanding Azure much harder than it should be.
[Enter feedback here]

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

ID: 7bd6bdc9-b545-f273-dc80-eeb69107d919
Version Independent ID: dbbbadd6-f533-33e3-1c1f-7cbc889b20b7
Content: Managed identities for Azure resources
Content Source: articles/active-directory/managed-identities-azure-resources/overview.md
Service: active-directory
Sub-service: msi
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@yobyot Thank you for your feedback. We will raise a request for the correction to be done.

@yobyot  We have created a Pull Request for the edit and the same would be updated soon.


Add ColonyUpgraded event and handler

This PR adds in ColonyUpgraded event definition and handler

Note that this won't work properly until I merge #2347 (which pulls in the new colonyNetwork changes and builds a new version of colonyJS)

Note that this won't work properly until I merge #2347 (which pulls in the new colonyNetwork changes and builds a new version of colonyJS)

Note that this won't work properly until I merge #2347 (which pulls in the new colonyNetwork changes and builds a new version of colonyJS)

No worry, its either way on hold, as its need a bit of network work before

Note that this won't work properly until I merge #2347 (which pulls in the new colonyNetwork changes and builds a new version of colonyJS)

No worry, its either way on hold, as its need a bit of network work before

This is now unblocked and can be worked on

This is now unblocked and can be worked on


Error occures while compiling from Arch AUR repository

Here is error log:
   Compiling image v0.21.3
warning: unnecessary braces around block return value
  --> src/preview.rs:23:51
   |
23 |     static ref SUBPROC: Arc<Mutex<Option<u32>>> = { Arc::new(Mutex::new(None)) };
   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces
   |
   = note: `#[warn(unused_braces)]` on by default

error[E0599]: no method named `remove_item` found for struct `Vec<files::File>` in the current scope
   --> src/files.rs:520:43
    |
520 |             .map(|placeholder| self.files.remove_item(&placeholder));
    |                                           ^^^^^^^^^^^ method not found in `Vec<files::File>`

error[E0599]: no method named `remove_item` found for struct `Vec<PathBuf>` in the current scope
    --> src/files.rs:1079:40
     |
1079 |             false => { TAGS.write()?.1.remove_item(&self.path); },
     |                                        ^^^^^^^^^^^ method not found in `Vec<PathBuf>`

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hunter`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
    Aborting...

Sorry, I didn't notice that project is dead...


the branch of a dep is changed cause docker build to fail

could probable do: RUN sudo git clone --recursive https://github.com/jrspruitt/ubi_reader.git -b v0.8.5-master
in dockerfile

We implemented the change. Thanks for helping us fix the build.


[Service] Developer Service

This is a background service intended for developers.
Functions are available through an icon on the panel. Only works with dist-dev

[x] Reloading of Manifest
[x] dist-dev manifest with mtime
[x] Detect mtime changes on packages
[ ] Re-launching of applications upon change
[ ] Re-launch session upon core changes

@junland :)

:+1:

This will automatically resolve itself after #136 -- All the reloading functions will be in options.
"patching" is a part of the new update


hash/checksum behavior

I was wondering if a hash/checksum behavior is possible and if there is such a thing somewhere or anyone has done it already. Thanks.

@cordoval  Can you explain in a more detailed way what feature you are talking about?

I don't use this anymore sorry about my issue.

@cordoval Thanks for you answer :).


Guava cache

Coverage remained the same at 46.671% when pulling dcd4a65e9d1d74eed2486c182d3a3425de67aa9a on guava-cache into 87376ceb71d857cf41eb6926180db87300badf92 on master.

Same as https://github.com/ScorexFoundation/Scorex/pull/280 but with guava cache. Please merge one of this 2 pull requests

https://github.com/ScorexFoundation/Scorex/pull/281 might be better