[Ubuntu] Could not find directory of OpenSSL installation

Running ./setup_web.sh produces the following error:
  thread 'main' panicked at '

  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

  Make sure you also have the development packages of openssl installed.
  For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at https://github.com/sfackler/rust-openssl
  and include information about your system as well as this message.

  $HOST = x86_64-unknown-linux-gnu
  $TARGET = x86_64-unknown-linux-gnu
  openssl-sys = 0.9.65

Adding libssl-dev to the list of required packages on Linux, in README.md, could be useful to avoid this error.

Thanks!


Reacton is Awesome

This project has already saved me a bunch of time building complex Jupyter UIs. I just wanted to say thanks!

Hi Brandan,
sorry for not replying earlier, I didn't know notifications for this repo was turned off for me.
Would love to see some of you work if possible!
Regards,
Maarten Breddels

I'd be happy to show what we're up to. I'll fill out the contact form on your website.

Thanks Angus,
yes, I've spoken to @rmorshea about it and mentioned idom in my article https://maartenbreddels.medium.com/advance-your-ipywidget-app-development-with-reacton-6734a5607d69

🙏


Advance Status Support

Currently it's very hard to get visibility into what the Forked Process is doing.
The only status available is from the service looking at the PID file via the is_running() function.
Imagine you need a service that has multiple threads, I want to expose how many threads are running by issuing the status call to main service status.
Or that I want to expose 1min, 5min, 60min counter values for the service itself.
Is there currently a way to do this? Am I missing something?
If not, is there a way to make the service listen on a socket for status reporting purposes.
Something like this: https://searchcode.com/codesearch/view/574564/

There is no built-in functionality for communication with the daemon, so you need to implement that yourself. Sockets are a typical approach, but you can also use named pipes or other methods of interprocess communication (IPC).


Fixes to catch changes to versioned rules as well as rules going NOT-APPLICABLE

Please see the commit messages for more details.

deps: Update CO so that it supports showNotApplicable: just bumps the CO version. Unfortunately, I was unable to bump to the latest version, because then we get conflicts with the cluster-authentication-operator deps. But this version bump at least unblocks us.
helpers: Enable showNotApplicable checks: Adjusts the scanSetting so that we also at least consider check results that are N/A
helpers: Fail if there is no test result YAML file for current version, but exists for other versions: Helps catch results where we used to have per-version manifests, but not for the current version.
helpers: Fix looking for versioned rules - what it says on the box

btw it is expected that the tests will fail at the moment until we merge https://github.com/ComplianceAsCode/content/pull/8996

btw it is expected that the tests will fail at the moment until we merge ComplianceAsCode/content#8996

but I did verify that the tests pass using a content that includes that fix. At least we'll be able to verify that fix nicely going from red to green.

Oops, I was wrong, there is a bug:
 # github.com/ComplianceAsCode/ocp4e2e [github.com/ComplianceAsCode/ocp4e2e.test]
./helpers.go:913:17: undefined: os.ReadDir
note: module requires Go 1.16

btw the known issue note looks good!

ah, that's because:
INFO[2022-06-28T13:15:08Z] Tagging openshift/release:golang-1.15 into pipeline:root.

ah, that's because:
�[36mINFO�[0m[2022-06-28T13:15:08Z] Tagging openshift/release:golang-1.15 into pipeline:root.

Sorry, this was meant for a different PR.

No, sorry, I need more coffee and/or more sleep.  The known issue comment was meant for a different PR. The build issue should be fixed with https://github.com/openshift/release/pull/29943

/retest


Special cases++

Add more special cases to make the TZ list cleaner

Coverage decreased (-0.61%) to 97.52% when pulling d87b1edc7a60c788690b05bf20d87217d9310582 on specialCases++ into d4084807a108f98636cad75f77f3aef0698b1c2f on master.

:+1:

:+1:


怎么对score设阈值来定位缺陷区域

你好 得到score后，怎么确定缺陷的阈值

Hi! You can set the segmentation threshold via the max F1 score criteria. Or you may try to set a threshold manually. The anomaly score distribution in the result directory 'result/<exp_name>/imgs' may be beneficial to manual selection. Thanks!

好的 谢谢


Code text is too low contrast

Short code text is too low contrast. (when there’s a light gray box around monospaced text) When text is on a gray background, make the text this color: #15203C.
example of text that is too low contrast:

@Michael-Grover can I take this one?

@m4tr1k yes, thank you!

thanks @m4tr1k


drivers: dma: mcu: edma: fix driver build failure

This commit fixes #81171

Hi @jilaypandya, thank you for your effort. Your PR will fix the issue on s32z2xxdc2 but it will cause another issue on SoCs that have edma or edmav4. I have submitted the alternative PR here: https://github.com/zephyrproject-rtos/zephyr/pull/81193


dependency: bump js-file-download from 0.4.9 to 0.4.10 (redoing undone update) (#294) + DAR Updates (Step 1&2)

@solideoglori It would be cleaner if you just included your changes for DUOS-482 and not worry about mixing in the dependabot one. Dependabot will re-file a new PR for the update as soon as it finds that it's out of date.


Update ptrs branch

I've finished off the reflectx ptrs branch. As far as I'm concerned, this branch is ready for use (we've already been using the earlier versions in production at Pressly).
This PR updates:

Renaming field to FieldInfo
Renaming fields to StructMap
Yes, both FieldInfo and StructMap are exported since we return them from other exported functions. As well, libraries that do struct tag gymnastics can also interact with FieldInfo then
Implemented FieldMap method for completeness and added test case
Ran benchmarks of master vs ptrs for sqlx and reflectx, and they are almost identical
Added a test case and example in sqlx for a join query related to issue #131

Hello,
I know this is old but this PR has some breaking changes... I haven't identified what it is yet but I'm been trying trying to find the latest PR merge compatible with my project and this after this PR, my tests break.
Unless there is undocumented BC, would you mind to have a look and see what could break in there?
Thanks!


Incrementing minor version number to 0.3.4

Current coverage is 99.41% (diff: 100%)

Merging #262 into master will not change coverage

@@             master       #262   diff @@
==========================================
  Files            23         23
  Lines          1709       1709
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1699       1699
  Misses           10         10
  Partials          0          0

Powered by Codecov. Last update 7ee159d...89b5ce6


OTA via web

OTA via web
feature to do OTA via web update firmware remotely

When bin2 is updated, promo rates config will be reset please backup it before firmware upgrade


FIX Arbitrary Code Execution in Tensorpack

📊 Metadata *
gita helps to Manage multiple git repos with sanity.
Bounty URL: https://www.huntr.dev/bounties/1-pip-tensorpack/
⚙ Description *
Vulnerable to YAML deserialization attack caused by unsafe loading.
💻 Technical Description *
Fixed by avoiding unsafe loader.
🐛 Proof of Concept (PoC) *
Create the following PoC file:
exploit.py
import os
import pickle
#os.system('pip3 install tensorpack')
from tensorpack.utils import serialize
#payload formation
class ArbitraryCode:
    def __reduce__(self):
        cmd = ('echo TEST')
        return os.system, (cmd,)
dumps = pickle.dumps(ArbitraryCode())
serialize.PickleSerializer.loads(dumps)

pip3 install tensorpack
python3 exploit.py
Execute the commands in another terminal:
TEST will echoed in terminal.

🔥 Proof of Fix (PoF) *

After fix it will not popup a calc.
👍 User Acceptance Testing (UAT)
After fix functionality is unaffected.
🔗 Relates to...
https://www.huntr.dev/bounties/1-pip-tensorpack/

👋 Hello, @ppwwyyxx - @b1nslashsh has opened a PR to us with a fix for a potential vulnerability in your repository. To view the vulnerability, please refer to the bounty URL in the first comment, above.
Ultimately, you get to decide if the fix is 👍 or 👎. If you are happy with the fix, please write a new comment (@huntr-helper - LGTM) and we will open a PR to your repository with the fix. All remaining PRs for this vulnerability will be automatically closed.
If you have any questions or need support, come and join us on our community Discord!
@ppwwyyxx & @b1nslashsh - thank you for your efforts in securing the world’s open source code! 🎉

👋 Hello, @ppwwyyxx - @b1nslashsh has opened a PR to us with a fix for a potential vulnerability in your repository. To view the vulnerability, please refer to the bounty URL in the first comment, above.
Ultimately, you get to decide if the fix is 👍 or 👎. If you are happy with the fix, please write a new comment (@huntr-helper - LGTM) and we will open a PR to your repository with the fix. All remaining PRs for this vulnerability will be automatically closed.
If you have any questions or need support, come and join us on our community Discord!
@ppwwyyxx & @b1nslashsh - thank you for your efforts in securing the world’s open source code! 🎉

hey @ppwwyyxx ,
any update on this?
regards
muhaimin


I hope it would do my dishes, was my car...but if it is not possible ;-) ....
I like to use it as a door bell and fire alarm.
So it would be nice ..

if my smoke detector  detects smoke I can set a "Melody" and "Volume".
If someone is pushing the door bell knob, it  set a "Melody" and  "Volume".

It also would be great if humidity and temp ready work.
for me personally I would not use the humidity_alarm, temperature_alarm...If I need it, I can creat this function in domoticz.
Thanks!!!!!

Do expect something ...do I have to deliver some information?
Thanks again!

Added support for temperature and humidity sensors and alarm and volume control. Could you please check.
What are the valid values for melody param?

Wow great!!!
I will test it this week

I found here that the melody can be set from 1-18 :
https://github.com/Koenkk/zigbee2mqtt/issues/3749
(last post)

I tried it out, it is allmost perfect!
There are 2 issues.

When I push the on or off button it takes 4-5 sec till it activate/disable the device. (It   takes 4-5 sec. before I also see the message in zigbee2mqtt)
Missing the melody select box ;-)

Thanks, what a great job!!!

Added support for temperature and humidity sensors and alarm and volume control. Could you please check.
What are the valid values for melody param?

Hi  stas-demydiuk,
Do you need some more info from me?

Could you please update plugin and check for melody support

Could you please update plugin and check for melody support

I have tried it out, it works great!
The only thing is that every command I send from Domoticz it takes 2 seconds.
So if I activate this alarm in Domoticz, it take 2 seconds for it is recieved in Zigbee2mqtt. Is there a fix for?
Thanks for the great work!

Just do some Blockly testingen ...there are some issues.

To select melody, I need to use %level. =0 melody 1, 10=melody 2, 20= etc..
I'm to able to select higer then level=100%...so I cant select melody 12 and higher.

Mostly it thakes more then 2 seconds till the alarm and/or Melody sets in.
And many times is doesn't sound add all.

sorry !!!
Thnaks a lot!

Unfortunately, it isn't connected to the plugin, it probably relates to the device or to Zigbee network connectivity

"To select melody, I need to use %level. =0 melody 1, 10=melody 2, 20= etc..
I'm to able to select higer then level=100%...so I cant select melody 12 and higher."
Can you make the staps  1-18 and no 0-10-20-30?
That will fix the first issue.

The second issue I will post on zigbee2mqtt.
Thanks again!!

I'm missing a "duration" setting. When siren is triggered it seems to default to about 10-12 seconds and then turn it self off. I would like a way to set it to more.

I am using:
zigbee2mqtt version 1.16.2-dev commit: fb4b014
coordinator type zStack3x0
coordinator revision 20201113
frontend version 0.2.108
And the latest version of the plugin, but the 'Alarm' device does not function, it is created as an On/Of switch but Zigbee expects boolean.

Do you see any errors in Domoticz Log?

No, not on this devices. My only errors are:
2020-12-30 18:42:05.416 Error: (Zigbee) UPS: can not process numeric item "energy" 2020-12-30 18:42:05.416 Error: (Zigbee) UPS: can not process binary item "power_outage_memory" 2020-12-30 18:42:05.419 Error: (Zigbee) Hobbykamer: can not process binary item "battery_low"
The 'UPS' device is a ZNCZ02LM and the Hobbykamer is a SEA801-Zigbee/SEA802-Zigbee

battery_low support will be added in the scope of another issue, closing this one

battery_low support will be added in the scope of another issue, closing this one


I cried.

This is amazing.

Never late to the party! Right…?

Aw, thanks @Lonami! 💞

This is good. All of this is good.
Not sure if this is the right place, but some people with bad CompSci scores kinda want a way to make a dialog tree EXACTLY like this.

I know I'm late to the party (I didn't know where else to send feedback about this game), but being a pansexual transgender woman, I was really hit by your story.
I was lucky, my parents were open and supportive, both when I said I was with a boy, and when I said I was trans. But I know this kind of parents do exist, I did (and still do) endure transphobia and homophobia anyway, and it was really hard to read the parent's reactions to my answers here.
I hope it got better in the end like you said at the game's end
Thank you for your work <3

I concur with all the above encouragement.
Amazing work, really.


Added TouchBar functionality

Thanks a lot fo the plugin! I just changed a tiny bit of the package.json to give MacBook users Touch Bar functionality for the pause, play, forward, back, and shuffle commands.
looks like this

I wanted the pause and play to be in between the forward and back but I can't seem to get the order to change. The Touch Bar API is pretty basic so that's too bad

@imcquee Oh man, this is awesome! Sorry for the late reply, you'd think that GitHub would notify you of PRs on your own repositories 🙄. Verified the changes on my personal MacBook & looks good to merge. I'll get this cleaned up and published tonight.

@nbd9 thanks a lot. This plugin is a godsend to me I really appreciate you making this available. Thanks for adding the functionality!


Improve descriptions when using grouping

Taken from https://github.com/cesarParra/apexdocs/issues/45#issuecomment-1127801984. See that issue for more details
On @start-group/@end-group:
This works fine:
// @start-group Special Metadata Names
public static final String WILDCARD_SOURCE = 'CodeControl_Default';
public static final String SYSTEM_WIDE_SOURCE = 'CodeControl_Override';
// @end-group

And produces:
Special Metadata Names

SYSTEM_WIDE_SOURCE → String
WILDCARD_SOURCE → String

BUT, changing // @start-group ... to /** start-group ... */ does not:
/** @start-group Special Metadata Names */
public static final String WILDCARD_SOURCE = 'CodeControl_Default';
public static final String SYSTEM_WIDE_SOURCE = 'CodeControl_Override';
/** @end-group */

That produces:
Other

SYSTEM_WIDE_SOURCE → String
WILDCARD_SOURCE → String

Which is probably okay, but since all other directives work with the Javadoc prefix (/**) it is a bit of an exception.
Also @description does not work with either the constants or the group. For example:
// @start-group Special Metadata Names
/** @description Wildcard and Override Settings are only used for Logging and Trigger control.*/
public static final String WILDCARD_SOURCE = 'CodeControl_Default';
public static final String SYSTEM_WIDE_SOURCE = 'CodeControl_Override';
// @end-group

I suppose you could read that @description as either describing the group (which I'd prefer) or WILDCARD_SOURCE, but either way, it did not appear in the output. I tried several variations of comment styles and locations without success. My suggestion is to support two types of description - A description in the same comment block as @start-group is a group-level description, and a standalone comment is a property-level description
/** @start-group Special Metadata Names
 *  @description Wildcard and Override Settings are only used for Logging and Trigger control.
 */

/** @description Overrides all metadata */
public static final String WILDCARD_SOURCE = 'CodeControl_Default';
/** @description Used if no matching metadata found */
public static final String SYSTEM_WIDE_SOURCE = 'CodeControl_Override';
/** @end-group */

would produce:
Special Metadata Names
Wildcard and Override Settings are only used for Logging and Trigger control.
Overrides all metadata

SYSTEM_WIDE_SOURCE → String
Used if no matching metadata found
WILDCARD_SOURCE → String

Or even better, allow in-line comments to appear in-line in the output:
/** @start-group Special Metadata Names
 *  @description Wildcard and Override Settings are only used for Logging and Trigger control.
 */

public static final String WILDCARD_SOURCE = 'CodeControl_Default'; /** @description Overrides all metadata */
public static final String SYSTEM_WIDE_SOURCE = 'CodeControl_Override'; /** @description Used if no matching metadata found */
/** @end-group */

Producing:
Special Metadata Names
Wildcard and Override Settings are only used for Logging and Trigger control.

SYSTEM_WIDE_SOURCE → String : Overrides all metadata
WILDCARD_SOURCE → String :  Used if no matching metadata found

Please re-open; this was a feature request that hasn't been implemented yet.  It's not stale, just not prioritized.

Added with release 2.11.0.
Groups can now be started and ended with /** */ comments. When starting the group, an @description can also be provided and that will be used as the group's description.
Any following /** */ after that will be used for the member (field, property, method, etc.) of the group, so it'd look like this:
    /**
     * @start-group This is a group
     * @description This is the group's description
     */

    /** @description Description for a member of the group */
    public static final String inGroup2;

    /** @description Description for the other member **/
    public static final String anotherInGroup2;

    /** @end-group */


Fork glam to remove a panic assert

Depends on #40 .
Not sure if/how you want to handle any 3D transforms.
Currently you are squashing Z (scale.z=0) which sounds foolproof, except glam foolproofs as well by panicking...
Alternatives : switch to 2D (Mat3), or forward: scale.z=1.
P.S: The panic was triggered on the page with the crab image. Would be nice to be able to skip to it.
P.S: I don't know if new PR to edit a previous one is the conventional github workflow, feel free to correct.
P.S: Are you testing only in release mode, that you did not catch this ?

Thank you for the catch!
I have applied the scale.z =  1 fix in #40. This way we do not need to wait for a new release of glam.

Alternatives : switch to 2D (Mat3)

Yes, this would be more efficient. I do something like that in coffee. For now, a Mat4 gets the job done and we should be able to switch to a Mat3 anytime because Transformation is opaque.

Are you testing only in release mode, that you did not catch this ?

Yes, my bad. I tend to manually run examples on release mode for performance. I will try to enable debug_assertions and also test in debug mode to avoid this kind of thing in the future.

Included the fix in #40.


Watch stops working from time to time

After having run the task for about 10 minutes it stops to recognize file changes. Most of the time the last change on a file was printed in the console like this:
File "Gruntfile.js" deleted.

even it was a change in the file. After that any change in the file cant bring the watcher back to run the tasks.

Hey did anyone found, temporary fix or solution ?

grunt-cli v1.2.0
grunt v0.4.5
grunt randomly quits watch somewhere between 10-30 minutes ...

Still happens. Randomly quits after 10-min or 1 hour. no pattern to it. I use grunt with typescript compiler among other things.
grunt-contrib-watch 1.0.0
grunt-cli v1.2.0
node 4.0.0


Provide a better inspect

Templates out an inspect method to make it easier to see all of the fields. Note that I didn't override pretty printing yet, because I didn't want the diff to be massive. This changes:
$ bin/parse -e 'foo + 1'
#<YARP::ParseResult:0x0000000103301c78
 @comments=[],
 @errors=[],
 @source=#<YARP::Source:0x00000001032e1b30 @offsets=[0], @source="foo + 1">,
 @value=
  ProgramNode(0...7)(
    [],
    StatementsNode(0...7)([CallNode(0...7)(CallNode(0...3)(nil, nil, (0...3), nil, nil, nil, nil, 2, "foo"), nil, (4...5), nil, ArgumentsNode(6...7)([IntegerNode(6...7)()]), nil, nil, 0, "+")])
  ),
 @warnings=[]>

to:
$ bin/parse -e 'foo + 1'
@ ProgramNode (location: (0...7))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...7))
    └── body: (length: 1)
        └── @ CallNode (location: (0...7))
            ├── receiver:
            │   @ CallNode (location: (0...3))
            │   ├── receiver: ∅
            │   ├── operator_loc: ∅
            │   ├── message_loc: (0...3) = "foo"
            │   ├── opening_loc: ∅
            │   ├── arguments: ∅
            │   ├── closing_loc: ∅
            │   ├── block: ∅
            │   ├── flags: variable_call
            │   └── name: "foo"
            ├── operator_loc: ∅
            ├── message_loc: (4...5) = "+"
            ├── opening_loc: ∅
            ├── arguments:
            │   @ ArgumentsNode (location: (6...7))
            │   └── arguments: (length: 1)
            │       └── @ IntegerNode (location: (6...7))
            ├── closing_loc: ∅
            ├── block: ∅
            ├── flags:
            └── name: "+"

Nice!
I think it would be good to use this for pp some_ast too if possible, and in fixtures as well, as it's a lot more readable than the current pp output.


Should be an english function name

https://github.com/desenvolvedor-io/dev-store/blob/44eed28c7178d37fe2fa6d62fb1eb8df36de9ec0/src/services/DevStore.Customers.API/Data/CustomerContext.cs#L55

just switching that to an english name? I got it

is that the only instance of the function name? or do i need to search through other files to translate?

Fixed in #17


[MKL-DNN] Test failures in Python 2

Description
When executing the MKL-DNN tests against the latest mxnet-mkl pip package using python 2, I get the following errors:
======================================================================
ERROR: test_mkldnn.test_mkldnn_ndarray_slice
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/incubator-mxnet/tests/python/mkl/test_mkldnn.py", line 74, in test_mkldnn_ndarray_slice
    assert_almost_equal(y[0].asnumpy()[0, 0, 0], 0.3376348)
  File "/usr/local/lib/python2.7/dist-packages/mxnet/test_utils.py", line 493, in assert_almost_equal
    % (rel, rtol, atol, str(index), a[index], b[index]),
TypeError: 'float' object has no attribute '__getitem__'

======================================================================
ERROR: test_mkldnn.test_mkldnn_engine_threading
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/incubator-mxnet/tests/python/mkl/test_mkldnn.py", line 98, in test_mkldnn_engine_threading
    assert_almost_equal(y[0, 0, 0, 0], 0.016711406)
  File "/usr/local/lib/python2.7/dist-packages/mxnet/test_utils.py", line 493, in assert_almost_equal
    % (rel, rtol, atol, str(index), a[index], b[index]),
TypeError: 'float' object has no attribute '__getitem__'

----------------------------------------------------------------------
Ran 55 tests in 401.237s

To reproduce
$ docker run -ti ubuntu:16.04 /bin/bash
Then in the container,
$ apt update && apt install -y python python-pip git
$ pip install mxnet-mkl==1.5.0b20190410 nose scipy
$ git clone https://github.com/apache/incubator-mxnet.git
$ nosetests incubator-mxnet/tests/python/mkl
Environment info (Required)
----------Python Info----------
('Version      :', '2.7.12')
('Compiler     :', 'GCC 5.4.0 20160609')
('Build        :', ('default', 'Nov 12 2018 14:36:49'))
('Arch         :', ('64bit', 'ELF'))
------------Pip Info-----------
('Version      :', '8.1.1')
('Directory    :', '/usr/lib/python2.7/dist-packages/pip')
----------MXNet Info-----------
('Version      :', '1.5.0')
('Directory    :', '/usr/local/lib/python2.7/dist-packages/mxnet')
('Commit Hash   :', 'b68f18c97d08193cded0630a2e0a04673e4a0410')
----------System Info----------
('Platform     :', 'Linux-4.9.125-linuxkit-x86_64-with-Ubuntu-16.04-xenial')
('system       :', 'Linux')
('node         :', '17247cd9de80')
('release      :', '4.9.125-linuxkit')
('version      :', '#1 SMP Fri Sep 7 08:20:28 UTC 2018')
----------Hardware Info----------
('machine      :', 'x86_64')
('processor    :', 'x86_64')
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 142
Model name:            Intel(R) Core(TM) i7-7660U CPU @ 2.50GHz
Stepping:              9
CPU MHz:               2500.000
BogoMIPS:              4768.85
Hypervisor vendor:     vertical
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              4096K
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht pbe syscall nx pdpe1gb lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq dtes64 ds_cpl ssse3 sdbg fma cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch kaiser fsgsbase bmi1 hle avx2 bmi2 erms rtm xsaveopt arat
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0536 sec, LOAD: 1.2237 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0585 sec, LOAD: 0.8487 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0762 sec, LOAD: 1.2741 sec.
Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0505 sec, LOAD: 0.2754 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0796 sec, LOAD: 1.0294 sec.
Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0741 sec, LOAD: 0.9458 sec.

@TaoLv

I would say that it's a strange behavior of nosetests for me. We noticed that before. The test cases look problematic but they're not caught by CI. @juliusshufan please add more information.

As far as I could tell, CI isn't checking MKL against python 2 (or at least not running that specific suite with python 2) - @jlcontreras has kindly volunteered to add this step to CI. However, there will need to be some coordination with the fix, or the new step will fail =S

As far as I could tell, CI isn't checking MKL against python 2 (or at least not running that specific suite with python 2) - @jlcontreras has kindly volunteered to add this step to CI. However, there will need to be some coordination with the fix, or the new step will fail =S

Any update in this case. BTW, the python2 will be deprecated :)
Closing this now and feel free to reopen if the issue still exists.


New codex pages for fusion and thermosolar 3/4 are missing

Mod source
Factorio Mod Portal
Which mod are you having an issue with?

[ ] pyalienlife
[X] pyalternativeenergy
[ ] pycoalprocessing
[ ] pyfusionenergy
[ ] pyhightech
[ ] pyindustry
[ ] pypetroleumhandling
[ ] pypostprocessing
[ ] pyrawores

Operating system

=Windows 10

What kind of issue is this?

[ ] Compatibility
[X] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[ ] Balance
[ ] Pypostprocessing failure
[ ] Other

What is the problem?
Changelog mentions new pages about fusion and thermosolar mk3/4. Fusion might be covered by the MHD page, but the new thermosolar page does not exist anywhere ingame or in the main github branch
Steps to reproduce
Open the codex
Observe the Thermosolar mk1/2 page, and no mk3/4 page
Additional context
No response
Log file
No response

Thanks for the report. That's a bug with the changelog. The fusion page is covered by MHD however the thermosolar page did not ever get written. pyAE development is now frozen so it will have to be included in the next pymod. I will leave this ticket open until then.

righto

Fixed. Thanks for the report.


Validate mime type in productImage mutations

I want to merge this change because...

Fixes #2321
Screenshots

Pull Request Checklist

[ ] Privileged views and APIs are guarded by proper permission checks.
[ ] All visible strings are translated with proper context.
[ ] All data-formatting is locale-aware (dates, numbers, and so on).
[ ] Database queries are optimized and the number of queries is constant.
[ ] The changes are tested.
[ ] The code is documented (docstrings, project documentation).

By the way, I've noticed the test test_product_image_update_mutation seems to be actually testing productImageCreate mutation instead of productImageUpdate
def test_product_image_update_mutation(admin_api_client, product_with_image):
    product = product_with_image
    query = """
    mutation updateProductImage($image: Upload!, $alt: String, $product: ID!) {
        productImageCreate(input: {image: $image, alt: $alt, product: $product}) {
            productImage {
                alt
            }
        }
    }
    """


Portals disappearing from dropdown

Please note: this is a duplicate of my bug report posted on nexusmods, your description stated to post bugs here so here it is :P
So I logged in today with most of my portals missing from the dropdown.
I checked the mod, saw an update so updated both client and server to the latest version, and still most of the portals are missing from the dropdown.
As of right now I have no idea how to fix this.
I put both files (anyportal and AnyPortal.dll) in BepInEx\plugins\AnyPortal.

Are the missing petals all relatively far away?

Yeah they are actually. Although the ones that do work (1 at the moment) is also quite far away(2032 distance). some that aren't showing are closer than that.

Well I can't recreate the issue, but I see there is another method for getting world objects. Can you try this patch and tell me if it helps?
anyportal.zip

Just tested it, didn't change anything unfortunately.
Not sure if it makes a difference but the portals that I have were placed before I installed this mod.

The only portal that appears to be visible is the one I have placed at the sacrificial stones(spawn point) and the one at my base where I spawn after logging in.

I have the same problem; after reconnect only 2 Portals are shown. When i go to the not shown portals, all will be shown, when i use them, but after relogg they are gone. Looks like, the list will not be saved

One more update, in the server-log I've noticed this message popping up: https://github.com/sweetgiorni/AnyPortal/blob/master/AnyPortal.cs#L205
Not sure if that's supposed to happen? or what I should do to fix it if it's not supposed to be there.

Before relogg:

After relogg:

Just started the game in single player without dedi server. as in: start game -> select world -> play(not even starting a server).
All teleporters show up properly when playing single player.
Whatever is causing the issue, it must be server-side/multiplayer related.

Should be fixed in 1.0.3 which was just published. Make sure you updated both client and server.
@DasNiels Regarding this:
""Connect portals is running - it's supposed to be disabled!?!?""
Do you have the latest version installed on your server? It was present in <IP_ADDRESS>, but should be gone in 1.0.1+

No clue, I downloaded the latest version and everything works fine now though :), thanks!
One sidenote: the scrollbar is quite slow, not sure if that's something you can fix but I have to scroll 2 - 3x for 1 extra entry to show up in the dropdown. Feels like it should be 1 scroll to go down 2 - 3 entries.

Should be fixed in 1.0.3 which was just published. Make sure you updated both client and server.
@DasNiels Regarding this:
""Connect portals is running - it's supposed to be disabled!?!?""
Do you have the latest version installed on your server? It was present in <IP_ADDRESS>, but should be gone in 1.0.1+

1.0.3 works :)

No clue, I downloaded the latest version and everything works fine now though :), thanks!
One sidenote: the scrollbar is quite slow, not sure if that's something you can fix but I have to scroll 2 - 3x for 1 extra entry to show up in the dropdown. Feels like it should be 1 scroll to go down 2 - 3 entries.

That should be fixed in 1.0.1. Make sure you update the assetbundle file "anyportal" in addition to the dll. That's where the dropdown prefab is located.


Description

Hi! I'm working in a Qt application for Android and I need to run some shell commands. QProcess class seems to not have all the needed commands such as TAR. Could you add a description and how to use it?
Thanks!

What commands do you need ?

I need some simple commands such as tar, gzip, zip. Besides, I'd need sh or some way to execute a bash script. At the moment I'm trying to use Busybox but I cannot execute it yet from my Qt application.


Support for diffusers

Hi, Kangyeol @kangyeolk
The results look very great! Do you have any plan to support this model in diffusers framework?

Hi! Of course, but I have no specific plan for it. Please stay tuned for further updates.


Installing dask-tensorflow failed on windows machine with python 3.6

I am trying to install dask-tensorflow by running the following commands:

Install dask : pip install dask[complete]
install dask-ml : pip install dask-ml[complete]

dask was successfully installed as well as dask-ml with xgboost dependency but failed by installing tensorflow dependency.
I have got the following exception :
      File "C:\Users\XQing\AppData\Local\Temp\pip-build-3e2oi6r0\dask-tensorflow \setup.py", line 7, in <module>         requires = open('requirements.txt').read().strip().split('\n')     FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt' Command "python setup.py egg_info" failed with error code 1 in C:\Users\XQing\Ap pData\Local\Temp\pip-build-3e2oi6r0\dask-tensorflow\ (C:\ProgramData\Anaconda3) C:\Users\XQing>

It looks like the repository lacks a MANIFEST.in file
On Fri, Dec 22, 2017 at 9:17 PM, AbdalaDiasse<EMAIL_ADDRESS>wrote:

I am trying to install dask-tensorflow by running the following commands:

Install dask : pip install dask[complete]
install dask-ml : pip install dask-ml[complete]

dask was successfully installed as well as dask-ml with xgboost dependency
but failed by installing tensorflow dependency.
I have got the following exception :
File "C:\Users\XQing\AppData\Local\Temp\pip-build-3e2oi6r0\dask-tensorflow
\setup.py", line 7, in  requires = open('requirements.txt').read().strip().split('\n')
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\XQing\Ap pData\Local\Temp\pip-build-3e2oi6r0\dask-tensorflow
(C:\ProgramData\Anaconda3) C:\Users\XQing>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/3031, or mute the thread
https://github.com/notifications/unsubscribe-auth/AASszJ83Ixp7NktbNDLn20_lu6vi3Gp_ks5tDGLMgaJpZM4RLi98
.

@mrocklin  can you help me to solve this issues... how can i get this manifest.in file

There isn't one.  This looks like a packaging problem on our end in the
dask-tensorflow package.  Short term you might try not pip installing with
the dask-ml rather than dask-ml[complete].  cc @TomAugspurger
On Sat, Dec 23, 2017 at 12:07 AM, AbdalaDiasse<EMAIL_ADDRESS>wrote:

@mrocklin https://github.com/mrocklin can you help me to solve this
issues... how can i get this manifest.in file
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/3031#issuecomment-353707565, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszLGDz4q2PxIBupP-M00RD9Qxgfp2ks5tDIqVgaJpZM4RLi98
.

@mrocklin I have installed now from your github repo.
Thanks ....

Should be fixed by https://github.com/dask/dask-tensorflow/pull/4.


VS Code changes my git editor to itself every time it updates

Issue Type: Bug
I noticed that time to time my .gitconfig editor setting changes all of the sudden to VS Code.
This  has been happening consistently over a periond of months.
I then realized that it takes place everytime there is an update to VS Code.
VS Code version: Code 1.64.1 (d6ee99e4c045a6716e5c653d7da8e9ae6f5a8b03, 2022-02-07T17:16:22.147Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: Yes

System Info

Item
Value

CPUs
Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz (12 x 3592)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
63.92GB (49.62GB free)

Process Argv
--crash-reporter-id 84eda910-b673-4114-8f5d-81f61b2df269

Screen Reader
no

VM
0%

Extensions (4)

Extension
Author (truncated)
Version

python
ms-
2022.0.1814523869

vscode-pylance
ms-
2022.2.0

jupyter
ms-
2022.1.1001821375

jupyter-keymap
ms-
1.0.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392cf:30425750
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30433059
pythonvs932:30410667
wslgetstartedc:30433508
vs360:30404995
vsrem710cf:30416617
vscscmwlcmt:30433761

Are you sure that this is related to VS Code updates and not Git for Windows updates (that has option to set VS Code as default git editor)?

I do not think so, but I will check for that. git does not update nearly as often.

It looks similar to https://github.com/git-for-windows/git/issues/3538

Clicked Yes on the notification asking to update Git for Windows.

What actually happened instead?

No prompt was received (other than the Windows UAC elevation prompt), and Git for Windows automatically initiated the installation on its own (without asking me to confirm) and added core.editor to ~/.gitconfig based on my original installation option even though the exact same value for the same config option is already set in the system gitconfig.

@yuslepukhin, were you able to confirm that indeed this is caused by a VS Code update?

It has not happened since I filed the issue. Even though there was an update for git. I just fired up VSCode, I use studio on everyday basis, and nothing happened either.

@yuslepukhin, thanks for the update. Will close the issue for now. Please reopen it in case the issue resurfaces. Thanks!


Significant memory usage with golangci-lint

What happened?
When running make reviewable test, golangci-lint v1.50.0 will use significant amounts of memory, often being killed by the OS.
Below are screenshots from testing on Mac M1 and Linux systems showing memory usage in the 40+GB:

There are numerous issues on the golangci-lint repo: https://github.com/golangci/golangci-lint/issues/3536
How can we reproduce it?
Run make reviewable test, observe memory usage of the golangci-ling process.
What environment did it happen in?

Crossplane Version:
Provider Version: master branch
Kubernetes Version:  1.27.1
Kubernetes Distribution: kind

@phisco has a workaround for now:
GO_LINT_ARGS=" --disable musttag " make -e reviewable test

@stevendborrelli, the upstream issue had closed and the related PR had merged, is this issue still valid?

Thanks for the information @phisco.

Covered with https://github.com/upbound/provider-aws/pull/829


Use Ubuntu 20.04 rootfs

Hello,
I would like use Ubuntu 20.04 and I tried to use the rootfs from archive (http://cdimage.ubuntu.com/ubuntu-base/releases/20.04/release/ubuntu-base-20.04-base-arm64.tar.gz).
Unfortunately I have a kernel panic :(
I attach the log file.
ubuntu-20-04-zcu104-serial.log

I'm still looking at the log, but I will say that the Xilinx fork of the Linux kernel used in 2019.2 it 4.19 which is very outdated for Ubuntu 20.04. It could be causing an issue. If there is an 18.04 release for arm64 I might try that and report back.

The same with 18.04.0 :(


Update docker-images to latest version (53)

cc @findepi @electrum

@findepi can you merge this please?


Remove gcp creds from state

fixes https://github.com/pulumi/pulumi-gcp/issues/1759
Reverts https://github.com/pulumi/pulumi-gcp/pull/1715 and https://github.com/pulumi/pulumi-gcp/pull/1691.
The TF providers was already picking up credentials from the env var before https://github.com/pulumi/pulumi-gcp/pull/1691. We have no reason to store these in the state.

I'll see if I can add a test for this, although it might be hacky with the CI auth setup.


form_data_arr does not allow to perform where request

Hello,
Maybe I'm wrong, but storing all the form datas in a jsoned array does not allow to use "where" clause when performing requests ?
Example : I use two extra fields in a generic upload form : user and activated, when I try to get records I can't filter on these.
Thanks in advance for your thoughts on this !

Hello @GeRoHi
Have you tried with events?
It's a powerful addition and you can write your own custom plugin, "intercept" form event and store on a your own table with your requirements.


Environment change from GPU to CPU doesn't start a CPU train. Same thing for changing from CPU to GPU (doesn't start a GPU train)

System Information (please complete the following information):

Model Builder Version: <IP_ADDRESS>8102
Visual Studio Version

Describe the bug
After launching a GPU train, if re-select CPU train, the train will still be running on GPU.
To Reproduce
Steps to reproduce the behavior:

Pick image classification
select GPU training and run
go back to the environment and select CPU and run
The train is still running on GPU

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Duplicate https://github.com/dotnet/machinelearning-modelbuilder/issues/900, which has been verified by Jake.


Can't disable displayData

I see that app.js calls jsPsych.data.displayData() by default, but I'm struggling to disable it for both development and packaged versions.
For instance, specifying an empty function for on_finish doesn't help:
  const jsPsych = initJsPsych({
    on_finish: function() {
    }
  });

Seems I worked it out. Just need to comment out the call to return the jsPsych instance:
// return jsPsych;

Hi @shirdekel,
this is the corresponding section in the readme, but I'm not sure if it's clear enough. Any suggestions are most welcome!

Thanks. Is the implication in that section that commenting out the jsPsych call is the recommended way to not display the results in the browser? If so, I'd say making this explicit would be clearer 😃

Right, I hope it's clearer now. Thanks!

Looks good 👍


freerdp shadow multimonitor - second screen is blank

Hi.
It appears that multimonitor configuration doesn't work with freerdp-shadow-cli server.
I successfully connected to Windows 10 RDP with the following command:
xfreerdp /multimon:force /v:<IP_ADDRESS>
But, when I connect to freerdp shadow server I get the second screen blank (see the screenshot). Mouse and keyboard appears to work on the second screen (when I move terminal in between the screens, I could click on it on the other screen too).
I started freerdp shadow server with the following commands:
freerdp-shadow-cli /monitors:0,1 -auth
I also tried with this one:
freerdp-shadow-cli -auth
I connect to the second monitor (only) if I start it with this command:
freerdp-shadow-cli /monitors:1,0 -auth
Environment:
Client and host are ubuntu 18.04 (which comes with 2.0.0-dev). I also tried with this Docker recipe.
$ cat Dockerfile
from ubuntu:latest
run apt-get update
run apt-get install -y freerdp2-shadow-x11
run useradd user
run mkdir -p /home/user/.config/freerdp && chown user /home/user/.config/freerdp

docker build -t freerdp-sha .
docker run --user=user --network=host -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -it --rm freerdp-sh

That's ubuntu 20.04.3 with FreeRDP version 2.2.0 - with the same result.

Best regards

Do you have a second monitor on the machine running shadow?
Shadow does (just as the name implies) shadow/clone your local session and the remote client must use the same resolution/monitor layout (or use /smart-sizing) to display what is shadowed.

Yes - it's a physical machine. The client has the second monitor with a bit higher resolution (1920x1200 rotated left), but I changed the resolution that matched rdp server's second monitor, but with the same result. I tried with /smart-sizing, but that just extended the first screen through both monitors (not displaying the second monitor).


Change the context and dockerpath for thoth buildconfig

This is related to https://github.com/red-hat-data-services/s2i-thoth/pull/7
which removed instances of curl from the Dockerfile

Verified on a real install that this change fixed an existing broken build config.
It was part of https://github.com/red-hat-data-services/s2i-thoth/pull/7 but was left out.
@crobby @anishasthana


deduplicate code when language argument passed

Hi @CallMeGreg ! I've opened a handful of small PRs for this repo, but ultimately, I'm wanting to add a feature to filter by 'top n' - I have the feature coded and tested, but because it depends on this PR, I can't open the PR against this repo (but, only my fork); see here: https://github.com/ChrisCarini/repo-language-analysis/pull/1
Once this PR (ie, PR#4) is merged, I'll re-open https://github.com/ChrisCarini/repo-language-analysis/pull/1 against your repo!
Neat CLI BTW! 🎉

Hi @CallMeGreg ! I've opened a handful of small PRs for this repo, but ultimately, I'm wanting to add a feature to filter by 'top n' - I have the feature coded and tested, but because it depends on this PR, I can't open the PR against this repo (but, only my fork); see here: ChrisCarini#1
Once this PR (ie, PR#4) is merged, I'll re-open ChrisCarini#1 against your repo!
Neat CLI BTW! 🎉

Right on, thanks for all the cleanup @ChrisCarini ✨ Full transparency this was thrown together quickly with plans to shift everything to a GitHub CLI extension. Ideally one simple command instead of a noisy nested command & python script. The new home will be over here and when it's functional, I plan to archive this repo. I'll ping you once I'm able to get around to it, love the idea of "top N" results 😃

love the idea of "top N" results 😃

Me too; here ya go; was able to open PR against your repo now -> https://github.com/CallMeGreg/repo-language-analysis/pull/5

Right on, thanks for all the cleanup @ChrisCarini ✨

You're welcome, no problem at all! :)

Full transparency this was thrown together quickly with plans to shift everything to a GitHub CLI extension. Ideally one simple command instead of a noisy nested command & python script. The new home will be over here and when it's functional, I plan to archive this repo. I'll ping you once I'm able to get around to it, love the idea of "top N" results 😃

Awesome! I love the idea to move this to a GH CLI extension! ❤
I was considering having the python script just grab the necessary information from the API/CLI, but I like the extension route better tbh! I'm much less familiar w/ golang, but I may take a stab at playing with it if time permits (no promises). Do feel free to ping/tag me if you make progress on the extension, I'd love to use it (even if in alpha/beta phase)! 😄

@ChrisCarini thanks again! More on the gh extension vision here: https://github.com/CallMeGreg/gh-language/blob/main/command-design.md

@ChrisCarini I just shipped v1.0.0 of the gh cli extension version, give it a look when you can 😃 would love to hear any feedback you might have, feel free to open an issue: https://github.com/CallMeGreg/gh-language


Alternative way of adding models

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues
[x] Discussed this problem in gitter with developer

Expected Behaviour
It would be useful to have a possibility of adding a custom model without any .bin .xml files, just with the python script (as example).
Context
Currently I have some python script, that generates annotations for the provided video. Program  uses as an input parameter a path to a videofile (or to a folder with paths to images extracted from video). Outputs shape(s) for the label.

It will be supported. I'm adding such feature right now: https://github.com/opencv/cvat/pull/1767


encoding/json: marshal result of string type struct field with ",string" option change in go1.14

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

$ go version
go version go1.14.1 windows/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows

What did you do?
This issue is actually a separate issue from discussions below #38126.
type T struct {
	F1 string `json:"F1,string"`
}

t := T {
	"aaa\tbbb",
}

b, _ := json.Marshal(t)
fmt.Println(string(b))

What did you expect to see?
Before go 1.14:
{"F1":"\"aaa\\tbbb\""}

Autually I'm not sure which of the output results is correct. I think it was introduced by 0e015e20 but I don't know why it has to be changed like that. I want to figure out which of them exactly match the godoc's description:

The "string" option signals that a field is stored as JSON inside a JSON-encoded string

What did you see instead?
After go1.14:
{"F1":"\"aaa\tbbb\""}

@gopherbot, please open a backport issue for 1.14.
I think this is a regression - https://go-review.googlesource.com/c/go/+/193604 was a good change, but we didn't properly think of all the edge cases. I have a fix nearly ready. CC @breml @dsnet


Feature request: dynamic documentationRouteTags function

Context

hapi-swagger version: 9.1.3

Description
Currently hapi-swagger only allow to override documentationRouteTags with static string or array as described here: https://github.com/glennjones/hapi-swagger/blob/master/optionsreference.md#plugin-options
However, If we have a more dynamic option to document for specific target routes, we can easily exchange dev-only documentation and prod-only documentation by environment variable or etc.
e.g.)
{
  documentationRouteTags: (tags: string[]) => boolean
  // or
  documentationRouteFilter: (route: RouteConfiguration) => boolean
}

How do you think?  (I'm ready to write a PR if approved.)

Oh I found documentationRouteTags just now... I'll change the content with documentationRouteFilter

Sorry for make issue dirty, I reopened with new suggestion 😅

I believe this can be accomplished today without the need to extend the framework options. Maybe I'm not understanding the ask. Would you mind showing a richer example?

Closed by https://github.com/glennjones/hapi-swagger/pull/747


staticpod: set operand version using environment variable

Set the operand version using OPERAND_IMAGE_VERSION variable.

/lgtm

/cherrypick master


fixes TLA+ app installation with correct app name.

Previously the application bundle didn't use the "branded"
name. The 1.5.2 version now uses "TLA+ Toolbox.app" as the name
for the application bundle.

Thank you for the contribution. It needed some fixes, so they were made in 12c401c39abcc0ddfdab950f8a6ac7e85833b4bf. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Allow greater control of netty transport

Users want to be able to avoid IOUring since this is known to have severe bugs.
Fixes #516
https://en.wikipedia.org/wiki/Io_uring#Security

@hamnis Great work! Thank you a lot!
Would you cut a release?
I'm going to test it in this benchmark

0.5.9 is being built now.
https://github.com/http4s/http4s-netty/actions/runs/5682761502


Rollback

Sid,
This is an initial version of the rollback support with a few tests.  None of it is integrated.  Can you take a look?

LGTM


locale support including _locale and time.tzname

[ ] _locale module
[ ] time.tzname

#4054
If we are talking about holding states such as tzname (which is initialized at module load time), this can be related.

The doc says tzname is determined at module load time. Does "module load time" mean those values to be initialized in the function below?

It may not be exactly, but you can regard it is.

And yes. #4054 is generally related to module attributes and hidden data like Info types in sys module.

Noticed quite a few functions in CPython Locale are not implemented in locale.rs. I don't have much experience with this type of work but would the general idea be to write a wrapper for say: GetLocaleIInfoA since it is used throughout CPython's implementation of getdefaultlocale so it can be used in our implementation?

You are on Windows right? I haven't looked into how CPython does it (am out atm) but if this is calling some os provided function then yes, we typically wrap it and call into it after converting the args.
The function to be wrapped should be in windows.rs?

That's right, and gotcha. Looks like libc has bindings for setlocale but that's all im seeing


Adding solution for A.1

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
Adding solution for assignment 1
What did you learn from the changes you have made?
Calculations of time complexity and space complexity
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
(Explained in code)
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
N/A
How were these changes tested?
Ran against different inputs and scenarios
A reference to a related issue in your repository (if applicable)
N/A
Checklist

[x] I can confirm that my changes are working as intended

Hi Tianyi find my answers bellow:

You stated that sorted_nums = set(range(pivot + 1)) gives sorted numbers. However, set in Python in unordered since it uses a hash backend. Although it appears that when passing integers to a set, the output becomes in-order, we cannot use set to sort a given input. In contrast, list in Python has ordering.

This was merely a naming issue, originally I played around with a list instead of a set but didn't wanted to have a O(n^2) algorithm as my final submission hence the change for set but forgot to refactor the variable name and explanatory comment.

We often use Big-O, i.e.,
O
(
)
, to denote the time complexity of an algorithm; little-o, i.e.,
o
(
)
, has a different meaning and you may find further information here

Thanks for the reference, However, I did not used little-o notations anywhere. :(
Code is amended and uploaded back.


Load multiple env files

Can we pass multiple files to the Constructor to be loaded. Example
$dotenv = new Dotenv\Dotenv(DIR . '/../', ['.file1.env', '.file2.env']);

No, that's not supported, sorry.

@rudolphp I'm considering adding this feature to phpdotenv. Please could I have your feedback on #394. I've tried to implement it as to avoid a breaking change, where by default, we won't load all files, only the first file we can find and read.

This code is currently available as:
    "require": {
        "vlucas/phpdotenv": "^4.1@dev"
    },

I'm going to give some more time for feedback before I release 4.1.0.


Use e2e-test tag for images built in e2e CI

Currently for the kind CI, Kind deploys Kubernetes version v1.27.3, in this version the ImagePullpolicy of containers follow the procedures in [1], this breaks the CI, since the CI uses the latest tag when building the images, and Kubernetes tries to pull the images always instead of using the built image.
This patch changes the tag of the image built by CI to e2e-test, so that K8S will set the image policy to be IfNotPresent.
[1] https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
7 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.07%) to 24.511%

Files with Coverage Reduction
New Missed Lines
%

controllers/sriovibnetwork_controller.go
2
66.04%

controllers/sriovnetwork_controller.go
2
65.71%

api/v1/helper.go
3
41.67%

Totals

Change from base Build<PHONE_NUMBER>:
0.07%

Covered Lines:
2082

Relevant Lines:
8494

💛  - Coveralls

/test-e2e-nvidia-all

@e0ne @adrianchiris Can you guys PTAL?
Thanks

/test-e2e-nvidia-all

as the images for e2e tests are built by run-e2e-test-kind.sh im fine with having a specific tag for  it.
the alternative is to explicitly add image pull policy when running make deploy.

LGTM
Seems that this issue was introduced by #432


etlas install --dependencies-only regressed again

Looks like dependencies broke again, I cloned it just now,
using
Ankh-Morpork:eta-servant-example rpeszek$ eta --version
Compiler for the Eta Programming Language, version 0.0.9b1
Ankh-Morpork:eta-servant-example rpeszek$ etlas --version
etlas version <IP_ADDRESS>
compiled using version <IP_ADDRESS> of the etlas-cabal library

Ankh-Morpork:eta-servant-example rpeszek$ etlas install --dependencies-only
Resolving dependencies...
Downloading [source] comonad-5.0.2...
Downloading [source] http-media-0.6.4...
Found patch in eta-hackage for lifted-base-<IP_ADDRESS>
Configuring lifted-base-<IP_ADDRESS>...
Configuring http-media-0.6.4...
Downloading [source] http-types-0.9.1...
Downloading [source] system-filepath-<IP_ADDRESS>...
Found patch in eta-hackage for comonad-5.0.2
Configuring comonad-5.0.2...
Configuring http-types-0.9.1...
Downloading [source] th-abstraction-<IP_ADDRESS>...
Downloading [source] uri-bytestring-<IP_ADDRESS>...
Found patch in eta-hackage for system-filepath-<IP_ADDRESS>
Configuring system-filepath-<IP_ADDRESS>...
Configuring th-abstraction-<IP_ADDRESS>...
Downloading [source] network-uri-<IP_ADDRESS>...
Found patch in eta-hackage for uri-bytestring-<IP_ADDRESS>
Configuring uri-bytestring-<IP_ADDRESS>...
Found patch in eta-hackage for network-uri-<IP_ADDRESS>
Configuring network-uri-<IP_ADDRESS>...
Building lifted-base-<IP_ADDRESS>...
Building http-media-0.6.4...
Building comonad-5.0.2...
Building http-types-0.9.1...
Building th-abstraction-<IP_ADDRESS>...
Building system-filepath-<IP_ADDRESS>...
Building uri-bytestring-<IP_ADDRESS>...
Building network-uri-<IP_ADDRESS>...
Failed to install lifted-base-<IP_ADDRESS>
Build log ( /Users/rpeszek/.etlas/logs/eta-<IP_ADDRESS>/lifted-base-<IP_ADDRESS>-JpEaUMPv4Lw2KlrnlvGkJZ.log ):
etlas: Entering directory '/var/folders/zj/lw5wq58j3g74qq7rqj_4p0180000gn/T/etlas-tmp-25199/lifted-base-<IP_ADDRESS>'
Configuring lifted-base-<IP_ADDRESS>...
Preprocessing library for lifted-base-<IP_ADDRESS>..
Building library for lifted-base-<IP_ADDRESS>..
[1 of 9] Compiling System.Timeout.Lifted ( System/Timeout/Lifted.hs, dist/build/System/Timeout/Lifted.jar )
[2 of 9] Compiling Foreign.Marshal.Utils.Lifted ( Foreign/Marshal/Utils/Lifted.hs, dist/build/Foreign/Marshal/Utils/Lifted.jar )
[3 of 9] Compiling Data.IORef.Lifted ( Data/IORef/Lifted.hs, dist/build/Data/IORef/Lifted.jar )
[4 of 9] Compiling Control.Exception.Lifted ( Control/Exception/Lifted.hs, dist/build/Control/Exception/Lifted.jar )
[5 of 9] Compiling Control.Concurrent.QSemN.Lifted ( Control/Concurrent/QSemN/Lifted.hs, dist/build/Control/Concurrent/QSemN/Lifted.jar )
[6 of 9] Compiling Control.Concurrent.QSem.Lifted ( Control/Concurrent/QSem/Lifted.hs, dist/build/Control/Concurrent/QSem/Lifted.jar )
[7 of 9] Compiling Control.Concurrent.MVar.Lifted ( Control/Concurrent/MVar/Lifted.hs, dist/build/Control/Concurrent/MVar/Lifted.jar )
[8 of 9] Compiling Control.Concurrent.Chan.Lifted ( Control/Concurrent/Chan/Lifted.hs, dist/build/Control/Concurrent/Chan/Lifted.jar )
[9 of 9] Compiling Control.Concurrent.Lifted ( Control/Concurrent/Lifted.hs, dist/build/Control/Concurrent/Lifted.jar )

Control/Concurrent/Lifted.hs:233:29:
    Couldn't match type ‘Channel’ with ‘System.Posix.Types.Fd’
    Expected type: Channel -> IO ()
      Actual type: System.Posix.Types.Fd -> IO ()
    In the second argument of ‘(.)’, namely ‘C.threadWaitRead’
    In the expression: liftBase . C.threadWaitRead

Control/Concurrent/Lifted.hs:238:30:
    Couldn't match type ‘Channel’ with ‘System.Posix.Types.Fd’
    Expected type: Channel -> IO ()
      Actual type: System.Posix.Types.Fd -> IO ()
    In the second argument of ‘(.)’, namely ‘C.threadWaitWrite’
    In the expression: liftBase . C.threadWaitWrite
etlas: Leaving directory '/var/folders/zj/lw5wq58j3g74qq7rqj_4p0180000gn/T/etlas-tmp-25199/lifted-base-<IP_ADDRESS>'
Downloading [source] vault-<IP_ADDRESS>...
Configuring vault-<IP_ADDRESS>...
Building vault-<IP_ADDRESS>...
Installed comonad-5.0.2
Installed http-media-0.6.4
Installed vault-<IP_ADDRESS>
Installed http-types-0.9.1
Installed system-filepath-<IP_ADDRESS>
Installed th-abstraction-<IP_ADDRESS>
Installed network-uri-<IP_ADDRESS>
Installed uri-bytestring-<IP_ADDRESS>
etlas: Error: some packages failed to install:
lifted-base-<IP_ADDRESS>-JpEaUMPv4Lw2KlrnlvGkJZ failed during the building phase.
The exception was:
ExitFailure 1
resourcet-1.1.9-K7W1q0z089p2Zhz1P0mqDM depends on resourcet-1.1.9 which failed
to install.
servant-server-0.11-6Ao6yVhnoLg1OXMjEXotdT depends on servant-server-0.11
which failed to install.

Did you install from master?

Sorry about that - some changes on master leaked into the older versions - let me add a guard to make sure older eta versions don't get the change.

Done. Run etlas update and try installing again. It should work now.

Thanks!  I will try tonight! I love Eta already.

No problem! Please close the issue if it's working.

It works. Thanks again.


Correct behaviour or not: Getting a schema compilation error when a $data reference points outside the root of the subschema

The scenario is uploaded to runkit:
https://runkit.com/sondrele/589c81cd11ea6e0014d53f0f
Problem:
First, I had expected the schema to compile (no matter where the json pointer was pointing).
Then, given that the schema had been compiled successfully, I had expected the validation to succeed (at least in the provided example) because of the $data being resolved to undefined instead of ["FOO", "BAR"] (due to the relative json pointer pointing to a property that does not exist).
The documentation on $data reference states (in the last paragraph) the following: $data reference is resolved safely - it won’t throw even if some property is undefined.
However, the schema compilation fails because the $data reference points outside of the root level of the subschema. The documentation only says that a relative JSON pointer cannot do this, but not that it will fail to compile the schema.
I am not sure whether I've interpreted the documentation wrong, and that it is correct behaviour that a the schema compilation should fail when it encounters a relative JSON pointer that points outside of the root, or that the $data reference should have been resolved to undefined.
Validation result, data AFTER validation, error messages:
Schema does not compile due to this error message being thrown:

Error: Cannot access data 1 levels up, current level is 0

What results did you expect?
That the validation succeeds.
Lastly
Thank you for the time and effort put into this library! :)

I should note that what I want to acheive, is to only validate a subschema, without looking at the whole schema.
In my case, it is acceptable that the $data reference gets resolved to undefined, because I am not doing a full validation of schema, I'm only doing a partial validation of schema-frequency.
I have added another example here that explains it better here: https://runkit.com/sondrele/589c819811ea6e0014d53f05

@sondrele This subschema would compile to something that expects a value. JSON pointer '1/property' points to another property of the parent object. But how can you define a parent object of the data that is passed to validation on the top level? Ajv cannot generate code to access that property as it has nothing to point to the parent object. So it is different from the property (or sub-property) being absent in the object it has reference to (for which it would safely returns undefined). In this case Ajv doesn't even know where to start...

the $data reference points outside of the root level of the subschema

outside of the root data to be precise

The documentation can be amended to say that $data can't point outside of root object passed to validation function and doing so results in schema compilation exception.

Thanks for your quick response!

But how can you define a parent object of the data that is passed to validation on the top level?

I guess I've been looking at this from the wrong angle.

The documentation can be amended to say that $data can't point outside of root object passed to validation function and doing so results in schema compilation exception.

This makes sense. :)
However, my use case is that I want to validate a (possibly) deeply nested subschema, because validating the entire schema would an unnecessary heavy operation.
What about a new API operation instead, let's call it validateAtPath(path, data) -> Boolean. The purpose of this function would be to only validate the schema that's referenced by the path, but in the context of the entire schema (and its data) that has been added to ajv with the addSchema method.
Is that an API operation that makes sense to support?

It is already possible with both getSchema and validate methods - you can pass full URI including JSON pointer to subschema.


feat(cluster): Add support for request proxying for scale out

What type of PR is this?
feature
Which issue does this PR fix:
Towards #125
Carry forward of #2041
Initial fork PR https://github.com/rchincha/zot/pull/160
What does this PR do / Why do we need it:
This PR adds support for proxying requests to other members of a zot instance cluster for scale out.
This PR only has support for shared storage cluster scale out.
Testing done on this change:

Functional sanity tests are integrated into BATS and run as part of CI.
Scale tests are integrated into BATS and can be triggered via manual workflow trigger, release build, and main branch merge.

Automation added to e2e:
N/A - no functionality change from an application point of view. The proxy is transparent to clients.
Will this break upgrades or downgrades?
No. Scale-out is new and there wouldn't be existing setups using this config yet.
Does this PR introduce any user-facing change?:
yes
Users can now specify settings for a "scale-out" mode where multiple instances of zot can run simultaneously using the same shared reliable storage for improved scale and performance in large deployments.

TODO:

[x] Unit Tests for new code
[x] Fix for localstack bottleneck for high scale
[x] Manual testing on personal fork for the high scale workflow trigger

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This turned out to be a fairly simple change.
Let's focus on making all state into "single-writer" model next.

This turned out to be a fairly simple change. Let's focus on making all state into "single-writer" model next.

Thanks for the base commit @rchincha. It set a good foundation for me to build on :)

latter wold it be possible to leverage this to scale out in situations where a shared storage is not available by also setting up syncs between the members?

latter wold it be possible to leverage this to scale out in situations where a shared storage is not available by also setting up syncs between the members?

Hi @luisdavim, thank you for the question! This PR focuses on shared storage, but support for a situation without shared storage is definitely something that is being looked into.

 This is a significant feature enhancement.

Currently trying to figure out what's up in the nightly job.
This works:
cluster members patch file
{
  "cluster": {
    "members": [
      "<IP_ADDRESS>:10000",
      "<IP_ADDRESS>:10001",
      "<IP_ADDRESS>:10002",
      "<IP_ADDRESS>:10003",
      "<IP_ADDRESS>:10004",
      "<IP_ADDRESS>:10005"
    ]
  }
}
launching zot server <IP_ADDRESS>:10000
config file: /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10000.json
log file: /tmp/bats-run-v0GNci/file/0/zot-<IP_ADDRESS>-10000.log
launching zot server <IP_ADDRESS>:10001
config file: /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10001.json
log file: /tmp/bats-run-v0GNci/file/0/zot-<IP_ADDRESS>-10001.log
launching zot server <IP_ADDRESS>:10002
config file: /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10002.json
log file: /tmp/bats-run-v0GNci/file/0/zot-<IP_ADDRESS>-10002.log
launching zot server <IP_ADDRESS>:10003
config file: /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10003.json
log file: /tmp/bats-run-v0GNci/file/0/zot-<IP_ADDRESS>-10003.log
launching zot server <IP_ADDRESS>:10004
config file: /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10004.json
log file: /tmp/bats-run-v0GNci/file/0/zot-<IP_ADDRESS>-10004.log
launching zot server <IP_ADDRESS>:10005
config file: /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10005.json
log file: /tmp/bats-run-v0GNci/file/0/zot-<IP_ADDRESS>-10005.log
root       46486   46465  3 09:37 ?        00:00:15 /usr/local/bin/zot-linux-amd64 serve /etc/zot/config.json
runner     54576   54527 15 09:44 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10000.json
runner     54608   54527 17 09:44 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10001.json
runner     54664   54527 22 09:44 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10002.json
runner     54694   54527 29 09:44 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10003.json
runner     54727   54527 43 09:44 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10004.json
runner     54757   54527 86 09:44 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-v0GNci/file/0/zot_config_<IP_ADDRESS>_10005.json
global
    log /tmp/bats-run-v0GNci/file/0/haproxy/log    local0
    log /tmp/bats-run-v0GNci/file/0/haproxy/log    local1 notice
    maxconn 20000
    stats timeout 30s
    daemon

defaults
    log     global
    mode    tcp
    option  tcplog
    option  dontlognull
    timeout connect 5000
    timeout client  50000
    timeout server  50000

frontend zot
    bind *:8000
    default_backend zot-cluster

backend zot-cluster
    balance roundrobin
    option ssl-hello-chk
    server zot0 <IP_ADDRESS>:10000 check
    server zot1 <IP_ADDRESS>:10001 check
    server zot2 <IP_ADDRESS>:10002 check
    server zot3 <IP_ADDRESS>:10003 check
    server zot4 <IP_ADDRESS>:10004 check
    server zot5 <IP_ADDRESS>:10005 check
Configuration file is valid
root        5607       1  0 09:32 ?        00:00:00 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock
haproxy     5609    5607  0 09:32 ?        00:00:00 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock
runner     54527   54508  1 09:44 ?        00:00:00 bash /home/runner/work/zot/zot/hack/tools/libexec/bats-core/bats-exec-test --dummy-flag --print-output-on-failure /home/runner/work/zot/zot/test/scale-out/cloud_scale_out_basic_auth_tls.bats test_Check_for_successful_zb_run_on_haproxy_frontend 1 1 1
runner     54791       1  0 09:44 ?        00:00:00 haproxy -f /tmp/bats-run-v0GNci/file/0/haproxy/haproxy-test.cfg
ok 1 Check for successful zb run on haproxy frontend

but this doesn't (same test, but with 100 instances, 100 concurrency, and 1000 requests):
cluster members patch file
{
  "cluster": {
    "members": [
      "<IP_ADDRESS>:10000",
      "<IP_ADDRESS>:10001",
      "<IP_ADDRESS>:10002",
      "<TRUNCATED>",
      "<IP_ADDRESS>:10099"
    ]
  }
}
launching zot server <IP_ADDRESS>:10000
config file: /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10000.json
log file: /tmp/bats-run-qLebO3/file/0/zot-<IP_ADDRESS>-10000.log
launching zot server <IP_ADDRESS>:10001
config file: /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10001.json
log file: /tmp/bats-run-qLebO3/file/0/zot-<IP_ADDRESS>-10001.log
launching zot server <IP_ADDRESS>:10002
config file: /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10002.json
log file: /tmp/bats-run-qLebO3/file/0/zot-<IP_ADDRESS>-10002.log
launching zot server <IP_ADDRESS>:10003
<TRUNCATED>
launching zot server <IP_ADDRESS>:10099
config file: /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10099.json
log file: /tmp/bats-run-qLebO3/file/0/zot-<IP_ADDRESS>-10099.log
runner     34273   33971  0 09:33 ?        00:00:01 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10000.json
runner     34303   33971  0 09:33 ?        00:00:01 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10001.json
runner     34332   33971  0 09:33 ?        00:00:01 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10002.json
<TRUNCATED>
runner     37519   33971 88 09:35 ?        00:00:00 /home/runner/work/zot/zot/bin/zot-linux-amd64 serve /tmp/bats-run-qLebO3/file/0/zot_config_<IP_ADDRESS>_10099.json
global
    log /tmp/bats-run-qLebO3/file/0/haproxy/log    local0
    log /tmp/bats-run-qLebO3/file/0/haproxy/log    local1 notice
    maxconn 20000
    stats timeout 30s
    daemon

defaults
    log     global
    mode    tcp
    option  tcplog
    option  dontlognull
    timeout connect 5000
    timeout client  50000
    timeout server  50000

frontend zot
    bind *:8000
    default_backend zot-cluster

backend zot-cluster
    balance roundrobin
    option ssl-hello-chk
    server zot0 <IP_ADDRESS>:10000 check
    server zot1 <IP_ADDRESS>:10001 check
    server zot2 <IP_ADDRESS>:10002 check
    server zot3 <IP_ADDRESS>:10003 check
    <TRUNCATED>
    server zot99 <IP_ADDRESS>:10099 check
Configuration file is valid
root        5626       1  0 09:30 ?        00:00:00 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock
haproxy     5628    5626  0 09:30 ?        00:00:00 /usr/sbin/haproxy -Ws -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -S /run/haproxy-master.sock
runner     33971   33952  1 09:33 ?        00:00:01 bash /home/runner/work/zot/zot/hack/tools/libexec/bats-core/bats-exec-test --dummy-flag --print-output-on-failure /home/runner/work/zot/zot/test/scale-out/cloud_scale_out_basic_auth_tls_scale.bats test_Check_for_successful_zb_run_on_haproxy_frontend 1 1 1
runner     37565       1  0 09:35 ?        00:00:00 haproxy -f /tmp/bats-run-qLebO3/file/0/haproxy/haproxy-test.cfg
not ok 1 Check for successful zb run on haproxy frontend
# (from function `zb_run' in file test/scale-out/helpers_zot.bash, line 105,
#  in test file test/scale-out/cloud_scale_out_basic_auth_tls_scale.bats, line 72)
#   `zb_run "cloud-scale-out-high-scale-bats" "https://<IP_ADDRESS>:8000" 100 1000 "${ZOT_AUTH_USER}:${ZOT_AUTH_PASS}"' failed
# make_bucket: zot-storage-test
# {
#     "TableDescription": {
#         "AttributeDefinitions": [
#             {
#                 "AttributeName": "Digest",
#                 "AttributeType": "S"
#             }
#         ],
#         "TableName": "BlobTable",
#         "KeySchema": [
#             {
#                 "AttributeName": "Digest",
#                 "KeyType": "HASH"
#             }
#         ],
#         "TableStatus": "ACTIVE",
#         "CreationDateTime":<PHONE_NUMBER>.806,
#         "ProvisionedThroughput": {
#             "ReadCapacityUnits": 10,
#             "WriteCapacityUnits": 5
#         },
#         "TableSizeBytes": 0,
#         "ItemCount": 0,
#         "TableArn": "arn:aws:dynamodb:us-east-2:000000000000:table/BlobTable",
#         "TableId": "e935d51e-5650-48bc-854f-5fa7d9d4c22a",
#         "DeletionProtectionEnabled": false
#     }
# }
# Adding password for user poweruser
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
# curl: (7) Failed to connect to <IP_ADDRESS> port 10000 after 0 ms: Connection refused
# Warning: Problem : connection refused. Will retry in 1 seconds. 20 retries
# Warning: left.
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    48    0    48    0     0  74188      0 --:--:-- --:--:-- --:--:-- 48000
# Client sent an HTTP request to an HTTPS server.
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
# curl: (7) Failed to connect to <IP_ADDRESS> port 10001 after 0 ms: Connection refused
# Warning: Problem : connection refused. Will retry in 1 seconds. 20 retries
# Warning: left.
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    48    0    48    0     0  86486      0 --:--:-- --:--:-- --:--:-- 48000
# Client sent an HTTP request to an HTTPS server.
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
# curl: (7) Failed to connect to <IP_ADDRESS> port 10002 after 0 ms: Connection refused
# Warning: Problem : connection refused. Will retry in 1 seconds. 20 retries
# Warning: left.
#
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    48    0    48    0     0  77922      0 --:--:-- --:--:-- --:--:-- 48000
# Client sent an HTTP request to an HTTPS server.
#   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
#                                  Dload  Upload   Total   Spent    Left  Speed
#

<TRUNCATED>
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:35688: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:49802: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:45762: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:46754: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:48458: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:36336: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:59904: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:37558: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:47264: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:36020: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:42472: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:52352: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:52300: tls: client offered only unsupported versions: []
# 2024/05/05 09:36:17 http: TLS handshake error from <IP_ADDRESS>:37172: tls: client offered only unsupported versions: []

Running the test locally with a smaller count was also successful. If it is an issue with scale, a TLS error was the last thing I was expecting :)

https://github.com/project-zot/zot/blob/a716be3bbb05072f2cb4096988fc2c1d1c2a8e61/pkg/api/proxy.go#L263-L263
resp, err := httpClient.Do(fwdRequest)
^ make sure the regex check is done on this "url" before forwarding
https://github.com/project-zot/zot/blob/main/pkg/regexp/regexp.go <- find uses of this.

Do we want to compute the sockets on every request? Is there a performance impact?

Yes, we shouldn't.

Do we want to compute the sockets on every request? Is there a performance impact?

Yes, we shouldn't.

I agree, this a performance hit especially since it happens for every request. I've changed to logic to perform the socket logic at the controller startup (because we need the member data for logging). This happens only once.
When proxying, we do a lookup on the index alone (since all the zots have an identical member config) which is a quicker comparison than string compare too.

https://github.com/project-zot/zot/blob/a716be3bbb05072f2cb4096988fc2c1d1c2a8e61/pkg/api/proxy.go#L263-L263
resp, err := httpClient.Do(fwdRequest)
^ make sure the regex check is done on this "url" before forwarding https://github.com/project-zot/zot/blob/main/pkg/regexp/regexp.go <- find uses of this.

TODO: checking if any extras after the specified path are also routed to the same handler.
Left a comment above on the fact that the regex is already done before routing. Doing it once more would add a penalty to every proxied request. If there is a chance that other paths are routed here, a regex would be needed.

https://github.com/project-zot/zot/blob/a716be3bbb05072f2cb4096988fc2c1d1c2a8e61/pkg/api/proxy.go#L263-L263
resp, err := httpClient.Do(fwdRequest)
^ make sure the regex check is done on this "url" before forwarding https://github.com/project-zot/zot/blob/main/pkg/regexp/regexp.go <- find uses of this.

TODO: checking if any extras after the specified path are also routed to the same handler.
Left a comment above on the fact that the regex is already done before routing. Doing it once more would add a penalty to every proxied request. If there is a chance that other paths are routed here, a regex would be needed.

If the regex is already done, I suppose since clusterProxy is a wrapper around the routes, no need to do it again.

Regarding the regex, I tried adding some query params to the API call, and it seems to have let it through:
curl -v http://localhost:9000/v2/alpine/tags/list?example=test
*   Trying <IP_ADDRESS>:9000...
* Connected to localhost (<IP_ADDRESS>) port 9000 (#0)
> GET /v2/alpine/tags/list?example=test HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: Authorization,content-type,X-ZOT-API-CLIENT
< Access-Control-Allow-Methods: GET,OPTIONS
< Access-Control-Allow-Origin: *
< Content-Length: 35
< Content-Type: application/json
< Date: Sat, 18 May 2024 14:07:28 GMT
<
* Connection #0 to host localhost left intact
{"name":"alpine","tags":["latest"]}

Logs:
{"level":"info","clusterMember":"<IP_ADDRESS>:9001","clusterMemberIndex":"1","module":"http","component":"session","clientIP":"<IP_ADDRESS>:51370","method":"GET","path":"/v2/alpine/tags/list?example=test","statusCode":200,"latency":"0s","bodySize":35,"headers":{"Accept":["*/*"],"Accept-Encoding":["gzip"],"User-Agent":["curl/7.81.0"],"X-Zot-Cluster-Hop-Count":["1"]},"goroutine":27,"caller":"zotregistry.dev/zot/pkg/api/session.go:132","time":"2024-05-18T14:07:28.799382217Z","message":"HTTP API"}

This is no different from the usual behaviour of the application though.
Any extra path params will fail the query, as expected:
curl -v http://localhost:9000/v2/alpine/tags/list/example
*   Trying <IP_ADDRESS>:9000...
* Connected to localhost (<IP_ADDRESS>) port 9000 (#0)
> GET /v2/alpine/tags/list/example HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.81.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Sat, 18 May 2024 14:38:38 GMT
< Content-Length: 19
<
404 page not found
* Connection #0 to host localhost left intact


Add a stable digest method to the kcd.Unit type. [phab:D2075]

Created by fromberger at 2017-12-04 23:49:45:
Instead of relying on the protobuf wire format, which is not guaranteed to be
consistent even for a canonicalized in-memory layout, equip the unit with its
own handle for deciding what belongs in a digest.

schroederc accepted this revision at 2017-12-04 23:52:03

fromberger closed via commit e17c3c1ebb025a5084e2ee8fd4be98a8d87e33e4 at 2017-12-04 23:52:37


GWM-007-Assets.xcassets return error when compile

App iCon need to reset 76x76 and 83.5x83.5

Done in master branch


Make sure merges are blocked if the build fails.

We need to make sure the check for a successful build is enforced when merging.

@cijothomas did you plan to do anything else in this task? Please re-open if you still have remaining work to do

Build wouldn't start for PR from forked repositories, only from local branches. Re-opening to investigate

From: https://developercommunity.visualstudio.com/content/problem/78882/github-vso-ci-hooks-are-not-firing-for-configured.html

If it is forked from other repository, the pull request and commit are done in the fork repository, it won’t trigger the build definition. It does not currently support forks in GitHub.

Investigating...

build trigger for forked pr is going to come in build system end of this year. no action item in SDK repo for now.closing.

@cijothomas friendly ping.
I think we're good to close this task now, but wanted to confirm you have no pending issues :)

Only thing pending is build trigger for forked repo PRs.. It'll be enabled soon. (waiting for some tests to be stabilized in Hosted)


Set all pods to guaranteed QoS

Check the behaviour of the systests with guaranteed QoS

bors try

bors try

bors try

1 success

bors try

bors try

bors try

bors try

bors try

bors try

bors try

bors merge

bors merge

bors cancel

bors merge

bors merge

bors merge

bors merge

bors merge

bors merge

bors merge


[ROCm] Fixes for vector data type collision in BEF thunk for ROCm.

/cc @chsigg @cheshire @jurahul

@gbaned An import/copybara error occurred.  please let me know how i can help fix this.

Thanks Rohit. I will pull this change manually.


Add Nong Song

Song Name
Rebzyyx - All I want is you (Official Audio)
Artist Name
Rebzyyx
Source
Youtube
Youtube Link
https://youtu.be/3C6smbJdKyY?feature=shared
Direct File Link
No response
Song ID
1
Start Offset [ms]
No response
Extra
No response

reject


Implemented Lobby UI to Match Figma

Closes #48

First image is my wide screen, second image is my regular screen.


lost collections and documents after update

System is CentOS release 6.6 (Final) 64 bit
Not sure how helpful this issue can be,
but perhaps it might "click" something...
I did a yum update from arango 2.4.0 -> 2.4.1
the service was running when I issued the update -as always,
then as usual, after the update was complete, I started the service.
To my surprise around 5 collections were gone and some documents from other collections as well.
All these collections were sync on disk true by default on all operations.
While the update was happening, no operations were pending on the database.
Also, no disk corruption has occurred.
It is the first time I encounter an issue with ArangoDB during/post update.
One more reason why we should dump all databases before an update...

Here is the /var/log/arangodb/arangod.log the day of the update
http://pastebin.com/c7TGCDms
and the /var/log/arangodb/arangod.log.daemon had only these two lines on day of update...
2015-01-28T09:29:55Z [28882] INFO child 28883 died of natural causes, exit status 9
2015-01-28T09:33:24Z [9215] INFO changed working directory for child process to '/var/tmp'

hm, to be able to proceed here we would need a complete copy of database directory, plus the name of the collections that missing.

Unfortunately I did not keep track of the missing collections, I just restored everything to get back to an operational state. If the problem occurs in the future I will try to copy the "corrupted" database directory and provide more information.
I guess this issue should be closed since it can't be more helpful.
Thanks!

ok, Reopen if you find the situation again.
the stage before & after the upgrade would be usefull.


Make ly compatible with the s6 init system?

Is there a way to enable the ly service on s6, currently it is outputting "failed to access console".

I never tried s6 but it sure is an interesting project, supporting it as an init system would be amazing

and dinit , openrc, runit

Mkinit

FWIW, I am currently running ly on my Artix with s6+s6-rc, as a service. Not entirely and fully tested but it seems that the basics are there. I am using this repo, ly-s6. Basically, make sure that getty is not running on tty2 (remove the file named tty2 from getty/contents.d and reload the database). Then, either bring up the service from a terminal, or touch a file named ly in the default/contents.d directory (and, obviously reload) to have it run at the next boot. Again, not fully tested, YMMV. Also, notice that the script is a bash script because I barely started to scratch the surface of execline (the tool of choice in s6 world). Also, it may be the case that making this service a longrun service is pbb not the right choice. It most likely should be a oneshot but I am not sure. HTH

Implemented in master, closing.


Have to use podman system migrate after every reboot

/kind bug
Description
I use Jenkins to build root-less containers using Podman. However, I notice that every time I reboot, I'm presented with the following message when trying to interact with Podman as the Jenkins user through the command line:
-bash-4.2$ podman ps --all
ERRO[0000] cannot join pause process.  You may need to remove /tmp/run-996/libpod/pause.pid and stop all containers
ERRO[0000] you can use `system migrate` to recreate the pause process
ERRO[0000] open /proc/3959/ns/user: no such file or directory

Steps to reproduce the issue:

Get Podman in a working state

Create a Jenkins job which performs certain interactions with Podman through a SHELL step

Try interacting with Podman as the Jenkins user through the command line

Describe the results you received:
Podman complains about not being able to join the pause process.
Doing a podman system migrate seem to usually solve the problem, but doesn't seem very convenient.
Describe the results you expected:
Interacting with Podman as the Jenkins user within the Java process should be the same as interacting with Podman as the Jenkins user through the command line.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
-bash-4.2$ podman version
Version:            1.4.4
RemoteAPI Version:  1
Go Version:         go1.10.3
OS/Arch:            linux/amd64

Output of podman info --debug:
ERRO[0000] cannot join pause process.  You may need to remove /tmp/run-996/libpod/pause.pid and stop all containers
ERRO[0000] you can use `system migrate` to recreate the pause process
ERRO[0000] open /proc/3959/ns/user: no such file or directory

After getting it back to work by deleting the contents of  /tmp/run-996/libpod:
  compiler: gc
  git commit: ""
  go version: go1.10.3
  podman version: 1.4.4
host:
  BuildahVersion: 1.9.0
  Conmon:
    package: podman-1.4.4-4.el7.centos.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 0.3.0, commit: unknown'
  Distribution:
    distribution: '"centos"'
    version: "7"
  MemFree: 750735360
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    package: runc-1.0.0-65.rc8.el7.centos.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.1-dev'
  SwapFree:<PHONE_NUMBER>
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 2
  hostname: jenkins
  kernel: 3.10.0-1062.1.1.el7.x86_64
  os: linux
  rootless: true
  uptime: 10m 17.93s
registries:
  blocked: null
  insecure:
  - localhost:5000
  search:
  - localhost:5000
  - registry.access.redhat.com
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.centos.org
store:
  ConfigFile: /var/lib/jenkins/.config/containers/storage.conf
  ContainerStore:
    number: 1
  GraphDriverName: vfs
  GraphOptions: null
  GraphRoot: /var/lib/jenkins/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 6
  RunRoot: /tmp/run-996
  VolumePath: /var/lib/jenkins/.local/share/containers/storage/volumes

Package info (e.g. output of rpm -q podman or apt list podman):
podman-1.4.4-4.el7.centos.x86_64

Additional environment details (AWS, VirtualBox, physical, etc.):
-bash-4.2$ rpm -q slirp4netns
slirp4netns-0.3.0-1.el7.x86_64

-bash-4.2$ cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)

-bash-4.2$ cat /etc/subuid
jenkins:110000:655360000
-bash-4.2$ cat /etc/subgid
jenkins:110000:655360000

sysctl -w user.max_user_namespaces=15076

is /tmp really a tmpfs?  I'd suggest to ensure /tmp is really cleaned up after each reboot, as there are other things that rely on that behaviour.

is /tmp really a tmpfs? I'd suggest to ensure /tmp is really cleaned up after each reboot, as there are other things that rely on that behaviour.

Aha, you're right. /tmp is just directly part of /, and hence not cleaned up.
How come it relies on being clean though? Wouldn't the things being dependent on it just pickup where they left?
/dev/sda1 on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)

[root@jenkins ~]# mount | grep tmp
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=933556k,nr_inodes=233389,mode=755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,seclabel,mode=755)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=188200k,mode=700,uid=1000,gid=1000)

I used the following commands on Centos (7.7) to enable tmpfs for /tmp and then rebooted.
Seems to have solved my issue, thanks for the pointer @giuseppe !
systemctl enable tmp.mount
systemctl start tmp.mount

How come it relies on being clean though?

in this particular case, we store there the PID for the pause process so it might not exist (or worse be a different process), when you reboot.
Other state that is supposed to not be persistent can be stored there.
XDG_RUNTIMED_DIR usually is under /run.  Since you have it and it is a tmpfs, why not forcing XDG_RUNTIME_DIRto be under/run`?

That's indeed another solution. Thank you for the explanation.

I am running into the exact same problem, but without rebooting the jenkins server. Just manually re-running a jenkins project with podman commands in it produces the error. I tried setting XDG_RUNTIMED_DIR, but it had no effect. I too do not have /tmp listed as using tmpfs, but it seems to me that this pause process file should be cleaned up when the previous jenkins job finishes, regardless of what file system is being used. Not sure if I should file a new issue or this one should be re-opened.

Just manually re-running a jenkins project with podman commands in it produces the error.

@delenius Please check out issue #4655.  Are we encountering the same problem?

Just manually re-running a jenkins project with podman commands in it produces the error.

@delenius Please check out issue #4655. Are we encountering the same problem?

Yes, same problem. I ended up removing my comment because I am running an older version of podman, (1.4.4, same as in #4655), and I figured it might have gotten fixed since then. I also found a workaround, which is to just add
rm /tmp/run-`id -u`/libpod/pause.pid

before the podman command, in the jenkins shell script. Not sure if this has some inherent dangers, mind you ;)

I was having this issue on fedora 31 after updating from 30
$ podman container ls
Error: could not get runtime: open /proc/1445/ns/user: no such file or directory

I fixed it with:
mv /run/user/$(id -u)/libpod{,-000}

I had to do podman system reset -f after reboot.

@wishachu:
That worked well for me. Thumbs up!