blender 2.8 fails to build with cudaSupport = true;

also eats all my ram and make a lot of things crash at some point during the build process.
(I got 16GB)

i get that error message.

@cillianderoiste As you are the maintainer any idea ?

Sorry @Alkeryn, I don't have any idea and I probably won't get a chance to look into it any time soon.

No worry it is okay, no one is entitled to your time ^
prbly a version mismatch or something

Please don't post screenshots of text unless there is a good reason. And fill in the issue template! The least you could do is provide the actual build command you used.
The log doesn't appear to contain any error message; you should be able to get a more informative build log with a verbose make. Use blender.overrideAttrs(s: { VERBOSE = 1; })


km/h instead of pace

for some reason strava always shows running speed in pace. It's not possible to show speed in km/h. I would love to see the speed in km/h because pace means nothing to me. I've read the arguments for the pace display and it never conviced me. Yes it's important to keep your pace, but that doesn't mean you have to change a known unit into a new one by simply changing the units up side down.
Could you add speed for running, please?

Thanks for report @hboetes !
In the past it was speed...  But some runners asked/forced me to put chart and table date with pace :)
I'm cyclist, i prefer kph speed to while running few hours per year.
I could add an option to allow that. Need time ! If you are developer i can drive you on files to perform it. Next you do a pull request.
Cheers,
Tom


Support Copy-On-Writre Column【Challenging】

Requirement Description

Add Mutable and immutable Column

refcnt
mutate(clone)

Adjust inheritance relationship of all the existing Column types
Share strategy

For small column, maybe copy is cheaper than increment refcnt

Go through all the column references and replace them with mutable or immutable columns
BTW, the devil is in the details

Mentor
@liuyehcf
Registration procedure
Step 1. Add a comment when you sign up. The comment can be a brief self-introduction and reason for signing up, including what you do, what you're good at, what you're interested in and your technology stack, and how familiar you are with StarRocks. Example:

I pick! My name is Johnny. I am from StarRocks and I have been working on database kernel development for 1 year. I am interested in OLAP, good at C++ programming, and have been using StarRocks for 6 months. I chose to solve this issue because I am familiar with execution engine.

Step 2. On your WeChat, add the StarRocks community assistant "StarRocks-1" as a WeChat friend and leave your GitHub ID. The assistant will invite you to a WeChat group based on the issue you picked.
Step 3. The mentor will communicate with all the participants who picked this issue and assign the task to the best match.
Before you start

Read the StarRocks GitHub workflow carefully, which provides the configurations of BE and FE and describes how to submit a pull request.
To learn more about StarRocks, read StarRocks documentation.

Pull request requirements

After you complete code development, upload the code to the StarRocks code repo as a pull request (PR).

PR title format: [SR GeekCamp] + PR title
Labels ：[Geek Camp 2022/feature]

After you submit your PR, comment on the status of your PR submission as requested under the Pinned Issue [StarRocks geek Camp 2022] page.

Comment format: "I have finished Issue #" + PR link id

I pick! My name is zombee0. I have been learning on database kernel development for 6 months. I have completed the course CMU15-445 and MIT6.824. I am interested in OLAP, good at C++ programming. I think it is a good chance to join the StarRocks community and read the code. I can learn quickly, and  I have much time to achieve this feature.

I pick! My name is zombee0. I have been learning on database kernel development for 6 months. I have completed the course CMU15-445 and MIT6.824. I am interested in OLAP, good at C++ programming. I think it is a good chance to join the StarRocks community and read the code. I can learn quickly, and I have much time to achieve this feature.

I pick! My name is eric, I have been learning on database kernel development for 1 year. I am interested in OLAP, good at C++ programming. I think it is a good chance to join the StarRocks community and read the code.


ModuleNotFoundError: No module named 'src'

Hi @TechManDigTrans and @cwaubert,
I get the following error when trying to generate the data.
path-to-config/config %  python3.10 -m src.data_generator.instance_factory -fp data_generation/fjssp/config_job3_task4_tools0.yaml
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10: Error while finding module specification for 'src.data_generator.instance_factory' (ModuleNotFoundError: No module named 'src')

The only module I changed from the requirements.txt is Pytorch, because there is no Cuda installed on my macOS. Now, I have torch==1.12.1.
Do you have any idea how to solve this?
Thanks,
Roxana

SOLVED: I had to run the command from the main folder, not config.


fix: check for truthy value of deleteness & act accordingly

Resolves #474

@pavlovcik Updated the PR, review once you can.

By logs I feel this issue might be related to some bot configuration, like permission or something.

@0xcodercrane

By logs I feel this issue might be related to some bot configuration, like permission or something.

would you please give us more details? A couple of reasons for that issue but hard to say exactly what the root cause is from the screenshot.
here are the possible reasons for that.
1/ Limited permission of your GitHub app.
2/ Probot framework issue --- A few octokit APIs doesn't get supported by Probot due to its internal issue. you can take a look at the probot issue. It happened to us as well in the past.
In this case, we should figure out which method call throws the above error and replace it with another one.

@wannacfuture it's not about handling the PR's count it's about handling the PR delete count. There might be some cases, like if one of the member from org removes Write Permission to pull request. Even if the PR wasn't closed bot will send as Completed. Isn't that an issue @pavlovcik ?

And I don't this was added, we should let the issue members know the status of attached PRs.

I don't understand your point

@pavlovcik I think @wannacfuture is mentioning that if no open PRs are linked to issue bot won't message in the issue stating closing the PRs. But what if the Closing PR's failed? Maybe permission error as I have shown above? which in this case is messaging PR's were closed but actually it isn't closed

which in this case is messaging PR's were closed but actually it isn't closed

😊Thanks. But the mentioned QA is the example QA for old one(not including if(!pr.length) return;), not updated PR.
The updated one works for sure. @b4s36t4

@pavlovcik @wannacfuture @0xcodercrane Updated the PR please review it again. This time I have added the check to send both failed and success PR's message.
Let's say there are 5 PRs out of 2 were closed successfully, bot now will send 2 messages one with failed PR's one with success PR's. Let me know if any changes are required.


Consecutive Attachments not processed

Please provide us with the following information:

This issue is for a: (mark with an x)
- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce
attachment1 = Attachment(<file>)
attachment2 = Attachment(<file>)

thread_client.create_conversation_thread_message(message="", thread_name=thread_name, attachments=[attachment1])
client.process_messages(thread_name)

thread_client.create_conversation_thread_message(message="", thread_name=thread_name, attachments=[attachment2])
client.process_messages(thread_name)

Expected/desired behavior

All thread messages get processed and response message is added to the thread.

OS and Version?

Windows 11

Versions

0.4.1-alpha

Mention any other details that might be useful

Thanks! We'll be in touch soon.

Fixed in release 0.4.2-alpha


[Bug] Import failed in case of Free-Form Object - OpenAPI 3

Insomnia Version: 6.5.4
Operating System: Ubuntu 18.04

Details
Import failed (Cannot convert undefined or null to object) when a Free-Form Object definition is in OpenAPI (v3) file.
For Example
openapi: 3.0.2
info:
  title: Free-Form Object test
  description: >-
    Free-Form Object test

servers:
  - url: http://<IP_ADDRESS>
    description: Free-Form Object test

paths:
  /admin-flavors:
    post:
      operationId: create_flavor
      requestBody:
        description: Create a flavor
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/flavor'
      responses:
        default:
          description: Unexpected error

components:

  schemas:

    'flavor':
      type: object
      required:
        - name
      properties:
        name:
          type: string
          description: a descriptive name
        extra_specs:
          type:        object

https://swagger.io/docs/specification/data-models/data-types/#object
        extra_specs:
          type:        object

Same issue, I generate my spec using Apicurio which often infers a null value in the example input json as an Object and breaks the import function of Insomnia, after I edit all the objects to strings the import function works.

Looks like this is fixed? The spec give in the original issue seems to work now

Confirmed, tested and works in 7.0.5, thank you.


Implementing Decodable for common types

Hey, I'm trying to allow easy decoding on things like NSURL / NSDate etc… Seems the protocol is complaining when trying to add it to a ObjC class.
Keeps asking 'expected return type to be Self' but if you do that then the return types break.
Have you done this at all?

It can be a bit tricky with classes since subclasses are supposed to return objects of their own type and not of the base class type. I did this for NSDate:
public class func decode(json: AnyObject) throws -> Self {
        let string = try String.decode(json)

        guard let date = ISO8601DateFormatter.dateFromString(string) else {
            throw NSDateDecodingError.InvalidStringFormat
        }

        return self.init(timeIntervalSince1970: date.timeIntervalSince1970)

That works, thanks!


Remove policy page related bits

Following on from the retirement of the Policy pages on GOV.UK, and Policy Publisher, this cleans up the govuk-content-schemas with respect to these changes.
https://trello.com/c/0jgKr3UT

This should fix the Rummager issues: https://github.com/alphagov/rummager/pull/1302


Cost per inscription

I can't understand why I end paying more than expected when I do ord wallet inscribe --fee-rate X
Let's do some math: I sent 15$ in BTC to the ord wallet.
ord wallet balance results "cardinal": 88307
I inscribe an ordinal: ord wallet inscribe --fee-rate 5 image.webp (6KB)
now 6KB x 5 Sat/Vb = 7500 sats = 1.87 $
the operation reports: "fees":9280
Then I replied the operation a second time:
The operation fees are now: 8300
And now I can't do that a third time. The ord wallet balance is now 8294.
So basically I used 15$ to do an operation that should cost less 2$ twice. 4$ of operation costed 15$ (or so) I would expect to be able to do that operation at least 5 times.
What I am doing wrong?

I made the same strange observation. Looking into the block explorer I saw that the transaction fee for an inscription was quite small as expected. But there was also a much larger amount (not a fee) that was transferred to another address. I do not know whose address this is. Perhaps it has something to do with the way how the information of the inscriptions is stored. I hope that someone has understood this and can explain.

Basically what I understood about this is :
When you make a transaction you have 2 or 3 outputs --> 1 for fees, 1 for receiver and 1 for the rest of change.
Each transaction function by pack (if I send you 0.1 BTC you will be able to spend 0.05 BTC by spliting this amount in 0.05 BTC for receiver, x BTC fees and 0.05-x BTC will come back to your balance and you will be able to spend this amount in the same way as previous, it's called UTXO, unspent transaction output).
All of this steps are made automatically by our wallets and maybe for another example you got 0.05 BTC and 0.05 BTC if you want to send 0.1 BTC it will send in 1 transaction two inputs (0.05+0.05) and you should pay more fees than if you take only one input.
In the case of ord, I think there are two reasons :

What I told above, all of your UTXOs was send to Bitcoin and so your wallet doesn't consider the rest (in fact you should see the good amount in bitcoin-core or sparrow wallet).
ord seems to not integrate every change address and this cause me in fact many issues that I'm trying to solve.

I don't know if my explanation is clear and helpful, I hope so ^^

And to answer to the question

I would expect to be able to do that operation at least 5 times

You need to send to your ord wallet 5 transactions about ~$4 for each. Now you will have 4 UTXO which could be used by each of your inscriptions.


Removes unnessecary ts-ignore and any type-cast.

Haha I was struggling to understand why the types were complaining 😅 Thanks a lot for your contribution!! 🤗


Hacker Block

Based off the landing gear, it's a block that hacks the blocks of the ship it is attached to. A hacked  block is a temporary condition where the ownership is changed to the hacker and the function is affected in some way. I plan on adding an option to E command so that it can land a hacker block or landing gear on an enemy.
Blocks that can be hacked:

Air vents - set to depressurize
Doors - closed (owner of hacker can open them)
Gravity - reversed

Other hacks that I might add:

Connector / landing gear / merge block - disconnect
Connector / ejector - throw out
Cryo Chamber - kill player
Jump Drive - drain power
Medical Room
Thruster / Gyro - override

Thoughts? Opinions? Wild accusations?

Sounds awesome.

How about turning off any turrets onboard. Or maybe just disable interrior turrets or cause them to fire at players inside.

How about turning off any turrets onboard. Or maybe just disable interrior turrets or cause them to fire at players inside.

I could add both the option to disable turrets and to cause them to fire at allies. A different value can be assigned to these actions, so there is a choice between hijacking one turret or disabling several of them.

Any idea what it should look like?

Any idea what it should look like?

I dunno, computerish...

How about a hack defense block? Reduces amount hacked by 25 points of hackyness every 11 seconds, etc.

How about a hack defense block? Reduces amount hacked by 25 points of hackyness every 11 seconds, etc.

I don't think the difficulty of landing a hacker ship on a hostile one should be balanced against whether or not they built a block.

Usually pretty simple to disable a turret at range and approach from the blind spot. I'm sure it'd be much more difficult if your target was online, but they rarely are. But that's probably me coming at this too much from a MP perspective.

Usually pretty simple to disable a turret at range and approach from the blind spot. I'm sure it'd be much more difficult if your target was online, but they rarely are. But that's probably me coming at this too much from a MP perspective.

So the player is offline, the turrets are disabled, and an enemy is boarding the ship. I don't think slowing down the hacker block is going to help much.

Well offline raid defense (in any game) is all about time - they're always going to get to take maximum advantage of your weaknesses because no one's shooting at them while they think through it, but if you can make that process tricky and time-consuming it will ward off the smaller groups and hopefully give you more time to catch the larger ones in the process. But again I'm generalizing and haven't played SE in too long.  So probably not worth discussing.

Going ahead with this one. The antenna things will light up when it's within range.

Closed by #106 and #107


Stamp output skeleton with the Cookiecutter Template version

Adds provenance information to the output project based on the current
version of the CMS cookiecutter template itself (not the cookiecutter
program). Right now its a manual update of the version in the
cookiecutter.json file, but its better than touching it everywhere by
hand. The way its implemented is undocumented in Cookiecutter itself
and my intuition is its unsafe, but I cannot think of a simpler
solution (xref audreyr/cookiecutter#1135).
This may be the formal solution to #48, but for now, it should be
considered a partial fix.

Great. I am going to hold off on merging this for a day at most in case I hear back on a correct or safer way to do this from the official cookiecutter (and get tests passing)


Sending broken - single frame only

If I try and send data, I'm seeing only the first frame sent then stops. Confirmed the behavior with your example DMXRwite
10:52:08.131 -> Sending DMX 0x01
Then no further output, unless I comment out dmx_send, but then I'm not sending any frames ;)

This is with 2.0.7 of ESP32

I've just tested Arduino-ESP32 v2.0.7 with esp_dmx v3.0.2-beta using the DMXWrite example using a clean workspace with new installs of Arduino and esp_dmx. I am not getting any issues. Perhaps there is something misconfigured in your project?

Tried again, same code, same hardware - now it's fine. Odd


pytorch-peleenet

hi,Robert!
i have reproduced the peleenet in pytorch, hope it is widely used by others.
pytorch-peleenet

@wpf535236337 I will watch it. Thank you for your kind.


Encrypt resources

My resources can be stolen easly using a special tool
Is it possible to implement to encrypt resources such as images?

It is impossible.

Not really, ConfuserEX can protect resources :))

@Toshiba1127 anything reversible is not called "protected".


Update index.md

Added description links for writing an Android app and looking into some of the latest features in Studio.

[ ] I have read freeCodeCamp's contribution guidelines.
[ ] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[ ] None of my changes are plagiarized from another source without proper attribution.
[ ] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Closed and Reopened this PR to attempt to resolve a specific Travis build failure.

Thank you for opening this pull request.
This is a standard message notifying you that we’ve reviewed your pull request and have decided not to merge it. We would welcome future pull requests from you.
Reason: We do not accept PRs which only add links when there are already valid reference links for the article.
Thank you and happy coding.


Fixes & Adjustments

-fixed lvl 6 talent selection (Icons for talents are still missing but talents have tooltips and do work)
-added 250W Electric Power requirement to the currently Not-So-Electric Butchery Table
-fixed lack of collision between Electric Butchery Table and other objects
-adjusted Advanced Scrap Meat recipe to 15cal (down from 120cal)

Reason: Electric tables traditionally offer better yield and take less calories compared to their early game counterparts. See fx. Arrastra>Stamp Mill>Jaw Crusher calorie cost reduction. 120cal for this recipe was unreasonably high. I've matched it to 15cal, same as basic Butchery Table.

Wow awesome work thank you 😊

Thank you. Just remember to update the files on https://eco.mod.io/ since people get allergic when they hear Github and most server owners don't even know that you have to upload non .dll mods into UserCode folder.


regression.py: Python process that should wait for surelog to finish uses 100% CPU

Running the Python regression script, say with a few tests
python3 scripts/regression.py run --filters "BuildUVMPkg|Ariane"

... results not only in the surelog process it forks to use 100% CPU, but also almost 100% CPU for the python3 process that
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
3742259 hzeller   20   0<PHONE_NUMBER>52   9988 R 100.0   1.3   0:07.65 surelog
3742289 hzeller   20   0<PHONE_NUMBER>52  10868 R  99.7   1.0   0:07.54 surelog
3742226 hzeller   20   0   23364  15664   4948 R  99.3   0.0   0:07.59 python3
3742223 hzeller   20   0   23392  15848   4948 R  99.0   0.0   0:07.60 python3

Looking at an strace output of the python process, it looks like it is scanning through all processes in /proc, almost  as if it attempts to do some sort of top equivalent ? All it needs to do is waitpid() of sorts and don't use any CPU time.
openat(AT_FDCWD, "/proc/1797/stat", O_RDONLY|O_CLOEXEC) = 19
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
ioctl(19, TCGETS, 0x7fff7465e210)       = -1 ENOTTY (Inappropriate ioctl for device)
lseek(19, 0, SEEK_CUR)                  = 0
lseek(19, 0, SEEK_CUR)                  = 0
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(19, "1797 (plasmashell) S 1 1796 1796"..., 8192) = 362
read(19, "", 7830)                      = 0
close(19)                               = 0
openat(AT_FDCWD, "/proc/1799/stat", O_RDONLY|O_CLOEXEC) = 19
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
ioctl(19, TCGETS, 0x7fff7465e210)       = -1 ENOTTY (Inappropriate ioctl for device)
lseek(19, 0, SEEK_CUR)                  = 0
lseek(19, 0, SEEK_CUR)                  = 0
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(19, "1799 (xembedsniproxy) S 1 1798 1"..., 8192) = 321
read(19, "", 7871)                      = 0
close(19)                               = 0
openat(AT_FDCWD, "/proc/1805/stat", O_RDONLY|O_CLOEXEC) = 19
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
ioctl(19, TCGETS, 0x7fff7465e210)       = -1 ENOTTY (Inappropriate ioctl for device)
lseek(19, 0, SEEK_CUR)                  = 0
lseek(19, 0, SEEK_CUR)                  = 0
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(19, "1805 (org_kde_powerde) S 1 1804 "..., 8192) = 190
read(19, "", 8002)                      = 0
close(19)                               = 0
openat(AT_FDCWD, "/proc/1811/stat", O_RDONLY|O_CLOEXEC) = 19
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
ioctl(19, TCGETS, 0x7fff7465e210)       = -1 ENOTTY (Inappropriate ioctl for device)
lseek(19, 0, SEEK_CUR)                  = 0
lseek(19, 0, SEEK_CUR)                  = 0
newfstatat(19, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(19, "1811 (kaccess) S 1 1810 1810 0 -"..., 8192) = 315
read(19, "", 7877)                      = 0
close(19)                               = 0

 ... and so on

So in the end, this will use twice as many CPU cores as requested.

It's not scanning all processes. It is scanning only for the child processes.
https://github.com/chipsalliance/Surelog/blob/6007db6f8ed48f48fccd6bdb9144cb200de52bf9/scripts/regression.py#L325
The process variable here is the running surelog process.
Moreover, there's a yield after every iteration.
https://github.com/chipsalliance/Surelog/blob/6007db6f8ed48f48fccd6bdb9144cb200de52bf9/scripts/regression.py#L356
This is the recommended way to use psutil. I am not familiar with the internals of the psutil itself. It could be that the library scans for all processes and filters based on the input process id. You can play around with the sleep time to reduce the processor overload. Careful, the larger the sleep, the farther you deviate from true peak.

From what I understand, this should start a new sub-process and wait until it is finished. So we don't need to poll anything, just wait until the child process is finished.
The underlying implementation in Python should just do waidpid() and whatever the equivalent is on other operating systems.  Looks like there is something like that there.

There seems to be some misunderstanding here. The main process is polling to collect memory and CPU statistics of sub-processes. It's not polling for job to finish. The external processes (surelog and uhdm-dump) are being started as sub-processes but with a different API than what you are suggesting because I need access to the subprocess pid.

For each surelog process, there is a Python fork that runs at 100% CPU currently, but that doesn't need to be.
You can query the status and maximum CPU use without any active polling.

The command on unix would be time, which then outputs all the stats such as wall time, user time, system time, memory etc.
In a programmatic way, you can do that using getrusage()

Yes that works on Unix only. There is no such equivalent for other platforms.

There gotta be a way on other platforms to figure out the resource usage of a program after it finished without using 100% of another core to monitor the processes ?

On Windows, I don't know of any easy way to do it. There is a documented way to do it using WMI but AFAIK its process instrumentation.
As far as the CPU usage goes, current implementation is using a yield which can be relaxed to a .5 second sleep. That change should improve CPU usage.

Could you use getrusage() on Unix/Mac and have a fallback for Windows ? If we can't measure the time accurately (and on top it occupies half of the cores) the regression script is not as useful as the original one.

I will explore the WMI implementation for Windows as time permits.
As a stop-gap solution, I have changed the sleep timers to 0.5 seconds which should ease the burden on the processor.


support for granular tag control

Features

support granular, per-resource tags

Change implications

dependencies added/changed? no

let users pass in provider with tags if they want.


Stylus

Please, add syntax highlighting for stylus..

While the syntax theme could use some love for Stylus files, you still need a package to enable syntax hilighting for it. AFAIK, Atom doesn't include one out of the box. I can recommend you this one if you don't already have one.
The problem is that I only want to support an official Atom package for Stylus syntax highlighting, otherwise I would probably end up writing stuff for each unofficial package and the code would only get larger and harder to maintain.
For now, I'll enhance support for the package I mentioned earlier, as it is the one that has the most downloads.


Create acu

ACU
Ahram Candian University

@mohamedbehairy acu I am sorry, I have to close the request without merging, because you made a mistake in a request and did not specify any filepath. Please ensure that you are familiar with this repository rules located at the bottom of this page and make a new correct request. Thank you for your understanding!


[bug]  Connecting to MetaMask (injected wallet) from Chrome Extension.

Is there an existing issue for this?

[X] I have searched the existing issues

Package Version
0.3.3
Current Behavior
Injected wallet is not available from the popup.

Expected Behavior
No response
Steps To Reproduce
Use any boilerplate like https://github.com/aeksco/react-typescript-web-extension-starter and try to connect with metamask from the popup
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

From some quick research, it looks like injected wallets might not have great support for Chrome Extensions since they inject into the browser window, not necessarily the extension window. You could try creating your own Connector and using chrome.windows. This seems out of scope for this library, but if you create a minimal reproducible example I can try to take a look.

Here's a reproducible example I just created:
https://github.com/jamalavedra/wagmi-browser-extension
You'll see the injected wallet isn't working.

Thanks for providing that! Can you add some info on how to run the example?

np!
Just yarn to install all dependencies and yarn watch to build it.
Then, go to manage extensions, brave://extensions/ in Brave, and LoadUpacked after enabling developer mode.


Unable to upload windows 2016 server image using "New-AzsServer2016VMImage "

Hi
while uploading the windows server 2016 to azure stack I am getting this error
"New-AzsServer2016VMImage `
-ISOPath $ISOPath
New-AzsServer2016VMImage : The term 'New-AzsServer2016VMImage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
New-AzsServer2016VMImage `

CategoryInfo          : ObjectNotFound: (New-AzsServer2016VMImage:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException"

Is this because of the Azs.compute.admin.psm1, I used "Import-module Azs.compute.admin.psm1" instead of "Import-Module .\ComputeAdmin\AzureStack.ComputeAdmin.psm1 " (since I didn't get this module with azure stack tools)
help me regarding this

Any updates please let us know as soon as possible, since we are working on production environment.

@Arshuga , this cmdlet has been deprecated and you should be using the cmdlets exposed as part of Azs.Compute.Admin for all the image related actions on AzureStack.
Please refer to these links:
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install
https://docs.microsoft.com/en-us/powershell/azure/azure-stack/overview?view=azurestackps-1.5.0
You are specifically looking for:
Add.AzsPlatformImage
Refer: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/Add-AzsPlatformImage?view=azurestackps-1.5.0
Please reach out to us or open a new issue if you are unable to use that cmdlet.

Closing this issue at this time.


Improve the code example in testing docs

The request should be flask.request.

I'm not sure this change is really necessary; it should be fairly obvious that this code assumes from flask import request, which does appear elsewhere in this same documentation. Can you say whether this actually caused you or someone you know confusion?
On the other hand, in other places in this same documentation, flask.request is used, as in this change. If anything, perhaps this PR should change all other request (and jsonify etc.) references in these docs to flask.request (and flask.jsonify etc.) to be consistent.
In any case, I believe we can't accept this until it targets the 2.0.x branch rather than the main branch.

I think we should use flask.xxx for consistency as it's also used in the flask test.
I will cover all the changes needed and branch off to 2.0.x.

I prefer not using flask..

The code example in same chapter Other Testing Tricks and Accessing and Modifying Sessions use flask.xxx, IMO, we should keep the consistency.

I guess a single PR that changes all uses of flask.{name} to the plain version would be fine.

Sure, will submit a new PR soon.


Enabling MDomain makes unrelated domain fail

I am just now experimenting with mod_md for the first time from the upstream 2.4.33 release. In doing so, I noticed a number of surprising issues:

Enabling MDomain for one domain made restart fail with AH01909 for another domain. As it is, it may be correct that the certificate for that other domain doesn't contain the correct domain name, but it's still pretty surprising that enabling MDomain for one domain makes another vhost fail.

After making sure the non-md-enabled domain had all the domain names in the certificate, mod_md still prevented apache from starting, this time with AH01903.

This situation made apache fail to start. Since my distribution runs apache -t to test the configuration before stopping the server, I would expect these kinds of errors to be surfaced as part of the configuration test rather than causing the server start to fail (leading to outages).

Some log messages concerning the domain I actually enabled ended up in the log file for the vhost that had the incorrectly configured domain.

Enabling mod_md seems to make it impossible to access acme-challenge directories that actually exist on the filesystem in a document root.

You may see AH1909 for the MDomain while the certificate is being retrieved for the first time. Note that this is a WARNING only and will not prevent your server from working.
Note that MDomain drags in all ServerName and ServerAlias. May that explains the unexpected other vhosts you seem to see. Please provide an example of vhosts that you find affected unexpectedly.
AH1903 is an error with certificate chains related to Proxy configurations. This seems totally unrelated to anything mod_md does. If you can provide me sample configurations that reproduce the issues, I will look into it.

This is from my httpd.conf:
diff --git a/apache2/httpd.conf b/apache2/httpd.conf
index 87ec239..e4d0b77 100644
--- a/apache2/httpd.conf
+++ b/apache2/httpd.conf
@@ -97,6 +97,9 @@ LoadModule info_module modules/mod_info.so
 </IfDefine>
 LoadModule log_config_module modules/mod_log_config.so
 LoadModule logio_module modules/mod_logio.so
+<IfDefine SSL>
+#LoadModule md_module modules/mod_md.so
+</IfDefine>
 LoadModule mime_module modules/mod_mime.so
 LoadModule mime_magic_module modules/mod_mime_magic.so
 <IfDefine PROXY>
@@ -129,7 +132,7 @@ LoadModule userdir_module modules/mod_userdir.so
 </IfDefine>
 LoadModule usertrack_module modules/mod_usertrack.so
 LoadModule vhost_alias_module modules/mod_vhost_alias.so
+LoadModule watchdog_module modules/mod_watchdog.so

 # If you wish httpd to run as a different user or group, you must run
 # httpd as root initially and it will switch.
@@ -174,6 +177,11 @@ SSLStaplingResponderTimeout 5
 SSLStaplingReturnResponderErrors Off
 SSLStaplingCache shmcb:/var/run/ocsp(128000)

+ServerAdmin<EMAIL_ADDRESS>+#MDRequireHttps permanent
+#MDCertificateAgreement https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
+#MDMustStaple on
+
 <Directory /var/www/localhost/icons>
 	Require all granted
 </Directory>

Then, in a vhost configuration file, I set up MDomain for one domain:
diff --git a/apache2/vhosts.d/my.example.com.conf b/apache2/vhosts.d/my.example.com.conf
index 63190c5..2b30699 100644
--- a/apache2/vhosts.d/my.example.com.conf
+++ b/apache2/vhosts.d/my.example.com.conf
@@ -1,3 +1,5 @@
+#MDomain dirkjan.ochtman.nl
+
There are two vhosts for my.example.com, for *:80 and for *:443. The one for *:80:
<VirtualHost *:80>
    ServerName my.example.com
    Redirect permanent / https://my.example.com/
</VirtualHost>

<VirtualHost *:443>

    ServerName my.example.com
    DocumentRoot /var/www/my.example.com/http
    <Directory /var/www/my.example.com/http>
        Require all granted
    </Directory>

    LogFormat combined
    ErrorLog /var/www/my.example.com/logs/error_log
    TransferLog /var/www/my.example.com/logs/access_log

    SSLEngine on
    #SSLCertificateFile /etc/ssl/apache2/my.example.com.crt
    #SSLCertificateKeyFile /etc/ssl/apache2/my.example.com.key
    #SSLCertificateChainFile /etc/ssl/apache2/le-intermediate-x3.pem
    #Header always set Strict-Transport-Security "max-age=63072000"

</VirtualHost>

There is nothing unusual in the example. Such configs I have in my test suite as well. Something else must be different that causes problems.
Let's step back a bit. You say that your apache did not start with AH1909, but that is only a warning. So, something else was preventing the start. Let's find out what that is. Can you reproduce this again? Do you find anything else in the log?

/var/log/apache2/error_log says:
[Mon Jun 04 10:30:28.141824 2018] [ssl:emerg] [pid 12397:tid<PHONE_NUMBER>26496] AH02311: Fatal error initialising mod_ssl, exiting. See /var/www/example3.com/logs/error_log for more information
AH00016: Configuration Failed

/var/log/example3.com/logs/error_log says:
[Mon Jun 04 10:30:28.141800 2018] [ssl:emerg] [pid 12397:tid<PHONE_NUMBER>26496] AH01903: Failed to configure CA certificate chain!

This is rather surprising. When I look at the code, AH1903 is raised if you configure a SSLCertificateChainFile that is missing, unreadable or contains invalid data.

Right. My configuration file for example3.com has two vhosts with SSLEngine on in them, and both of these have a SSLCertificateChainFile that references the same le-intermediate-x3.pem that's used in other vhosts.
Should I raise a bug against mod_ssl, instead?

What happens if you comment that out, in the first or in all vhosts? It seems we still have not really understood what is going on in your system...

Sorry, comment what out? The SSLCertificateChainFile directives?

Yes, just to see if the problems are isolated to those. Divide and conquer. :)

So commenting out all SSLCertificateChainFile directives across all vhosts allowed apache to start up even with MDomain enabled for the initial my.example.com.

And, after re-enabling all these SSLCertificateChainFile directives again, it still seems to work...

I think I can see what is going on. If you specify a SSLCertificateChainFile for a vhost managed by mod_md this will lead to AH1903 if the chain does not match the certificate installed. OpenSSL then rejects this.
mod_md installs a temporary, self-signed certificate during the first retrieval. That will not work with your chain and cause the error. Once it has a LE certificate, this works with your chain and openssl is happy.
Note: you should not configure a chain file for a MDomain as mod_md takes care of that itself and it will only lead to trouble should Let's Encrypt in the future make changes to its chain.

Okay, so I should be able to onboard more vhosts with MDomain as long as I make sure to disable the SSL* options (except SSLEngine on) at the same time, and it should work?

SSL protocol, ciphers, stapling etc. will all be fine. Just leave the certificate related things alone.
And, yes, mod_md/mod_ssl should reject/ignore a specific chain file for a managed domain, IMO.

So, I tried to onboard another of my domains by adding MDomain example1.com and commenting out certificate-related SSL* directives from the vhost config. However, it seems to get stuck on the fallback-cert.pem, so that it's now blocked by the browser. Any way to resolve that?

(Also, thanks for the awesome support! I'm really excited about mod_md so I just hope this deployment can help find any rough edges to make mod_md usable sooner.)

Sound like it failed to obtain a certificate from Let's Encrypt for that domain. Anything to be found in the logs?

[Mon Jun 04 11:39:29.166658 2018] [ssl:warn] [pid 16525:tid<PHONE_NUMBER>46016] AH10085: Init: xavamedia.nl:443 will respond with '503 Service Unavailable' for now. This host is part of a Managed Domain, but no SSL certificate is available (yet).
[Mon Jun 04 11:39:29.166838 2018] [ssl:error] [pid 16525:tid<PHONE_NUMBER>46016] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=Apache Managed Domain Fallback / issuer: CN=Apache Managed Domain Fallback / serial: 240BCEBE0030330B0661FD6C5EF0EF9D128FD933 / notbefore: Jun  4 09:39:29 2018 GMT / notafter: Jun 18 09:39:29 2018 GMT]
[Mon Jun 04 11:39:29.166844 2018] [ssl:error] [pid 16525:tid<PHONE_NUMBER>46016] AH02604: Unable to configure certificate xavamedia.nl:443:0 for stapling
[Mon Jun 04 11:39:29.186339 2018] [ssl:warn] [pid 16526:tid<PHONE_NUMBER>46016] AH10085: Init: xavamedia.nl:443 will respond with '503 Service Unavailable' for now. This host is part of a Managed Domain, but no SSL certificate is available (yet).
[Mon Jun 04 11:39:29.186527 2018] [ssl:error] [pid 16526:tid<PHONE_NUMBER>46016] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=Apache Managed Domain Fallback / issuer: CN=Apache Managed Domain Fallback / serial: 240BCEBE0030330B0661FD6C5EF0EF9D128FD933 / notbefore: Jun  4 09:39:29 2018 GMT / notafter: Jun 18 09:39:29 2018 GMT]
[Mon Jun 04 11:39:29.186532 2018] [ssl:error] [pid 16526:tid<PHONE_NUMBER>46016] AH02604: Unable to configure certificate xavamedia.nl:443:0 for stapling

Supposedly this is the same thing as #94, so it can be closed.


[all hosts] (ExecuteFunction) Note timeout

Per Outlook team's response on this Stack Overflow post. On-send timeout is already documented.
Fixes https://github.com/OfficeDev/office-js/issues/1452.

Docs Build status updates of commit 3dd8d0b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/reference/manifest/action.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Section without properties causes null exception

When a section does not have any properties defined, WalkSections > MigrateProperties throws a null exception.

Can be reproduced. Will be fixed with priority.

Fix is merged into master


docs: correct spelling of rogue

Learn Build status updates of commit e81ccd9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/backup/guidance-best-practices.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Looks good; thanks, @michaelspinks


Output export json doesn't seem to be a valid BOM

First of all I'd like to thank you for this project. It seems this is only available option to easily get a BOM from a buildroot environment.
I'm aware that this project is in its very early stage so I assume lot of things might not work well, yet I'd like to give it a shot to make it work.
After running python3 generateBuildrootSBOM.py -i manifest.csv -it csv using the manifest.csv generated from buildroot's make legal-info, I take the export output json and attempt to validate it via the cyclonedx-cli:
❯ cyclonedx validate --input-file export --input-format json --input-version v1_4
Validating JSON BOM...
Validation failed:
#/properties
BOM is not valid.

FYI I have installed cyclonedx-python-lib 4.0.0 in my system and I am using the cyclonedx-cli 0.24.2
I was also able to reproduce the same issue using the manifest.csv from a recent buildroot tag default configuration:
git clone https://github.com/buildroot/buildroot.git
cd buildroot
git checkout 2023.02
make defconfig
make legal-info

Let me know if there's anything else I can provide. Thanks!

No problem. Glad to help :)
I have found the issues with the SBOM format. Here's a comparison with the official cycloneDX SBOM 1.4 Schema:
https://www.jsonschemavalidator.net/s/LmSBLlRk
You can see there are a minor issues with it. Since they were simple fixes, I took the liberty to make a pull request to fix these: https://github.com/CycloneDX/cyclonedx-buildroot/pull/3

Fixed. I put out a new tag called v1.0 to provide json and xml output from the Buildroot manifest.csv.


For labels

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change

[ ] Added a new machine learning frameworks, libraries or software.
[ ] Documentation update

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings

I have not made any changes
As you said for raising direct PRs
This is for
https://github.com/hasmithagunda123/ALL_INDIA_HACKATHON/pull/34#issuecomment-2206822626


[CONTROLLER/RECORDER] fixes updating vif vm bug

This PR is for:

Server

fixes updating vif vm bug
Steps to reproduce the bug
Changes to fix the bug
Affected branches

main
v6.5

Checklist

[ ] Added unit test to verify the fix.
[ ] Verified eBPF program runs successfully on linux 4.14.x.
[ ] Verified eBPF program runs successfully on linux 4.19.x.
[ ] Verified eBPF program runs successfully on linux 5.2.x.

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


Pytorch UNet quantization error

I am trying to compile this model with the pytorch quantizer. However I am getting the following error with quant_mode 1.
Traceback (most recent call last):
  File "unet_quant.py", line 195, in <module>
    quant_mode=args.quant_mode)
  File "unet_quant.py", line 140, in quantization
    quant_mode, model, (inp))
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/apis/quant_api.py", line 92, in torch_quantizer
    quant_mode=quant_mode)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/apis/utils.py", line 124, in prepare_quantizable_module
    graph = parse_module(module, input_args)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/apis/utils.py", line 65, in parse_module
    module, input_args)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/parser.py", line 22, in __call__
    nndct_node.op = op_creator(self, raw_graph, raw_node)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/op_dispatcher.py", line 85, in __call__
    op = getattr(self, raw_node.kind, self.default)(*args)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/op_dispatcher.py", line 605, in constant_pad_nd
    op.set_config('pad', pad)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/nndct_graph/base_operator.py", line 261, in set_config
    setattr(self, config_name, value)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/torch_op_def.py", line 972, in pad
    self.set_attr(self.AttrName.PAD_WITH, value)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/nndct_graph/base_operator.py", line 254, in set_attr
    self._attrs[attr_name].value = attr_value
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/nndct_graph/base_operator.py", line 106, in value
    f"The type of attr '{self._name.value}' should be {self._type} instead of {type(value[0])}"
TypeError: The type of attr 'pad_with' should be <class 'int'> instead of <class 'nndct_shared.nndct_graph.base_tensor.Tensor'>

If anyone would like to help out I can upload the quantization script and data. Any help is appreciated.

You can check your pad operation and try to set pad with constant value instead of expression

Oh okay thank you! I changed the value type of the inputs from Tensor to int and it successfully parsed the model. However now I am facing the error below.
Traceback (most recent call last):
  File "unet_quant.py", line 196, in <module>
    quant_mode=args.quant_mode)
  File "unet_quant.py", line 161, in quantization
    acc1_gen, loss_gen = evaluate(quant_model, val_loader, loss_fn)
  File "unet_quant.py", line 119, in evaluate
    mask_pred = model(images)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "quantize_result/UNet.py", line 113, in forward
    self.output_module_1 = self.module_1(self.output_module_0)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/nn/modules/conv.py", line 47, in forward
    param_names=self.params_name)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/quantization/utils.py", line 85, in process_inputs_and_params
    tensor_type='param')
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/quantization/torchquantizer.py", line 67, in do_scan
    bnfp[1] = (int)(Tfixpos.item())
RuntimeError: CUDA error: an illegal memory access was encountered

I traced the problem to an object/function called NndctDiffsFixPos which I think modifies Tfixpos depending on the value of method passed in. It fails when the value is 3, which based on the source means that the variable being quantized is a parameter. Further digging leads me to the use of cuda_fix_neuron_v2 which is defined in vai_q_pytorch/include/nndct_fix_kernels.cuh`. I'm not sure exactly what's going wrong within the function itself at the moment but I'll try digging around some more. If anyone has a clue that would be great.

It seems that the tensor Tfixpos is not on GPU, but CPU,
Please confirm you have set correct device for model, input data and torch_quantizer.

It seems that the tensor Tfixpos is not on GPU, but CPU,
Please confirm you have set correct device for model, input data and torch_quantizer.

I'm using the resnet quantizer script and just replaced the dataset and model, and ensured that I put the model and data on the GPU. Not sure how to put the torch_quantizer on the GPU but I checked and Tfixpos is on the GPU.

I'm using the resnet quantizer script and just replaced the dataset and model, and ensured that I put the model and data on the GPU. Not sure how to put the torch_quantizer on the GPU but I checked and Tfixpos is on the GPU.

You can upload the quantization script and test data, I'll check the error.

You can upload the quantization script and test data, I'll check the error.

@kewang-xlnx Thank you so much. I have a feeling the problem might be how the network is defined, since it uses the torch.nn.functional module, which is not used in the resnet18 definition in torchvision.
Here's the link to the quantization script and test data: https://drive.google.com/file/d/1hmO2Rved9H5PUULn3rctKxRHszScm0mW/view?usp=sharing.
After unzipping and entering the directory, run the exportweights.py file to get the weights (weights exported from different versions of torch will not interoperate). The data directory is data.

@kewang-xlnx Thank you so much. I have a feeling the problem might be how the network is defined, since it uses the torch.nn.functional module, which is not used in the resnet18 definition in torchvision.
Here's the link to the quantization script and test data: https://drive.google.com/file/d/1hmO2Rved9H5PUULn3rctKxRHszScm0mW/view?usp=sharing.
After unzipping and entering the directory, run the exportweights.py file to get the weights (weights exported from different versions of torch will not interoperate). The data directory is data.

The error is caused by the inconsistency between the cuda device of model and the input. In line 149 of unet_quant.py, the model's device is gpu:0, and in line 116 and 117, the inputs' device is gpu:1. You should make them the same.
There is another bug in the script. In line 66 of unet_quant.py, the input variable 'train' of the function is covered by the Temporary variable 'train'.

The error is caused by the inconsistency between the cuda device of model and the input. In line 149 of unet_quant.py, the model's device is gpu:0, and in line 116 and 117, the inputs' device is gpu:1. You should make them the same.
There is another bug in the script. In line 66 of unet_quant.py, the input variable 'train' of the function is covered by the Temporary variable 'train'.

Oh man I can't believe I missed that. Thank you so much for your help.
However now there's a problem with the model itself, which looks like something might have went wrong with converting the model because it occurs in the UNet.py in the quantized_result directory.
If I changed diffX and diffY to type int, running with --quant_mode 1 runs without error but --quant_mode 2 results in the following error when dump_xmodel is called:
F0119 11:35:47.264890  2363 shape_inference.cpp:444] [UNILOG][FATAL][XIR_INVALID_ARG_OCCUR][Invalid arg occurence!] Wrong axis! The dimensions except the axis defined by user of input feature maps of concat op should be same. But here one of the shapes is {1, 161, 238, 512}, one of the shape is {1, 160, 239, 512}, and the axis is 3
*** Check failure stack trace: ***
Aborted (core dumped)

However, if I leave diffX and diffY as tensors, running with --quant_mode 1 results in the following error:
Traceback (most recent call last):
  File "unet_quant.py", line 197, in <module>
    quant_mode=args.quant_mode)
  File "unet_quant.py", line 162, in quantization
    acc1_gen, loss_gen = evaluate(quant_model, val_loader, loss_fn)
  File "unet_quant.py", line 119, in evaluate
    mask_pred = model(images)
  File "/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "quantize_result/UNet.py", line 291, in forward
    self.output_module_77 = self.module_77(tensors=[self.output_module_27,self.output_module_76], dim=1)
  File "/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/pytorch_nndct/nn/modules/concat.py", line 40, in forward
    output = torch.cat(inputs, dim)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 238 and 239 in dimension 3 at /opt/conda/conda-bld/pytorch_1579027003190/work/aten/src/THC/generic/THCTensorMath.cu:71

Oh man I can't believe I missed that. Thank you so much for your help.
However now there's a problem with the model itself, which looks like something might have went wrong with converting the model because it occurs in the UNet.py in the quantized_result directory.
If I changed diffX and diffY to type int, running with --quant_mode 1 runs without error but --quant_mode 2 results in the following error when dump_xmodel is called:
F0119 11:35:47.264890  2363 shape_inference.cpp:444] [UNILOG][FATAL][XIR_INVALID_ARG_OCCUR][Invalid arg occurence!] Wrong axis! The dimensions except the axis defined by user of input feature maps of concat op should be same. But here one of the shapes is {1, 161, 238, 512}, one of the shape is {1, 160, 239, 512}, and the axis is 3
*** Check failure stack trace: ***
Aborted (core dumped)

However, if I leave diffX and diffY as tensors, running with --quant_mode 1 results in the following error:
Traceback (most recent call last):
  File "unet_quant.py", line 197, in <module>
    quant_mode=args.quant_mode)
  File "unet_quant.py", line 162, in quantization
    acc1_gen, loss_gen = evaluate(quant_model, val_loader, loss_fn)
  File "unet_quant.py", line 119, in evaluate
    mask_pred = model(images)
  File "/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "quantize_result/UNet.py", line 291, in forward
    self.output_module_77 = self.module_77(tensors=[self.output_module_27,self.output_module_76], dim=1)
  File "/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/pytorch_nndct/nn/modules/concat.py", line 40, in forward
    output = torch.cat(inputs, dim)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 238 and 239 in dimension 3 at /opt/conda/conda-bld/pytorch_1579027003190/work/aten/src/THC/generic/THCTensorMath.cu:71

So far, to quantize UNET, the width and height of input should be multiples of 16. You can resize them to multiples of 16. I have tried to modify the code, and it work ok with --quant_mode 1 and --quant_mode 2. The modifications are:

unet_quant.py: inp = torch.randn([batch_size, 3, 1280, 1918]) -->  inp = torch.randn([batch_size, 3, 1280, 1920
utils/dataset.py: newW, newH = int(scale * w), int(scale * h) --> newW, newH = math.ceil(scale * w/16)*16, math.ceil(scale * h/16)*16
unet/unet_part.py: comments diffY = int(diffY), diffX = int(diffX), x1 = F.pad(x1, [diffX // 2, diffX - diffX // 2, diffY // 2, diffY - diffY // 2])
The next version Vitis-AI will support  input of any size.

So far, to quantize UNET, the width and height of input should be multiples of 16. You can resize them to multiples of 16. I have tried to modify the code, and it work ok with --quant_mode 1 and --quant_mode 2. The modifications are:

unet_quant.py: inp = torch.randn([batch_size, 3, 1280, 1918]) -->  inp = torch.randn([batch_size, 3, 1280, 1920
utils/dataset.py: newW, newH = int(scale * w), int(scale * h) --> newW, newH = math.ceil(scale * w/16)*16, math.ceil(scale * h/16)*16
unet/unet_part.py: comments diffY = int(diffY), diffX = int(diffX), x1 = F.pad(x1, [diffX // 2, diffX - diffX // 2, diffY // 2, diffY - diffY // 2])
The next version Vitis-AI will support  input of any size.

Ah I see. Alright sure, thank you very much once again. I will try this and if it works, I'll close this issue. Have a great day!

Ah I see. Alright sure, thank you very much once again. I will try this and if it works, I'll close this issue. Have a great day!

I am trying to compile this model with the pytorch quantizer. However I am getting the following error with quant_mode 1.
Traceback (most recent call last):
  File "unet_quant.py", line 195, in <module>
    quant_mode=args.quant_mode)
  File "unet_quant.py", line 140, in quantization
    quant_mode, model, (inp))
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/apis/quant_api.py", line 92, in torch_quantizer
    quant_mode=quant_mode)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/apis/utils.py", line 124, in prepare_quantizable_module
    graph = parse_module(module, input_args)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/apis/utils.py", line 65, in parse_module
    module, input_args)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/parser.py", line 22, in __call__
    nndct_node.op = op_creator(self, raw_graph, raw_node)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/op_dispatcher.py", line 85, in __call__
    op = getattr(self, raw_node.kind, self.default)(*args)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/op_dispatcher.py", line 605, in constant_pad_nd
    op.set_config('pad', pad)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/nndct_graph/base_operator.py", line 261, in set_config
    setattr(self, config_name, value)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/pytorch_nndct/parse/torch_op_def.py", line 972, in pad
    self.set_attr(self.AttrName.PAD_WITH, value)
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/nndct_graph/base_operator.py", line 254, in set_attr
    self._attrs[attr_name].value = attr_value
  File "/home/t/miniconda3/envs/pv/lib/python3.6/site-packages/nndct_shared/nndct_graph/base_operator.py", line 106, in value
    f"The type of attr '{self._name.value}' should be {self._type} instead of {type(value[0])}"
TypeError: The type of attr 'pad_with' should be <class 'int'> instead of <class 'nndct_shared.nndct_graph.base_tensor.Tensor'>

If anyone would like to help out I can upload the quantization script and data. Any help is appreciated.

Did you manage to quantize and compile your model.
I am trying to do the same?

Hi sorry for the late reply.
Yes with the changes that @kewang-xlnx suggested, I managed to get a quantized xmodel file.
After quantizing, I used the xcompiler tool to get a compiled xmodel file ready for usage on FPGA as follows:
xcompiler -i quantize_result/UNet_int.xmodel /opt/vitis_ai/compiler/arch/DPUCAHX8H/U280/arch.json -o quantize_result/UNet_compiled.xmodel
You can use another arch.json for a different FPGA, just search in the /opt/vitis_ai/compiler/arch directory in the docker container.
You can find the files here.

Hi sorry for the late reply.
Yes with the changes that @kewang-xlnx suggested, I managed to get a quantized xmodel file.
After quantizing, I used the xcompiler tool to get a compiled xmodel file ready for usage on FPGA as follows: xcompiler -i quantize_result/UNet_int.xmodel /opt/vitis_ai/compiler/arch/DPUCAHX8H/U280/arch.json -o quantize_result/UNet_compiled.xmodel
You can use another arch.json for a different FPGA, just search in the /opt/vitis_ai/compiler/arch directory in the docker container.
You can find the files here.

Hey @TenzinCHW, I have been successfully able to compile the model but am facing difficulty in the inferencing code for x model. It’s a kind request that could you please share your inference code which you had written for the unet model for the Vitis Ai x model part.( where we interact with the vart library)


How long for train?

hello, very valuable work, I train from sctrech, but I find it is very time costing.
batch size is 8, but one step need 13 min!
0%|          | 1/2315 [13:20<514:50:48, 800.97s/it]
bert and dgl all in the gpu, 3080ti 12GB. Is it normal for this model?

Thank you for your interest in our work!
It shouldn't take that long. I'm not really sure what caused it. Maybe you can try switching to a GPU with more memory.
If you have more questions, feel free to keep asking me.
Thanks!


cmd/go: Allow go mod cache location to be overridden, e.g. GOMODCACHE (for CI purposes)

What version of Go are you using (go version)?

$ go version
go version go1.11.5 linux/amd64

Does this issue reproduce with the latest release?
No documentation about wished behaviour found
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dionysius/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/dionysius/Projects/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go-1.11"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.11/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build210250960=/tmp/go-build -gno-record-gcc-switches"

What did you expect?
There seem not to exist something what I'd like to do (yet). The issue is, freshly loading all dependent modules can take some time and network I/O. If the CI jobs are split into each type, all of them load concurrently the same cache for their own lifetime - think of: unit-test, unit with race, linting, building, all separated. And if each job is spawned from a clean golang image, like with docker for example, the cache starts empty.
In Gitlab, the cache option can be used, but must be within the projects source dir. I already used the cache option once for GOCACHE and GODEPCACHE (i believe the env name was that) to overwrite their location to my liking. But I seem unable to set the cache path for modules. How about a GOMODCACHE env, which would be used if non-empty?
I know that the mod cache dir is in $GOPATH/pkg/mod, but changing the full GOPATH to somewhere within the source folder seems off to me.

/cc @bcmills

Why is it important that the cache location to be independent of GOPATH? (That is, why can't your CI system save $GOPATH/pkg/mod where it is?)

You could also change GOPATH itself, and set GO111MODULE=on if needed - that's what I did when I needed to change the module cache location for GitLab CI to be able to store it. I don't remember the exact issue I had but I think it was similar to yours.

@bcmills: Why is it important that the cache location to be independent of GOPATH? (That is, why can't your CI system save $GOPATH/pkg/mod where it is?)

It was basically more like a question. I am coming from the old godep since a while, where there was a GODEPCACHE env, but there is honestly no technical limitation for this as of now, as lined out by @dpinela . I could just put the whole GOPATH into that cache folder. And because of the flexibility I have in gitlab-ci, I can also decide myself if I want specific GOPATH/* folders to be included in the cache or not.
I'm currently overthinking my whole suggestion and writing down my thoughts:

Thanks to go modules, the GOPATH itself as a whole is kind of a cache for different things now (Not exactly, but you probably can see what I mean) and lost a bit of "importance" for projects.
Depending on the use-case, we could possibly see GOBIN as deprecated, but I can definitely see some cases where you want GOBIN somewhere else than GOPATH/bin (and also for compatibility for sure)
If, in the future, there's a new feature requiring a new folder within GOPATH, you'd have to think again about introducing a new env variable for that. If we/you just don't add them, it will be the same idiomatic way golang approaches, keeping it simple and clear. And once there is a real requirement for it, we can have a look into that specificly

I could see this closed, I was thinking too much "the old" way and there's no technical requirement as of now

Here's a reason I think this could be helpful.
With go env -w, I can globally set env variables on CI, such as GOCACHE, CGO_ENABLED, or GOBIN.
Unfortunately, many environments explicitly set GOPATH - including the official Docker images, for example. So I can't just do something like go env -w GOPATH=/cache/gopath.
The answer here could be "simply override the GOPATH env var", but that's difficult to do in some environments. For example, Drone CI has no way to set global environment variables, so I have to repeat it at every build step. This is the kind of thing that I hoped go env -w would simplify.
This would indeed be fixed by a GOMODCACHE, since then I'd do something like go env -w GOMODCACHE=/cache/modcache GOCACHE=/cache/buildcache.

@dionysius you can copy the cache inside the project folder and then cache it with gilabci -- before building you move the cache back in $GOPATH/pkg/mod
e.g.
cp $GOPATH/pkg/mod ./modcache
ci yaml:
cache: paths: - modcache/
before go build:
cp ./modcache $GOPATH/pkg/mod

What if I would like to set the cache on a RAMDISK (and not wear the SSD)?

@TudorHulban GOMODCACHE was implemented in https://github.com/golang/go/issues/34527, and it will ship with Go 1.15.

Wooooow! Good to hear!


How would you implement a grid resolution factor?

Hello @keijiro !
Thank you for this amazing implementation. One question arose while we've tried it, how would you implement a grid resolution parameter as in Paul Bourke's article  to steer the resolution of the mesh? By just increasing sampling distances in the volume?
Greetings
Dominique
PS: Talking about this

My first guess would be the increase the sampling in the MeshConstruction shader from:
[numthreads(4, 4, 4)]
void MeshReconstruction(uint3 id : SV_DispatchThreadID)
{
    // Boundary check
    if (any(id + 1 >= Dims.xyz)) return;

    // Voxel samples at each cube vertex
    float4 samples[8];
    for (uint i = 0; i < 8; i++)
        samples[i] = VoxelValueWithGradient(id + CubeVertex(i));

// ...
}

to something like
uint samplingDistance;

[numthreads(4, 4, 4)]
void MeshReconstruction(uint3 id : SV_DispatchThreadID)
{
    id = id * samplingDistance;
    // Boundary check
    if (any(id + 1 >= Dims.xyz)) return;

    // Voxel samples at each cube vertex
    float4 samples[8];
    for (uint i = 0; i < 8; i++)
        samples[i] = VoxelValueWithGradient(id + CubeVertex(i));

// ...
}

and modifying the threadgroups by this samplingDistance:
   int samplingDistance = 1;
    void RunCompute(ComputeBuffer voxels, float target, float scale)
    {
        _counterBuffer.SetCounterValue(0);

        var downSampledGrids = new Vector3Int(_grids.x / samplingDistance, _grids.y / samplingDistance, _grids.z / samplingDistance);

        // Isosurface reconstruction
        _compute.SetInt("samplingDistance", samplingDistance);
        _compute.SetInts("Dims", downSampledGrids );
        _compute.SetInt("MaxTriangle", _triangleBudget);
        _compute.SetFloat("Scale", scale);
        _compute.SetFloat("Isovalue", target);
        _compute.SetBuffer(0, "TriangleTable", _triangleTable);
        _compute.SetBuffer(0, "Voxels", voxels);
        _compute.SetBuffer(0, "VertexBuffer", _vertexBuffer);
        _compute.SetBuffer(0, "IndexBuffer", _indexBuffer);
        _compute.SetBuffer(0, "Counter", _counterBuffer);
        _compute.DispatchThreads(0, downSampledGrids );

        // Clear unused area of the buffers.
        _compute.SetBuffer(1, "VertexBuffer", _vertexBuffer);
        _compute.SetBuffer(1, "IndexBuffer", _indexBuffer);
        _compute.SetBuffer(1, "Counter", _counterBuffer);
        _compute.DispatchThreads(1, 1, 1, 1);

        // Bounding box
        var ext = new Vector3(_grids.x, _grids.y, _grids.z) * scale;
        _mesh.bounds = new Bounds(Vector3.zero, ext);
    }

Sorry, I can't understand your point. Isn't it just increasing dimensions count?

Does this also work for Volumes (instead of noise)? That's our case we are trying to solve right now

You should increase the resolution of the volume data (I think that's what the author said in the article).

I'm closing this issue now. Please reopen it for further problems.


Business Capabilities first draft

Business Capabilities identified, including stratifying them by Strategic, Core and Supporting Capabilities.   Some definitions
Hand cranked HTML without the ability to view the output, so fingers crossed!

It is difficult to see the structure in this. H2 should always be the highest level of header in these content pages. The html table has no closing tags. I would suggest using headings / sub-headings to split up the long lists.


fix: update register api log

saas and rest-api auth register fail , use tracing::error!

@fan-tastic-z This is not something you want to be tagged as an error.
Let's say that this error shipped into your logging system. and you have users that log in with the wrong user/pass.
which action do you need to take?

@fan-tastic-z, tagged as an error in this situation, does not look like something we want to see as an error. Imagine this error entering your logging system and users attempting to log in with incorrect credentials.
What course of action would you be going to do?

@kaplanelad When I use loco to develop, I call the interface for registered users. When the registration fails, the interface returns no error message, but the log shows info. Is it better to use error? Easier to troubleshoot where the problem is

@fan-tastic-z, tagged as an error in this situation, does not look like something we want to see as an error. Imagine this error entering your logging system and users attempting to log in with incorrect credentials.
What course of action would you be going to do?

Regardless of whether the registration is successful or failed, the return of the interface is like this

@fan-tastic-z, the resignation function currently invokes create_with_password, which, in turn, returns an error also if the user already exists.
in this case, this is not a real error that you have something todo (and you don't want to return an error for a security reason).
The code is present in the starter templates, allowing users the flexibility to modify and handle according to their preferences. Currently, the login is set to log information as per the design.

@fan-tastic-z, the resignation function currently invokes create_with_password, which, in turn, returns an error also if the user already exists. in this case, this is not a real error that you have something todo (and you don't want to return an error for a security reason).
The code is present in the starter templates, allowing users the flexibility to modify and handle according to their preferences. Currently, the login is set to log information as per the design.

@kaplanelad Got it, thank you for your answer


Fix CI not passing after merge

This should have the same functionality, but fix the failures in CI that happens after merging the PR.

PR checklist

[ ] This comment contains a description of changes (with reason).
[ ] If you've fixed a bug or added code that should be tested, add tests!
[ ] If you've added a new tool - have you followed the pipeline conventions in the contribution docs
[ ] Make sure your code lints (nf-core pipelines lint).
[ ] Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
[ ] Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
[ ] Usage Documentation in docs/usage.md is updated.
[ ] Output Documentation in docs/output.md is updated.
[ ] CHANGELOG.md is updated.
[ ] README.md is updated (including new tool citations and authors/contributors).

This is how they did it in https://github.com/nf-cmgg/germline, and it looks like we have green ticks everywhere now https://github.com/genomic-medicine-sweden/nallo/actions/runs/11852272430.
I'll keep an eye on it though.


Integrate HTTP Error Handler + factorize the way to filter the result

related to #5

should fix the issue you had @juliusv when prometheus wasn't reachable.

:+1: Thanks! :)


ISPN-14847 First internal implementation for Lists

https://issues.redhat.com/browse/ISPN-14847

@wburns any thoughts on the direction this is taking ?

@jabolina fixed all

@jabolina @wburns I updated the PR with stuff we discussed yesterday and the review

@wburns sorry I forgot to rollback bucket class that needs to remain as it is now

@wburns I added more coverage


[Big Sur] scripting-sa and SIP issue

Hi!
I'm running macOS Big Sur, I've disabled SIP
❯ csrutil status
System Integrity Protection status: disabled.

I've installed  scripting-addition
Freshly after sudo yabai --instal-sa echo $? returns 0
But right after trying to run a command to i.e focus into another space I'm getting a message:
cannot focus space due to an error with the scripting-addition.

After that message echo $? returns 1.

I was also having the same issue, doing the following from #712 worked to fix this
sudo yabai --uninstall-sa
sudo yabai --install-sa
sudo yabai --load-sa

This also worked to fix another issue I was having with the borders disappearing behind the active window.
I think it has to do with the last command there, since the installation instructions don't mention that command.

@koekeishiya didn't mention that you should run sudo yabai --load-sa after sudo yabai --install-sa at your first timie installation.

@wrongsyntax @yanzhang0219 thanks!
Worked like a charm :)
Closing issue for now


⚠ Beamable Calendars (Basic) has degraded performance

In c7d260b, Beamable Calendars (Basic) (https://api.beamable.com/object/calendars/platform/docs) experienced degraded performance:

HTTP code: 503
Response time: 13047 ms

Resolved: Beamable Calendars (Basic) performance has improved in 1da780c after 9 minutes.


New Package: Focusky-4.8.001

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/110504&drop=dogfoodAlpha

@Trenly


blocksToErode=-1 to discourage overlapping

blocksToErode behaviour is defined here:
https://github.com/CivMC/Bastion/blob/c9b709f4ac56517d981aec5119bf33f023fc435a/paper/src/main/java/isaac/bastion/manager/BastionBlockManager.java#L113
Setting blocksToErode=1 means 1 randomly chosen bastion from overlapping bastions takes damage per place, while blocksToErode<0 means all bastions from overlapping bastions take damage.
This was the case in Devoted and was also the case in CivClassic, but default Bastion config.yml has blocksToErode=1.
https://github.com/CivClassic/AnsibleSetup/blob/master/templates/public/plugins/Bastion/config.yml.j2
Will make PR in Bastion plugin to reflect the standard of discouraging overlap.

Excellent spot

Already a thing, just wasn't reflected in the config as the one used is private.


Change of the battery symbol according to charging status

Hey there!
Is it possible to change of the battery icon according to the charging status?
(10% = mdi:battery-10, 20% = mdi:battery-20, and so on..., 100% = mdi:battery)
That would be nice.
Thanks in advance!

Hi there @Malekith83  👋,
I was thinking about an implementation using a sensor with the device _class battery already some time ago and just never got around to it. Another option would be to use a entity attribute to define the battery level.
Let me know what would be your prefered way.
Take care and stay safe!

It's good idea for battery "Color Settings" value "zero" to be changeable.

@Malekith83 how did you achieve this %-value?
i tried with secondary-info-entity within the battery-entity but it didn't work for me!?
what's wrong here?
thanks
'  - decimals: 2
display_abs: true
name: battery
unit_of_display: W
consumer: true
icon: mdi:battery-outline
producer: true
entity: sensor.holdingRegisters_40070_Batterie_Leistung
preset: battery
invert_arrow: true
secondary-info-entity: sensor.holdingRegisters_40083_Batterie_SOC

Hi Mistergyle,
Based on your naming of the second entity, I assume that you are using register number 40083 in your sensor configuration. Try 40082, that's what I use.
BR Malekith83

Hi there @Malekith83 👋,
I was thinking about an implementation using a sensor with the device _class battery already some time ago and just never got around to it. Another option would be to use a entity attribute to define the battery level. Let me know what would be your prefered way.
Take care and stay safe!

Hi JonahKr,
It would be great if the battery icon would change automatically to the value of the battery % and state. Something like that:
Value "battery_power" W = 0 AND value "battery_charge" % = 0 then icon = mdi:battery-outline
Value "battery_power" W = 0 AND value "battery_charge" % = 100 then icon = mdi:battery
Value "battery_power" W = positive number AND value "battery_charge" % <= 100 then Icon = mdi:battery-positive
Value "battery_power" W = negative number AND value "battery_charge" % <= 100 then Icon = mdi:battery-negative
BR Malekith83

Hi Mistergyle,
Based on your naming of the second entity, I assume that you are using register number 40083 in your sensor configuration. Try 40082, that's what I use.
BR Malekith83

40082 = Autarkie&Eigenverbrauch > doesn't fit...
40083 = SOC (battery level), should be correct in my opinion!?


Triggering click on a label for an element does not trigger click on that element

Version
1.0.0-beta.19
Reproduction link
localhost:3000
Steps to reproduce
<label id='lbl' for='btn'>label</label>
  <button id='btn' @click='clicked'>btn</button>

const wrapper = mount(component)
wrapper.find('#lbl').trigger('click')

What is expected?
Button @click will be called, mirroring browser functionality
What is actually happening?
Click event does not follow label-for

trigger is a wrapper around creating a synthetic DOM event and dispatching it on an element. If you dispatch a synthetic click event on a label, the click handler on the button won't fire:
Here's an example: https://codepen.io/anon/pen/XYPQMW
The only suggestion I have is to trigger the click on the button instead.

I'm having the same issue testing a checkbox input. Clicking on the label does not select the checkbox, and my use case specifically needs that to be tested.

Maybe not what are hoping for, but what if did this instead:
const wrapper = mount(component)
wrapper.find('#lbl').element.click()

I'm having the same issue testing a checkbox input. Clicking on the label does not select the checkbox, and my use case specifically needs that to be tested.

Maybe not what are hoping for, but what if you did this instead:
const wrapper = mount(component)
wrapper.find('#lbl').element.click()

@phobetron can you create a minimal reproduction and open a new issue?

I had a similar issue where triggering a click event on the label wouldn't emit a change event from the input. The solution was to install the jest-environment-jsdom-fifteen npm module and add
testEnvironment: 'jest-environment-jsdom-fifteen'

to jest.config.js

I am facing the same issue as shown below:
RadioComp
<label  :class="classes" :for="name">     <input       :id="name"       type="radio"       :checked="checked"       :disabled="disabled"       :name="name"       :value="value"       @change="$emit('change', value)"     /> </label>
Test:
  it("can send the value on change", () => {     const wrapper =  mount(RadioComp, {     propsData: {       disabled: disabled || false,       name: "foo",       data: [{ text: "foo", value: "foo" }]     },   });     wrapper.find(LABEL_SELECTOR).trigger("click");     expect(wrapper.emitted("change")[0]).toStrictEqual(['foo']);   });
Facing error: TypeError: Cannot read property '0' of undefined

make attachTo 'body' when use mount

mount({}, {
  attachTo: 'body',
})

make attachTo 'body' when use mount


add namespace to deployment and service account templates

pr for issue: #326
Added namespace to the deployment and Service account chart templates so helm template --include-crds --output-dir ./output_dir deploy/charts/external-secrets will generate k8s resources with the supplied namespace. If no namespace is provide the helm will default the namespace to default preserving the current functionality.

LGTM :)

/approve

/merge


Remove httpRoute type from Radius

Description
This change removes the httpRoute type. We've already removed this from documentation and samples and so this is the final removal.
Feels good :+1:
Type of change

This pull request adds or changes features of Radius and has an approved issue (issue link required).

Fixes: #6099

looks like port is not populated correctly.
"message": "failed to obtain environment variables and secret data: failed to parse source URL: address http-back-ctnr-simple1: missing port in address"

2024/03/18 16:47:10 Start streaming Kubernetes logs - Pod ctnr-sidecar-795b8fc884-gg8bx is in state: Failed
    cli.go:418: [rad] Building /home/runner/work/radius/radius/test/functional/shared/resources/testdata/corerp-resources-application-graph.bicep...
    cli.go:418: [rad] Deploying template '/home/runner/work/radius/radius/test/functional/shared/resources/testdata/corerp-resources-application-graph.bicep' into environment 'kind-radius' from workspace 'kind-radius'...
    cli.go:418: [rad]
    cli.go:418: [rad] Deployment In Progress...
    cli.go:418: [rad]
    cli.go:418: [rad] Error: {
    cli.go:418: [rad]   "code": "DeploymentFailed",
    cli.go:418: [rad]   "message": "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
    cli.go:418: [rad]   "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Microsoft.Resources/deployments/rad-deploy-fba08a7b-9771-4895-af7f-2453ca3008f8",
    cli.go:418: [rad]   "details": [
    cli.go:418: [rad]     {
    cli.go:418: [rad]       "code": "OK",
    cli.go:418: [rad]       "message": "",
    cli.go:418: [rad]       "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/applications/corerp-application-simple1"
    cli.go:418: [rad]     },
    cli.go:418: [rad]     {
    cli.go:418: [rad]       "code": "OK",
    cli.go:418: [rad]       "message": "",
    cli.go:418: [rad]       "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/containers/http-back-ctnr-simple1"
    cli.go:418: [rad]     },
    cli.go:418: [rad]     {
    cli.go:418: [rad]       "code": "ResourceDeploymentFailure",
    cli.go:418: [rad]       "message": "Failed",
    cli.go:418: [rad]       "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/containers/http-front-ctnr-simple1",
    cli.go:418: [rad]       "details": [
    cli.go:418: [rad]         {
    cli.go:418: [rad]           "code": "Internal",
    cli.go:418: [rad]           "message": "failed to obtain environment variables and secret data: failed to parse source URL: address http-back-ctnr-simple1: missing port in address"
    cli.go:418: [rad]         }
    cli.go:418: [rad]       ]
    cli.go:418: [rad]     }
    cli.go:418: [rad]   ]
    cli.go:418: [rad] }
    cli.go:418: [rad]
    cli.go:418: [rad] TraceId:  633afd4fef6368507accf9e43e03f5da
    cli.go:418: [rad]
    cli.go:418: [rad]
    deployexecutor.go:[83](https://github.com/radius-project/radius/actions/runs/8330234023/job/22794667394#step:26:84):
        	Error Trace:	/home/runner/work/radius/radius/test/step/deployexecutor.go:83
        	            				/home/runner/work/radius/radius/test/functional/shared/rptest.go:313
        	Error:      	Received unexpected error:
        	            	code DeploymentFailed: err At least one resource deployment operation failed. Please see the details for the specific operation that failed.
        	Test:       	Test_ApplicationGraph/deploy_testdata/corerp-resources-application-graph.bicep
make: *** [build/test.mk:78: test-functional-shared] Error 1
        	Messages:   	failed to deploy deploy testdata/corerp-resources-application-graph.bicep
    --- FAIL: Test_ApplicationGraph/deploy_testdata/corerp-resources-application-graph.bicep (18.41s)

missing port in address

I remember there used to be logic to set port to 80 if scheme is http. Taking a look.

looks like port is not populated correctly.
"message": "failed to obtain environment variables and secret data: failed to parse source URL: address http-back-ctnr-simple1: missing port in address"

2024/03/18 16:47:10 Start streaming Kubernetes logs - Pod ctnr-sidecar-795b8fc884-gg8bx is in state: Failed
    cli.go:418: [rad] Building /home/runner/work/radius/radius/test/functional/shared/resources/testdata/corerp-resources-application-graph.bicep...
    cli.go:418: [rad] Deploying template '/home/runner/work/radius/radius/test/functional/shared/resources/testdata/corerp-resources-application-graph.bicep' into environment 'kind-radius' from workspace 'kind-radius'...
    cli.go:418: [rad]
    cli.go:418: [rad] Deployment In Progress...
    cli.go:418: [rad]
    cli.go:418: [rad] Error: {
    cli.go:418: [rad]   "code": "DeploymentFailed",
    cli.go:418: [rad]   "message": "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
    cli.go:418: [rad]   "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Microsoft.Resources/deployments/rad-deploy-fba08a7b-9771-4895-af7f-2453ca3008f8",
    cli.go:418: [rad]   "details": [
    cli.go:418: [rad]     {
    cli.go:418: [rad]       "code": "OK",
    cli.go:418: [rad]       "message": "",
    cli.go:418: [rad]       "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/applications/corerp-application-simple1"
    cli.go:418: [rad]     },
    cli.go:418: [rad]     {
    cli.go:418: [rad]       "code": "OK",
    cli.go:418: [rad]       "message": "",
    cli.go:418: [rad]       "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/containers/http-back-ctnr-simple1"
    cli.go:418: [rad]     },
    cli.go:418: [rad]     {
    cli.go:418: [rad]       "code": "ResourceDeploymentFailure",
    cli.go:418: [rad]       "message": "Failed",
    cli.go:418: [rad]       "target": "/planes/radius/local/resourceGroups/kind-radius/providers/Applications.Core/containers/http-front-ctnr-simple1",
    cli.go:418: [rad]       "details": [
    cli.go:418: [rad]         {
    cli.go:418: [rad]           "code": "Internal",
    cli.go:418: [rad]           "message": "failed to obtain environment variables and secret data: failed to parse source URL: address http-back-ctnr-simple1: missing port in address"
    cli.go:418: [rad]         }
    cli.go:418: [rad]       ]
    cli.go:418: [rad]     }
    cli.go:418: [rad]   ]
    cli.go:418: [rad] }
    cli.go:418: [rad]
    cli.go:418: [rad] TraceId:  633afd4fef6368507accf9e43e03f5da
    cli.go:418: [rad]
    cli.go:418: [rad]
    deployexecutor.go:[83](https://github.com/radius-project/radius/actions/runs/8330234023/job/22794667394#step:26:84):
        	Error Trace:	/home/runner/work/radius/radius/test/step/deployexecutor.go:83
        	            				/home/runner/work/radius/radius/test/functional/shared/rptest.go:313
        	Error:      	Received unexpected error:
        	            	code DeploymentFailed: err At least one resource deployment operation failed. Please see the details for the specific operation that failed.
        	Test:       	Test_ApplicationGraph/deploy_testdata/corerp-resources-application-graph.bicep
make: *** [build/test.mk:78: test-functional-shared] Error 1
        	Messages:   	failed to deploy deploy testdata/corerp-resources-application-graph.bicep
    --- FAIL: Test_ApplicationGraph/deploy_testdata/corerp-resources-application-graph.bicep (18.41s)

Looks like we only have containerPort specified in the test bicep, in which case the service port == container port. So we have to have the source specify :3000 or add a port attribute to the service providing container.
 if port.Port == 0 {
			port.Port = port.ContainerPort
			properties.Container.Ports[portName] = port
		}

Looks like we only have containerPort specified in the test bicep, in which case the service port == container port. So we have to have to specify :3000 as part of source url or add a port attribute to the service providing container.
 if port.Port == 0 {
			port.Port = port.ContainerPort
			properties.Container.Ports[portName] = port
		}

Thanks for helping investigate 👍 I'll address then when I get back from 🇫🇷

@nithyatsu @ytimocin - can you rereview?

looks great to me.


Convert method config to a struct for use in the fast path.

This addresses the last comment from @ctiller in #8303.  It is part of addressing #7818.

Merge at will.


Compare sources using source's root

What was the end-user problem that led to this PR?
Given a setup where:

A project's Gemfile makes use of another project's Gemfile and the eval_gemfile method to share the dependencies.  Something like:

# project_plugin's Gemfile

eval_gemfile(File.expand_path("../../main_project/Gemfile", __FILE__))

The main project includes a path gem in it that is nested in the main project:

# main_project's Gemfile
gem "foo_gem", :path => "vendor/foo_gem"

A bundle install is followed by a bundle install --deployment, the second of which triggers a comparison of the lockfile.sources and the Bundler.definition

A error will occur when comparing the specs, saying the the "foo_gem" source has been deleted:
$ bundle install
...
$ bundle install --deployment
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

the gemspecs for path gems changed

You have deleted from the Gemfile:
* source: source at `../main_project/vendor/foo_gem`

What was your diagnosis of the problem?
(extracted from the commit message)
When doing the following:
expand(other.original_path)

inside a Bundler::Source::Path instance, the @root_path from the instance that is having eq? called on it, the the other instance's root_path.  This, in obscure cases, can cause a bug when you are doing an nested eval_gemfile or other calls when comparing the lockfile's locked path sources to the Bundler.definition's path sources.
What is your fix for the problem, implemented in this PR?
Use a new public method, Bundler::Source::Path#expanded_original_path, in the eq? method instead of using's the instance's #expand method.
Why did you choose this fix out of the possible options?
(extracted from the commit message)
Creating the expanded_original_path method allows a public interface to be made available (and doesn't mess with any exiting functionality) that allows comparing the source path of one Source::Path's expand_path to another, where each uses their own root_path to resolve their full path, instead of sharing the base one and causing edge case bugs

@segiddins pinging you only because you have touched this file recently... sorry if this is a bother
Wanted to add a test for this change, but wasn't sure the best spot to add it... have any suggestions on where to put it?

spec/install/gemfile/eval_gemfile_spec.rb ?

@segiddins Added a unit test in there as well that contains a few light tests for the eql? method specifically.  Let me know if you would prefer that one omitted and I can remove it.  Thanks.

Thanks!
@bundlerbot r+