Support Node v12.0.0

TODO: Properly Nan-ify. This is a bit of a frankenstein

Any progress on this? I need it for electron 5 compatibility (node v12). Thanks!

This pull request works properly at Electron 5 and Node.js v12. Please merge it!

I've build my application with electron 5 and the pull request and also works fine, maybe it should be merged in order to use this fantastic module in future electron releases? thanks in advance!

For me it worked as well! It would be nice to have it as an official release.

Is there an update on this PR?

@TooTallNate any chance to get this merged and released?

@lxe could you make some additional commit to the PR to trigger CI jobs again as for now, the PR looks like not working. Also, I see in package.json that you are using your forks as dependencies. Do you even consider this PR as a completed work?

seems that we need to wait for TooTallNate/ref#114

For me, it did not work with Electron 5.0.6 and Node 12.
Will be using Electron 4 and waiting for the official fix.

Just as another data point, I have got FFI working in the node:12 docker image by using the following:
FROM node:12

ENV NODE_PATH=/usr/local/lib/node_modules

RUN npm install -g lxe/node-ffi#node-12 lxe/ref#node-12 lxe/ref-struct#node-12 --unsafe-perm

This works for now until this makes it into an official release.

works good for me. but imho the following versions should not be changed to another github repositories :

"ref": "lxe/ref#node-12",
"ref-struct": "lxe/ref-struct#node-12"
"ref-array": "lxe/ref-array#node-12"

maybe you can  push those modifications related to ref / ref-struct /ref-array to corresponding repo before this one?
really appreciated ! expect this one being merged asap.
@lxe @diegozhu

I got it working with electron 5 and node 12.3.1 but with electron 6 this still fails. Any chance to make it Electron 6 compatible?

works well with Electron 6.0.12 ( builtin node 12.x)

I think since built on napi ffi-napi should be more stable across node versions: https://github.com/node-ffi-napi/node-ffi-napi

Thanks @lxe. I'm having some trouble using this in Electron 7 (Node 12.8.1)
There are a lot of build errors when using that version.

I tried a local version of the install command above: npm install lxe/node-ffi#node-12 lxe/ref#node-12 lxe/ref-struct#node-12
However, this failed in my project, with many errors in the .cc files.
I was eventually able to get it to work by:

Creating an empty folder somewhere else.
Running npm init and using all the defaults (to create a package.json).
Running the local install command above.
Copying all the contents of the node_modules folder, and pasting it into the node_modules folder of my actual project. (On one of them, this worked right away. In another, it had an issue since there were other packages that needed rebuilding; I had to npm rebuild TheOtherPackage, then re-copy the temp node_modules folder -- except for this second pass I said "skip all" for the file conflicts.)

Messy workaround, but my project is compiling again, so it's good enough for now. Hopefully @TooTallNate will have some time soon to review the pull-requests...

I got it working with electron 5 and node 12.3.1 but with electron 6 this still fails. Any chance to make it Electron 6 compatible?

do you use electron5 and node 12 is ok? how to use it ? I’m working on this repo https://github.com/TooTallNate/NodObjC.git

Hello! These packages have been the silver bullet for me:
npm install lxe/node-ffi#node-12 lxe/ref#node-12 lxe/ref-struct#node-12
Thanks for handing out those branches.

Update: I've recently switched to using ffi-napi, and it's been working well so far. (after this slight speed-bump, due to me using an old version...)
The main reason for me switching is just that the ffi-napi library is still being maintained; this one has not been updated in over a year, and has not had a meaningful update in more than 2... (it's also broken on Node 12 and up, without the fixes above in this thread -- which can be tricky to apply, and will likely break for node 14+ anyway)

Update: I've recently switched to using ffi-napi, and it's been working well so far. (after this slight speed-bump, due to me using an old version...)
The main reason for me switching is just that the ffi-napi library is still being maintained; this one has not been updated in over a year, and has not had a meaningful update in more than 2. (it's also broken on Node 12 and up, without the fixes above in this thread -- which for me at least, do not apply properly without installation tricks, and will likely break for node 14+ anyway)

agreed. IMO node-ffi-napi is the future and should be recommended.


Upgrade axios dependency to 0.21.1

When running yarn install, I see the following warning
warning rails-ranger ><EMAIL_ADDRESS>Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

Oh, good call!
I will try to get into it at some point in the next week but if you need it fast and feel like opening a pull request be my guest 😄
I believe the API should be the same, so probably just bumping the lib and running the tests should be enough.

Hey @victor-am
Here is PR: https://github.com/victor-am/rails-ranger/pull/45

Just published the version 1.2.1 of the library with a couple of version bumps (2 of them in non-dev dependencies: axios and lodash). More info about the release here: https://github.com/victor-am/rails-ranger/releases/tag/1.2.1
Thanks for the help guys 😄


No module named 'sg2im'

Hello there,
I was trying to run the pretrained model using the method descried in the ReadMe, but was getting the following error.
Traceback (most recent call last): File "scripts/run_model.py", line 22, in <module> from sg2im.model import Sg2ImModel ModuleNotFoundError: No module named 'sg2im'
Any help would be greatly appreciated.

Resolved by moving the run_models.py to the root directory.


[Bug]: Refresh CTA on license and billing screen should fetch the latest flags

Is there an existing issue for this?

[X] I have searched the existing issues

Description
When user clicks refresh button on the instance license page, feature flags also should get refreshed as the flags are dependent on license state.
Note: This has been already handled on server side via PR
Steps To Reproduce

Go to admin setting > license page
Click refresh button next to license
If there are changes in the feature flags they are not reflected immediately

Public Sample App
No response
Environment
Production
Issue video log
No response
Version
v1.11

@ankitakinger IIUC we are just refetching the flags when user clicks on refresh CTA, if this is the case we have implemented the incorrect solution here. As described in the server side PR we want to rely on PUT license call instead of GET and then fetch the feature flags. This way server will actually flush existing flags and fetch again from feature flag provider i.e. LaunchDarkly.
1. When client wants to refresh the existing license key:
curl --location --request PUT 'https://dev.appsmith.com/api/v1/tenants/license' \
--header 'Content-Type: application/json' \
--header 'Cookie: SESSION=ff45e152-98b2-4ca3-91b7-63651e4227a6' \
--data '{
    "refreshLicenseAndFlags": true
}'


[Feature] Add a check to see if a user is walk-in

Overview
Currently, there is no way to support walk-ins in HackPortal.
Proposal
Add a check on the organizer side to see if a user has registered after a certain cutoff time.
This cutoff time will be determined by a super-admin on the Admin portal. This date should be changeable, with any registrations prior to the cutoff being updated to their appropriate status.
During check-in, a popup will display on the admin's device informing them that the hacker is a walk-in or registered after the deadline. Admins will then have the ability to confirm or deny check-in. A hacker can be checked in later if their entry was denied.  This functionality is limited to check-in, and a hacker's status as late registration should not carry over to other scans.

ok

@abdullah50053 Do we want there to be a separate settings manager in the firestore instance? I ask because we can just put this in the hackportal config, but you mention that

The cutoff time will be determined by a super-admin on the Admin portal
Rather than some configuration, you're suggesting something they can change within the app itself. I'm personally in favor of keeping it in the hackportal config but let me know what you're going for with that and I'll implement it.

@NickBurnett Abdullah says that it's fine for the hackutd 9 site to put it in the config, but ideally we would have it on the admin console.
The reason for having admins be able to dynamically change it is on the day of, when we decide to accept walk-ins, we can just set the cutoff date to some time in the future, and it would just allow anyone to be checked in without showing the popup.


chore(deps): update dependency jasmine-core to v5

This PR contains the following updates:

Package
Type
Update
Change

jasmine-core (source)
devDependencies
major
~4.6.0 -> ~5.0.0

Release Notes

jasmine/jasmine
v5.0.0: 5.0.0
Compare Source
Please see the release notes.

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@angular/cdk
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/@angular/material
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/@angular-material-components/datetime-picker
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/@angular/cdk
npm ERR!   peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!   node_modules/@angular-material-components/datetime-picker
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /tmp/renovate/cache/others/npm/_logs/2023-05-14T21_13_54_934Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2023-05-14T21_13_54_934Z-debug-0.log


CF Release

Updates
Changed

cf-forms: [patch] Convert fixed pixel units to ems.
cf-layout: [patch] Fix the background size of overlay hero images

Review

@cfpb/front-end-team-admin

I am a bot
After this PR is merged, I will instruct Travis to automagically perform the following steps:

Increment Capital Framework's version per our guidelines.
Add a timestamped entry to the changelog with the new version and its changes.
Tag the release and push it to GitHub.
Publish both capital-framework and any individually updated components to npm.
Update both canary, our development branch, and master, our release branch.

If I do something wrong, blame a human.

Looks good now, but I'll let @contolini have the final sign off.

@anselmbradford and @contolini Make sure to merge this before any other currently-open PR in this repo. I'm not sure we want to find out how to recover from PRs merged while a release PR is currently open.


DataGrid: Remove empty filters when closing the filter menu (#8998)

Description

Added a method called when the filters menu is closed that removes any unset filters. This way, if a user clicks the funnel in a column header and then have second thoughts and clicks outside to close the filter menu, it stays empty.
Fixes #8998
Also removed some unused using statements.
How Has This Been Tested?

Manually tested by running the Docs.Server project and playing around with the Advance Data Grid example.
No new tests created. I don't know how to make a unit test for this, please give me a hint if needed.
Type of Changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (fix or improvement to the website or code docs)

Before:
https://github.com/user-attachments/assets/feb18501-78cf-4dc3-8991-fb63335b932c
After:
https://github.com/user-attachments/assets/e010cf8d-4687-4de7-9725-fffa8191aa75
Checklist

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[ ] I've added relevant tests.

Hi, thanks for the PR.
I don't think this is as straightforward as it seems. You are removing all filters that have a value of null, but what if I have nullable items and I want to set a filter to look for empty entries? A good example is the string operator "is empty." Your current change would remove such filter.
I would also like to see a bUnit test for this.
Additionally, I'm summoning @henon for his opinion, as the datagrid has worked this way since the beginning: the filter is added automatically and remains until you click the "x" on the left side when you click the filter icon. Is it good idea to change the behavior now? I think it would be nice to add this as optional setting.

Now keeps filters with empty value if filter operator is "is empty". Also added a couple of bUnit tests.
Awaiting review and any further feedback.

FYI: Waiting when @tjscience approves it. If he doesn't for ~2 weeks I will just merge.

Additionally, I'm summoning @henon for his opinion, as the datagrid has worked this way since the beginning: the filter is added automatically and remains until you click the "x" on the left side when you click the filter icon. Is it good idea to change the behavior now? I think it would be nice to add this as optional setting.

I guess everyone agrees that this changes. Merging then.


*.toJavaMap() tests

Current coverage is 95.46%

Merging #1291 into master will increase coverage by +0.13% as of 812263d

@@            master   #1291   diff @@
======================================
  Files           83      83
  Stmts         9470    9470
  Branches      1705    1705
  Methods          0       0
======================================
+ Hit           9028    9041    +13
- Partial        107     108     +1
+ Missed         335     321    -14

Review entire Coverage Diff as of 812263d

Powered by Codecov. Updated on successful CI builds.

Thx!


Issue #12 homepage layout

Regarding Issue #12
This PR includes the basic layout of the home page as stated in issue 12. Placeholders exist where the Nav Bar and the "Popular Posts" feed will be (will be added after components are developed). Please let me know if I should hold off on a pull request for this and should wait until everything is put together before raising a PR.

Created PopularCommunity cards - temporarily populated the "Popular Communities" section with 3 static cards - this means that they will resize responsively on zoom in/out. This will be fixed once the horizontal scrolling is added.
Set up containers for the homepage elements - the "Popular Communities" and "Popular Posts" containers exist
Navbar and "Popular Posts" cards currently have placeholder text
Colours subject to change - currently using the colour codes used on Figma for the font colour and background

Please pull the code and check if it looks ok on your devices.

Hi Chris, thanks for the review! I am definitely using the 'name,' 'alt,' and 'image' variables so I'm not sure what is going on. I'll have a closer look tomorrow and fix them.

Thanks Chris, I've made the changes and everything still looks the same. Hopefully netlify is happy now.


Group capstone: set up the Kanban board

Hello 😊
link to the project: JS-Capstone-Webapp
I am working alone on this final capstone project.
Omar Babou: students A, B, C.

Hi @omarbabou,
Your project is complete! ⚡🔥  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights 🎉🔥

✔ Good PR

Optional suggestions ☂
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Change six requirement to range >=1.11.0,<2

Make the six package requirement less restrictive by adding a range.

Any chance to change this to just a >=1.11.0, and cut a release? There are libraries popping up now that require >=1.12.0, and an exact match here is messy.
Changelog from six==1.12.0 is:
1.12.0
------

- Issue #259, pull request #260: `six.add_metaclass` now preserves
  `__qualname__` from the original class.

- Pull request #204: Add `six.ensure_binary`, `six.ensure_text`, and
  `six.ensure_str`.

Hi @ColCarroll! Would requiring >=1.11.0,<2 be okay? I am a bit hesitant to not include an upper bound at all, since six==2.0.0 in principle might be completely backward-incompatible and grift can't possibly know what it's agreeing to ahead of time.
If that's okay, I think I can cut a new release with that tomorrow.

That works great! Thanks to you both :hugs:

I'll fix the tests in a bit, seems like Travis is picking up an ancient version of pytest for some reason.

@ColCarroll I tagged the new version (v0.7.1), and I'll put it on PyPI in the morning -- need to do some account tweaking on PyPI first. In the meantime, to get your work unblocked, you should be able to install directly from the tag.

Uploaded to PyPI: https://pypi.org/project/grift/
Thank you for reminding us to revisit this issue, @ColCarroll!

This was incredible. Now I have to go fix my hack 😁


Add shipped status

Add shipped to status enum in the reef table

In order to add a value to an enum we can use the syntax:
ALTER TYPE "public"."reef_status_enum" ADD VALUE 'shipped'

and skip all the dropping and creating a new enum.
Also the reverting function was not working if a reef had 'shipped' status. So I added an update query that changes all shipped statuses to 'in_review'.


Video behavior not consistent among webm files.

Browsers and versions affected
Chrome - webrtc 3.4.3
Description
If I record a video in chrome and then load the video into a  tag there is no buffer or indication of buffering.
If you go to webm.land they have a number of webm videos that show this buffer behavior in chrome.
See the following link in chrome: http://webm.land/w/X0nS/
Notice how the buffering indicator shows up and keeps increasing while the video is being played.  This same behavior can be seen when loading the video externally.
<video src="http://webm.land/media/X0nS.webm" type="video/webm" autoplay="autoplay" controls="controls"></video>
Doing the same thing using a webrtc recording in chrome.
<video src="/chromeRecording.webm" type="video/webm" autoplay="autoplay" controls="controls"></video>
Doesn't behave the same (no buffer indicator)
Steps to reproduce
Record video in chrome.
Play video with controls and autoplay attributes in  tag
Expected results
Expecting webm files to have some uniform behavior.
Actual results
webm files on webmland behave differently from my recorded webm files.

This is not related to adapter. Please file a bug in crbug.com.


Tuning on Italian company name format

:white_check_mark: Build Faker.NET (Portable Edition) <IP_ADDRESS>-akpaaajl completed (commit https://github.com/AdmiringWorm/Faker.NET.Portable/commit/ad87e3ee8a by @supix)

Current coverage is 94.10% (diff: 100%)

Merging #30 into develop will not change coverage

@@            develop        #30   diff @@
==========================================
  Files            21         21
  Lines           407        407
  Methods         148        148
  Messages          0          0
  Branches         57         57
==========================================
  Hits            383        383
  Misses           17         17
  Partials          7          7

Powered by Codecov. Last update 9744596...5d95b03

Looks good, let me know whenever you ready for me to merge it.

You can merge. Thanks.

👍
thanks for your contributions


App within Solution Checksum Fail on Unpack

We have a solution that contains an App.  We unpack the solution, then we have to unpack the app.
When we unpack the app we receive:
UnPack from E:\Repos\PartnerCertifications\PartnerCertifications\CanvasApps\new_pcap_7bb8d_DocumentUri.msapp-->E:\Repos\PartnerCertifications\CanvasUnpacked\new_pcap_7bb8d_DocumentUri.msapp
source format version: 0.24
Error   PA3011: Roundtrip validation on unpack failed. This is always a bug, please file an issue at https://github.com/microsoft/PowerApps-Language-Tooling
Error   PA3011: Roundtrip validation on unpack failed. This is always a bug, please file an issue at https://github.com/microsoft/PowerApps-Language-Tooling
Microsoft PowerPlatform CLI
Version: 1.12.2+gf0f06de
Error: There were errors.
Usage: pac canvas unpack [--sources] --msapp
--sources                   Directory to sources to be unpacked
--msapp                     Path to .msapp file

We are also facing the same issue even in local and through Pipeline's as well! Any update's? @microsoftopensource @NavneetThekkumpat

@AlexBrownShi / @satishkotaru can you mail me your msapp as a repo, at nthekkumpat at microsoft dot com?

We've started seeing this in the CoE Starter Kit ALM Accelerator App as well when unpacking the ALM Accelerator App itself. Will forward the msapp for repro. If it helps, we were able to unpack successfully using PAC CLI as recently as February 19th which was the last time we tried since today.

We are also facing this issue. We previously got the same generic Roundtrip error when we were using a Teams component in one of our canvasapps. We removed that component and everything worked well for a few weeks. We haven't added any Teams or custom components that we suspect are provoking it. The one thing that has been added to the apps that may be a bit out of the ordinary is ModelDrivenFormIntegration.
We have a total of 5 canvas apps in our solution. When unpacking the individual msapp files locally with PAC CLI  3 of the 5 fail with the Round trip error.  The other 2 also fail but with a different error:
'Sorry, the app encountered a non recoverable error and will need to terminate. The exception details have been captured and will be forwarded to the development team, if telemetry has been enabled. Exception Id: 83984489-42f6-419a-bb41-b430c1c7e05f, Exception Type: System.IO.DirectoryNotFoundException'
So far we havn't figured out what could be the common denominator for the 3 that have the Roundtrip Validation error. Not all of them use the ModelDrivenFormIntegration and 2 of the 3 are new but very small and non complex apps.


Collect data on API usage

This issue has been migrated from the CC Search API repository
Author: kgodey
Date: Fri Apr 10 2020
Labels: ✨ goal: improvement,🏷 status: label work required,🙅 status: discontinued

Problem Description
We should collect data on how our API is being used. We should be able to create reports of non-CC Search API usage

by API key
from unauthenticated users (per user, anonymized)

Solution Description
Append API keys (when available) to uwsgi logs.

Based on the solution criteria here:

Append API keys (when available) to uwsgi logs.

I believe this was #3369 and can be closed!


feat(core): add distPath.assets  and filename.assets

Summary
feat(core): add distPath.assets  and output.filename.assets
Related Links

close #3650
Checklist

[ ] Tests updated (or not required).
[ ] Documentation updated (or not required).

😂 Strictly speaking,  images svgs etc are also called assets.

😂 Strictly speaking, images svgs etc are also called assets.

Haha, all of them are assets, we have categorized the assets into subdirectories, which isn't bad.


MudForm is not working correctly with localized attributes

Things to check

[X] I have searched the existing issues for this bug
[X] To rule out a caching problem I made sure the bug also happens in an incognito tab

Bug type
Component
Component name
MudForm
What happened?
I’ve encountered an issue when using MudForm in combination with data annotations that rely on IStringLocalizer for localization. Unlike EditForm, MudForm does not automatically integrate with DataAnnotationsValidator, which makes it difficult to localize validation error messages through custom attributes.
using Data.Resources.Localization.Shared.ValidationMessages;
using Microsoft.Extensions.Localization;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;

namespace Data.Attributes;

public sealed class LocalizedRegularExpressionAttribute : RegularExpressionAttribute
{
	public LocalizedRegularExpressionAttribute([StringSyntax("Regex")] string pattern, string errorMessageKey) : base(pattern)
	{
		ErrorMessageKey = errorMessageKey;
	}

	public string ErrorMessageKey { get; }

	protected override ValidationResult IsValid(object value, ValidationContext validationContext)
	{
		var localizer = (IStringLocalizer)validationContext.GetService(typeof(IStringLocalizer<ValidationMessages>));
		ErrorMessage = localizer[ErrorMessageKey].Value;
		return base.IsValid(value, validationContext);
	}
}

Example code :

<MudForm Model="myModel" @bind-IsValid="isValid">
    <DataAnnotationsValidator />
    <MudTextField @bind-Value="myModel.Name" Required="true" />
</MudForm>

Expected behavior
MudForm should support localization by integrating more seamlessly with DataAnnotationsValidator and supporting dependency injection for services within custom validation attributes. This would make it easier to localize error messages in Blazor applications.
Current Workaround:
A current workaround is to nest MudForm inside EditForm, which does support DataAnnotationsValidator and works well with localization.
Reproduction link
It has to be a full project to add resource files and localizations
Reproduction steps

Create a Blazor WASM
Use MudForm with a model that contains properties decorated with a custom ValidationAttribute (e.g., LocalizedRegularExpressionAttribute) that depends on IStringLocalizer
Attempt to use the form with MudForm and DataAnnotationsValidator
...

Relevant log output
No response
Version (bug)
7.8
Version (working)
No response
What browsers are you seeing the problem on?
Chrome, Edge
On which operating systems are you experiencing the issue?
Windows, Android
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi,
MudForm does not support injecting a third-party EditContext, which is why you cannot use DataAnnotationsValidator inside MudForm. It simply won’t do anything. There is a corresponding issue for this: https://github.com/MudBlazor/MudBlazor/issues/7658.
Therefore, I will close this issue since the two are tightly coupled. If support were available, it would work out of the box. No point to have two same issues.
@AntMaster7 expressed interest in implementing this, but I’m not sure if there is still interest, so there is no ETA. It pretty much up for grabs for anyone who wants to make this enhancement.
For now, I would recommend using EditContext. In my personal perspective, it is usually better, except when you need async validation. If not that async feature, I would likely propose deprecating MudForm long time ago.

Closing as duplicate, see: https://github.com/MudBlazor/MudBlazor/issues/7658


[Create a subscription] - Tab Meeting Recording and Transcript (nodeJs) - Final

…s) - Final

Executing build pipepline
https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/6954108656

Executed build Pipeline
https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/7027273548


conflict to vue with vue-router when building

~/project/luogu/luogu-ex-backstage $ vite build
vite v2.9.13 building for production...
✓ 26 modules transformed.
Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported for code-splitting builds.
error during build:
Error: Invalid value "iife" for option "output.format" - UMD and IIFE output formats are not supported for code-splitting builds.
    at error (/usr/local/lib/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:198:30)
    at validateOptionsForMultiChunkOutput (/usr/local/lib/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:16265:16)
    at Bundle.generate (/usr/local/lib/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:16099:17)
    at async /usr/local/lib/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:23732:27
    at async catchUnfinishedHookActions (/usr/local/lib/node_modules/vite/node_modules/rollup/dist/shared/rollup.js:23174:20)
    at async doBuild (/usr/local/lib/node_modules/vite/dist/node/chunks/dep-80fe9c6b.js:41696:26)
    at async build (/usr/local/lib/node_modules/vite/dist/node/chunks/dep-80fe9c6b.js:41527:16)
    at async CAC.<anonymous> (/usr/local/lib/node_modules/vite/dist/node/cli.js:738:9)

ok, I have a look

@bzy-nya
hello, can you show your code by https://stackblitz.com/ ?

ok, I see,
UMD and IIFE output formats are not supported for code-splitting builds

your final code just one file named xxx.user.js, code-splitting builds is not working
so you can not use Dynamic import in your code

ok, fixed, thank you.

just use
import AppVue from<EMAIL_ADDRESS>createRouter({
    history:createMemoryHistory('./'),
    routes:[
        {
            path: '/app',
            name: 'App',
            component: AppVue,
        },
    ]
})

instead of
createRouter({
    history:createMemoryHistory('./'),
    routes:[
        {
            path: '/app',
            name: 'App',
            component: () => import('@/App.vue'),
        },
    ]
})


Separate Tenants for Office 365 and Azure

Our Azure tenant where we have our billed subscription is not connected to our O365/AAD tenant. Is there a way to install the solution on seperate Azure and O365 tenants? Thanks

Hello,
This is mentioned in deployment guide: https://github.com/OfficeDev/microsoft-teams-apps-requestateam/wiki/Deployment-guide
"SubscriptionId - Azure subscription to deploy the solution to (MUST be associated with the Azure AD of the Office 365 tenant that you wish to deploy this solution to.)"
So I think this is not possible
From my side, I also tried several installations with separtae tenants, but all failed.
Regards,

@flash265 as @tekila747  says above, sadly you cannot use this in separate tenants. I'll research if this might be possible in a future update.


Check parsing for fontAwesome.elm

https://gist.github.com/Razzeee/817c8584de8b97264e6b789293522a15
This file parses pretty slow, it would be interesting to see if it can be tuned

Might not be this file after all.


Replaced old yaml package with NimYAML

Author of the old package agreed to remove it from packages.json and replace it with NimYAML:
https://github.com/nim-appkit/yaml/issues/1

please keep nimyaml pointing to your package, that way people who have it in their nimble file as a dependency can still use it.


error running test: Error: Cannot find module 'hubot-test-helper'

Hi,
I am getting the following error when I try to run my test.  It appears to be an issue with version 1.4 as I was able to run on 1.3.
Here is the error I get:
module.js:339
    throw err;
    ^

Error: Cannot find module 'hubot-test-helper'
  at Function.Module._resolveFilename (module.js:337:15)
  at Function.Module._load (module.js:287:25)
  at Module.require (module.js:366:17)
  at require (module.js:385:17)
  at Object.<anonymous> (/Users/monica/development/mozilla/webqabot/test/test_webqa.coffee:1:10)
  at Object.<anonymous> (/Users/monica/development/mozilla/webqabot/test/test_webqa.coffee:1:1)
  at Module._compile (module.js:435:26)
  at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:366:17)
  at require (module.js:385:17)
  at /usr/local/lib/node_modules/mocha/lib/mocha.js:216:27
  at Array.forEach (native)
  at Mocha.loadFiles (/usr/local/lib/node_modules/mocha/lib/mocha.js:213:14)
  at Mocha.run (/usr/local/lib/node_modules/mocha/lib/mocha.js:453:10)
  at Object.<anonymous> (/usr/local/lib/node_modules/mocha/bin/_mocha:393:18)
  at Module._compile (module.js:435:26)
  at Object.Module._extensions..js (module.js:442:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:311:12)
  at Function.Module.runMain (module.js:467:10)
  at startup (node.js:136:18)
  at node.js:963:3

Here are the first few lines of my test:
Helper = require('hubot-test-helper')
helper = new Helper('../scripts/webqa.coffee')
chai = require 'chai'
expect = chai.expect

I invoke my test from the command line by doing the following:
mocha --compilers "coffee:coffee-script/register" test/test_webqa.coffee

My package.json has the following, which will install hubot-test-helper version 1.4
 "devDependencies": {
    "chai": "^3.4.1",
    "hubot-test-helper": "^1.3.0",
    "mocha": "^2.3.4",
    "coffee-script": "^1.9.3"
  }

However, if I change my package.json to explicitly use version 1.3, then my tests run and pass.  Example:
"devDependencies": {
    "chai": "^3.4.1",
    "hubot-test-helper": "1.3.0",
    "mocha": "^2.3.4",
    "coffee-script": "^1.9.3"
  }

@kengz: it looks like the 1.4.0 gem is missing the /lib directory that was supposed to be part of a prepublish step.

Had no idea it wasn't working properly since the Travis CI passed. I propose we write more robust tests to move on. @mdelagrange do we need to add the gem file manually?

Sorry, I forgot to update semantic-release script... :sweat_drops:
I'm fixing it now. I hope it fixed by d6b43d8.

Hmm, I got something wrong :dizzy_face:
prepublish run automatically before npm publish

I added compiled file at this time.
Please tell me your problem is fixed or not :smile:

had the same issue and then updated and works fine now. thank you!
i'm on: "hubot-test-helper": "^1.4.3"

:star2:

Yes, it works for me using version 1.4.3.  Thank you!


403 Forbidden appears when I try to log in

I tried to log in with my vrc account, but when i press login 403 Forbidden appears and it doesnt log me in (it also says "username is required" and "password is required" even though i typed it in before)

Duplicate https://github.com/pypy-vrc/VRCX/issues/171

Duplicate #171


is there an NPM wrapper?

I'd like to use this as a replacement for YAML in some javascript/ts projects, is there a wrapper/package for NPM?

No, but there is an excellent Go to JS transpiler (GopherJS). I tried it a while back and it works great for CUE. So if anyone wants to define a JS API, I'll be happy to get people started and include a separate repo in this org.
What kind of functionality were you thinking of?

i just want to start with basic read/write to replace some yaml and json files...

@mpvl would you mind adding me to a repo for a js API rin this org?  I have need for this my self.
I actually did a quick test of this my self this morning.  I following this tutorial:
package main

import (
	"fmt"
	"math/big"

	"cuelang.org/go/cue"
)

func main() {
	const config = `
TimeSeries: {
  "2019-09-01T07:00:00Z": 36
}
TimeSeries: {
  "2019-09-01T07:10:59Z": 200
}
`
	var r cue.Runtime

	instance, err := r.Compile("test", config)
	if err != nil {
		fmt.Println(err)
	}

	var bigInt big.Int
	instance.Lookup("TimeSeries").Lookup("2019-09-01T07:10:59Z").Int(&bigInt)
	fmt.Println(bigInt.String())

}

GOARCH=wasm GOOS=js go build -o lib.wasm main.go builds no problem.
Here is a little gist with everything needed if anyone else is interested https://gist.github.com/rudolph9/dd5e3dbcbf762abdb3f662e39dacfa7f

This is fine with me.
Two questions:

Preference for Github or Gerrit workflow?
Does the name lang-js work?

This is fine with me.
Two questions:
* Preference for Github or Gerrit workflow? (The CI is better set up for Github, at this point)

Github

* Does the name `lang-js` work?

I think that works but only other thing I would consider is perhaps there will multiple js repos that result in an npm package. The impl I'm building will be a wasm wrapper, perhaps in the future there will be an cue FFI compatible with nodejs, and perhaps in the future too the golang compiler may target javascript and we would want a package for that too??
Pragmatically speaking though, lang-js is probably fine.

@mpvl Speaking of CI, have you requested beta access to github actions for the cuelang org? Haven't worked with them extensively but look convenient and might be helpful.

@mpvl I created the @cuelang npmjs.com org (see doc here) Do you have an npmjs.com user name I could add as an owner?

@rudolph9 that seems useful indeed, especially wider OS coverage. I added cuelang. We'll see.

I didn't, but created mpvl.

Then maybe lang-wasm?
BTW, while you're at it, another very useful wrapper would be cue/format.Node. Would come in handy for, say, an in-browser CUE demo. :)

I didn't, but created mpvl.

@mpvl I invited that user and will be able to make you owner once you accept the invite.

@rudolph9 Then maybe lang-wasm?

Can we call it lang-wasm-js?   Since it's providing a js wrapper around a wasm compile target.

BTW, while you're at it, another very useful wrapper would be cue/format.Node. Would come in handy for, say, an in-browser CUE demo. :)

:+1:

@rudolph9 Then maybe lang-wasm?

Can we call it lang-wasm-js? Since it's providing a js wrapper around a wasm compile target.
That seems to get a bit hairy. Let's stick with lang-js.

Created it and added you as collaborator.

I'd be really interested in this aswell.

cc @mvdan who has experience of this sort of thing in https://github.com/mvdan/sh

As a workaround for now, I'm currently thinking about either:

Wrapping a gRPC server around CUE
Executing CLI commands from Node.js

I did a little investigating on this today to explore using gopherjs to compile directly to javascript but unfortunately it seems it don't fully support go mod files yet and is choking on the cockroachdb/ada dependency
cuelang/lang-js [implement-binding●] » gopherjs run --verbose lang-js.go
cannot find package "github.com/cockroachdb/apd/v2" in any of:
        /usr/local/go/src/github.com/cockroachdb/apd/v2 (from $GOROOT)
        /home/username/.golang/src/github.com/cockroachdb/apd/v2 (from $GOPATH)

@rudolph9 my fork of GopherJS does have module support https://github.com/myitcv/gopherjs
https://github.com/myitcv/gopherjs/pull/50 is tracking Go 1.13 support, but things work with Go 1.12, as demonstrated by the proof of concept CUE playground: https://blog.myitcv.io/gopherjs_examples_sites/cueplayground/

I didn't, but created mpvl.

@mpvl I invited that user and will be able to make you owner once you accept the invite.

Hey @mpvl I'm circling back to this ticket and and just want to make sure all the ducks are in a row.  Regardless where you decide we should publish the cuelange npm package it would be good for you to be the owner of the npm org.

@myitcv thanks for the tip, I was able to successfully target JS using your fork of gopherjs.  Still pretty rough, still need to properly bundle it as a package but here it is.
I got a wasm version of it going initially using golang-wasm-async-loader but spun my wheels for far too long trying to package the wasm :angry:
I could see use cases for both a pure js impl and a wasm binding version as an app that interacts with cue often pass lots of data to be evaluated or receiving lots of data after evaluation likely would be more performant using js impl where as a wasm binding would likely better in the case of less frequent but lots of state in the cuelang runtime case a likely would be a good condidate to run in a web worker.
@myitcv does gopherjs have any tooling around interacting targeting and packaging a wasm or is the community mostly focused on compiling golang to js?
@mpvl I probably have an npm package for you to review in the near future, the gopher approach is kinda big (8MB unminified) but works pretty seamlessly in firefox, chrome, and nodejs 11 on my x230 thinkpad.
I think an initial js use-case that will really take off is the use of cue in redux where you basically define one action type and one reducer where you define a cue spec that has emit which serves as the next state and each time an action is received by the reducer it evaluated by cue along previous state.
In turn the the iterative union a set cue constraints (effectively the reducer), the previous state (initially {} but always concrete and the emit each time an action is processed i.e. each iteration) and an action (some json triggered most often by user interactions with the UI) become a state machine.
Hopefully will expose cue to a much wider audience.

If anyone is interested I created a draft package to check out:
https://github.com/rudolph9/lang-js/packages/63456
fyi github packages is a little finicky and wound up doing to the following to get it to properly install with yarn:
 yarn --registry=https://npm.pkg.github.com/ --update-checksums add<EMAIL_ADDRESS>
tmp/something [master●] » node
> require('@rudolph9/cue')
{ Cue: [Function: Cue],
  Instance: [Function: Instance],
  Value: [Function: Value] }
> const { Cue } = require('@rudolph9/cue')
undefined
> cue = new Cue()
Cue {
  __cue__:
   { __internal_object__: { '$val': [Circular], runtime: [Object] },
     Compile: [Function] } }
> cue.compile('test', 'hello: "world"').then(i => i.value()).then(v => v.toString()).then(console.log)
Promise { <pending> }
> {
        hello: "world"

@rudolph9

does gopherjs have any tooling around interacting targeting and packaging a wasm or is the community mostly focused on compiling golang to js?

No, GopherJS is focussed entirely on JS.
For an example of bootstrapping WASM in a webpage see https://github.com/golang/go/tree/master/misc/wasm

No, GopherJS is focussed entirely on JS.
For an example of bootstrapping WASM in a webpage see https://github.com/golang/go/tree/master/misc/wasm

@myitcv thank you for the feedback. Since gopherjs supports "system/js" I think I'll work on swapping out what is defined with "gopher/js" and then both can be supported.

We're thinking of building an online IDE for Cue based on Monaco Editor (https://microsoft.github.io/monaco-editor/). It would be great to have a JS compiler for Cue as it can be used as an embedded language server running via Web Workers.

It's out of date but you could give https://www.npmjs.com/package/@rudolph9/cue a try.  I've been meaning to build some automation into around https://github.com/rudolph9/lang-js and open a pull request into the main project.
Let me know what you think of the interface? I have some time this week, maybe I can button it up  (proper doc, .github automation, etc) and request it get merged into the official cuelang org repo.

@rudolph9 Thanks for the response, I'm trying out your port. Since the IDE will support multiple files and we now support injecting external data see here, I believe that the interface should have a signature something like this:
compile(filepath : string, files : object<string, string>, inject object<string, string>)

This issue has been migrated to https://github.com/cue-lang/cue/issues/86.
For more details about CUE's migration to a new home, please see https://github.com/cue-lang/cue/issues/1078.


Added getting started page

Fix: #691

Codecov Report
Base: 67.92% // Head: 67.92% // No change to project coverage :thumbsup:

Coverage data is based on head (c306b9b) compared to base (8b5e783).
Patch coverage: 80.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #701   +/-   ##
=======================================
  Coverage   67.92%   67.92%
=======================================
  Files         114      114
  Lines        6619     6619
  Branches     1157     1157
=======================================
  Hits         4496     4496
  Misses       2123     2123

Impacted Files
Coverage Δ

src/cli-command.ts
72.78% <0.00%> (ø)

src/debugger/debug-tree-view.ts
59.52% <100.00%> (ø)

src/util/telemetry-watch-tekton-resource.ts
78.94% <100.00%> (ø)

src/util/watchResources.ts
73.61% <100.00%> (ø)

src/yaml-support/tkn-yaml-schema.ts
58.82% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Need to fix this.

Have fixed it in my commit with the images folder and description changes.


MUP install mongo db

Sorry, it is actually not a issue but question but i dont know where to ask this question. is that this mup installing the mongodb automatically in mup setup like mupx did in docker. Because there is no log about mongodb. and what is MONGO_URL? i want to make sure my mongodb in same server. In this case in docker.

Mupx mounts a local volume during setup so redeploy in doesn't overwrite your database so I think that will help you. So no need to ponder Mup in my understanding.

MONGO_URL is mongodb://localhost:27017

There is no workaround to connect to server mongo without allowing public access of mongoDB? I dont think allowing public access to mongoDB is good idea.
I tried to set this in mup.js
`module.exports = {
servers: {
one: {
host: '...',
username: 'root',
pem: './.mykey',
},
},
meteor: {
    name: 'bongkahDevsign',
    path: '../',
    servers: {
        one: {},
    },
    env: {
        PORT: 3002,
        ROOT_URL: 'http://bongkah.foo.com',
        MONGO_URL: 'mongodb://localhost:27017/test'
    },
    deployCheckWaitTime: 60,
},

};`
and here is the error
`x Verifying Deployment: FAILED
    -----------------------------------STDERR-----------------------------------
    app/server/server.js:1:9)
        at fileEvaluate (/bundle/bundle/programs/server/packages/modules-runtime.js:158:9)
        at require (/bundle/bundle/programs/server/packages/modules-runtime.js:92:16)
        at /bundle/bundle/programs/server/app/app.js:13:1
        - - - - -
        at [object Object].<anonymous> (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)
        at [object Object].emit (events.js:106:17)
        at [object Object].<anonymous> (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
        at [object Object].emit (events.js:98:17)
        at Socket.<anonymous> (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
        at Socket.emit (events.js:95:17)
        at net.js:441:14
        at process._tickCallback (node.js:458:13)

    => Redeploying previous version of the app

    -----------------------------------STDOUT-----------------------------------

    To see more logs type 'mup logs --tail=50'

    ----------------------------------------------------------------------------

Error:
-----------------------------------STDERR-----------------------------------
app/server/server.js:1:9)
at fileEvaluate (/bundle/bundle/programs/server/packages/modules-runtime.js:158:9)
at require (/bundle/bundle/programs/server/packages/modules-runtime.js:92:16)
at /bundle/bundle/programs/server/app/app.js:13:1
- - - - -
at [object Object]. (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:556:74)
at [object Object].emit (events.js:106:17)
at [object Object]. (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:156:15)
at [object Object].emit (events.js:98:17)
at Socket. (/bundle/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:534:10)
at Socket.emit (events.js:95:17)
at net.js:441:14
at process._tickCallback (node.js:458:13)
=> Redeploying previous version of the app
-----------------------------------STDOUT-----------------------------------
To see more logs type 'mup logs --tail=50'

at D:\Gitlab\nizulzaim\meteor-up\node_modules\nodemiral\lib\coreTasks.js:39:16
at D:\Gitlab\nizulzaim\meteor-up\node_modules\nodemiral\lib\session.js:146:9
at Channel.<anonymous> (D:\Gitlab\nizulzaim\meteor-up\node_modules\nodemiral\lib\ssh.js:125:9)
at emitOne (events.js:77:13)
at Channel.emit (events.js:169:7)
at SSH2Stream.<anonymous> (D:\Gitlab\nizulzaim\meteor-up\node_modules\ssh2\lib\Channel.js:124:14)
at SSH2Stream.g (events.js:260:16)
at emitNone (events.js:67:13)
at SSH2Stream.emit (events.js:166:7)
at parsePacket (D:\Gitlab\nizulzaim\meteor-up\node_modules\ssh2-streams\lib\ssh.js:3435:10)
at SSH2Stream._transform (D:\Gitlab\nizulzaim\meteor-up\node_modules\ssh2-streams\lib\ssh.js:551:13)
at SSH2Stream.Transform._read (_stream_transform.js:167:10)
at SSH2Stream._read (D:\Gitlab\nizulzaim\meteor-up\node_modules\ssh2-streams\lib\ssh.js:212:15)
at SSH2Stream.Transform._write (_stream_transform.js:155:12)
at doWrite (_stream_writable.js:292:12)
at writeOrBuffer (_stream_writable.js:278:5)`

I also try to MONGO_URL but error still there.
MONGO_URL: 'mongodb://localhost:27017/

Just custom setup your mongodb with authentication and point the app there using MONGO_URL.
The error log is not complete. I can't say anything from it.


How to use daemonset type install traefik?

Hello there,
I want to know that how can we use daemonset type install traefik?
Thanks very much!

why you want to install traefik as daemonset?
it could be done by manually modify the templates but by defaukt traefik will run as standard deployments i think.

Several reasons potentially, as I see it generally DaemonSet would likely be used in environments that:

Do not have support for LoadBalancer services

and/or

Are fronting the cluster with an external/existing load balancer

It's certainly not uncommon for Ingress controllers to be installed as a DaemonSet using host networking.

Another reason, installing a microk8s on a single vm and wanted to use traefik as default ingress controller.

Yes, this would be really nice to have for self-managed clusters with no LoadBalancer service by cloud provider, for example Hetzner Cloud. By the way, nginx-ingress chart has DaemonSet possibility.

The documentation until v2 explicitly mentioned a DaemonSet install: https://docs.traefik.io/v1.7/user-guide/kubernetes/#deploy-traefik-using-a-deployment-or-daemonset

If you are unsure which to choose, start with the Daemonset.

Our use case for DaemonSet-Install:
Cluster in EKS with two Node Pools:
Pool 1: Workers - Not put in any target group
Pool 2: Ingress Nodes - Automatically spawn into a "ingress" target group and get node label app=ingress
We then would install traefik as DaemonSet on app=ingress Nodes and provision an terraform-managed ALB with forwards to that target group.
At least that was the way to go with ingress-nginx and it was nice. But now we need more features from our ingress controller.

Fixed by #298

Thank you @davidalger for the #298, which allows using Deamonset with Traefik.


--remote builds cli hangs when using openshift pipelines

Having success with OpenShift Serverless 1.29.0 using the kn func deploy --remote except my cli seems to hang. It'll never finish waiting and I have to manually cancel it.

When its running (in the cli), I can see the pipeline history in my openshift cluster

However, the moment I ctrl-c out of the cli to get my cursor back all pipeline history is lost.

Let it run for longer and got some errors
❯ kn func deploy --remote -p ./func-helloworld
🕔 Creating Pipeline resources
E0712 18:43:48.263546   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: the server has asked for the client to provide credentials (get pi🕔 ineruns.tekton.dev)
W0712 18:43:49.440375   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕘 12 18:43:49.440528   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:43:52.202352   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕛 12 18:43:52.202418   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:43:57.367452   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕔 12 18:43:57.367628   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:44:08.688306   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕗 12 18:44:08.688376   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:44:24.549190   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕔 12 18:44:24.549456   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:45:07.466489   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕙 12 18:45:07.466676   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:46:00.783052   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕓 12 18:46:00.783235   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:46:42.175003   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕚 12 18:46:42.175776   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:47:23.656139   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕘 12 18:47:23.656213   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:48:13.813756   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕖 12 18:48:13.813936   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized
W0712 18:48:47.230727   42989 reflector.go:424] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: failed to list *v1.PipelineRun: Unauthorized
🕙 12 18:48:47.230871   42989 reflector.go:140] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: Failed to watch *v1.PipelineRun: failed to list *v1.PipelineRun: Unauthorized

@MichaelMarkieta have you used Red Hat built kn?

Yes, I am using the kn CLI supplied by Red Hat OpenShift through the (?)
menu.
On Thu, Jul 13, 2023, 1:03 AM Matej Vasek @.***> wrote:

@MichaelMarkieta https://github.com/MichaelMarkieta have you used Red
Hat built kn?
—
Reply to this email directly, view it on GitHub
https://github.com/knative/func/issues/1861#issuecomment-1632899017, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXXWSE737VZZBHTITEE5ULXP3KGXANCNFSM6AAAAAA2HHE5HY
.
You are receiving this because you were mentioned.Message ID:
@.***>

@MichaelMarkieta what is output of kn func --version ?

@matejvasek
❯ kn version
Version:      v1.8.1
Build Date:   2023-05-31 04:20:23
Git Revision: 8cb7de1e
Supported APIs:
* Serving
  - serving.knative.dev/v1 (knative-serving v1.8.0)
* Eventing
  - sources.knative.dev/v1 (knative-eventing v1.8.1)
  - eventing.knative.dev/v1 (knative-eventing v1.8.1)
❯ kn func version
v1.10.0

@MichaelMarkieta  What are versions of components of Red Hat OpenShift Pipelines operator?

Red Hat OpenPipelines version: 1.11.0
Executing all commands as cluster-admin

Downloaded all task logs for a successful run
undefined

step-generate

Processing Build Environment Variables
Generated Build Env Var file
------------------------------

------------------------------
Application dockerfile generated in /gen-source/Dockerfile.gen
Preparing func.yaml for later deployment
Function image registry: default-route-openshift-image-registry.apps.kayatoast.bufj.p1.openshiftapps.com/serverless

step-build

STEP 1/8: FROM registry.access.redhat.com/ubi8/nodejs-16
Trying to pull registry.access.redhat.com/ubi8/nodejs-16:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob sha256:6c53be4efe39270422e3e2f7ee1c15887955e3d5e378ea6577c622f358f87691
Copying blob sha256:46e6dded7bc8d63e55de90e47014ed4a2717670c158710d5e48d5f4dd291d2dc
Copying blob sha256:d96c2f4a5465b79c577fdecc27cd49a2c0f103fd2cfd372e667512be069e0143
Copying config sha256:6864215d3e3942c0551dbbffe35cd5be18676ac631543c4444dd9513561a0622
Writing manifest to image destination
Storing signatures
STEP 2/8: LABEL "io.openshift.s2i.build.image"="registry.access.redhat.com/ubi8/nodejs-16"       "io.openshift.s2i.build.source-location"="."
--> ee06c3d2604
STEP 3/8: USER root
--> 55bac15cfed
STEP 4/8: COPY upload/src /tmp/src
--> 5f40ffaac6e
STEP 5/8: RUN chown -R 1001:0 /tmp/src
--> 2084739cdd1
STEP 6/8: USER 1001
--> b68d1e5790c
STEP 7/8: RUN /usr/libexec/s2i/assemble
---> Installing application source ...
---> Installing all dependencies

added 186 packages, and audited 187 packages in 3s

50 packages are looking for funding
  run `npm fund` for details

3 moderate severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
npm notice
npm notice New major version of npm available! 8.19.3 -> 9.8.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.0>
npm notice Run `npm install -g<EMAIL_ADDRESS>to update!
npm notice
---> Building in production mode
---> Pruning the development dependencies

up to date, audited 111 packages in 565ms

33 packages are looking for funding
  run `npm fund` for details

1 moderate severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
/tmp is not a mountpoint
---> Cleaning the /tmp/npm-*
/opt/app-root/src/.npm is not a mountpoint
---> Cleaning the npm cache /opt/app-root/src/.npm
--> c44582dde7a
STEP 8/8: CMD /usr/libexec/s2i/run
COMMIT default-route-openshift-image-registry.apps.kayatoast.bufj.p1.openshiftapps.com/serverless/function-helloworld:latest
--> ba6d9865ff7
Successfully tagged default-route-openshift-image-registry.apps.kayatoast.bufj.p1.openshiftapps.com/serverless/function-helloworld:latest
ba6d9865ff7b33acbc8a0259ffa0a52dee65ea5281340c4cbe6e7ada37706108
Getting image source signatures
Copying blob sha256:7cca5afbfa3202d39489382a309d5c1026dad9fafc6db518b462bde4e754c005
Copying blob sha256:b51194abfc91510e7cc523fd1735ea595e9ab7b8fbb8697e7e2ac6bb04b0f5e3
Copying blob sha256:11d6ed21791d9352526913f1b6e340a112732eb9982b3e69d3d837a36e2333a5
Copying blob sha256:fb6a7cccdb8498194b19da874644bc52d0829c71647459de066ce00da5c97dd7
Copying blob sha256:0ae5199b61a3134c513d57eda9c7144e8cbbbc89b2f42405baadc1b323c56236
Copying blob sha256:800063d2e34132f2c0e199288fa507c2c4946373c16e130c1bf6b456609211ef
Copying config sha256:ba6d9865ff7b33acbc8a0259ffa0a52dee65ea5281340c4cbe6e7ada37706108
Writing manifest to image destination
Storing signatures
sha256:c464de9205021fa8f4bdfadc226afbd40f84ede025fc02ad4f99d677c3314f87

undefined

step-func-deploy

⬆  Deploying function to the cluster
Environment:
	DEV_MODE=false
	NODE_ENV=production
	DEBUG_PORT=5858
Launching via npm...
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 2ms
npm timing config:load:file:/usr/lib/node_modules/npm/npmrc Completed in 1ms
npm timing config:load:builtin Completed in 1ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 1ms
npm timing config:load:project Completed in 10ms
npm timing config:load:file:/opt/app-root/src/.npmrc Completed in 0ms
npm timing config:load:user Completed in 0ms
npm timing config:load:file:/opt/app-root/src/.npm-global/etc/npmrc Completed in 1ms
npm timing config:load:global Completed in 1ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 5ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 23ms
npm timing npm:load:configload Completed in 23ms
npm timing npm:load:mkdirpcache Completed in 1ms
npm timing npm:load:mkdirplogs Completed in 1ms
npm timing npm:load:setTitle Completed in 1ms
npm timing config:load:flatten Completed in 3ms
npm timing npm:load:display Completed in 5ms
npm timing npm:load:logFile Completed in 4ms
npm timing npm:load:timers Completed in 0ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load Completed in 37ms

><EMAIL_ADDRESS>start
> FUNC_LOG_LEVEL=info faas-js-runtime ./index.js

npm http fetch GET 200 https://registry.npmjs.org/npm 197ms (cache miss)
{"level":30,"time":1689403771197,"pid":23,"hostname":"function-helloworld-00003-deployment-6f5f6686c9-kzfxr","node_version":"v16.19.1","msg":"Server listening at http://[::]:8080"}
{"level":30,"time":1689403771249,"pid":23,"hostname":"function-helloworld-00003-deployment-6f5f6686c9-kzfxr","node_version":"v16.19.1","reqId":"req-1","req":{"method":"GET","url":"/health/readiness","hostname":"<IP_ADDRESS>:8080","remoteAddress":"::ffff:<IP_ADDRESS>","remotePort":49408},"msg":"incoming request"}
{"level":30,"time":1689403771254,"pid":23,"hostname":"function-helloworld-00003-deployment-6f5f6686c9-kzfxr","node_version":"v16.19.1","reqId":"req-1","res":{"statusCode":200},"responseTime":4.9982679998502135,"msg":"request completed"}
✅ Function updated in namespace "serverless" and exposed at URL:
   https://function-helloworld-serverless.apps.kayatoast.bufj.p1.openshiftapps.com

I have the exact same issue.
OpenShift Serverless 1.29
OpenShift Pipelines v1.11.0
kn v1.10.0
kn-func v0.37.0-6-gf38444bf
The PipelineRun succeeds and the function is correctly deployed, but as soon as I terminate the func deploy --remote process with CTRL-C, the PipelineRun (which has already succeeded) disappears from the history.
Note that in my case I keep getting this warning:
🕘 eline/pkg/client/clientset/versioned/scheme/register.go:32\"") has prevented the request from succeeding
W0725 17:46:03.497396   62896 reflector.go:347] github.com/tektoncd/pipeline/pkg/client/informers/externalversions/factory.go:117: watch of *v1.PipelineRun ended with: an error on the server ("unable to decode an event from the watch stream: unable to decode watch event: no kind \"PipelineRun\" is registered for version \"tekton.dev/v1\" in scheme \"github.com/tektoncd/

(BTW the first letters of each line are not displayed, or hidden because of the emoji, and there are also display issues when requesting the registry username and password, but this is unrelated.)


Optimizing language models for search

Hi, I've successfully created a txtai search engine for a private dataset that is strictly "Info Tech" in topic. I used a generically recommended model ("sentence-transformers/all-MiniLM-L6-v2"). This works passingly well, but my feeling is that a model trained on more specific tech-related language might be a great improvement? (BTW, I'm a newbie and FAR from taking on trying to actually "train" a model on my own.)   Can you recommend one or more likely language model candidates that would be inter-operable with txtai? Short of that, could you provide some guidance as to how/where I might find something for myself?
The kinds of IT terms I'm hoping such a model might be better trained for might include: printer, scanner, server, firewall, router, app(lication), O365, Outlook, Windows, Azure, linux, OS, problem/issue, network, LAN, WAN, password, 2FA, login, PC, computer, monitor, mouse, keyboard, mobile, web domain, subdomain, DNS, email--you get the idea :-)   Any thoughts?
Also, could you help me understand the specifics of embedding vector shapes? The model I'm using shows "384" as the array "width".  Is that number specific to just this particular model?  All txtai-compatible models? Something else?  If a try a different model, how can I know its shape? Is that specified somewhere on publicly accessible models?
Thanks much for any guidance you can offer!

I haven't actually tried to implement a different model yet, but I just wanted to say that's an AWESOME resource on models and just the kind of thing I was looking for.  Thanks so much for sharing that and also for sharing your experience with the E5 models!
Since I currently only have a "dataset" of ONE on AI models, this should be an eye-opening exercise. Thanks again!

Before, I just dive in on another off-the-shelf model, let me ask what is involved in training (or perhaps providing ADDITIONAL training?) for an AI-model used for query search under txtai?  Is there a page example you may have already created somewhere providing the steps, perhaps? I already have what would be a likely dataset of text snippets that would serve as a good training corpus for what I hope to achieve.
Any info greatly appreciated. Thanks!

The best place to start would be here: https://www.sbert.net/docs/training/overview.html

This is a great resource and helps me to connect a few dots.
Thanks much!

Closing


1.5: stop_replica does not work

 chameleon.py stop_replica  --config switchv2 does not work with 1.5:
I could only stop by CTRL-C the chameleon.py start_replica --config switchv2 process
here the log:
Jul 18 15:03:11: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:03:19: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:03:23: [DEBUG] - mysql_lib.py (513): getting table metadata
Jul 18 15:03:24: [INFO] - global_lib.py (273): waiting for replica process to stop
Jul 18 15:03:27: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:03:35: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:03:43: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:03:51: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:03:58: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:06: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:14: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:22: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:30: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:38: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:46: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:04:54: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:02: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:10: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:19: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:27: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:35: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:44: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:05:52: [DEBUG] - pg_lib.py (1037): Batch loop value True
Jul 18 15:06:00: [ERROR] - global_lib.py (413): An error occurred during the replica. (<class 'SystemError'>, SystemError('<built-in function utf_8_decode> returned a result with an error set',), <traceback object at 0x7ff151295d08>)
Jul 18 15:06:03: [INFO] - global_lib.py (280): replica process stopped

the pg_lib.py (1037): Batch loop value True means the process is replaying the data collected from mysql. the replica will stop when all the batch data has been replayed.
You should be patient :)
If the replay is taking too much increase the value of replica_batch_size. By default is 1000, very low.
I've found a value of 50000 is a good compromise between speed and data moved across the network.

ok - maybe a different message would better explain this to the non-experts?
I had assumed that as soon as the "total events exceeded" messages are finished the replication is finished.
(I was actually starting to report an additional bug with regards to not handling a log-switch)
I now start to realize that it works a bit differently:
mysql-binlogs->t_log_replica_* tables->final_location

I agree. I will change the message as it's definitely not clear.

thanks for your efforts - this is much nicer to read!
Jul 28 09:44:07: [INFO] - pg_lib.py (1047): Still working on batch for source  switchv2 replay size 200000 rows


Can't set container static IP addresses within docker networks.

I can create docker networks using the docker_network resource, and I can add containers to these networks using the network_mode action. I can't, however, edit the container's IP address. It's thus essentially random, so my services can't talk to one another.
See https://blog.jessfraz.com/post/ips-for-all-the-things/ for an example of this.

released in v2.13.6


[Question] How long should local baking take on a Ryzen 5 5600x?

I know it's probably not a quick process when compared to doing it on Azure servers, but the program has no progress indicator so I have no idea when it's going to finish. My level is just some mid-sized hallways with very simple geometry, and I'm using Unreal 5.0.2.

Nevermind, it does have an estimated remaining time indicator but i couldn't see it because it was instantly buried by new information


Add common output files for RT calculation

About This Pull Request
This modification provides the subroutines of the common output file format for SALMON-TDDFT.
In the previous PR (https://github.com/SALMON-TDDFT/SALMON/pull/136), the output for GS calculation is proposed.
This PR experimentally implements the output for RT calculation.
I employ the file formats discussed on SALMON June meeting:
https://www.dropbox.com/s/43qyhxj0n5y7a5z/uemoto0805_output_format.pdf?dl=0

Add the SYSName_rt.data
Modify the fileheader of output files
Modify the file header of SYSName_k.data and SYSName_eigen.data
Move the defination of global variable file_(k|eigen|rt)_data to initialization subroutine and enables its backup
Use reduced coordinate system for k-points

The ordinary output files (e.g. SYSName_j_ac.out ...) have also remained for now to keep the compatibility of the old calculation results.
Output Files
RT outputs (proposed in this PR)

SYSName_rt.data : describe the k-point coordinates (only in 3d mode)

Column
Detail
Unit

1
t
Time

2:4
E
Electric field

5:7
J
(Matter) Current Density

7:9
eA/c
Vector Potential Field

# J   : Matter current density
# E   : Total Electric Field
# eAc : Total Vector-potential
# Time [a.u.]  Ex [a.u.]  Ey [a.u.]  Ez [a.u.]  Jx [a.u.]  Jy [a.u.]  Jz [a.u.] eAcx [a.u.] eAcy [a.u.] eAcz [a.u.]
.........

GS outputs (proposed in previous PR)

SYSName_k.data : describe the k-point coordinates (only in 3d mode)

Column
Detail
Unit

1
k-point index
integer starts from 1

2:4
kx, ky, kz (reduced) oordinates
dimensionless

5
k-point weights
dimensionless

# ik           : k-point index
# (kx, ky, kz) : Reduced coordinate of k-point
# kw           : Weight of k-point
# ik kx ky kz kw
.........

SYSName_eigen.data : describe the eigenenergies and occupation number

Column
Detail
Unit

1
k-point index
integer starts from 1

2
band index
integer starts from 1

3
eigenenergy
energy

4
occupation
dimensionless

# ik           : k-point index
# ib           : band index
# energy       : electron eigenenergy
# occup        : electron occupation
# ik kx energy [a.u.] occup
.........

Future Work

Add the similar output subroutines for GCEED section
Add the common output formats of LR calculation

After the check pass, I'll review this PR.

test this please

I'll check this later. Thank you, @uemoto1 san.

I confirmed that current is not changed as before by this modification, and it seems that files are generated correctly. So I merge this PR.


Return more data when the program finishes for systems with wifi/bt (ev3, nao, ...)

The currnet server protocol only contains a nepoexitvalue field. Ticket #122 requests to define the possible error codes.Having that would allow to give a more details hint on the web-ui to what went wrong. In this ticket I propose to add more structured fields:
"errordetails": {
  "exception": "<exception text>",
  "backtrace": "exception backtrace",
}

If any of the string is multi-lines, it needs to be encoded with \n. These fields are only considers if nepoexitvalue != 0. On the UI side we can add a collapsed details text box with the messages. The more important part is that we'll have those details on the server where we should log them to be able to get statistics about which errors happen in which programs.
Somewhat related to expanding the protocol we could also consider returning results (eg. all messages printed using a debug block or a list of sensor values returned by a final return block at the end of the program).

related to #165


[NEW] Data Clean Room

Thank you for suggesting a new term, please enter its details below:
Title: Data clean room
Description:
Related terms: data protection
Reason for including new term including references if appropriate:  Suggestion from Alasdair R. (LinkedIn)

This term does not appear to be in common usage, and maybe superseded with TRE


Specify sides from which to connect a node

When creating node/edge specify sides on which to allow connections
(e.g. allow only north and south)
This is a bit specific, but it might be useful. It is a small change in graffle, will post a patch soon.
Let me know if you think it fits, though.

You still have that patch? If it's small, I wouldn't mind... but the code base has changed a lot since then. Closing for now but feel free to re-open :-)

I do, in fact! Let me bring the code up to date and see if it works.
I ended up implementing that in a separate "overrides" file, which adds some functions on the Graph and Raphael prototypes, so I'll take some time to integrate it better and shape it up.

OK the required changes were more than I reckoned, but I might as well do it. Will just take a bit longer, but I get the chance to build my code around some new js fanciness.

Hey, I am still implementing the changes, but my test code is not working, so I'm trying to find out whether I'm missing something changed e.g. in layouts. Just wanted to let you know it's in progress.

I have created a pull request for this change https://github.com/strathausen/dracula/pull/45


Sync

Issue #, if available:
*Description of changes: Sync from upstream https://github.com/rust-vmm/kvm-ioctls
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

No longer needed since https://github.com/firecracker-microvm/firecracker/pull/2319


unserialize error

I'm attempting to merge the latest v.2 enhancements into my copy of v1 but I am running into the following error while attempting to add a comment to a ticket.
ErrorException in Setting.php line 61:
unserialize(): Error at offset 256 of 255 bytes
I am getting a similar error when attempting to access the purifier setting from the settings configuration pages.
unserialize(): Error at offset 256 of 255 bytes (View: /var/www/html/AeroControl/vendor/kordy/ticketit/src/Views/admin/configuration/edit.blade.php)
Any ideas?

Could you var_dump($setting->value) just before this ?

This is the return I'm seeing if I var_dump before the if statement in question.
string(7) "tickets" string(13) "tickets-admin"

I don't really understand, one variable has only one value, not two

I'm not sure if I messed something up in the process of attempting to put the branches together. But its definitely a strange thing to happen.

OK, so it was something going on with the current installation. Clearing everything out and installing my branch fresh resolved that issue.

That's very interesting, I was going to try the same to merge the new changes in 0.2 into 1.0. I am wondering if you have succeeded to merge them.

I am making progress on the merge but I do not have it completely working yet. On a clean install I am getting the error with the settings table which is odd because the fix that you commited is in place so I need to see why it's not using it.


Uncaught Error: ENOENT: no such file or directory, open '/Users/ds/vlad/docroot/sites/all/modules/custom/MigrateNoticias/includes/imagenes.inc'

[Enter steps to reproduce below:]

use de dialog to create a new file with ALT + CMD + N
navigate to any route and add the name
error messages appear and the file delays to be added to the folder

Atom Version: 0.190.0
System: Mac OS X 10.9.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, open '/Users/ds/vlad/docroot/sites/all/modules/custom/MigrateNoticias/includes/imagenes.inc'
At events.js:141

Error: ENOENT: no such file or directory, open '/Users/ds/vlad/docroot/sites/all/modules/custom/MigrateNoticias/includes/imagenes.inc'
  at Error (native)

Commands
 10x -5:23.4 core:backspace (atom-text-editor.editor)
     -5:20.6 core:move-right (atom-text-editor.editor)
 12x -5:18.5 core:backspace (atom-text-editor.editor)
  6x -4:12.8 editor:select-to-beginning-of-word (atom-text-editor.editor)
  8x -4:11.1 core:backspace (atom-text-editor.editor)
  3x -3:36.7 editor:delete-to-beginning-of-word (atom-text-editor.editor)
  4x -3:34.2 core:backspace (atom-text-editor.editor)
  2x -3:23.4 editor:delete-to-beginning-of-word (atom-text-editor.editor)
  8x -3:20.2 core:backspace (atom-text-editor.editor)
     -0:36.6 emmet:insert-formatted-line-break-only (atom-text-editor.editor)
     -0:36.6 editor:newline (atom-text-editor.editor)
     -0:25.5 core:undo (atom-text-editor.editor)
     -0:19.7 advanced-new-file:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:05.5 core:backspace (atom-text-editor.editor.mini)
     -0:04.8 core:confirm (atom-text-editor.editor.mini)
     -0:03.4 core:paste (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "themes": [
      "isotope-ui",
      "monokai"
    ],
    "followSymlinks": true
  },
  "editor": {
    "invisibles": {},
    "showIndentGuide": true,
    "softWrap": true,
    "fontSize": 13
  }
}

Installed Packages
# User
Sublime-Style-Column-Selection, v1.2.3
advanced-new-file, v0.3.3
atom-alignment, v0.12.0
autocomplete-phpunit, v1.0.0
autocomplete-plus, v2.9.0
bookmarks, v0.35.0
change-case, v0.5.1
color-picker, v1.6.0
drupal, v1.6.0
editorconfig, v0.3.3
emmet, v2.3.7
isotope-ui, v2.0.1
jshint, v1.3.3
linter, v0.12.0
linter-csslint, v0.0.11
linter-php, v0.0.12
minimap, v4.7.6
minimap-git-diff, v4.1.2
monokai, v0.14.0
set-syntax, v0.2.1

# Dev
No dev packages

@dariosantacruz Can you still reproduce this problem in Atom 0.198.0 in safe mode? If so, can you please clarify which dialog you're using to create files?

use de dialog to create a new file with ALT + CMD + N

alt-cmd-n doesn't do anything in Atom on OSX for me. Can you perhaps record a GIF which demonstrates how you're reproducing this? Try this tool.


Notificare failed to launch for Moshi initialization error on Android Gradle Plugin 8.0.2 on minifyEnabled

With minifyEnabled set to true and com.android.tools.build:gradle version 8.0.2, Notificare launch fails because of a initialization error for the Internal Moshi instance; this is the stacktrace:
Failed to launch Notificare.
     re.notifica.internal.network.NetworkException$ParsingException: Unable to parse JSON.
     	at re.notifica.internal.network.request.NotificareRequest$responseDecodable$2.invokeSuspend(NotificareRequest.kt:98)
     	at re.notifica.internal.network.request.NotificareRequest$responseDecodable$2.invoke(NotificareRequest.kt:0)
     	at re.notifica.internal.network.request.NotificareRequest$responseDecodable$2.invoke(NotificareRequest.kt:0)
     	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
     	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:169)
     	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
     	at re.notifica.internal.network.request.NotificareRequest.responseDecodable(NotificareRequest.kt:90)
     	at re.notifica.internal.network.request.NotificareRequest$responseDecodable$1.invokeSuspend(NotificareRequest.kt:0)
     	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
     	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
     	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
     	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
     	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
     	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
     	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
     	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
     Caused by: java.lang.IllegalArgumentException: Unexpected signature for public final org.json.JSONObject re.notifica.internal.moshi.JSONObjectAdapter.fromJson(com.squareup.moshi.JsonReader,com.squareup.moshi.JsonAdapter).
     @FromJson method signatures may have one of the following structures:
         <any access modifier> R fromJson(JsonReader jsonReader) throws <any>;
         <any access modifier> R fromJson(JsonReader jsonReader, JsonAdapter<any> delegate, <any more delegates>) throws <any>;
         <any access modifier> R fromJson(T value) throws <any>;

     	at com.squareup.moshi.AdapterMethodsFactory.fromAdapter(AdapterMethodsFactory.java:301)
     	at com.squareup.moshi.AdapterMethodsFactory.get(AdapterMethodsFactory.java:135)
     	at com.squareup.moshi.Moshi$Builder.add(Moshi.java:224)
     	at re.notifica.internal.MoshiKt$moshi$2.invoke(Moshi.kt:22)
     	at re.notifica.internal.MoshiKt$moshi$2.invoke(Moshi.kt:15)
     	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
     	at re.notifica.internal.MoshiKt.getMoshi(Moshi.kt:15)
     	at re.notifica.internal.network.request.NotificareRequest$responseDecodable$2.invokeSuspend(NotificareRequest.kt:92)
     	... 15 more

A workaround is downgrading AGP to version 7.4.2, changing gradle version doesn't seem to affect the issue.
I created a minimal GitHub project that reproduces the issue.

Hi @OvoMaS,
There is a known issue with Moshi where it fails to keep the JsonAdapter classes when the application is built with R8 enabled. This is now enabled by default with Gradle 8.0.
You can refer to this Moshi issue for a suggested workaround.
In short, you can temporarily add the following Proguard rule to your app.
-keep,allowobfuscation,allowshrinking class com.squareup.moshi.JsonAdapter

Hi @hpinhal,
Thanks for the quick reply and for the Moshi issue reference/fix!
May I suggest updating the troubleshoot section of the integration guide with this information? It would have saved me a few hours of debugging.


Adding long description to setup.py

Closes #184.

Codecov Report

Merging #185 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #185   +/-   ##
=======================================
  Coverage   93.57%   93.57%
=======================================
  Files          25       25
  Lines        1573     1573
  Branches      290      290
=======================================
  Hits         1472     1472
  Misses         60       60
  Partials       41       41

Flag
Coverage Δ

#unittests
93.57% <ø> (ø)

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 5308acc...53752c1. Read the comment docs.

Awesome,  i noticed  that as well, thanks for this!


Update dependencies

In the newer Flutter versions(3.19 in my case), it is not possible to build the app due to File dependency.

If need be this can also be file: >=6.0.0 <8.0.0 since it will be backward compatible.

@santitigaga please merge it 😇

This fixes:

https://github.com/bancolombia/dart-code-linter/issues/128

@alperenekin Im curious, why updating pub_updater is important?

@danielgomezrico
Because pub_updater <0.4.0 depends on process ^4.2.3 which depends on file ^6.0.0, pub_updater <0.4.0 requires file ^6.0.0.
So, because dart_code_linter depends on both file ^7.0.0 and pub_updater ^0.3.0, version solving failed

I updated the PR as it is suggested by @bvoq. Using a range seems to work fine, since it is actually comptabile with the older version.

@alperenekin Thanks for the help!!!


Do you need a hand?

Hello,
I find this repo was created for some time but hasn't had anything yet. Therefore, I decided to roll out my own version of PostgREST client for Python here (lqmanh/postgrest_py). It's heavily inspired by both postgrest-js and postgrest-rs with nearly indentical API.
There are some missing features and no documentation yet, but it work already.
I think I can continue developing this library, if you guys need some help.

hey @lqmanh !
Nice work on the lib, we would love to join forces here if you are keen as at some point we will be implementing a supabase-py which will need to wrap postgrest_py, I'm personally a huge fan of flask so would love to hack on some python web apps w/supabase+postgrest

Thank you @awalias,
My lib is still at very early stage of development. It lacks features, input validating, tests, docs,... and may be buggy. Feel free to fire issues or create PRs. I'm open to every possible help and suggestions.
And I'd love to help Supabase with supabase-py, if that's ok.


feat(bridge): Read secrets from volume mount instead from env var

The following secrets are now read from the volume mount instead from environment variables

mongodb user and password
Basic user and password
API token

Part of: #9331
Signed-off-by: Klaus Strießnig<EMAIL_ADDRESS>

I am testing with an external mongo connection string and I have issues. I am putting the PR on hold


WM reports - default csv file name

It would be great, if keeping with the report naming convention, that the name of the WeightedMeanReportforSample could be prefixed with the squid3 file name.  This helps ensure unique file names for all these files (especially since often times the WM of the same secondary RM might be measured on many, many mounts).  In order to keep the file name a bit shorter/tidier this could be:
Squid3Name_WMReport_XXXX.csv

Another thought, can the WMReport for the RM be differentiated in its name someway from the WMReports from the "unknowns"?
Perhaps it could be Squid3Name_WMReport_RM_XXXX.csv instead?

Coming in version v1.8.3 !


#46443 [Feature] Add locales and i18n to customer-accounts extensions template

WHAT
Update the template of customer-accounts extensions with:
✅ a locales folder
✅ two translation files (en.default.json and fr.json) with an example translation
✅ update extension code which calls i18n.translate('welcome')
From now on, every newly scaffolded customer-accounts extension will contain a working out of the box localization example.
WHY are these changes introduced?
After we (Self-Serve Team) fully ships support for localization support, we want to ease the creation of future extensions for our partners, by updating the scaffolding process. With this change, every newly scaffolded customer-accounts contains a working localized extension.
How to test your changes?

Clone this repo: dev clone cli
Install dependencies dev up
Create a new app yarn create-app --name my-test-app --template node
You should see a new folder with the name my-test-app inside of the cloned CLI project
Scaffold four different versions of an customer-account-ui extension: (typescript, vanilla-js, react, and typescript-react)

$ yarn shopify app generate extension --path ./my-test-app --type customer_accounts_ui_extension --template typescript --name typescript

$ yarn shopify app generate extension --path ./my-test-app --type customer_accounts_ui_extension --template vanilla-js --name vanilla-js

$ yarn shopify app generate extension --path ./my-test-app --type customer_accounts_ui_extension --template react --name react

$ yarn shopify app generate extension --path ./my-test-app --type customer_accounts_ui_extension --template typescript-react --name typescript-react

Check whether every newly generated extension (cli/my-test-app/extensions/<typescript | vanilla-js | react | typescript-react>), contains a locale folder with a en.default.json and fr.json file.
Check if the actual implementation is calling {i18n.translate("welcome")} for every generated extension cli/my-test-app/extensions/<typescript | vanilla-js | react | typescript-react>/src/index.{ts/js/jsx/tsx}

Dependencies
This PR can only be merged once the following two PRs have been shipped:

[x] https://github.com/Shopify/customer-account-web/pull/1023
[ ] https://github.com/Shopify/shopify/pull/372949

Measuring impact
How do we know this change was effective? Please choose one:

[ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[x] Existing analytics will cater for this addition

Checklist

[x] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[x] I've considered possible documentation changes
[ ] I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

PR is still relevant but we need to wait until shopify core was updated (comment for the bot so the PR doesn't get closed automatically).


This is great and good project .

I think you only want airdrop, free stuff. That's why You complementing? Or if you really think so than - why


Fix/y18n vulnerability - bump packages

Ran bolt ws upgrade jest jest-runner @jest/test-sequencer jest-runtime jest-jasmine2 --latest to bump a number of packages.
There are a number of broken/flaky tests on main and this branch under the git package - this bump doesn't seem to have increased or decreased the number of broken tests in this package.
One test was broken in the tests for pre in cli around Jest snapshots. I assume this is a change in the Jest snapshot format rather than any real change.
PR significantly reduces number of vulnerabilities, before:
14580 vulnerabilities found - Packages audited: 1379
Severity: 10737 Low | 116 Moderate | 3727 High

After:
25 vulnerabilities found - Packages audited: 1284
Severity: 17 Low | 8 High

It looks like the jest packages have been bumped at https://github.com/changesets/changesets/pull/1012. I'll go ahead and close this PR, but thanks for the contribution!


Escape text nodes by default

Excellent work! Thanks for doing this, it's turned out much better than if I had done it myself! :)


Support solving integer linear programs with modulus > 2

I will deal with that by changing what CSSCode does depending on whether the base field is prime.  The integer linear program is still well-defined for arbitrary (including non-prime) modulus, so no reason to restrict it here.


Confusing analyzer with NNBD error message

typedef void Func(int? i);

void foo(int i) {}

main() {
  Func f = foo;
}

dartanalyzer --enable-experiment=non-nullable test.dart
Analyzing test.dart...
  error - The function 'foo' has type 'void Function(int)' that isn't of expected type 'void Function(int)'. This means its parameter or return type doesn't match what is expect
ed. - test:6:12 - invalid_cast_function
  error - A value of type 'void Function(int)' can't be assigned to a variable of type 'void Function(int)'. - test.dart:6:12 - invalid_assignment
  hint - The value of the local variable 'f' isn't used. - test.dart:6:8 - unused_local_variable
2 errors and 1 hint found.

Error message  "The function 'foo' has type 'void Function(int)' that isn't of expected type 'void Function(int)'" is confusing. There should be  "The function 'foo' has type 'void Function(int)' that isn't of expected type 'void Function(int?)'"
dartanalyzer version 2.6.0-dev.8.0

@scheglov I think you've fixed this. Can you confirm?

ACK, it was fixed.


Ignore EINVAL from sync()

@nhooyr feel free to review this later.

Can you add this to the syncwriter package instead? @ammario
There's an existing check there for os.Stderr and os.Stdout.

https://github.com/cdr/slog/blob/3dcbf1ca5f30c5bfe8c9671cbad92769fda02312/internal/syncwriter/syncwriter.go#L42

See #44


What should the name be for Assert::example

#108 added Assert::example.
We now have

main_binary for running cargo run
cargo_binary for running cargo run --bin <name>
example for running cargo run --example <name>

Should example also be cargo_example?
CC @volks73 @azriel91

Noticed this when adding a test for Assert:example

I originally had example_binary but that seemed redundant/confusing, so I shortened it to just example as I figured the usage of Cargo was implied.
The cargo_example works for me and is more consistent with the other function, especially given #111, where the usage of Cargo is no longer implied. The prepended "cargo" would indicate to users that the cargo command will be used.

Addressed in assert_cmd
https://github.com/assert-rs/assert_cmd


Deepcopy model for further use

Hi,
I have a SDXL model that I would like to use stable-fast for acceleration. However, in our implementation we have our way to apply lora to the model. The way we did it before is deep copy the model first and then apply lora (fuse the weight) and used the copied model for inference, and delete the deep copied model after the run (reason is to prevent from lora fried issues as the way we load lora change the weight of the model).
However, when introducing stable-fast, the original model is loaded and compile (as I understand the model is registered in this step and the following tracing will based on this), if we use the same way to deep copy the model, apply lora and then do the tracing, it would have weird errors. One error is since the VAE need to be float32 in the SDXL img2img for latent generation, it has the error indicating that the vae is fp16 (I think this is because the original model in the compile registration has fp16 vae) while the image is fp32.
Do you think if there would be a way to solve it or how the registration of the compiled model work in stable-fast? Thanks!

Instead of deepcopy the model, I would suggest save the model into a file-like object since that's the standard way which diffusers use.


Failed to register devices in devices.txt

[x] Updated fastlane to the latest version
[x] I read the Contribution Guidelines
[x] I read docs.fastlane.tools
[x] I searched for existing GitHub issues

Issue Description
Running register_devices after adding new devices in devices.txt results in the following error message: Please provide a file according to the Apple Sample UDID file (https://devimages.apple.com.edgekey.net/downloads/devices/Multiple-Upload-Samples.zip).
Environment

✅ fastlane environment ✅
Stack

Key
Value

OS
10.13.2

Ruby
2.2.4

Bundler?
false

Git
git version 2.15.1

Installation Source
~/.fastlane/bin/bundle/bin/fastlane

Host
Mac OS X 10.13.2 (17C88)

Ruby Lib Dir
~/.fastlane/bin/bundle/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
false

Is homebrew
true

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
9.2

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE
en_US.UTF-8
✅

fastlane gems

Gem
Version
Update-Status

fastlane
2.70.1
✅ Up-To-Date

generated on: 2017-12-20

The fix is to edit the devices.txt from another texteditor (not from within Xcode). I got it working by using Sublime Text and setting a single tab between the UDID and device name. I tried TextEdit but this also resulted in a non working devices.txt file.
More info: It turns out that Xcode editor translates the tab between the UDID and device name into 4 spaces - resulting in a broken devices.txt file.

Awesome you figured it out.
Not much fastlane can do about that, right?