Can't operate on closed transaction inside context manager.

child.updateComplete()
[Previous line repeated 3 more times]
File "/home/daniel/.local/lib/python3.8/site-packages/weconnect/addressable.py", line 96, in updateComplete
observer(element=self, flags=self.onCompleteNotifyFlags)
File "/home/daniel/.local/lib/python3.8/site-packages/vwsfriend/agents/charge_agent.py", line 329, in _onPlugLockStateChange
self.updatePosition()
File "/home/daniel/.local/lib/python3.8/site-packages/vwsfriend/agents/charge_agent.py", line 385, in updatePosition
self.chargingSession.charger = chargerFromLatLonWithGeofence(weConnect=self.vehicle.weConnectVehicle.weConnect, session=self.session,
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 537, in set
self.impl.set(
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 1467, in set
value = self.fire_replace_event(state, dict, value, old, initiator)
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/orm/attributes.py", line 1510, in fire_replace_event
state.modified_event(dict, self, previous)
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/orm/state.py", line 927, in _modified_event
session._autobegin_t()
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 1877, in _autobegin_t
trans = SessionTransaction(
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/orm/session.py", line 931, in init
TransactionalContext._trans_ctx_check(session)
File "/home/daniel/.local/lib/python3.8/site-packages/sqlalchemy/engine/util.py", line 111, in _trans_ctx_check
raise exc.InvalidRequestError(
sqlalchemy.exc.InvalidRequestError: Can't operate on closed transaction inside context manager.  Please complete the context manager before emitting further commands.

Same problem, almost every day.
To add more info, it seems the triggering problem is this - new status from the recent 3.7 car OTA update?
2024-12-20T06:36:58+0000:WARNING:addressable:/vehicles/WVGZZZE2ZNP028945/domains/charging/chargingStatus/chargingScenario: An unsupported chargingScenario: immediatelyOptimisedChargingFinished was provided, known values are [off, immediatelyChargingActive, immediatelyChargingFinished, chargingToDepartureTimeWaiting, chargingToDepartureTimeActive, optimisedChargingFinished, errorChargingSystem, unknown charging scenario] please report this as a bug
Traceback (most recent call last):
File "/opt/venv/bin/vwsfriend", line 8, in
sys.exit(main())
^^^^^^
File "/opt/venv/lib/python3.12/site-packages/vwsfriend/vwsfriend_base.py", line 519, in main
weConnect.update(updateCapabilities=True, updatePictures=True, force=True, selective=[Domain.ACCESS,
File "/opt/venv/lib/python3.12/site-packages/weconnect/weconnect.py", line 197, in update
self.updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 533, in updateComplete
child.updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 533, in updateComplete
child.updateComplete()
File "/opt/venv/lib/python3.12/site-packages/weconnect/addressable.py", line 533, in updateComplete
child.updateComplete()


Ble devices are getting disconnected within 3-4 sec after connection.

Hi,
We are  facing some issues between our ble devices (ble version 5) and android mobiles using FastBle library.
We are able to connect our devices with mobile phones like samsung, redmi note 8 pro, redmi not 5 pro and other mobiles.
But when we are trying to connect same devices with mobiles like redmi note 8, redmi note 9 pro max and oppo A53. it is getting disconnected within 3-4 sec with gatt timeout error 8.
After tracing bluetooth snoop log we can see below error.
Attribute not found

{
13274	12783.807351	controller	host	HCI_EVT	8	Rcvd Number of Completed Packets
13275	12783.808066	remote ()	XiaomiCo_de:0a:37 (Redmi note 9 pro max)	L2CAP	497	Rcvd Connection oriented channel
13276	12783.837010	Microchi_95:fc:5a (Endocare)	XiaomiCo_de:0a:37 (Redmi note 9 pro max)	ATT	74	Rcvd Read By Type Response, Attribute List Length: 3, Unknown, Unknown, Unknown
13277	12783.839225	XiaomiCo_de:0a:37 (Redmi note 9 pro max)	Microchi_95:fc:5a (Endocare)	ATT	16	Sent Read By Type Request, GATT Characteristic Declaration, Handles: 0x0057..0x0058
13278	12783.842390	controller	host	HCI_EVT	8	Rcvd Number of Completed Packets
13279	12783.858398	Microchi_95:fc:5a (Endocare)	XiaomiCo_de:0a:37 (Redmi note 9 pro max)	ATT	14	Rcvd Error Response - Attribute Not Found, Handle: 0x0057 (Unknown: Unknown)
}
We have already tried changing connection parameters like interval, latency and timeout but no luck.
We have attached screen shot of  hci snoop log file.
Please suggest on this.

我把链接用的东西都放在application里
当onDestroy()不用蓝牙时
BleManager.getInstance().disconnect(MainApplication.deivce)
MainApplication.GATT.disconnect()
MainApplication.GATT = null
MainApplication.UUID_SERVICE = null
MainApplication.UUID_WRITE = null
MainApplication.UUID_NOTIFY = null
希望对你有帮助

Thank You,
I tried but not working.

It's about your device. Some devices will automatically disconnect within a few seconds if they do not communicate after a successful connection.


[ISSUE #3406]

Task #3406
Make sure that:

[x] You have read the contribution guidelines.
[x] You submit test cases (unit or integration tests) that back your changes.
[x] Your local test passed mvn clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #3482 (d3c1189) into master (244e85f) will decrease coverage by 0.56%.
The diff coverage is 7.31%.

@@             Coverage Diff              @@
##             master    #3482      +/-   ##
============================================
- Coverage     62.99%   62.43%   -0.57%
+ Complexity     5536     5503      -33
============================================
  Files           834      834
  Lines         23101    23165      +64
  Branches       2090     2094       +4
============================================
- Hits          14553    14462      -91
- Misses         7216     7356     +140
- Partials       1332     1347      +15

Impacted Files
Coverage Δ

.../common/dto/convert/plugin/SofaRegisterConfig.java
36.36% <5.88%> (-30.31%)
:arrow_down:

...enyu/plugin/sofa/cache/ApplicationConfigCache.java
25.68% <8.33%> (-5.71%)
:arrow_down:

...plugin/logging/rocketmq/LoggingRocketMQPlugin.java
22.72% <0.00%> (-72.73%)
:arrow_down:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
75.00% <0.00%> (-25.00%)
:arrow_down:

...arter/netty/ShenyuNettyWebServerConfiguration.java
23.68% <0.00%> (-23.69%)
:arrow_down:

...ogging/rocketmq/body/LoggingServerHttpRequest.java
0.00% <0.00%> (-20.00%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
68.29% <0.00%> (-15.45%)
:arrow_down:

...yu/sync/data/http/refresh/AbstractDataRefresh.java
70.00% <0.00%> (-13.34%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
54.25% <0.00%> (-9.58%)
:arrow_down:

... and 42 more

Continue to review full report at Codecov.

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


Error when trying to install firebase-admin-go

[REQUIRED] Step 2: Describe your environment

Operating System version: MacOS Catalina 10.15.7
Firebase SDK version: Latest
Library version: Latest
Firebase Product: _____

[REQUIRED] Step 3: Describe the problem
When trying to install firebase-admin-go i'm getting this error:
go get firebase.google.com/go
# cloud.google.com/go/storage
../../go/pkg/mod/cloud.google.com/go/storage@v1.22.1/bucket.go:1504:5: cannot use r.Condition.AgeInDays (type int64) as type *int64 in field value
../../go/pkg/mod/cloud.google.com/go/storage@v1.22.1/bucket.go:1592:5: cannot use rr.Condition.Age (type *int64) as type int64 in field value

Found this error too. Reproduced it with go 1.17, 1.18 and 1.19

Hey @DaanvandeHaar , @vnddr,
We updated the cloud.google.com/go/storage dependency in Firebase Admin Go v4.9.0 release. Could you try the new release and see if you are still facing this issue, please? Thank you.

I am closing this assuming the issue is now fixed with the dependency upgrade mentioned above. We can reopen later if needed. Thanks.


Is there a way to sync Postgresql Views with Elasticsearch?

PGSync version: 2.2.1
Postgres version: 13.6
Elasticsearch version: 8.1.0
Redis version: 5.0.7
Python version: 3.8.3
Problem Description:
I have created an index in Elasticsearch for Postgresql Views. Whenever I do changes in the Postgres View table, the same changes have to happen in the Elasticsearch index. I tried running the command pgsync with schema.json and got the below error.
Is there a way to sync Postgresql Views with Elasticsearch? Because this is my requirement.
Error Message (if any):
$ pgsync --config /home/vijee/Elastic/schema.json
 - dept_cmpy

2022-03-29 12:50:09.632:ERROR:pgsync.elastichelper: Exception (psycopg2.errors.UndefinedColumn) column dept_cmpy_1.xmin does not exist
LINE 3: WHERE CAST(CAST(dept_cmpy_1.xmin AS TEXT) AS BIGINT) < 699
                        ^

[SQL: SELECT count(*) AS count_1
FROM public.dept_cmpy AS dept_cmpy_1
WHERE CAST(CAST(dept_cmpy_1.xmin AS TEXT) AS BIGINT) < %(param_1)s]
[parameters: {'param_1': 699}]
(Background on this error at: https://sqlalche.me/e/14/f405)
Traceback (most recent call last):
  File "/home/vijee/anaconda3/lib/python3.8/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
    self.dialect.do_execute(
  File "/home/vijee/anaconda3/lib/python3.8/site-packages/sqlalchemy/engine/default.py", line 732, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.UndefinedColumn: column dept_cmpy_1.xmin does not exist
LINE 3: WHERE CAST(CAST(dept_cmpy_1.xmin AS TEXT) AS BIGINT) < 699

Got the same issue, but believe it is not possible at this moment, it is not part of  the supported features.
I believe that if you can tweak the code a little you could make it use a view as the source table for the query, but it would only trigger on changes of 1 of the tables.
Adding a parameter for monitor table, which will have the the trigger logic, and the view could be in the source table could be a solution.
Also wish to thank @toluaina for the great work you have put into this.

Yes I'm afraid views are not supported yet. I hope to do this whan I have a bit of time

I've added support for views in the master branch.
This requires some addition to the schema.json.
For views, you need to include:

base_tables: Each node now requires this entry as a list of tables contributing to the view
primary_key: This is a list of primary_key for the view
foreign_key: Child nodes should include this to indicate the relationship to the parent node

@trymkb

I faced this issue @toluaina
pgsync         |  0:00:00.269252 (0.27 sec)
pgsync         | Traceback (most recent call last):
pgsync         |   File "/usr/local/bin/pgsync", line 7, in <module>
pgsync         |     sync.main()
pgsync         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
pgsync         |     return self.main(*args, **kwargs)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1053, in main
pgsync         |     rv = self.invoke(ctx)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
pgsync         |     return ctx.invoke(self.callback, **ctx.params)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/click/core.py", line 754, in invoke
pgsync         |     return __callback(*args, **kwargs)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/pgsync/sync.py", line 1248, in main
pgsync         |     sync: Sync = Sync(document, verbose=verbose, **kwargs)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/pgsync/sync.py", line 94, in __init__
pgsync         |     self.validate(repl_slots=repl_slots)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/pgsync/sync.py", line 175, in validate
pgsync         |     root: Node = self.tree.build(self.nodes)
pgsync         |   File "/usr/local/lib/python3.7/site-packages/pgsync/node.py", line 276, in build
pgsync         |     raise NodeAttributeError(f"Unknown node attribute(s): {attrs}")
pgsync         | pgsync.exc.NodeAttributeError: "Unknown node attribute(s): {'base_tables'}"

closed as resolved. thanks for your patience on this

I looked into the implementation. Look like pgsync trigger an mat view refresh on any insert/update on the any of base table.
Our case is a bit different. We have aMatView which combines multiple tables. We only update it once every hour as it's too costly to refresh on every update on the table.
Any idea how we can table this ?

@toluaina You mentioned views are supported now but it is still looking for the xmin column in the views

I am still having issue too


Use the QuasiQuote trick from dflemstr to reduce object file size 95%

This patch moves the long list expressions out of Table.hs into data files which are loaded using template haskell.  It reduces the ghc object file size by 95%, and the ghcjs object file size by 99.9%(!)

If you have stopped using this package I would be happy to maintain it and do hackage uploads.

Here is the stack overflow link: https://stackoverflow.com/questions/12716215/load-pure-global-variable-from-file/12717160#12717160

Hello, could you take a look at this PR?  I'd like to resolve this fork.


how to enable vhostuser in runv

I want to use the vhostuser network in runv container but I do not how to enable the vhostuser.
Can you tell me how to enable the vhostuser in runv?
@bergwolf

@bergwolf @telala  vhost-user support is integrated with the #532, the code is completed. However, this option is not enabled in the command line or configuration files, that's the part not completed yet.

@bergwolf @gnawux If I pass through a network card to a runv container. How to setup the network card to make it work?
Now I can see the card using lspci and the driver is also loaded. But I have to setup the card to make use of it.
thanks very much :)

@telala How did you pass through it? The network part of runv is setup/configured via the InterfaceDescription here https://github.com/hyperhq/runv/blob/master/api/descriptions.go#L45


🐛 Installing RFID fails in Python script

Bug
What I did
Re-Installed RPi. After the installer finishes it asks for an RFID device. I have answered with Y.
The following error appears:

INSTALLATION FINISHED

#####################################################
If you are using an USB RFID reader, connect it to your RPi.
(In case your RFID reader required soldering, consult the manual.)
Have you connected your USB Reader? [Y/n]
Traceback (most recent call last):
File "RegisterDevice.py", line 4, in
from Reader import get_devices
File "/home/pi/RPi-Jukebox-RFID/scripts/Reader.py", line 23, in
from evdev import InputDevice, categorize, ecodes, list_devices
ModuleNotFoundError: No module named 'evdev'
chown: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/deviceName.txt': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/deviceName.txt': No such file or directory
DONE. Let the sounds begin.
Find more information and documentation on the github account:
https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/
Reboot is needed to activate all settings
Would you like to reboot now? [Y/n]
Seen already here:
I have seen this error documented already here:
https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/231
Software
Base image and version
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
Branch / Release
Refresh index: 100% (309/309), done.
On branch master
Your branch is up to date with 'origin/master'.
Installscript
cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; ./buster-install-default.sh
Refresh index: 100% (309/309), done.
On branch master
Your branch is up to date with 'origin/master'.
Hardware
RaspberryPi version
Raspberry Pi 3 Model B Plus Rev 1.3

There’s an issue in the installer script.
Please try
cd /home/pi/RPi-Jukebox-RFID/
sudo python3 -m pip install -r requirements.txt

and afterwards
cd /home/pi/RPi-Jukebox-RFID/scripts/
python3 RegisterDevice.py

See also https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/CONFIGURE-stretch#identify-and-configure-your-rfid-reader and https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/CONFIGURE-stretch#register-your-usb-device-for-the-phoniebox

This did the trick! Thanks a lot!
This should make it into the Wiki or get corrected. Right now it is buried in the issues section.

This did the trick! Thanks a lot!
This should make it into the Wiki or get corrected. Right now it is buried in the issues section.

Good to hear. It’s a bug introduced in the installer script. Should be fixed with PR #843


Formating adds escape backslashes again and again with each run - starting with 0.6.2

What version of prettier-plugin-tailwindcss are you using?
v0.6.4
What version of Tailwind CSS are you using?
v3.4.3
What version of Node.js are you using?
v20.12.1
What package manager are you using?
pnpm
What operating system are you using?
Linux / Ubuntu
Reproduction URL
Because the reproduction code is so small I skipped creating a repo. If you want me to I can make one though.
Code at start:
const Test = () => {
  return
;
};

Code after 1st run:
const Test = () => {
  return
;
};

Code after 2nd run:
const Test = () => {
  return
;
};

Describe your issue
I just updated from 0.5.10 to 0.6.4 and suddenly the backslash in the code snippet above kept multiplying itself(s). Versions 0.6.4, 0.6.3, 0.6.2 are affected. 0.6.1 is ok.
I did not except the backslash(es) for the octal escape sequence to be escaped again and again.
Repro:

Install prettier and plugin
Create file with content from above
Run prettier multiple times and set the backslashes comin in

Fix released in v0.6.5 — thanks for reporting! 👍

Thanks for the quick fix and release 👍🏾

@thecrypticace thanks for fixing this bug in the released v0.6.5, but there still seems to be an issue:

extra spaces in the className get removed by prettier-plugin-tailwindcss
extra backslashes are added

Code at start:
const Test = () => {
  return
;
};

Code after 1st run:
const Test = () => {
  return
;
};

Adding another space:
const Test = () => {
  return
;
};

Code after 2nd run:
const Test = () => {
  return
;
};

huh interesting I'll look into it

Workaround
If you're experiencing this, the current workaround (as mentioned by @Cielquan in the PR description) is to downgrade to<EMAIL_ADDRESS>(as long as you don't need the features introduced in the latest versions)

@thecrypticace did you have some time to take a look at this yet?
In case you know generally where the problem is but don't have the bandwidth currently to fix it, maybe a community member could contribute a fix with your guidance...?


Incomplete Documentation

There is incomplete documentation regarding this cmdlet.

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

ID: 49fd66d7-4607-7c61-2d7d-ff71272c587c
Version Independent ID: 77d487a4-b22c-49d1-123b-4c07f45eaa57
Content: Invoke-ComplianceSearchActionStep (exchange)
Content Source: exchange/exchange-ps/exchange/policy-and-compliance-content-search/Invoke-ComplianceSearchActionStep.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@rjohnson13, thanks for the feedback. Apparently, this cmdlet relates to a feature that isn't ready yet, so I've change pretty much everything in the topic to say, "This cmdlet is reserved for internal Microsoft use."


Aborting autopilot not working

Having cloned it via the processe described, the pilot works, however, i am unable ot abort the pilot once it engaged via pressing the end key, which, makes it kinda difficult to use

i think this is an issue with the threading. if the key press is at the same time as other events it can get blocked. try pressing the key repeatedly in quick sucsesion (spam it) and see if that works.

i think this is an issue with the threading. if the key press is at the same time as other events it can get blocked. try pressing the key repeatedly in quick sucsesion (spam it) and see if that works.

Original Kthread lib is out of date I think. Need to use is_alive instead of isAlive.
Try pip install -e git+https://github.com/203Null/kthread.git#egg=kthread


Updated content?

Is this limitations doc still valid in October 2018?
No progresses for these missing features?

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

ID: 64b487e4-704e-7407-dc4e-dbd4787b6b17
Version Independent ID: b7c66d71-1e06-7758-ca85-1f7b62937025
Content: UWP features not yet supported on Xbox - UWP app developer
Content Source: winrt-related-src/extension-sdks/uwp-limitations-on-xbox.md
Product: windows
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

I also wonder the same. There was no updates for quite a while now.

Hi - I've reached out to the developers that own this area, and it sounds like this page is still accurate.
If you are looking for functionality that isn’t currently provided by the product, please use the Windows developer feedback site. We’d be happy to have this on record, where others can view it and upvote it.


fix: change sources shell permission denied

Description

Motivation and Context

Types of Changes

[] Bug fix (non-breaking change which fixes an issue).
[] New feature (non-breaking change which adds functionality).
[] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Definition of Done Checklist:

[] I've read the Contribution Guide.
[] I've updated the documentation. (refer to this for how to do so).
[] I enjoyed my time contributing and making developer's life easier :)

/bin/sh: 1: /tmp/sources.sh: Permission denied
fix: change sources shell permission denied


Control Centre widget doesn't work.. Standard Control Strip remains

Describe the bug
Just reinstalled Pock. Upon reinstalling, everything works very very well, except for the Control Centre area. Usually it'll show up and replace the standard Control Strip from MacOS. Now, I just keep getting the standard MacOS Control Strip. I can't get it to go away. All the other widgets seem to be working..
Expected behavior
Control Centre widget replaces the Control Strip from MacOS
Screenshots
https://imgur.com/a/6CnruPA
Crashlog
Unfortunately there's no crash log.. Just isn't acting the way it should
Versions:

macOS version: 12.3.1
Pock version: 0.9.0-22

Hi! Make sure to have the "Full width" layout selected in Pock's preferences.


AlignBox should be able to take an alignBoundsProperty

There have been a number of cases where we want to dynamically size an AlignBox with a TReadOnlyProperty<Bounds>. We have to create the AlignBox and link to the Property at the moment, but it seems natural for AlignBox to take in a Property on its own.
This would simplify many layout cases using AlignBox without AlignGroup.

I'm kind of evenly split between those options. Do you have a preference?

Consolidating makes more sense to me. This is a property that seems logical for AlignBox to have, and by consolidating my opinion is that we will make it easier for other devs to navigate to AlignBox, as well as find this functionality.
This feels like an issue I can try to accomplish on my own if that feels reasonable to you?

This feels like an issue I can try to accomplish on my own if that feels reasonable to you?

Sounds good to me!

Applied in the above commits. @jonathanolson can you review?

Looks good. In your note "Should this be an assertion?", it probably should be. Added one above. Closing.


DNS Name Unexpectedly Cleared

Versions
NetBox Version: 3.7.3
NetBox DNS Version: 0.22.3
Python Version: 3.9.18
Describe the bug
When the IPAM Coupling feature is enabled, if a zone is not selected in the custom fields for an IP Address object, then the DNS Name property for the IP Address is cleared out. This is a reasonably unexpected behavior based on the documentation provided in the IPAM Coupling Documentation. The logic that implements this behavior is located on L188 of the signals.py code. I would argue that the expected behavior would be that only if a zone is selected should this plugin act upon the data in the DNS Name field and should not clear it at all. If a valid DNS record could not be created from the data in the DNS name field, then an error should be presented to the user.
To Reproduce
Steps to reproduce the behavior:

Enable the IPAM coupling feature
Navigate to an IP address
Edit the IP address (change any field, do not select a zone in the custom fields)
See that the DNS Name has been cleared for the IP

Expected result
DNS Name persists even if zone is unset
Actual result
DNS Name is cleared
Code Examples
@receiver(pre_save, sender=IPAddress)
def ip_address_update_dns_information(instance, **kwargs):
    if not get_plugin_config("netbox_dns", "feature_ipam_coupling"):
        return

    name, ttl, disable_ptr, zone_id = ipaddress_cf_data(instance)

    if zone_id is not None:
        instance.dns_name = f"{name}.{Zone.objects.get(pk=zone_id).name}"
    else:
        instance.dns_name = "" # <--- LOGIC DELETING DNS NAME HERE
        instance.custom_field_data["ipaddress_dns_record_name"] = None
        instance.custom_field_data["ipaddress_dns_record_ttl"] = None
        instance.custom_field_data["ipaddress_dns_record_disable_ptr"] = False
        instance.custom_field_data["ipaddress_dns_zone_id"] = None

Hi @tlskinneriv, thanks for raising this issue. This is exaxtly why the feature is labelled 'experimental', I'm afraid :-(

I would argue that the expected behavior would be that only if a zone is selected should this plugin act upon the data in the DNS Name field and should not clear it at all.

The problem is that we need to be consistent if someone first selects a DNS zone and name (which populates the dns_name field) and then decides that they do not want the DNS record after all and sets DNS zone or name to None. Should the dns_name field then be cleared or not ... there are arguments for both options.
I must admit that I tend to your interpretation - if IPAM Coupling is enabled, do not touch dns_name unless someone explicitly selects a zone and name, in which case it is populated. It's the less destructive variant, and so it should be preferred (both are bad, IMHO).

If a valid DNS record could not be created from the data in the DNS name field, then an error should be presented to the user.

Currently the DNS name field dns_name is not an input field at all. This will most likely change in a future release, but that release is not planned until after NetBox 4.0 is released as it relies on some features that will (hopefully) be part of NetBox 4.0.

Hi @tlskinneriv, thanks for raising this issue. This is exaxtly why the feature is labelled 'experimental', I'm afraid :-(

Absolutely understand the experimental portion of it. We were experimenting with this feature and noticed the behavior, so figured I'd bring it up.

The problem is that we need to be consistent if someone first selects a DNS zone and name (which populates the dns_name field) and then decides that they do not want the DNS record after all and sets DNS zone or name to None. Should the dns_name field then be cleared or not ... there are arguments for both options.

I think at times it would be desirable to have dns_name filled but not coupled to a record in the plugin, especially when DNS for the IP address is not managed by data in Netbox. I agree that there should be consistency between the data in the plugin and what exists in the IP address object. However, I believe that it could be implemented differently to prevent data loss. It could be implemented such that on a save of an IP address, if a zone was previously selected but is now None, then the object should be updated to clear the DNS name and the rest of the data. Conversely, if a zone is selected and all the other pieces are there, then the dns_name should be updated for consistency. The quickest fix I can think of is to query for the current data in the zone field for the IP address and implement logic to compare the previous zone and "going to be saved" zone values. Something like this implementation for the query is what I'm thinking.

Currently the DNS name field dns_name is not an input field at all. This will most likely change in a future release, but that release is not planned until after NetBox 4.0 is released as it relies on some features that will (hopefully) be part of NetBox 4.0.

Apologies, I misunderstood the documentation. I thought that the DNS record would have been created from the data in the dns_name field and am now realizing its created from the custom field "Name".

@peteeckel I did not expect such fast resolution! Thank you very much. The added code looks like it will perform as expected. Looking forward to the next release so I can ingest it in.

It's such a nice evening ... 0.22.4 is out :-)


Add documentation for options/0 type and exclude when docs: false

Previously, in modules that use Tesla, docs: false the option/0 type would
display in the generated documentation without any functions that refer to it in
the documentation.

Thanks!


Set list command in main help section

What type of PR is this:
/kind bug
What does this PR do / why we need it:
This PR moves the list command into the main help section, so it is displayed when running odo help

Small fix
/approve
/lgtm


Drag Preview and size are incorrect when contains position: absolute elements

Describe the bug
Given a draggable item that contains an absolute positioned elements.
When the user drags it.
Then the preview is larger than the component itself and also shows elements below.
It gives the sensation that you are dragging more than one element simultaneously.
Reproduction
Code: https://codesandbox.io/s/react-dnd-example-13-87ot4
Steps to reproduce the behavior:

Start dragging the element "Create some examples"
Look that the drag preview contains some following elements.
Try move it again from any other position to see how preview changes.

Expected behavior
The drag preview size should not exceed the draggable element size.
Screenshots

Desktop (please complete the following information):

OS: Windows 10 & Mac OS 10.14
Browser Chrome
Version 75

Additional context
The same problem arises when the draggable component hides the overflow.
A good practical example for this problem is the drag and drop of virtual-lists.

Seen same behaivour.
It's a very bad user experience.
Can we reopen as it's a non fixed issue?

Agreed. having the same problem

You can use transform: 'translate3d(0, 0, 0)', on your element.

Still failing :/
https://codesandbox.io/s/peaceful-rubin-5q9gft?file=/src/Card.js
I am sorry that I couldn't allocate time to debug the library and contribute a PR with the fix :/

This is still an issue in 2024. Fix of adding transform: 'translate3d(0, 0, 0)' works, but very unintuitive and should be in the docs or put up a fix to allow for absolute positioned elements within the drag zone without visual anomalies to the preview.


fix: blog, calender, topics, user, orgs

Note: Some of this is personal preference (user circle images)
What's the issue:
A lot of things aren't themed.
What's fixed:
This themes pretty much everything that wasn't themed. Github topics, blog headers, organization settings, and a few other changes.
Personal fixes: User images are circled on profiles, usernames are a different color when possible.
Screenshots:
Dashboard

Repo

Organization Page

User Profile

Editor Fix

Thanks for the help!

Topics are still bright (see this: https://github.com/Stypox/beggar-my-neighbour)


Hamburger Menu Transform in Mobile View

I am proposing an improvement request in the Hamburger menu of the site in mobile view
The Menu is statically placed The idea I am thinking of is that We can rotated the upper line & bottom line 45deg & -45deg & animation can be added to ease-in-ease-out so it would have nicer look in the mobile view

@mr-molecule - Thanks for your interest in contributing to Zulip!
I think that you created this issue in response to feedback in this conversation on chat.zulip.org: https://chat.zulip.org/#narrow/stream/101-design/topic/landing.20page.20hamburger/near/1621234?
The feedback there suggested opening a pull request with your changes / idea so that folks could see what you were proposing. In that case, there's no need to open a GitHub issue as well as a pull request, as you can link to the conversation in the pull request comment like I did above.

Hi ,Thanks for the info provided but I need more explanation do i need to open a PR linking the conversation & changes I made ? Sorry i am a beginner at this level

Hi Thanks again for your help !


Openchannels: new command for batched/coin-controlled channel opening

Introduces a new command openchannels with the intent of batching channel opens and implementing coin control, meaning one can select the UTXOs to spend from. Batching is implemented using LNDs support for PSBTs, so there is no external wallet required. The command expects a comma-separated list of public node ids as a minimal input. UTXOs and amounts can be specified as a comma-separated outpoint string.
The command will perform connection checks automatically in the setup phase. Once the setup phase is passed, channel opening is initiated. When everything goes well, before final signing and broadcasting, the user is asked to confirm the channel opening. Anchor reserve outputs are created/respected automatically.
The command has several modes of operation for specifying amounts and utxos:

Specifying UTXOs defines a budget
No amount is given: spend all UTXOs and distribute them equally to the channels - no change created
Specify a total amount and no UTXOs: all UTXOs will be spent - no change created
Specify amounts for channels and no UTXOs: all UTXOs will be spent:

(relative amounts) amounts are smaller than 100: relative amounts are rescaled to fit all UTXOs - no change created
(absolute amounts) amounts are larger than 100: if sum of amounts is smaller than the UTXO budget, change is created, if sum of amounts is larger than UTXO budget, the amount is rescaled such that no change is created

The user can decide if the opening should be private (unannounced) or public (announced).
TODO:

[x] Insert a timer to track the elapsed time
[x] Handle anchor reserves
[x] Decode PSBT for crosscheck
[x] Handle nested P2WKH inputs
[x] Reproduce LND fee estimation bug
[ ] Report bug to LND repo
[x] final testing and code cleanup
Implement a new command for UTXO locking/listing (in another PR)

Related: https://github.com/lightningnetwork/lnd/pull/5356


config.json

"ds_configs/stage2.json"

Hi, the files have been added. Please download the 'ds_config' folder.

Hi, the files have been added. Please download the 'ds_config' folder.

thank you


How use ReadFASTMesh

Hello everyone,
I don't quite understand how to use the matlab ReadFASTMesh function. Does the fileID correspond to a .vtk file? How to generate a mesh file?
If anyone ever has a mesh file so I can analyze the structure.
Thank you for your answers.
Regards,
Tom

The ReadFASTMesh.m function is for reading binary data that was written using the MeshWrBin subroutine in the NWTC Library of OpenFAST (Fortran code). Normal OpenFAST simulations don't call MeshWrBin, though; it's a debugging function.
If you do output meshes in this format from OpenFAST (i.e., change the Fortran code and rebuild it), you could pass the file name to the ReadFASTMesh function as the FileID so the routine would open and close the file. If the file has multiple meshes written to it, you would open the file outside ReadFASTMesh routine, then pass the unit number from fopen and call ReadFASTMesh multiple times.
You can generate VTK files in OpenFAST and analyze them using software like ParaView. The .vtp files contain mesh connectivity and position, and if you output fields, it will give you other information, too.


pull request for e2e test at 01/19/2017 19:56:15

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


only train the adapter but freeze the student model?

Hello, I have some questions.
If we use Roach(same BEV) as the teacher model to train the DriveAdapter model, is it necessary to retrain the student model as well?
What I mean is, can we also freeze the student model's weights and only train the adapter? Is this a good approach?
It seems like it could significantly reduce training time.
Assuming my understanding is correct, would using other teacher models like PlanT result in differences in the student model's perception segmentation task?
I really like your research. Thank you very much.

Hi, thanks for your interests.
We have not tried any of your idea.
However, your understand is correct. One significant advantage of the DriveAdapter paradigm is that it decouples the perception, planning, and sim2real part which teacher, student, and adapter are responsible for respectively while still maintaining the end-to-end ability.
Thus,  you are welcomed to try your idea and report results here. We are glad to hear about more.


Instructions don't work. Cant create CoreML model, crashes

So I'm trying to make my first model. First the installation instructions are incorrect, if you follow them to the T, they fail with a non useful error on pip install -U turicreate. Turns out this project requires you to downgrade to an ancient Python version. How about the installation instructions include that detail, or better yet, make it work with the current version that ships on all Macs.
Ok, so I worked around that, and started on replicating https://apple.github.io/turicreate/docs/userguide/image_classifier/introduction.html to make sure everything is working properly before I go through the work of gathering real training data.
I downloaded the following images into a images folder, with a subfolder for dogs and tractor
dog_urls.txt
tractor_urls.txt
I copy/pasted the sample code into a new python file and just change the paths.
import turicreate as tc

# Load images
sf = tc.image_analysis.load_images('images', with_path=True)

# From the path-name, create a label column
data['label'] = data['path'].apply(lambda path: 'dog' if 'dogs' in path else 'tractor')

# Save the data for future use
data.save('dogs-tractors.sframe')

# Explore interatively
data.explore()

Then go to run it python <file_just_created>.py and it fails because sf = tc.image_analysis.load_images('train', with_path=True) writes to sf but the rest of the file expects it to be data. Another incorrect doc, but easy enough to fix. Changed sf to data and it runs, and I can see that the SFrame matches what I'd expect. Now I copy & paste the next code snippet from the guide, just changing the file names.

# Load the data
data =  tc.SFrame('dogs-tractors.sframe')

# Make a train-test split
train_data, test_data = data.random_split(0.8)

# Automatically picks the right model based on your data.
model = tc.image_classifier.create(train_data, target='label')

# Save predictions to an SArray
predictions = model.predict(test_data)

# Evaluate the model and save the results into a dictionary
metrics = model.evaluate(test_data)
print(metrics['accuracy'])

# Save the model for later use in Turi Create
model.save('mymodel.model')

# Export for use in Core ML
model.export_coreml('MyCustomImageClassifier.mlmodel')

It goes off and processes for a few minutes as expected, then fails in the export to CoreML step:
python export.py
[09:35:58] src/nnvm/legacy_json_util.cc:190: Loading symbol saved by previous version v0.8.0. Attempting to upgrade...
[09:35:58] src/nnvm/legacy_json_util.cc:198: Symbol successfully upgraded!
Resizing images...
Performing feature extraction on resized images...
Completed 340/340
PROGRESS: Creating a validation set from 5 percent of training data. This may take a while.
          You can set ``validation_set=None`` to disable validation tracking.

WARNING: The number of feature dimensions in this problem is very large in comparison with the number of examples. Unless an appropriate regularization value is set, this model may not provide accurate predictions for a validation/test set.
WARNING: Detected extremely low variance for feature(s) '__image_features__' because all entries are nearly the same.
Proceeding with model training using all features. If the model does not provide results of adequate quality, exclude the above mentioned feature(s) from the input dataset.
Logistic regression:
--------------------------------------------------------
Number of examples          : 324
Number of classes           : 2
Number of feature columns   : 1
Number of unpacked features : 2048
Number of coefficients    : 2049
Starting L-BFGS
--------------------------------------------------------
+-----------+----------+-----------+--------------+-------------------+---------------------+
| Iteration | Passes   | Step size | Elapsed Time | Training-accuracy | Validation-accuracy |
+-----------+----------+-----------+--------------+-------------------+---------------------+
| 1         | 7        | 0.000046  | 1.121025     | 0.672840          | 0.625000            |
| 2         | 9        | 1.000000  | 1.173264     | 0.944444          | 0.937500            |
| 3         | 10       | 1.000000  | 1.210695     | 0.996914          | 1.000000            |
| 4         | 11       | 1.000000  | 1.242987     | 0.996914          | 1.000000            |
| 5         | 12       | 1.000000  | 1.277638     | 0.990741          | 1.000000            |
| 6         | 14       | 1.000000  | 1.323503     | 0.996914          | 1.000000            |
+-----------+----------+-----------+--------------+-------------------+---------------------+
TERMINATED: Iteration limit reached.
This model may not be optimal. To improve it, consider increasing `max_iterations`.
0.987654320988
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

I know its getting past the model.save('mymodel.model') line fine as I can see that file being created, and have even been able to open it in another python script successfully.
How do you actually get this thing to export the CoreML file?

Yes I am on Python installed by homebrew. How do I install a version of python that works with this project since it seems like it's so picky about the version & install method???

Hi @amayers , thank you for taking interest in Turi Create!
The documentation issues have already been fixed, as you can see here.
As @srikris have mentioned - the CoreML team is aware of the problem with Homebrew.
There are several recommended ways to install python on macOS:

Using Anaconda - my personal favorite.
Downloading directly from python.org.
Use the native python version that comes with macOS, which is located in /usr/bin/python.

All of which have been tested and work well with both turicreate and coremltools.
If you have any further problems with installing or using turicreate - please feel free to ask.

Hi @igiloh I would have loved to use the native python version that ships with macOS, however Turi Create isn't even found when you try to use pip install -U turicreate on it. It wasn't until I installed 2.7.14 from Homebrew that Turi Create could be pip installed.

Hi @amayers, thanks again for the further input.
I've just re-tested on a clean macOS10.12 and 10.13 machines - and on both I was able to successfully perform
pip install --upgrade pip
pip install -U turicreate

I was also able to create a model and export it to Core ML.
Which macOS version are you running?
Can you please print out the current pip version you're using, and the error you're gertting?

I just uninstalled python from homebrew leaving just the system python installed.
python --version
Python 3.6.3 :: Anaconda, Inc.

Then I recreated the virtual environment:
virtualenv egg_environment
Using base prefix '/anaconda3'
New python executable in /Users/amayers/Code/Side_Projects/egg_environment/bin/python
Installing setuptools, pip, wheel...done.
Andrews-13-MacBook-Pro:Side_Projects amayers$ source egg_environment/bin/activate
(egg_environment) Andrews-13-MacBook-Pro:Side_Projects amayers$ pip install -U turicreate
Collecting turicreate
  Could not find a version that satisfies the requirement turicreate (from versions: )
No matching distribution found for turicreate

I also tried again adding the pip install --upgrade pip line that wasn't in the instructions. It gave the output Requirement already up-to-date: pip in ./egg_environment/lib/python3.6/site-packages, and didn't fix the install error.
I'm running macOS 10.13.2 (17C88), and pip:

As mentioned in the documentation, turicreate only supports python 2.7 at the moment. Any python 2 version from 2.7.8 and up to the latest 2.7.14 (released 9/2017) should work.
Python 3 support is still an ongoing process, as you can see here: https://github.com/apple/turicreate/issues/2
macOS 10.13 comes natively with python 2.7.10, and should support the turicreate package out of the box.
If you do choose to install Anaconda (which again, I personally really enjoy) - please make sure to install the python 2.7 version, which is available here.

For the macOS native python, it should look like this
$ python --version
Python 2.7.10
$ which python
/usr/bin/python

If you see /usr/local/bin/python for your python location then you probably have a mismatched version of Python and pip.
As @igiloh mentioned, your Python seems to be 3.6 which isn't yet supported (we will be fixing that soon). So Python 2.7 should work.

After I installed Anaconda 2.7 it now works. But this is the first time I've done any python on this machine, and it had 3.6 on it. I guess some 3rd party app updated it?


Cannot slip left and right on the button card with the compact-custom-header

Cannot slip left and right on the (Button Card by RomRider) with the compact-custom-header
HA: 0.100.2, IPHONE XS MAX IOS:13.0
Hello, roflcoopter,thanks for the update.... one of your very old version can slip to left page and right page on the button card with the compact-custom-header , the latest version cannot , but after maybe version 1.1? It become cannot . i will upload the old version to you, but i dont remember what is the version number lol.
deep-press.zip
`
`

Resolved in the latest beta 1.2.3b5


Not working for IOS in a Multi Module KMP Project

Platform
Apple
Installed
CocoaPods
Version
0.7.1
Steps to Reproduce
App Crashes as well as manual Sentry.captureException() does not work on iOS
Sample Reproducer Repo - https://github.com/Medial-Tech/Medial-App-Reproducer
Sentry initialization code in shared-core module - https://github.com/Medial-Tech/Medial-App-Reproducer/blob/main/shared/core/src/commonMain/kotlin/com/medial/app/core/SentryHelper.kt
Sentry wrapper in Umbrella module, which is exposed to native android and iOS - https://github.com/Medial-Tech/Medial-App-Reproducer/blob/main/shared/src/commonMain/kotlin/com/medial/app/Sentry.kt
Expected Result
It should be captured and shown in Sentry web console
Actual Result
Nothing is logged or captured

you are not initializing the sdk on iOS
import SwiftUI
import shared

@main
struct iOSApp: App {
    init() {
        // this was missing
        Sentry().doInit()
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

I just confirmed that this is the problem.
I installed the sample locally and added the mentioned fix above and it works fine.
Make sure the Sentry init function is called.


feat: Allow controller version to be specified

Description
PR implements support for passing explicit controller version to install as major.minor.patch version string OR pulling the latest version automatically from Ubiquiti servers by specifying --latest
Examples
No version specified
Command:
... ~] #: install-unifi.sh

Result:

Install "known good" / "stable" version - 6.5.55

Explicit version specified
Command:
... ~] #: install-unifi.sh --version 1.23.45

Result:

Attempt to install UniFi controller version 1.23.45 (no check is made if specified version actually exists upstream, user beware)

Latest version specified
Command:
... ~] #: install-unifi.sh --latest

Result:

Query Ubiquiti API for latest version number, install accordingly

At the time of this writing (2022-08-06), the --latest option currently resolves to 7.1.68

You could separate out the version string from the install script and store it in a file in the repository.  That way you're only having to update the version text file with the latest version number instead of the download link in the install script.  Something like this code would also allow specifying a version number as an argument when the script is ran.
# The version text file saved in the repository:
VERSION_URL="https://raw.githubusercontent.com/unofficial-unifi/unifi-pfsense/master/version"

clear
# The latest version of the UniFi Network Application or use the version number argument supplied:
UNIFI_VERSION=$1
if [ -z "$UNIFI_VERSION" ]; then
  echo "UniFi controller version not supplied, retrieving the latest version number from repository..."
  UNIFI_VERSION="$(
    curl -s "$VERSION_URL" 2>/dev/null
  )"
  # check to be sure version number format seems correct at least
  if ! $(echo "$UNIFI_VERSION" | egrep -q '^[0-9]+\.[0-9]+\.[0-9]+$'); then
    echo "Fetched version \"$UNIFI_VERSION\" doesn't make sense"
    echo "If that's correct, run this script again with \"$UNIFI_VERSION\" as the first argument:  sh install-unifi.sh \"$UNIFI_VERSION\""
    exit 1
  fi

  printf "OK to download and install UniFi controller version $UNIFI_VERSION ? [y/N] " && read RESPONSE
  case $RESPONSE in
    [Yy] ) ;;
    * ) exit 1;;
  esac
fi
UNIFI_SOFTWARE_URL="https://dl.ui.com/unifi/${UNIFI_VERSION}/UniFi.unix.zip"

This could possibly be extended to retrieve the latest version directly from the UniFi page much like the PHP code referenced and all done within bash but my curl fu isn't adequate to follow/render the JS that builds the page and parse it looking for the latest version.

@the-wondersmith  This is definitely a valuable feature add. However, please note, the script may work on a FreeBSD station but it fails on pfSense. v2.4/5/6 neither of them come with bash. Similarly there is no jq installed natively on a pfSense install.
I started using jq in the AddPackage function that originally used sed, but the script would fail.
So before using jq it must be installed/checked as well. Hope you won't mind if I add this to the controller update 7.x.xx PR (of course with credit).
Thanks


How can I prevent Enums from being renamed?

I decided to try to go forward with some small customization of the RenamePhase so that all public artifacts keep their names, including Events and Fields as I want users of my obfuscated dlls to be able to reference all things that are public but I'm running into some difficulties with Enum.
When going through all the obfuscation targets: foreach (var def in target)
the target list doesn't seem to have the Enums in there although their names are being obfuscated.
Can you help me find where the Enums are being renamed?

If you want to modify the renaming process I'd suggest to register a new IRenamer at this point in the NamingService. These renamers are able to process all types and members and are expected to set the "CanRename" flag using INamingService.SetCanRename. This way the renaming of a specific type or member can be disabled. You find the default implementations of those renamers here. The Enums are in the end just types and their members are static fields.
This should also work using the default version of ConfuserEx using the pattern. is-public() should trigger on all types and members that are visible outside if you assembly. Meaning all public members that are in public types (in case of type nesting, all types have to be public) and it should also trigger on all protected members. If it does not, something is wrong. If you need help there I need more details on the visibility structure of the code you are trying to obfuscate.
The pattern are pretty confusing right now, and I am planning to extend them and change their behaviour a bit to make it clearer what they are expected to do, as the current is-public() should rather be called is-visible-outside()

I think that ConfuserEx should be made to respect the System.Reflection.Obfuscation attribute.

The 1.x version (master brach) does not rename public members by default and the 2.x version is planned to do so, but in a different way. Currently the 2.x version doesn't do this by default.
Both versions respect the Obfuscation attribute.

the 2.x version is planned to do so, but in a different way

What does this mean?? ... and this seems like a really bad idea IMHO


Chinese cannot be displayed

const source = {
    url: source1,
    cMapUrl<EMAIL_ADDRESS>    cMapPacked: true
}

Can fix this problem.


[TASK] Move the regression test cases to the longhorn manual test website

What's the task? Please describe.
Restructure the manual test cases on the website.
Describe the items of the task (DoD, definition of done) you'd like.

[x] Add the regression test cases on the website.
[ ] Identify the test cases for automation and convert them to code.

Identify the test cases for automation and convert them to code.

This is something which is on going efforts. So closing this ticket.


[Bug] Unexpected Kyverno Policy require-requests-limits Triggering on Deployment and ReplicaSet Resources

Kyverno Version
1.10.x
Kubernetes Version
1.26.x
Kubernetes Platform
Bare metal
Description
I am facing an issue with the Kyverno policy require-requests-limits causing Deployment and ReplicaSet resource validation errors, even though the policy was created for the Pod they are being validated with the required resource requests and limits specified. The validation error message received is:
validation error: CPU and memory resource requests and limits are required. rule autogen-validate-resources failed at path /spec/template/spec/containers/0/resources/limits/
The error is not exclusive to a particular application; it's prevalent across various applications including but not limited to metallb-controller. The policy seems to work fine on Pod resources but fails to validate Deployment and ReplicaSet resources.
Below are the snippets from a representative Deployment manifest and the Kyverno policy in question:
Deployment Manifest (Example from metallb-controller):
...
      containers:
        - name: metallb-controller
          ...
          resources:
            limits:
              cpu: 100m
              memory: 256Mi
            requests:
              cpu: 30m
              memory: 128Mi
...

Kyverno Policy:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: require-requests-limits
  annotations:
    policies.kyverno.io/title: Require Limits and Requests
    policies.kyverno.io/category: Best Practices, EKS Best Practices
    policies.kyverno.io/severity: medium
    policies.kyverno.io/subject: Pod
    policies.kyverno.io/minversion: 1.6.0
    policies.kyverno.io/description: >-
      As application workloads share cluster resources, it is important to limit resources
      requested and consumed by each Pod. It is recommended to require resource requests and
      limits per Pod, especially for memory and CPU. If a Namespace level request or limit is specified,
      defaults will automatically be applied to each Pod based on the LimitRange configuration.
      This policy validates that all containers have something specified for memory and CPU
      requests and memory limits.
spec:
  validationFailureAction: Audit
  background: true
  rules:
  - name: validate-resources
    match:
      any:
      - resources:
          kinds:
          - Pod
    exclude:
      resources:
        namespaces:
        - kube-system
        - nginx-proxy
    validate:
      message: "CPU and memory resource requests and limits are required."
      pattern:
        spec:
           containers:
              - name: "*"
                resources:
                  limits:
                    memory: "?*"
                    cpu: "?*"
                  requests:
                    memory: "?*"
                    cpu: "?*"

Steps to reproduce

Apply the Kyverno policy require-requests-limits to your Kubernetes cluster.

kubectl apply -f kyverno-policy.yaml

Deploy an application, for instance, metallb-controller, with the necessary resource requests and limits specified in its Deployment manifest.

kubectl apply -f metallb-controller-deployment.yaml

Observe the validation error triggered by Kyverno on the Deployment and ReplicaSet resources.

kubectl describe deployment metallb-controller -n <namespace>
kubectl describe replicaset <replicaset-name> -n <namespace>
kubectl events --types=Warning

Expected behavior
The require-requests-limits policy must check the requests and resource limits specified in Pod manifests and not fail on Deployment and ReplicaSet manifests
Screenshots

Kyverno logs
No response
Slack discussion
No response
Troubleshooting

[X] I have read and followed the documentation AND the troubleshooting guide.
[X] I have searched other issues in this repository and mine is not recorded.

Not exactly sure, but it could be because your exclude block does not use an any or all statement, which can produce unexpected results. This works just fine.


Add docs for new APPEND and WRITE error codes

🔍 🔎
 👄

:mag: :mag_right:

:lips:

HAHA what :laughing:
Thank you very much for documenting this!


Excessive Log Parser Lambda executions causing rate limit problems

Describe the bug
I have reported this to the support team and I'm in ongoing conversations with them which you may be aware of, but they mentioned I could post here to receive updates too.
We migrate to WAF v2 recently with the latest version of Security Automations, and since doing so we're having constant problems with rate limit errors, both via the API and in the console. This has now been tracked down to the Log Parser Lambda function being run excessively, meaning it's using up the quota for updates to IP lists, causing us to be unable to make changes ourselves. The knock-on effect of this is that our costs have noticeably increased since migrating.
To Reproduce
Migrate to WAF v2 and set up Security Automations by following the instructions. Then try to update an IP set, for example delete an IP. You then get one of two errors:
ThrottlingException: Rate exceeded
or
WAFOptimisticLockException: AWS WAF couldn’t save your changes because someone changed the resource after you started to edit it. Reapply your changes.
Expected behavior
No rate limiting errors from regular usage. No increase in costs from WAF Classic with previous version of Security Automations.
Please complete the following information about the solution:

[ ] Version: 3.0.0

To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "(SO0021) - Video On Demand workflow with AWS Step Functions, MediaConvert, MediaPackage, S3, CloudFront and DynamoDB. Version v5.0.0". If the description does not contain the version information, you can look at the mappings section of the template:
Mappings:
  SourceCode:
    General:
      S3Bucket: "solutions"
      KeyPrefix: "video-on-demand-on-aws/v5.0.0"

[ ] Region: us-east-1
[ ] Was the solution modified from the version published on this repository? No
[ ] If the answer to the previous question was yes, are the changes available on GitHub?
[ ] Have you checked your service quotas for the sevices this solution uses?
[ ] Were there any errors in the CloudWatch Logs?

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).
Additional context
Add any other context about the problem here.

Thanks for reporting the issue. We are aware of this and added it to our backlog for investigation. The WAF service has one request per second limit for Create, Put, or Update action. Any calls beyond that may be throttled. Can you please provide the following information to help our investigation?

The input parameter/value for your cloudformation stack
Did throttling happen only when you tried to update ip set on your own?

Key
Value
Resolved Value

ActivateAWSManagedRulesParam
yes
-

ActivateBadBotProtectionParam
yes
-

ActivateCrossSiteScriptingProtectionParam
yes
-

ActivateHttpFloodProtectionParam
yes - AWS WAF rate based rule
-

ActivateReputationListsProtectionParam
yes
-

ActivateScannersProbesProtectionParam
yes - AWS Lambda log parser
-

ActivateSqlInjectionProtectionParam
yes
-

AppAccessLogBucket
frontend-cf-logs2.aiir.net
-

EndpointType
CloudFront
-

ErrorThreshold
50
-

KeepDataInOriginalS3Location
No
-

RequestThreshold
100
-

WAFBlockPeriod
240
-

No - according to CloudTrail, UpdateIPSet events are happening many times per second. This isn't us - we have a script which updates an IP set but it only runs once an hour, and most hours it is blocked. See this sample:

Thank you for the information. The solution shouldn't update ip set that frequently under normal circumstances. I am also communicating with our support engineers to get more context regarding your case. They will keep you updated from here on.

I am facing the same problem, infect I have noticed that due to "WAFOptimisticLockException: AWS WAF couldn’t save your changes because someone changed the resource after you started to edit it. Reapply your changes." error from updateipset action of logparsar lambda function it is doing same ip update attempts many times. Below is example event of update ip set with error..
{"eventVersion":"1.05","userIdentity":{"type":"AssumedRole","principalId":"xxxx:xxxx-LogParser-xxxx","arn":"arn:aws:sts::xxxx:assumed-role/xxxx-LambdaRoleLogParser-xxxx/xxxx-LogParser-xxxx","accountId":"xxxx","accessKeyId":"xxxx","sessionContext":{"sessionIssuer":{"type":"Role","principalId":"xxxx","arn":"arn:aws:iam::xxxx:role/xxxx-LambdaRoleLogParser-xxxx","accountId":"xxxxx","userName":"xxxx-LambdaRoleLogParser-xxxx"},"webIdFederationData":{},"attributes":{"mfaAuthenticated":"false","creationDate":"2020-09-23T01:29:23Z"}}},"eventTime":"2020-09-23T01:45:22Z","eventSource":"wafv2.amazonaws.com","eventName":"UpdateIPSet","awsRegion":"ap-northeast-1","sourceIPAddress":"x.x.x.x","userAgent":"Boto3/1.14.48 Python/3.8.5 Linux/4.14.177-104.253.amzn2.x86_64 exec-env/AWS_Lambda_python3.8 Botocore/1.17.48","errorCode":"WAFOptimisticLockException","errorMessage":"AWS WAF couldn’t save your changes because someone changed the resource after you started to edit it. Reapply your changes.","requestParameters":{"name":"ScannersProbesSetIPV4","scope":"REGIONAL","id":"eaca0359-0200-4b8f-ac26-383a09fa89af","description":"Block Scanners/Probes IPV4 addresses","addresses":["<IP_ADDRESS>/32"],"lockToken":"058953b5-e66a-4da3-ae3f-109bc1087add"},"responseElements":null,"requestID":"6794773d-3290-4a56-9f46-3d7bb7b60ba3","eventID":"9f72ab5b-0aa8-4bc3-a2f7-2287730149f4","eventType":"AwsApiCall","apiVersion":"2019-04-23","recipientAccountId":"xxx"}

Thank you for the information. We have added it to our backlog and will address it in future releases as needed.

Hi!
We just released v3.2.0 of the solution, and this issue has been fixed.


Fix sort icon for component field type

If we have sortable __component field type, sort icon is not displaying because it is overwritten by v-html directive used to render the content of th element.
This patch solves the problem by simply echoing out field title (if provided) instead of using v-html directive.

Thanks a lot, @loshmis. Unfortunately, I'm unable to check on it at the moment. Will do so as soon as I can.


Inaccurate statement regarding FOD's

This:
https://github.com/divnix/nix-book/blob/f6448f447d5584854803ac7829e3dd1c00686a32/src/ch04-00-derivations.md?plain=1#L15-L16
isn't actually true. pkgs.fetchurl {...} refers to pkgs.curl, for example.

it is true for builtins.fetch*.
Although nixpkgs has it's own variants of fetchers, I think the intuition is still correct. The derivation may have references to other derivations for realization, but once realized, the output will never have any dependencies.
I guess the confusion would be build vs "runtime" dependencies. FODs should never have any runtime dependencies, they are just content.
What would be a better way to word this?

it is true for builtins.fetch*.

Strictly speaking, those aren't FODs, since afaik they don't involve a .drv file at all, but I definitely get the intuition behind this.

Although nixpkgs has it's own variants of fetchers, I think the intuition is still correct. The derivation may have references to other derivations for realization, but once realized, the output will never have any dependencies.
I guess the confusion would be build vs "runtime" dependencies. FODs should never have any runtime dependencies, they are just content.

It's true they are leaves of the runtime dependency graph (though in practice they're seldom in it at all), but in context, I don't see how it could be interpreted that way. The whole discussion is about the build closure.

What would be a better way to word this?

Maybe just move to the subject of intent rather than implementation, and say that FODs are the starting points from which you build software?

Maybe just move to the subject of intent rather than implementation, and say that FODs are the starting points from which you build software?

Fair enough

It's true they are leaves of the runtime dependency graph (though in practice they're seldom in it at all)

Yea, poor word choice. I meant they get pruned after they get realized. So when they are consumed for a build, it's "just" the content.

I meant they get pruned after they get realized.

It took me a few goes at this before I caught precisely what you mean. You're viewing the build closure as a dynamic object, which is pruned as derivations are realized, until it eventually becomes the runtime closure? In that context, FODs have the fairly uncommon property that upon realization all their children disappear.
I never particularly considered the dynamic picture, and only looked at the initial build closure and the final runtime closure as static objects.

In that context, FODs have the fairly uncommon property that upon realization all their children disappear.

Yea, technically you could try multiple fetchers, one using git, one using http, another using some other protocol. And as long as they can all produce the same content, it's not relevant for the consuming derivation to know which one was used. Just that the content is available.
The build dependencies are an "implementation" detail. Or at least with how I view FODs. Maybe I'm wrong :)


[New Feature] Send Interactive Reply Buttons Message

WHAT

Adds classes for,

Interactive
InteractiveHeader
InteractiveBody
InteractiveFooter
InteractiveAction
InteractiveActionButton

Adds example to send interactive reply buttons message

WHY
Fixes #8
TODO

[ ] Fix sorbet raising an error on nilable object even though nil check is performed, eg, here

@ignacio-chiazzo Please check out and share your feedback regarding the implementation of interactive reply button messages. Let me know what needs to be done to make it ready.


[SPARK-13490] [ML] ML LinearRegression should cache standardization param value

What changes were proposed in this pull request?
Like SPARK-13132 for LogisticRegression, when LinearRegression with L1 regularization, the inner functor passed to the quasi-newton optimizer in org.apache.spark.ml.regression.LinearRegression#train makes repeated calls to $(standardization). This ultimately involves repeated string interpolation triggered by org.apache.spark.ml.param.Param#hashCode. We should cache the value of the standardization rather than re-fetching it from the ParamMap for every iteration.
How was this patch tested?
No extra tests are added. It should pass all existing tests.

Test build #51954 has started for PR 11367 at commit f9c79b1.

Test build #51954 has finished for PR 11367 at commit f9c79b1.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/51954/
Test PASSed.

Merged build finished. Test PASSed.

Merged to master


Ignore private packages in typetests

Private packages aren't published so it doesn't make sense to run typetests on them.

thank you @tylerbutler!!


Findbugs plugin: passes all source files to "-sourcepath " parameter

Expected Behavior
The findbugs plugin should pass only the directories containing the source code instead of all files.
Current Behavior
The findbugs plugin as of gradle 3.5 passes the whole source set to the "-sourcepath" parameter.
For big projects findbugs takes minutes to just pass that mess before even starting to analyze.
Context
Instead of taking 6 minutes for the analysis it takes 18 40 minutes.
Workaround
findbugsMain {
...
    extraArgs = [ '-sourcepath', 'src/main/java']
}

tasks.withType(FindBugs) {
    // Bug workaround: per default the findbugs plugin passes ALL source files
    // per command line to the "-sourcepath" parameter that expects just a few
    // src DIRECTORIES.
    source = fileTree("src/main/NOTEXISTS")
}

Fixing
I can fix this issue myself and provide a pull request if someone familiar with gradle philosophy
in general and plugin behavior tells me

how one should transform source sets to a minimal set of directories or
is it ok to just use the top level srcDir directories
how to access the top level src dirs from the sourcesets.

The real input for findbugs is the list of classes, not the source dir so I expect it to be OK to just list the top level src dirs.

Instead of taking 6 minutes for the analysis it takes 40 minutes.

Are these time measurement you provided a comparison of the execution time between Gradle 3.4 and 3.5?

No. It's the diference between using the workaround and using findbugs plugin out of the box.

OK, I am just trying to confirm that this is not a regression that happened in 3.5 specifically.

The Findbugs plugin is removed in Gradle 6.0.
Please use an alternative plugins like https://plugins.gradle.org/plugin/com.github.spotbugs


InvalidApnsCredential ios 10?

The issue I posted does not concern the certificate because the certificate is trusted because it is still valid.
The problem concerns the plugin because as seen from my example I tested with ios 10 when I call the getTheToken () function WITHOUT RECOGNIZING THE FUNCTION THAT I HAD TO DISPLAY NOTES window.FirebasePlugin.grantPermission (); I do not receive any error on the certificate, in fact getting feedback on the server:
{"Multicast_id"<PHONE_NUMBER>278374045, "success": 1, "failure": 0, "canonical_ids": 0, "results": [{"message_ID": "0:<PHONE_NUMBER>775201% 812d9b5d812d9b5d"}]}
But I do not see any notification on the device even if I'm successful!!
If I ask permissions using the function
window.FirebasePlugin.grantPermission ();
When I try to send the message from the server I get:
`{" Multicast_id "6314053970229096456," success ": 0," failure ": 1," canonical_ids ": 0," results ": [{" error ":" InvalidApnsCredential "}]}
I would like to understand why this happens? I used a ipad with version 10.3.
Someone tested on ios 10 confirm me that it works? thank you

That happen to me a few weeks ago...
The problem is indeed the certificate. You got a first successfull message because you were registered to firebase, but after the first push, APNS refused the certificate and firebase refuse your certificate after that.
Check the certificates, if you are trying to sign them using a windows system, I wish you good luck, I tried every way I could using a windows system for 2 weeks and I couldn't do it, I changed plugin and everything until I get a mac and after generate the certificates throught the mac it worked like a charm...

So did you plug this plugin with ios 10 and confirm that pushes work?
Meanwhile the certificates I have created them with a mac .. I do not understand why it does not work
I wanted to confirm somebody before doing a test drive.

Yes, and I tested on a iPad and in a iPhone since iPad doesn't have vibration.
Make sure you don't mix the production certificate with the sandbox one...
I followed this guide: https://firebase.google.com/docs/cloud-messaging/ios/certs

Thanks feel you can send me a test project if possible maybe we put it here so that everyone can see it? You can contact me at my<EMAIL_ADDRESS>email.

Well, I don't have any test project to share, when I did this, it was to a company where I work and I'm not allowed to share the code...
Just be sure about the certificates and remember to download the GoogleService-Info and put it in your root folder and one of the things that I forgot to tell you is to compile the code using the Xcode. build the project with cordova and then open it with Xcode.

@jpfsilva How do you switch between Production and Sandbox? On Firebase Console I've configured for both. But how do we switch between it while using the plugin?

Do ionic build ios --release and then publish it with Xcode...
There is a guide: http://ionicframework.com/docs/v1/guide/publishing.html

@jpfsilva
I'm not using ionic but it works with the following:
cordova build ios --release
Never knew there was --release. Thank you so much it works like a charm!


Path for atom.workspace.open is case sentive

Although something like C:\path\Main.ext is the same thing as C:\path\main.ext for the Windows filesystem, Atom opens different windows. One with the title "Main.hx" and other with "main.hx"...
They point to the same file. If I edit and save one the other window is updated.
I'm using a tool that output the path always in lower case and atom.workspace.open to open in a given line and column.
On Windows 8.1, Atom 1.03, Javascript, the follow open two windows for the same file:
atom.workspace.open(path, {
  initialLine: line,
  initialColumn: column,
  searchAllPanes: true
});

atom.workspace.open(path.toLowerCase(), {
  initialLine: line,
  initialColumn: column,
  searchAllPanes: true
});

Given the cross-platform nature of Atom and the case-sensitivity across systems we have decided not to change the behavior on Windows to try and do something different there and will continue to treat paths case-sensitive - this is especially important for other code paths such as opening urls which are still case-sensitive on Windows.

As this is causing issues in some packages it would be nice if this could be fixed here. For now it looks like a workaround like bringing in true-case-path might need to be done in packages where this is a problem.

Note that this is also an issue on OSX (any file system where case isn't sensitive to the file system for resolving a file).


Add file type component

I added this to my personal config and I think it gives a good touch, but it has the icons dependency. Tell me what you think and I finish it.
I did not check what needs to be done yet to implement the component correctly.

Thanks for PR

Apologies for the revert, but I've noticed that the icon only has a single color. Could you please add more colors to it? It will be more beautiful.


Add ResNet [18, 34]  to keras.applications

System information.
TensorFlow version (you are using): 2.5
Are you willing to contribute it (Yes/No): Yes.
Describe the feature and the current behavior/state.
Currently, we have ResNet 50/101/152. However, sometimes it's needed to test the idea initially with some small models quickly and for that, if we want to choose a res-net-based model we can't just pick 50 because it's still too heavy to train. That's why we think it would be nice to have resnet18 and resnet34 as well with the keras packages.
Will this change the current api? How?
Yes. It will include
from tensorflow.keras.applications.resnet18 import ResNet18
from tensorflow.keras.applications.resnet34 import ResNet34

Who will benefit from this feature?
ML engineers and researcher who uses tf.keras.
Others
Others implementation: https://github.com/qubvel/classification_models

Can I work on this?

@quantumalaviya of course. Just send a PR. It should be welcomed.

So, I just wrote the code but I notice some differences in the number of parameters when compared to https://github.com/qubvel/classification_models. Any suggestions on how to add weights?

Thanks for opening the issue. Can you provide a paragraph as a proposal for justifying adding this model? If you can provide some context of how widely this is used or some citation, that would be helpful.

@rchao
FYI, These have been asked before. #151
@quantumalaviya could you please check out this implementation, it already exists in keras-contrib but is not included in keras.

https://github.com/breadbread1984/resnet18-34 . you may try this implement.

+1

@breadbread1984 It would be nice to send PR. WDYT?

@LukeWood Will the new model be added to keras.application or keras_cv?

for now keras.applications.

In the end, we added the model in keras-cv, see this PR


Use the unique ID in the external table as the UUID for authentication

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #19165
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

[FE PR Coverage Check]
:heart_eyes: pass : 6 / 6 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/privilege/TablePEntryObject.java
6
6
100.00%
[]

run starrocks_admit_test

@Mergifyio backport branch-3.0


KAFKA-2401: fix transient failure in ProducerSendTest.testCloseWithZeroTimeoutFromSenderThread

@becketqin Could you explain what are the causes of the failure?

@guozhangwang , Jun and Harsha found this.
In the current test, because we are producing messages to two partitions. The partitions might be on different broker, so the callback execution order might be different. In the test, when we call producer.flush(), there might be two different requests sent to the two brokers. In the callback of records sent to partition 1, we force close the producer. When the following two conditions are met:

The first producer request sent to partition 0 somehow failed and producer request to partition 1 succeeded.
The callback for producer request to partition 1 fired before the callback for partition 0 fired.
In that case, the producer will not retry send records to partition 0. So the test will fail.

LGTM.


[LCS] enforce canonical encoding for BTreeMaps (but not BTreeSets)

Motivation
The LCS serializer makes sure to sort keys (by bitstring) before outputting the serialization of a map but we forgot to implement the corresponding validation check in the LCS deserializer. This PR enforces the right behavior.
Note that by default, Serde derive macros currently deserialize BTreeSets as sequences [1].
This is a bit unfortunate for us but perhaps it make sense for performance. (Need to ask DT)
This is an additional motivation for tracking the data formats resulting from Serde macros in a text file [2].
Test Plan
cargo x test -p libra-canonical-serialization

Related Links
[1] https://docs.serde.rs/src/serde/de/impls.rs.html
[2] https://github.com/libra/libra/pull/3104

unsubscribe
https://github.com/notifications/unsubscribe-auth/AGX6HYDKKNBB7OGBCSH63BDRJITT3ANCNFSM4LTEUN4A
On Wed, Mar 25, 2020 at 9:05 AM Brandon Williams<EMAIL_ADDRESS>wrote:

@bmwill approved this pull request.
This is awesome! Thanks for finding and plugging this hole in the
implementation. Just proves its better to have more eyes on this since more
than 1 person missed this
In common/lcs/src/de.rs
https://github.com/libra/libra/pull/3119#discussion_r397970926:

@@ -450,8 +466,18 @@ impl<'de, 'a> de::MapAccess<'de> for SeqDeserializer<'a, 'de> {
if self.remaining == 0 {
Ok(None)
} else {

       let previous_slice = &self.de.input[..];

       let value = seed.deserialize(&mut *self.de)?;

Calling this a value was tripping me up since its not the value in the
map, its a key. Perhaps we could rename the variables to more accurately
describe what they are?
In common/lcs/tests/serde.rs
https://github.com/libra/libra/pull/3119#discussion_r397973387:

+fn map_not_canonical() {

let mut map = BTreeMap::new();
map.insert(4u8, ());
map.insert(5u8, ());
let seq = vec![2, 0, 0, 0, 4, 5];
assert_eq!(from_bytes::<BTreeMap<u8, ()>>(&seq), Ok(map));
// Make sure out-of-order keys are rejected.
let seq = vec![2, 0, 0, 0, 5, 4];
assert_eq!(

   from_bytes::<BTreeMap<u8, ()>>(&seq),

   Err(Error::NonCanonicalMap)

);
+}

+#[test]
+fn by_default_btreesets_are_serialized_as_sequences() {
Hmm I guess i never thought about sets but really they probably should be
serialized/deserialized as Map<Key, ()> in order to preserve the
uniqueness guarantees.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/libra/libra/pull/3119#pullrequestreview-381293604,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGX6HYDKKNBB7OGBCSH63BDRJITT3ANCNFSM4LTEUN4A
.

@bors-libra r=bmwill

:pushpin: Commit 2cae60c has been approved by bmwill

:hourglass: Testing commit 2cae60cf1ec44e89384b0eddbef493d84278139b with merge fa9e00a5f624f8dd1f636f7d5c6987f4c9ad470b...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: bmwill
Pushing fa9e00a5f624f8dd1f636f7d5c6987f4c9ad470b to master...


How to add path for a module

I think this is a fairly simple question but I haven't been able to solve it. If I have my python package in a different directory than my docs folder, how do I tell mkdocstrings to look at where the python package is?
I'm currently using the below in my .yaml file
plugins:
    - mkdocstrings:
        handlers:
            python:
                setup_commands:
                    - import sys
                    - sys.path.append('../')

no matter what I try, I keep getting this error.
ImportError: Importing '' failed, possible causes are:
- an exception happened while importing
- an element in the path does not exist

Hello @sidhomj

Importing ''

Could you show us your Markdown file? Particularly the autodoc instruction, starting with :::?

so my file structure looks like this:
-DeepTCR/DeepTCR.py
-docs/mkdocs.yml
and my markdown file has the following:
::: DeepTCR.DeepTCR.DeepTCR_base.Get_Data

and i get this error:
AttributeError: module 'DeepTCR' has no attribute 'DeepTCR'

with this yaml file:
site_name: DeepTCR
nav:
    - Home: index.md
    - Release History: releasehx.md
theme: readthedocs
plugins:
    - mkdocstrings:
        handlers:
            python:
                setup_commands:
                    - import sys
                    - sys.path.append('../')

Can you try this:
plugins:
    - mkdocstrings:
        handlers:
            python:
                setup_commands:
                    - import sys
                    - sys.path.append('../')
                selection:
                    new_path_syntax: true

now i get this error:
    import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

Is this because I have to install all dependencies on the venv storing mkdocs?

Is this because I have to install all dependencies on the venv storing mkdocs?

Yes, or add it to path as well. If you can run python -c 'import tensorflow' then this will also be able to import it.

your solution solved my problem! can you explain the reasoning behind using the new_path_syntax?

new_path_syntax has no relation to the issue

new_path_syntax just helps debugging, because it's more strict about its input path. It's easier to say if a module could not be imported because a dependency is missing. And indeed it helped us here: tensorflow was not installed.
So to answer, yes, your project and its dependencies must be installed for mkdocstrings to work.
mkdocstrings works through introspection, so everything needs to be installed :slightly_smiling_face:
Closing, but feel free to continue the discussion!

I am also having this problem. I can't seem to crack it.
Here is my gha log
Here is my workflow

When using the legacy (default) Python handler, you must install your project's dependencies as well:
ModuleNotFoundError: No module named 'cmdstanpy'

cmdstanpy is not installed.

Okay. I updated this to install cmdstanpy. It looks like I am having a JSON parse issue now. It is odd because I was able to render the website before  adding the additional things in setup_commands. What would you suggest in this case?
plugins:
  - mkdocstrings:
      handlers:
        python:
          setup_commands:
            - import sys
            - sys.path.append('../')
            - pip install cmdstanpy
            - pip install tablespoon
            - python -c 'tablespoon'
            - python -c 'cmdstanpy'
          selection:
            new_path_syntax: true

This is my error below
Run mkdocs gh-deploy --force
INFO     -  Cleaning site directory
INFO     -  Building documentation to directory: /home/runner/work/tablespoon/tablespoon/site
INFO     -  The following pages exist in the docs directory, but are not included in the "nav" configuration:
  - index.md
WARNING  -  A relative path to 'section/skill.md' is included in the 'nav' configuration, which is not found in the documentation files
WARNING  -  Documentation file 'index.md' contains a link to 'docs/FORECAST_METHODS.md' which is not found in the documentation files.
WARNING  -  Documentation file 'index.md' contains a link to 'docs/EXAMPLES.md' which is not found in the documentation files.
WARNING  -  Documentation file 'index.md' contains a link to 'docs/FORECAST_METHODS.md' which is not found in the documentation files.
/opt/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/mkdocstrings/handlers/python/__init__.py:13: UserWarning: The 'python-legacy' extra of mkdocstrings will become mandatory in the next release. We have no way to detect if you already specify it, so if you do, please ignore this warning. You can globally disable it with the PYTHONWARNINGS environment variable: PYTHONWARNINGS=ignore::UserWarning:mkdocstrings.handlers.python
  warnings.warn(
  File "<string>", line 1
    import sys; from io import StringIO; from pytkdocs.cli import main as pytkdocs; sys.stdout = StringIO(); import sys; sys.path.append('../'); pip install cmdstanpy; pip install tablespoon; python -c 'tablespoon'; python -c 'cmdstanpy'; sys.stdout.flush(); sys.stdout = sys.__stdout__; pytkdocs(['--line-by-line'])
                                                                                ^^^^^^^
SyntaxError: invalid syntax
ERROR    -  mkdocstrings: Error while loading JSON:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/site-packages/mkdocstrings/handlers/python/collector.py", line 150, in collect

Aborted with a BuildError!
    result = json.loads(stdout)
  File "/opt/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/opt/hostedtoolcache/Python/3.10.2/x64/lib/python3.10/json/decoder.py", line 33[7](https://github.com/alexhallam/tablespoon/runs/5353572245?check_suite_focus=true#step:7:7), in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/hostedtoolcache/Python/3.[10](https://github.com/alexhallam/tablespoon/runs/5353572245?check_suite_focus=true#step:7:10).2/x64/lib/python3.10/json/decoder.py", line [35](https://github.com/alexhallam/tablespoon/runs/5353572245?check_suite_focus=true#step:7:35)5, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

ERROR    -  Error reading page 'section/api.md':
ERROR    -  Could not collect 'tablespoon.forecasters.Naive'
Error: Process completed with exit code 1.

You are mixing Python statements with shell commands in setup_commands, it triggers SyntaxError. You must install your dependencie the same way you instal mkdocstrings (in your workflow steps for example).

Thanks you! I think that did it.


Console/log spam

The log keeps spamming chunk [coordinates] has been sitting for 100 ticks, forgetting

I use the Fabric Seasons mod and immersive weathering too btw.

Fixed in Git, will be released as v1.4.0 soon.


Checklist for 2020.10

Here's the new and changed stuff for this new release.
Additions:

[x] Implement MAIN parameter bundling via the %*SUB-MAIN-OPTS<bundling>
option -75f92d2b-04164a0f
[ ] Generate a rakuw.exe executable on Windows which will not spawn
a console window (in contrast to the raku.exe executable) -0ea6902d-708d0ca6
[x] Add 𝐑𝐚𝐤𝐮𝐝𝐨™ and 𝐑𝐚𝐤𝐮™ welcome message -80a4ada6-4e9178f8-bae905ef

Changes:

[ ] Add a new implementation for multi-level Hash slicing,
not backward-compatible with 6.c version and to be enabled since 6.e
-551b577d-f106c231-6986ea1d-8a2d9a61-1c08e66b-1c08e66b
-d08247db-94d89686-18f3808e-4b278bcb-f9b3f925-b1ec2489
-d6e94aed-564faa64-93503c24-b60772fa-198f6030-ff2f2b0c
-420cb1f4-c701a482-1971ba46-964f6e48-3ca1fede-54eb4314
-d713e451
[ ] False.truncate returns False instead of 0 now -7192a99e
[x] Make "is rw" on parameters of MAIN worry -d0854ffc
[ ] Change IterationBuffer.raku output.
Note that IterationBuffer.raku is a debugging tool: it does
not roundtrip, nor is it the intent that it ever will. -33bb6504

Firs one taken care of in #3672

The rakuw.exe executable has some documentation in https://github.com/rakudo/rakudo/blob/master/docs/running.pod. I'm not sure where one would add such documentation in the Raku docs, as it's a Rakudo specific thing.

Probably in the Programs area. No need to duplicate documentation, just add a link.

https://docs.raku.org/language/create-cli : Did the bundling update break something in how the page is made? It looks like there's not header and footer sections.

https://docs.raku.org/language/create-cli : Did the bundling update break something in how the page is made? It looks like there's not header and footer sections.

Oops

Documentable fails from time to time, and I'm not really sure why. Might be a problem with the "squatting" Pod::To::HTML module, but it might be something else. I'm regenerating these pages anyway.

I fixed it with a "working" documentable version I keep in a laptop, just in case. But the whole thing is broken now, and we need to fix it.

I will fix it ASAP, but I need exact steps for reproducing the issue, "it is broken" is not descriptive enough.

It really is not. sorry.  I've fixed the issue to make it a bit more descriptive, and I'm trying to reproduce the results.

I just marked the rakuw.exe bit as done as documentation has been added with https://github.com/Raku/doc/commit/5e90de278ade117446d6376e0c979034a436e2be.


Contact Form structure + interactive part

Create a contact form that submits on a Netlify Function
The attorneys list should normally be retrievable with the query contents methods from nuxt content v2

spent 2h


Fix master

What does this PR do?
Fix master branch
Motivation
The RemoteSysProbeUtil field socketPath has been renamed path in #5179
and #5179 was merged between the last rebase on master of #4619 and its merge.
Additional Notes

Already taken care of by #5268 !


zipfile contains folder of parent level

I wanted to download folder waynes_world from https://github.com/j2labs/zmq_examples. The created zip-file also contained the complete folder waynes_world_2, which is not a content of folder waynes_world.

Indeed, this is due to both folders starting with waynes_world. It's been fixed in https://github.com/fregante/list-github-dir-content/releases/tag/v1.1.1

Thank you for fixing it.


fixes 479 added all category item

PR Fixes:

Created a category for all which can go back to all categories in mobile view and desktop.

Resolves #479

Checklist before requesting a review

[x] I have performed a self-review of my code
[x] I assure there is no similar/duplicate pull request regarding same issue

thank you sir


Transaction Gossiper Requirement

Stakeholders

Developer who wants to gossip transactions between peers.

Story

Gossips transactions between mutually attested peers in a TLS encrypted manner.

Requirements

Transaction Gossiper can be injected into any enclave component which needs to gossip transactions.
TLS gossiping only
Gossips only to attested peers
Tranaction type is generic, such that it can be varied according to the developer's needs.
Gossips multiple transactions to a peer via a websocket.

We call the component gossiper, even though for the sidechain blocks we want to re-name the gossiper to broadcaster. Is this mechanism different from the sidechain blocks broadcaster? Or is it in the end also a broadcasting, and needs to be named accordingly?

I think we need to discuss the naming of the components anyway in our next meeting. Regarding this specific component: Substrate has named it "gossiping", so I've followed this convention as a first proposal. Open for discussion.
Reuse potential: https://github.com/paritytech/substrate/tree/master/client/network-gossip

I think @brenzi 's line of argument was that broadcasting != gossiping. Broadcasting is sending to every agent in the set, where gossiping is only sending to some agents in the set, and those agents then again gossip the message to more agents. Gossiping takes multiple rounds before every agent knows the message.

I think we should probably link this component with the https://github.com/integritee-network/worker/issues/659 if possible. Or partially.

Closed in favour of #659


Add sidebar-sidebar-content layout option

I'm putting the Secondary Sidebar at the far left in sidebar-sidebar-content, as this matches the default Genesis behavior.


Fix markdown heading.

Fixed h3 in markdown by adding space after ###.

Sorry,
There was an existing Pull Request.


Zaza tests on openstack need python-openstackclient

Since b46f13ef113e690493364dabc87821699626d8e6 in zaza, if running tests on an OpenStack cloud provider, each bundle test concludes with a cleanup routine that needs the python-openstackclient package in requirements.txt for the tox environment, plus the OS_ environment vars exported/passed through such that the Openstack client actually works.  If these are not set, the test fails on the first bundle cleanup and does not continue to the remaining bundles.

(by xavpaice)
Resolution:
Add to requirements.txt:
python-openstackclient
Add to tox.ini under passenv =:
OS_REGION_NAME
OS_AUTH_VERSION
OS_AUTH_URL
OS_PROJECT_DOMAIN_NAME
OS_USERNAME
OS_PASSWORD
OS_PROJECT_ID
OS_USER_DOMAIN_NAME
OS_PROJECT_NAME
OS_IDENTITY_API_VERSION
Prior to running any test: source a valid novarc.

(by rgildein)
Should this be resolved in zaza? There is bug in zaza 1, and I think
it make much more sense to update it there instead of each charm.

(by rgildein)
This was fixed by Xav in https://code.launchpad.net/~xavpaice/charm-duplicity/+git/charm-duplicity/+merge/401661.

(by rgildein)
This was fixed by this commit https://git.launchpad.net/charm-fstab-config/commit/src/tests/functional/requirements.txt?id=8e787e7a8b72ce113f6e97eab7f5cf2177729229

(by rgildein)
released in 22.04

(by rgildein)
released in 22.04

(by rgildein)
released in 22.08

(by rgildein)
This was fixed and released in 23.01


Upgrading ZIPFoundation version to 0.9.9

This PR should fix #281. It is also fixing the Cartfile on version 0.9.9 to avoid such problems in the future.
A related issue on ZIPFoundation page is here: https://github.com/weichsel/ZIPFoundation/issues/112

This PR also increases version of iOS DFU Library to 4.4.1.


Validate addresses bulk.

Pull Request Test Coverage Report for Build 978

0 of 0   changed or added relevant lines in 0 files are covered.
49 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.9%) to 74.922%

Files with Coverage Reduction
New Missed Lines
%

dist/routes/v2/util.js
49
56.74%

Totals

Change from base Build 974:
-0.9%

Covered Lines:
2513

Relevant Lines:
3180

💛  - Coveralls


Cleanup alpine -> debian, also clean composer cache

Cleanup Debian's package lists and cache instead of Alpine's.  Also removes the composer cache, which cuts the size of the new layer approximately in half.

Perfect! Thanks for this.

Tagged as 3.3.1 images are building as we speak.


Feature/s3 mode

Hey,
sorry for this rather big PR. I tried to have quite verbose commit messages, if there is anything you don't like please tell me and i'll remove the appropriate commits. I'll try to summarise:

add a new mode s3, which if set looks up the S3 Object's meta data to distinguish the Content-Disposition Header
BREAKING: set node 6 as new minimum node version, this way we can kick out babel and other non-necessary dependecies, which shrinks the build, should fix #7
just style: apply a couple of hapi style guide best practices
use external library to parse and generate the Content-Disposition Header)

I'd love to here your feedback.

closed in favour of #9


ReferenceError: Range values

During the automatic range setting it's better to have a range between 0 and 3000 than 1 to 2999.
That's because we calculate the automatic range in the way:
Math.floor(Range * Alpha * 10 / 10) which should be an integer between 0 and 3000 (actually is from 1 to 2999)
Correction should be on the Android App scripts in the settings session.

Done