Use versioneer from subdirectory

I'd like to use versioneer in a non-python (C++) project and have it offer a version string which can be used by CMake in my build process.
For this, I created a small python script that can be called from CMake and just outputs the version information:
#!/usr/bin/env python
import versioneer
print versioneer.get_version()

Works fine so far.
However, since this is not a python project, I don't like having the python files hanging around in the source tree root, so I created a subdirectory and moved everything there. When I call it from there, it reports version "0-unknown". I'm wondering why this happens - git commands should be runnable from a subdirectory as well. Maybe it is looking for the .git directory and doesn't find it.
Could you make versioneer work when it is stored in a subdirectory?

Hello, and +1!
I have exactly the same request (and even for a python project :).
I dug around the sources for a while, and came to the conclusion, that versioneer seems to assume, that the .git directory is always right next to setup.py. Now that is not true for my current project. In fact I have ~5 setup.py-s in sudirectories. Some fiddling around involving links got me to the point, where I got a version number directly from _version.py, but versioneer.py (from the repo, not the environment...) was somehow not able to produce that, and so my setup.py won't get anything from there.
versioneer looks like a good project to me in general, so if you need help in fixing that, I might be someone who can help. I see a lot more use-cases (because that's why i looked at it in the first place), once this is implemented.

Just found https://github.com/warner/python-versioneer/issues/38, and it looks as if this one is a duplicate of that.
Nice to notice, that it carries a small icon indicating that it's planned for the next release.

Closing as a duplicate of #38 (which has an updated branch now). Thanks for digging into it!


Using Moor inside of a Push Helper

Heya,
We switched our backend to use moor as backend (sqflite w/ encrypted_moor) and saw great performance increases inside of our app! There is, however, a problem: We also need to access the database from within our push helper, and, as the push helper code could run multiple times at once (many push notifications after short timespans) or could run while the normal app is running, this leads to a lot of "Database Locked" issues when trying to read or write.
The question here is if there is a recommended way to use moor inside of a push helper (Would running moor in an isolate fix this?) and if anyone has experience with this issue.
Thank you for any answers!

"Database Locked" issues when trying to read or write

It sounds like WAL mode might help here, but I've never tried that in an app.

Would running moor in an isolate fix this?

encrypted_moor uses platform channels, which AFAIK are only available on the main isolate. Does your push helper run on the same isolate as your UI? If so, you could just share the same moor database object to avoid them blocking each other.
You could also make the main isolate use MoorIsolate.inCurrent and have the push helper connect to that.

Thank you for the quick reply! How do you switch the database to WAL mode? What I figured out seems kinda hacky, as if there should be a simpler way:
  @override
  Future<void> beforeOpen(QueryExecutor executor, OpeningDetails details) async {
    await super.beforeOpen(executor, details);
    print('running beforeOpen...');
    if (executor.dialect == SqlDialect.sqlite) {
      print('changing mode to WAL....');
      customSelect('PRAGMA journal_mode=WAL').get().then((ret) {
        print('done switching mode to WAL');
        print(ret.first.data.toString());
      });
    }
  }

I wouldn't recommend to override the beforeOpen database method. Instead, you can use the beforeOpen callback on a MigrationStrategy:
@override
MigrationStrategy get migration {
  return MigrationStrategy(beforeOpen: (_) async {
    if (executor.dialect == SqlDialect.sqlite) {
      await customStatement('PRAGMA journal_mode=WAL');
    }
  });
}

We are still trying to figure this out and trying different approaches. One issue that keeps plopping up now and then is:
06-17 15:42:58.712 14184 14328 I flutter : Caught error: NoSuchMethodError: The method 'rawInsert' was called on null.
06-17 15:42:58.712 14184 14328 I flutter : Receiver: null
06-17 15:42:58.712 14184 14328 I flutter : Tried calling: rawInsert()

Which is surprising, as that would mean the database inside the EncryptedExecutor is null? And we ensure that the database is open every time the app is resumed? Do you have any hints / pointers as to what might be going on here?

Yeah, that should only happen if the executor isn't open yet. If you only use apis from QueryEngine it should ensure that for you. If you use the raw QueryExecutor directly, it's best to wrap that in doWhenOpened. Can you post a stacktrace of where that happened?

Yeah, we don't use the QueryExecutor directly, we only use the generated database object. Will get a stacktrace, thanks again for the help

06-18 19:49:37.630 17135 17239 I flutter : [Error] Failed to send message: NoSuchMethodError: The method 'rawInsert' was called on null.
06-18 19:49:37.630 17135 17239 I flutter : Receiver: null
06-18 19:49:37.630 17135 17239 I flutter : Tried calling: rawInsert()
06-18 19:49:37.631 17135 17239 I flutter : #0      <optimized out> (<optimized out>:135)
06-18 19:49:37.631 17135 17239 I flutter : #1      _ExecutorWithQueryDelegate.runInsert.<anonymous closure> (package:moor/src/runtime/executor/helpers/engines.dart:69)
06-18 19:49:37.631 17135 17239 I flutter : #2      _ExecutorWithQueryDelegate._synchronized (package:moor/src/runtime/executor/helpers/engines.dart:25)
06-18 19:49:37.631 17135 17239 I flutter : #3      _ExecutorWithQueryDelegate.runInsert (package:moor/src/runtime/executor/helpers/engines.dart:67)
06-18 19:49:37.631 17135 17239 I flutter : #4      QueryEngine.customInsert.<anonymous closure> (package:moor/src/runtime/api/query_engine.dart:245)
06-18 19:49:37.631 17135 17239 I flutter : #5      QueryEngine._customWrite.<anonymous closure> (package:moor/src/runtime/api/query_engine.dart:266)
06-18 19:49:37.631 17135 17239 I flutter : #6      QueryEngine.doWhenOpened.<anonymous closure> (package:moor/src/runtime/api/query_engine.dart:98)
06-18 19:49:37.631 17135 17239 I flutter : #7      _rootRunUnary (dart:async/zone.dart:1192)
06-18 19:49:37.631 17135 17239 I flutter : #8      _CustomZone.runUnary (dart:async/zone.dart:1085)
06-18 19:49:37.631 17135 17239 I flutter : #9      _FutureListener.handleValue (dart:async/future_impl.dart:141)
06-18 19:49:37.631 17135 17239 I flutter : #10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682)
06-18 19:49:37.631 17135 17239 I flutter : #11     Future._propagateToListeners (dart:async/future_impl.dart:711)
06-18 19:49:37.631 17135 17239 I flutter : #12     Future._completeWithValue (dart:async/future_impl.dart:526)
06-18 19:49:37.631 17135 17239 I flutter : #13     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36)
06-18 19:49:37.631 17135 17239 I flutter : #14     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298)
06-18 19:49:37.631 17135 17239 I flutter : #15     _TransactionExecutor.ensureOpen (package:moor/src/runtime/executor/helpers/engines.dart:0)
06-18 19:49:37.631 17135 17239 I flutter : <asynchronous suspension>
06-18 19:49:37.631 17135 17239 I flutter :

So it looks like this is happening in a transaction. That would indicate that delegate.db is not null here, but transaction somehow is.
https://github.com/simolus3/moor/blob/b5cc9b974d34d6227d50a0b1b21c88e91c628736/extras/encryption/lib/encrypted_moor.dart#L96-L99
Judging by the <optimized out> it looks like this happened in release mode? I've added an assert(transaction != null) for further diagnosis, but if it only happens on release builds that might not be too useful.

Unfortunately I have a bad test environment due to having no google services until my test phone arrives (should be tomorrow), so i had get our CI to generate (release) builds to get someone else to test it, thus the release builds. ^^" Will gladly look more into it more once the test device arrives, do you have any specifics I should look into?

You could temporarily switch to the latest develop version for encrypted_moor:
  encrypted_moor:
    git:
      url: https://github.com/simolus3/moor.git
      path: extras/encryption
      ref: develop

At the moment the only change is the assert statement when starting a transaction. If that assertion fails, there's likely something wrong with the underlying sqlite library. That would be worth looking into. If it doesn't and you get the error, you could check the class where that happens (e.g. check if it's really _SqfliteTransactionExecutor).

Alright, here is a stacktrace from a develop build using the master branch for encrypted moor.
I/flutter (32543): +++++++++++++++++
I/flutter (32543): Sending text: Meow
I/flutter (32543): [Error] Failed to send message: NoSuchMethodError: The method 'rawInsert' was called on null.
 A production build still gives the error:
I/flutter ( 2654): [Error] Failed to send message: NoSuchMethodError: The method 'rawInsert' was called on null.
I/flutter ( 2654): Receiver: null
I/flutter ( 2654): Tried calling: rawInsert()
I/flutter ( 2654): #0      _SqfliteExecutor.runInsert (package:encrypted_moor/encrypted_moor.dart:140)
I/flutter ( 2654): #1      _ExecutorWithQueryDelegate.runInsert.<anonymous closure> (package:moor/src/runtime/executor/helpers/engines.dart:69)
I/flutter ( 2654): #2      _ExecutorWithQueryDelegate._synchronized (package:moor/src/runtime/executor/helpers/engines.dart:25)
I/flutter ( 2654): #3      _ExecutorWithQueryDelegate.runInsert (package:moor/src/runtime/executor/helpers/engines.dart:67)
I/flutter ( 2654): #4      QueryEngine.customInsert.<anonymous closure> (package:moor/src/runtime/api/query_engine.dart:245)
I/flutter ( 2654): #5      QueryEngine._customWrite.<anonymous closure> (package:moor/src/runtime/api/query_engine.dart:266)
I/flutter ( 2654): #6      QueryEngine.doWhenOpened.<anonymous closure> (package:moor/src/runtime/api/query_engine.dart:98)
I/flutter ( 2654): #7      _rootRunUnary (dart:async/zone.dart:1192)
I/flutter ( 2654): #8      _CustomZone.runUnary (dart:async/zone.dart:1085)
I/flutter ( 2654): #9      _FutureListener.handleValue (dart:async/future_impl.dart:141)
I/flutter ( 2654): #10     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682)
I/flutter ( 2654): #11     Future._propagateToListeners (dart:async/future_impl.dart:711)
I/flutter ( 2654): #12     Future._completeWithValue (dart:async/future_impl.dart:526)
I/flutter ( 2654): #13     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:36)
I/flutter ( 2654): #14     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:298)
I/flutter ( 2654): #15     _TransactionExecutor.ensureOpen (package:moor/src/runtime/executor/helpers/engines.dart:0)

That is still ont he rawInsert line, and the assert is def. present.

After more debugging it appears to be an issue with the push helper and the main thread are both running at the same time: While they don't have shared variables, and thus you can't re-use the same database object between them, if one is inside a transaction the other one will also think it was inside a transaction. How they manage to share that information is beyond me, but this seems to be the core issue here.
As such, it might actually be more a problem with firebase messaging needing a way to communicate with the master isolate, than an issue with moor. Thanks a lot for the debugging help, though!


Test Speedup

Simple noop change which just changes the default retry delay and gets rid of a couple of TODOs in the process.  This shaves 15-30 seconds off the test execution.

Coverage remained the same at 76.16% when pulling c92b15c0dde490381d7b4b7c2f017529f15b7061 on tests_lower_delays into 18898f1178deb2be52a3fcb587c0d0a6f36ea236 on master.

Coverage remained the same at 76.16% when pulling c92b15c0dde490381d7b4b7c2f017529f15b7061 on tests_lower_delays into 18898f1178deb2be52a3fcb587c0d0a6f36ea236 on master.


simplify computing equation numbers in a module

takes the time to precompile FRB_US model from 38s to 35s.
This uses a local counter per module instead of the global one now but I think that should be ok.

Codecov Report

Merging #33 (d51fff2) into master (32835b1) will increase coverage by 0.22%.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
+ Coverage   94.20%   94.43%   +0.22%
==========================================
  Files          15       15
  Lines        1675     1670       -5
==========================================
- Hits         1578     1577       -1
+ Misses         97       93       -4

Impacted Files
Coverage Δ

src/evaluation.jl
82.08% <100.00%> (+1.74%)
:arrow_up:

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


sqlmesh

What is it?
Lets try it out eventually
https://sqlmesh.com/
Not priority now but worth tracking

Closing in favor of
https://github.com/opensource-observer/oso/issues/1165

We need time series metrics. Re-opening this as a possible direction to address https://github.com/opensource-observer/oso/issues/1970

Closing again @ravenac95 was able to get it working on clickhouse so we are closing in favor of
https://github.com/opensource-observer/oso/issues/1165


point to shared directory, no dask

hopefully improves availability for users

Also, the descriptive text at the top of the notebook says "calcultes 20 year mean" -- can you change this to "calculates 5 year mean"? (add the "a" to calculates, and change the 20 to 5)

@wwieder it looks like I can push changes to your branch -- do you want me to add one more commit with my changes to the README and removing the raw cells from the notebook? Also, I noticed you have a section header

Big blob of passive C with depth in pAD

With two empty cells below it. Are you planning to add a few more computations, or can we remove this section / the empty cells?

yes, you can commit the readme changes. it's also fine to reduce that
header at the end of the notebook.
On Fri, Jan 19, 2024 at 9:52 AM Michael Levy @.***>
wrote:

@wwieder https://github.com/wwieder it looks like I can push changes to
your branch -- do you want me to add one more commit with my changes to the
README and removing the raw cells from the notebook? Also, I noticed you
have a section header
Big blob of passive C with depth in pAD
With two empty cells below it. Are you planning to add a few more
computations, or can we remove this section / the empty cells?
—
Reply to this email directly, view it on GitHub
https://github.com/NCAR/CUPiD/pull/49#issuecomment-1900757912, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AB5IWJAB3R4N2DRUIDKS25LYPKQFJAVCNFSM6AAAAABCAZVHH6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQG42TOOJRGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


Parser Stream Operations documentation references wrong Stream types

Version of Beast
1.70
Steps necessary to reproduce the problem
Open
https://www.boost.org/doc/libs/1_70_0/libs/beast/doc/html/beast/using_http/parser_stream_operations.html
Problem:
5 out of 6 read functions listed in Table 1.22, Parser Stream Operations, refer to WriteStream, while they should refer to ReadStream.

Yep, they are flipped


CollisionShape2D shape attribute is not animatable

Godot version
3.4.2 stable
System information
Windows 10, Ryzen 5 2600
Issue description
It seems that the shape attribute of the collision shape 2d node is not animatable. When adding the attribute to the animation player, all of the keyframes are constantly synchronized, which means that no animation can happen because the values are always the same.
Before (x is 500; every keyframe is the same, hence the line between them):

After (x is now 100, but across all keyframes):

Steps to reproduce

Make a new project with a collision shape 2d and an animation player.
Add a new shape to the collision shape.
Add keyframes to animation player of the shape attribute of the created project.
Attempt to change one keyframe. All will follow suit

Minimal reproduction project
Buggytest.zip

Just thought I'd add that when I was first starting with Godot, I had the same issue with sprite animations, but since then I have not found it to be an issue. Just a heads up that it may exist as well, although I could not reproduce it.

You need to add a keyframe on the shape resource's Extents property, not on the Shape resource itself.

Yep, you need to animate the extents. Animating shape puts the Shape resource reference as keyframe. You can swap shapes this way, but not modify them.

Hi,
When adding a keyframe there doesn't seem to be an extents property on the collision shape 2d, am I missing something?

See this issue #33807
Sub-resources don't appear on the list, you can add their keyframes by clicking the key icon next to them.

If you don't see a key icon, make sure your Animation tab at the bottom is expanded.

Alright, thank you for the help!


What is a reason to use scipy==1.1.0?

Scipy latest version is 1.4.1 any specific reason to depend on such an old version of scipy?

No, there is no specific reason. We can fix it, or if you wish to use this opportunity to submit a PR - feel free!

Thanks @apaleyes for a quick response I will be happy to PR.
One more question: would you mind to relax requirements for emcee to low bound as well?


PEER_DID_NOT_RETURN_A_CERTIFICATE error for VirtualServices exposing only HTTPS traffic

Bug description
If you have a gateway you want terminating connections (due to a valid SSL cert) but a backend service with a self signed cert, the request will fail with errors from the envoy proxy.
[ ] Docs
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
The request from the browser should have SSL terminated at the gateway, then forwarded to the sidecar, then the sidecar should negotiate TLS with the service.
Steps to reproduce the bug

Have Istio deployed
helm repo add stratos https://cloudfoundry.github.io/stratos
helm install my-console stratos/console --namespace=stratos
Define the following Istio services:

---
kind: Namespace
apiVersion: v1
metadata:
  name: stratos
  labels:
    name: stratos
    istio-injection: enabled
spec:
  finalizers:
    - kubernetes

---
kind: VirtualService
apiVersion: networking.istio.io/v1alpha3
metadata:
  name: stratos
  namespace: stratos
spec:
  gateways:
    - cf-system/istio-ingressgateway
  hosts:
    - console.example.com
  http:
    - route:
        - destination:
            host: console-ui-ext

---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: stratos
  namespace: stratos
spec:
  host: console-ui-ext
  trafficPolicy:
    tls:
      mode: SIMPLE

---
kind: Gateway
SNIP
  - hosts:
    - console.example.com
    port:
      name: https-workloads
      number: 443
      protocol: HTTPS
    tls:
      credentialName: my-cert
      mode: SIMPLE

Now try to reach your service and watch the logs of the sidecar with debug logging. You will see the following:

Logs
2020-11-20T23:47:26.259969283Z 2020-11-20T23:47:26.259818Z	debug	envoy filter	[C1384] new tcp proxy session
2020-11-20T23:47:26.259983483Z 2020-11-20T23:47:26.259842Z	debug	envoy filter	[C1384] Creating connection to cluster inbound|443|https|console-ui-ext.stratos.svc.cluster.local
2020-11-20T23:47:26.259988083Z 2020-11-20T23:47:26.259855Z	debug	envoy pool	creating a new connection
2020-11-20T23:47:26.259992483Z 2020-11-20T23:47:26.259878Z	debug	envoy pool	[C1385] connecting
2020-11-20T23:47:26.259995983Z 2020-11-20T23:47:26.259881Z	debug	envoy connection	[C1385] connecting to <IP_ADDRESS>:443
2020-11-20T23:47:26.260015883Z 2020-11-20T23:47:26.259938Z	debug	envoy connection	[C1385] connection in progress
2020-11-20T23:47:26.260025083Z 2020-11-20T23:47:26.259952Z	debug	envoy pool	queueing request due to no available connections
2020-11-20T23:47:26.260028983Z 2020-11-20T23:47:26.259956Z	debug	envoy conn_handler	[C1384] new connection
2020-11-20T23:47:26.261224184Z 2020-11-20T23:47:26.260934Z	debug	envoy connection	[C1384] handshake expecting read
2020-11-20T23:47:26.261247984Z 2020-11-20T23:47:26.260951Z	debug	envoy connection	[C1385] connected
2020-11-20T23:47:26.261252484Z 2020-11-20T23:47:26.260955Z	debug	envoy pool	[C1385] assigning connection
2020-11-20T23:47:26.261255984Z 2020-11-20T23:47:26.260965Z	debug	envoy filter	TCP:onUpstreamEvent(), requestedServerName:
2020-11-20T23:47:26.261259684Z 2020-11-20T23:47:26.260978Z	debug	envoy connection	[C1384] handshake expecting read
2020-11-20T23:47:26.263129385Z 2020-11-20T23:47:26.262953Z	debug	envoy connection	[C1384] handshake error: 1
2020-11-20T23:47:26.263142685Z 2020-11-20T23:47:26.262981Z	debug	envoy connection	[C1384] TLS error: 268435648:SSL routines:OPENSSL_internal:PEER_DID_NOT_RETURN_A_CERTIFICATE
2020-11-20T23:47:26.263146885Z 2020-11-20T23:47:26.262985Z	debug	envoy connection	[C1384] closing socket: 0
2020-11-20T23:47:26.263150385Z 2020-11-20T23:47:26.263018Z	debug	envoy connection	[C1385] closing data_to_write=0 type=0
2020-11-20T23:47:26.263153885Z 2020-11-20T23:47:26.263022Z	debug	envoy connection	[C1385] closing socket: 1
2020-11-20T23:47:26.263157285Z 2020-11-20T23:47:26.263043Z	debug	envoy pool	[C1385] client disconnected
2020-11-20T23:47:26.263160685Z 2020-11-20T23:47:26.263064Z	debug	envoy conn_handler	[C1384] adding to cleanup list
2020-11-20T23:47:26.263164185Z 2020-11-20T23:47:26.263070Z	debug	envoy pool	[C1385] connection destroyed

However from the sidecar you can use curl -k https://localhost and get a correct response.

Version (include the output of istioctl version --remote and kubectl version --short and helm version if you used Helm)
client version: 1.8.0
control plane version: 1.7.3
data plane version: 1.7.3 (35 proxies)

Client Version: v1.19.3
Server Version: v1.18.10

version.BuildInfo{Version:"v3.3.4", GitCommit:"a61ce5633af99708171414353ed49547cf05013d", GitTreeState:"clean", GoVersion:"go1.14.9"}

How was Istio installed?
Deployed with cf-for-k8s project.
Environment where bug was observed (cloud vendor, OS, etc)
AKS

Sounds like the sidecar is expecting mtls but you are sending plain tls (from destination rule setting)

I think that's exactly what it is! @howardjohn I read the docs about how one might solve this with a ServiceEntry but that involves passing HTTP traffic to the backend service, where I would need HTTPS here.
Any idea on how I might solve this with Istio?

ah you actually need https to the backend.. that is a bit trickier. I don't think it's possible to make the gateway initiate mtls+tls (ie double encapsulated tls). So your options would be to passthrough the tls directly at the gateway, or you could disable mtls on the backend service (see PeerAuthentication).
In theory we should be able to distinguish between an mtls request and plain tls request and automagically handle this but I suspect we don't today, and it's not obvious to me that would be "correct"

This new doc may help a bit possibly https://istio.io/latest/docs/ops/configuration/traffic-management/tls-configuration/

If the TLS is passed through then it would be terminated at the sidecar? Otherwise the sidecar would just end up encrypting the SSL again.

The gateway can do a few things: terminate+encrypt, terminate, passthrough+encrypt, passthrough.
You want passthrough+encrypt so the sidecar terminates the outer mtls and the application gets the original tls from the client
Or disable the mtls on the sidecar and do termination+send plaintext

If it is passthrough+encrypted then the DestinationRule would no longer be required since that asks for the traffic to be encrypted, but it already will be from the gateway?
Also is there any documentation on these modes? These docs don't seem to list them: https://istio.io/latest/docs/reference/config/networking/gateway/#ServerTLSSettings-TLSmode
It sounds like disabling mtls is the easiest route. And you were right that worked.
Do you want to leave this open for perhaps a troubleshooting doc about this or better error messages for this case?

No, I think we can close this since its working as intended and documented. Thanks.


implemented react query for deleting userinput

Description

Created API function for deleting input (code sourced from #263)
Implemented React Query mutation for deleting input
Implemented appropriate caching strategy
Modularized repetitive update cache and refetch logic

Fixes #253
Type of change

[X] ✨  New feature (non-breaking change which adds functionality)

How Can this be tested? Testing Plan to review this PR

[X] Where in the app does this change take place?
UserInputList
[X] What are the steps to test this change?
Run npm run dev
Click 'Delete'
[X] What is the expected output?
Tab associated with the delete button is removed and a new inputHistory is re-fetched and displayed on side nav

Checklist:

[X] I have performed a self-review of my own code.
[X] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[X] My changes generate no new warnings.
[ ] Any dependent changes have been merged and published in downstream modules.
[X] I have reviewed the Security Best Practices Document.
[X] I have followed the Naming Conventions Guide for my changes.
[X] I have ensured that my pull request title is descriptive.

Additional Information:
Integration with UI and snack bar notification will be handled in #149

Ready for review now. Keeping it as draft as it needs to be rebased after #250 is merged.


Documentation website tables not working

A Datatable alert box keeps popping up. Please fix

Thanks for info.. already fixed

Thanks


K8SPXC-429 Add backupSource to restore resource

Test name
Status

scaling
failed

recreate
failed

big-data
passed

init-deploy
failed

storage
passed

self-healing
failed

limits
passed

scaling-proxysql
failed

monitoring
failed

restore-to-encrypted-cluster
passed

monitoring-2-0
failed

self-healing-advanced
passed

upgrade
passed

demand-backup
passed

operator-self-healing
passed

affinity
passed

upgrade-consistency
passed

security-context
passed

one-pod
passed

auto-tuning
failed

scheduled-backup
failed

demand-backup-encrypted-with-tls
failed

proxysql-sidecar-res-limits
failed

users
failed

Test name
Status

recreate
failed

init-deploy
failed

storage
passed

big-data
passed

scaling
failed

self-healing
failed

limits
passed

scaling-proxysql
failed

restore-to-encrypted-cluster
passed

monitoring
failed

self-healing-advanced
passed

upgrade
passed

demand-backup
passed

monitoring-2-0
failed

operator-self-healing
passed

affinity
passed

upgrade-consistency
passed

scheduled-backup
failed

security-context
passed

one-pod
passed

auto-tuning
failed

demand-backup-encrypted-with-tls
failed

proxysql-sidecar-res-limits
failed

users
failed

Test name
Status

scaling
failed

recreate
failed

big-data
passed

storage
passed

self-healing
failed

self-healing-advanced
passed

operator-self-healing
passed

Test name
Status

storage
passed

haproxy
passed

recreate
passed

big-data
passed

scaling
passed

self-healing
passed

init-deploy
passed

scaling-proxysql
passed

restore-to-encrypted-cluster
passed

upgrade
passed

limits
passed

self-healing-advanced
passed

monitoring
passed

upgrade-consistency
passed

operator-self-healing
passed

security-context
passed

demand-backup
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

scheduled-backup
failed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
passed

demand-backup-encrypted-with-tls
failed

Test name
Status

big-data
passed

storage
passed

self-healing
passed

self-healing-advanced
passed

operator-self-healing
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
passed

scaling
passed

scaling-proxysql
passed

recreate
passed

upgrade
passed

restore-to-encrypted-cluster
passed

upgrade-consistency
passed

demand-backup
passed

security-context
passed

scheduled-backup
failed

demand-backup-encrypted-with-tls
failed

Test name
Status

recreate
passed

restore-to-encrypted-cluster
passed

demand-backup
passed

scheduled-backup
failed

big-data
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
passed

scaling
passed

scaling-proxysql
passed

upgrade
passed

upgrade-consistency
passed

security-context
passed

storage
passed

self-healing
passed

self-healing-advanced
passed

operator-self-healing
passed

demand-backup-encrypted-with-tls
failed

Test name
Status

scaling
passed

scaling-proxysql
passed

upgrade
passed

upgrade-consistency
passed

security-context
passed

recreate
passed

restore-to-encrypted-cluster
passed

demand-backup
passed

storage
passed

scheduled-backup
failed

self-healing
passed

self-healing-advanced
passed

operator-self-healing
passed

haproxy
passed

init-deploy
passed

limits
passed

monitoring
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

auto-tuning
passed

proxysql-sidecar-res-limits
passed

users
passed

big-data
passed

demand-backup-encrypted-with-tls
failed

Test name
Status

big-data
passed

storage
passed

scaling
passed

haproxy
passed

recreate
passed

self-healing
passed

scaling-proxysql
passed

init-deploy
passed

restore-to-encrypted-cluster
passed

upgrade
passed

self-healing-advanced
passed

limits
passed

upgrade-consistency
passed

operator-self-healing
passed

monitoring
passed

security-context
passed

demand-backup
passed

monitoring-2-0
passed

affinity
passed

one-pod
passed

scheduled-backup
failed

auto-tuning
failed

proxysql-sidecar-res-limits
failed

demand-backup-encrypted-with-tls
failed

users
failed


c.netflix.discovery.TimedSupervisorTask

Describe the bug
Gateway service uses full CPU and generate error:
WARN 1 --- [scoveryClient-1] c.netflix.discovery.TimedSupervisorTask  : task supervisor timed out
java.util.concurrent.TimeoutException: null
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204) ~[na:na]
at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:68) ~[eureka-client-1.10.17.jar!/:1.10.17]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]

Hello,
I am having the same error.
2022-05-18 13:24:44.296  WARN 1 --- [scoveryClient-0] c.netflix.discovery.TimedSupervisorTask  : task supervisor timed out

java.util.concurrent.TimeoutException: null
	at java.base/java.util.concurrent.FutureTask.get(Unknown Source) ~[na:na]
	at com.netflix.discovery.TimedSupervisorTask.run(TimedSupervisorTask.java:68) ~[eureka-client-1.10.17.jar:1.10.17]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[na:na]
	at java.base/java.lang.Thread.run(Unknown Source) ~[na:na]

The configuration is the following:

Eureka Server with Spring Boot 2.6.6 and Spring Cloud Version 2021.0.1
Eureka Client with Spring Boot 2.6.7 and Spring Cloud Version 2021.0.2
Both with Java 17.

application.properties file in the client:
eureka.client.service-url.defaultZone=http://<IP_ADDRESS>:8761/eureka
eureka.client.fetch-registry=true
eureka.instance.prefer-ip-address=true

There are multiple versions of Eureka Clients among many other microservices and the behaviour is the same, a lot of flickering, connect and disconnect multiple times making the whole system unstable 😭

Any updates here, facing the same issue :(

Judging by the stack trace, the issue is pertinent to https://github.com/Netflix/eureka repo and not the Spring Cloud Netflix Eureka integration that we provide, so the issue should be opened in that repo.


import zot rename

this allows us to use zot:// URLs
Signed-off-by: Tycho Andersen<EMAIL_ADDRESS>

Yep, done.


fix: Capability module needs capability tags

@satlead  can you review?
We need to add permissions to all the capabilities methods.
I just did xrn:firebolt:capability:capabilities:info for all the getters and xrn:firebolt:capability:capabilities:request for the the request method which triggers grants

:tada: This PR is included in version 0.10.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[fuzzing] adding merkle tree proto fuzzing

Motivation
Adding two fuzzers. When receiving sparse and non-sparse merkle tree proofs,
there is some involved proto decoding code that we can fuzz.


Zephyr update

I think the Zephyr instructions were not fully up-to-date anymore. Add info about espressif toolchain too.
Add ESP32C3 (RISC-V) and Particle Argon, more boards are possible, but the script doesn't scale well, can be improved in future.
Add Dockerfile to kickstart a Zephyr development environment as it can be rather confusing for new users..

@wallento Thanks a lot for the update!

@wallento If further update in the plan?
For reason that zephyr has updated its west commands since zephyr v3.20, the following command
west espressif install
has been deprecated West espressif install not working #51797 .
So, in the file build_wamr.md, "ESPRESS_TOOLCHAIN_PATH" which is  "~/espressif/tools/zephyr" will not be created and take no effect.


Dependency conflict with whisperx 3.1.1

When installing the requirements in the current master version there is a version conflict between whisperx and faster-whisper.
This results in an error that prevents to installation of the dependencies
Steps to reproduce
pip install -r requirements.txt

This will result in the error below
ERROR: Cannot install -r requirements.txt (line 5) and faster-whisper==0.9.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested faster-whisper==0.9.0
    whisperx 3.1.1 depends on faster-whisper 0.10.0 (from<EMAIL_ADDRESS>
I have created PR138 to fix the issue

This is a duplicate of #136.


Unknown CPI error occurred when I execute 'bosh deploy'

bosh command failed in this week.
It seems like Azure API specification changed.
Error messages as follow.
bosh deploy
Deploying
---------
Are you sure you want to deploy? (type 'yes' to continue):
Director task 35
  Started unknown
  Started unknown > Binding deployment. Done (00:00:00)

  Started preparing deployment
  Started preparing deployment > Binding releases. Done (00:00:00)
  Started preparing deployment > Binding existing deployment. Done (00:00:00)
  Started preparing deployment > Binding resource pools. Done (00:00:00)
  Started preparing deployment > Binding stemcells. Done (00:00:01)
  Started preparing deployment > Binding templates. Done (00:00:00)
  Started preparing deployment > Binding properties. Done (00:00:00)
  Started preparing deployment > Binding unallocated VMs. Done (00:00:00)
  Started preparing deployment > Binding instance networks. Done (00:00:00)

  Started preparing package compilation > Finding packages to compile. Done (00:00:00)

  Started preparing dns > Binding DNS. Done (00:00:00)

  Started preparing configuration > Binding configuration. Done (00:00:03)

  Started updating job cf_z1 > cf_z1/0 (canary). Failed: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The reques
t content was invalid and could not be deserialized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}' (00:06:11)

Error 100: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The request content was invalid and could not be deseria
lized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}'

bosh delete deployment cf-azure
Acting as user 'admin' on deployment 'cf-azure' on 'bosh'

You are going to delete deployment `cf-azure'.

Are you sure? (type 'yes' to continue): yes

Director task 51
  Started deleting instances > cf_z1/0. Failed: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The request content
 was invalid and could not be deserialized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}' (00:00:10)

Error 100: Unknown CPI error 'Bosh::AzureCloud::AzureError' with message 'http_put - error: 400 message: {"error":{"code":"InvalidRequestContent","message":"The request content was invalid and could not be deseria
lized: 'Could not find member 'resources' on object of type 'ResourceDefinition'. Path 'resources', line 1, position 3000.'."}}'

When was your current BOSH director VM deployed? If you used a Preview2 version to deploy it, you should follow this guidance to migrate it.
If you has used GA version to deploy it, you can send your BOSH manifest, CF manifest and the task log(bosh task 35 --debug > 35.log) to me<EMAIL_ADDRESS>for investigation.

Thank you for your response.
I send mail with trace logs.
Thanks.


python311Packages.peaqevcore: 18.1.7 -> 18.1.11

Changelog: https://github.com/elden1337/peaqev-core/releases/tag/18.1.11
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 237297 run on x86_64-linux 1

4 packages built:

python310Packages.peaqevcore
python310Packages.peaqevcore.dist
python311Packages.peaqevcore
python311Packages.peaqevcore.dist


NTR: Negative regulation of hemidesmosome disassembly

Hi,
New term requested: Negative regulation of hemidesmosome disassembly.
Definition: Any process that stops, prevents or reduces the frequency, rate or extent  of hemidesmosome disassembly.
This term request is supported by Figure 5 in  PMID: 23611113. They show that  Necl-4 inhibits the TPA-induced hemidesmosome disassembly.
The parent term  should be: hemidesmosome disassembly (which doesn't exist yet. See my other request).
There is already a term for: hemidesmosome assembly (GO:0031581).
Thanks,
Mila

@milarolo - how much is known about the mechanism whereby Necl-4 inhibits TPA-induced hemidesmosome disassembly?
We are trying to move towards an annotation practice whereby use of a regulation term would indicate that the molecular mechanism is known.
Would it be possible in this case to annotate Necl-4 to 'casually upstream of or within, negative effect' 'hemidesmosome disassembly'?
The last statement in the Discussion is partly what prompted my question:
"Thus, evidence has accumulated that Necl‐4 plays roles in regulating a variety of cellular functions, but the molecular mechanisms for these roles of Necl‐4 remain unknown, and it also remains unknown if these roles of Necl‐4 are mediated through its interaction with ErbB3 and integrin α6β4."

Thank you very much for your response. I didn't know about that change with the regulation terms ("We are trying to move towards an annotation practice whereby use of a regulation term would indicate that the molecular mechanism is known."). I commented about it in the office, but they were also unaware. Is there any documentation about it that we have missed?
Anyway if this  is the case, I agree with you and I will use the term "hemidesmosome disassembly" with the qualifier "acts_upstream_of_or_within_negative_effect"
There is no "hemidesmosome disassembly" term so I have already requested it (#16677)
Thank  you,
Mila

Does NECL4 really regulate the disassembly, or does it stabilize the hemidesmosome? It seems from the paper that in the absence of NECL4, which interacts with the integrin complex, the hemidesmosome disassembles. I'm not convinced that hemidesmosome disassembly is really a process that is actively achieved by the action of gene products.

Closing as "out of scope"


Support SSL verification options

As an example:
BuildEval.server(
    type:            :TeamCity,
    uri:             "https://some.teamcity.server",
    ssl_verify_mode: :none,
    username:        "guest",
    password:        "guest"
  )

Slight change to API preferred, as it better ensures a valid verify mode is configured:
BuildEval.server(
    type:            :Jenkins,
    uri:             "http://some.firewalled.server",
    ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE # Configurable for any server type
  ).monitor("some_build")

Released!


pantheon.elementary-terminal: 6.1.0 -> 6.1.1

Description of changes
https://github.com/NixOS/nixpkgs/issues/170361
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Changes:

[x] build: Drop unused ubuntu-bionic-patched-vte option (#679)

Files: meson_options.txt

[ ] Use fc to get previous command (#690)

Keywords: command

[x] Update POTFILES (#693)
[x] TerminalWidget: Fix terminal freeze when closing with GLib 2.73.2+ (#691)

Files: meson.build
Keywords: dependency

[x] AppData: 6.1.1 release notes (#694)
[x] Release 6.1.1 (#695)

Tags: 6.1.1
Files: meson.build

@ofborg test pantheon


Couldn't open bot framework composer in Azure bot using open in composer link

Describe the bug
Couldn't open bot framework composer in Azure bot using open in composer link

Version of the Composer
Bot Framework Composer V2.1.1-nighlty.277423.f426bba
Browser

[ ] Chrome
[ ] Edge

OS

[ ] Windows

To Reproduce
Steps to reproduce the behavior:

Go to the Azure portal.
In the right pane, select Create a resource.
In the search box enter bot, then press Enter.
Select the Azure Bot card.
Select Create.
Enter the required values.
Select Review + create.
If the validation passes, select Create. You should see the Azure Bot and the related key vault resources listed in the resource group you selected.
Select Open in Composer.

https://docs.microsoft.com/en-us/composer/quickstart-create-bot-with-azure
Expected behavior
After step 9, A pop-up message should display to launch the bot framework composer and redirect there.  In my case, the pop-up message is not showing.
If the composer doesn't start automatically, a link will be available to copy and paste it into the browser to get started the composer. Even that's not working.
Screenshots

Hi @RamyaKumar23, can you please try this from a different browser or an in-private session?
Also, try to uninstall the nighly build of composer and install the released version from https://github.com/microsoft/BotFramework-Composer/releases/tag/v2.1.1

Thanks!! @gabog, It worked


"regular" constraint doesn't accept empty array

ICF.regular() throws when I pass it an empty IntVar array:
ArrayIndexOutOfBoundsException 0  org.chocosolver.solver.constraints.Propagator.<init> (Propagator.java:140)

I assumed that if I passed in an empty array, the constraint would succeed if and only if the automaton accepts the empty string. Is that not a desired feature in Choco or is this a bug?

First, posting a constraint without variable is either always true (and does not help the resolution) or false (and there is trivially no solution).
So, we consider that posting a constraint without variable is not an expected behavior since the goal is to find a solution, that is, a state wherein all variables are instantiated and all constraints are satisfied.
Technically, the main reason is that every propagator needs to know the Solver and most of the time, it is reached through on of its variables. There is a check in the Propagator's constructor , based on assertion:
assert vars != null && vars.length > 0 && vars[0] != null : "wrong variable set in propagator constructor";

Note that TRUE and FALSE also require a variable (solver.ONE or solver.ZERO.
So, all APIs in IntConstraintFactory always require at least one variable.
I can consider either promoting the assertion to SolverException (which would be the easy solution) or creating a kind of boolean constraint which would be lazily created on posting (a priori, a better solution, but instrumenting the library could be a tough task to do).


Acceptance test run in PRs

Story
As a contributor,
I would like to run acceptance test before my Pull Request is merged,
So that I can gain more confidence that my commits are not breaking anything
Acceptance criteria
Acceptance test is running in pull request
Additional context

This issue is related to #99
The concern for contributors at the moment is the need for an AWS account to run this
Is there a better way for us to gain confidence without running the test in the cloud?

How we can do this without security problems?
Ie.:

Sensitive data leak (accountId, secrets, etc);
DoS 'attacks' (high usage of AWS services could lead to higher bills)

Continuing the conversation we had at #435 here @hugosenari. The high bill is what I'm worried about. If we run the acceptance test on every PR, I will have to tank the bill when it exceeds the free limit, and this project is running without any funding!

Run only in master for now :wink:
After that, CircleCI can hold a workflow for a manual approval.

Closing this for now - I've updated the acceptance test to run as a requirement before the merge can succeed (using the merge_group trigger in the GitHub Actions Workflow).
Hopefully that gives us the best of both worlds, still keeping the executions down, but running it before things can be merged.


html5 pushstate mode not working

Hi!
I'm using gulp-webserver with react.js and rackt/react-router, and I'm having issues with your html5 pushstate config.
I'm currently passing fallback: index.html into the webserver task's config, but deep linking (navigating to the link manually by typing it in) doesn't work and throws this error:
Uncaught SyntaxError: Unexpected token <

to clarify, navigating to http://localhost:1337/ works fine, but navigating to http://localhost:1337/foos/1 does not work when manually typed, but does work when following a link.
Any ideas?

@schickling, do you have any idea on how we can fix that yet?

In my case the fallback was not set correctly. It does work.

Same issue here

@mickeyvip Can you post the correct configuration to the fallback option, so that we can have a look and check on our side?

var gulp        = require('gulp');
var $           = require('gulp-load-plugins')();
var del         = require('del');
var source      = require('vinyl-source-stream');
var browserify  = require('browserify');
var runSequence = require('run-sequence');
var env = 'dev';
gulp.task('clean:dev', function() {
return del(['.tmp']);
});
gulp.task('clean:dist', function() {
return del(['dist']);
});
gulp.task('scripts', function() {
var bundler = browserify('./app/scripts/app.js', {
extensions: ['.jsx'],
debug: env == 'dev'
}).transform('reactify');
return bundler.bundle()
.pipe(source('app.js'))
.pipe(gulp.dest('.tmp/scripts'));
});
gulp.task('imagemin', function() {
return gulp.src('app/images/*')
.pipe($.imagemin({
progressive: true,
svgoPlugins: [{removeViewBox: false}]
}))
.pipe(gulp.dest('dist/images'));
});
gulp.task('copy', function() {
return gulp.src(['app/.txt', 'app/.ico'])
.pipe(gulp.dest('dist'));
})
gulp.task('bundle', function () {
var assets = $.useref.assets({searchPath: '{.tmp,app}'});
var jsFilter = $.filter(['/*.js']);
var cssFilter = $.filter(['/.css']);
var htmlFilter = $.filter(['.html']);
return gulp.src('app/*.html')
.pipe(assets)
.pipe(assets.restore())
.pipe($.useref())
.pipe(jsFilter)
.pipe($.uglify())
.pipe(jsFilter.restore())
.pipe(cssFilter)
.pipe($.autoprefixer({
browsers: ['last 5 versions']
}))
.pipe($.minifyCss())
.pipe(cssFilter.restore())
.pipe(htmlFilter)
.pipe($.htmlmin({collapseWhitespace: true}))
.pipe(htmlFilter.restore())
.pipe($.revAll({ ignore: [/^/favicon.ico$/g, '.html'] }))
.pipe($.revReplace())
.pipe(gulp.dest('dist'))
.pipe($.size());
});
gulp.task('webserver', function() {
return gulp.src(['.tmp', 'app'])
.pipe($.webserver({
host: 'localhost', //change to 'localhost' to disable outside connections
livereload: true,
open: false,
fallback: 'index.html'
}));
});
gulp.task('serve', function() {
runSequence('clean:dev', ['scripts'], 'webserver');
gulp.watch('app/*.html');
gulp.watch('app/scripts/**/*.js', ['scripts']);
gulp.watch('app/scripts/**/*.jsx', ['scripts']);
});
gulp.task('build', function() {
env = 'prod';
runSequence(['clean:dev', 'clean:dist'],
['scripts', 'imagemin', 'copy'],
'bundle');
});

@vjunloc I was referring to @mickeyvip 's config, since I currently have the same issue and can't help much. But let's wait. maybe he sees it and posts it here.
P.S. I'd suggest you make use of markdown formatting when posting code in comments, since it helps a lot when it comes to readability.

hey @vjunloc I solved the problem on my side. It's not an issue with the gulp-webserver.
In my case it was related to relative and absolute paths. To be more specific, make sure your script and css references are absolute, so that it doesn't try to find them in the path you're typing in the URL.
e.g.:
You have two URLs: /settings and /settings/account. In that case, if you have your script inclusion in the fallback file being something like <script src="scripts/main.js"></script>, the server will return a 404 for it, since there's no file in /settings/scripts/main.js.
Hope that helps.

@alexandrethsilva , I am sorry for the late response.
Actually I don't remember what exactly was wrong. My friend explained it to me then and it made sense.
I think the problem was related to <base href="correct/path" />

@alexandrethsilva Thanks a lot for this. It was bugging me for the longest time.


SMTP Catch-all detection Response 5.7.1 Service unavailable

I have deployed this project locally and am conducting SMTP catch-all monitoring, but I encountered an error message: "5.7.1 Service unavailable, Client host [xxx] blocked using Spamhaus." How can I prevent this issue from occurring?

Try using proxy networks for rotating IP address, however with that you will encounter another issue - that some email services require PTR records for sender.
This can be manageable with using micro servers for those hosts.

micro servers

How to use micro servers, can give me an example? @NexaVerse-AI

Setup small servers, setup PTR and other email config, best approach would be to run postfix or similar so you have valid mail records for your domain.
Then you can run SMTP verification.

@NexaVerse-AI can you provide some tutorial how to implement this? The proxy server i have used, all have blocked 25, 465 and 587 port

Speak with proxy providers to allow you access, LMK if you get someone allowing access to these ports. Since we are also looking for the same. Sent from my iPhoneOn Oct 27, 2024, at 9:43 AM, ashik-rafat-reea @.***> wrote:
@NexaVerse-AI can you provide some tutorial how to implement this? The proxy server i have used, all have blocked 25, 465 and 587 port
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


Performance Issues Rendering Lots of Text

I'm not sure if this is just a limitation of the shear complexity of rendering text on the screen, but I'm getting fairly slow rendering of lots of text on the screen:

It's taking around 250ms to render each time.  I've tried converting it all to paths but it doesn't seem to help.  Is this an expected performance limitation or is there something that can be done?

I've been rendering way more in way less time. ( see for example http://www.ideoloom.net/ )
However I'm caching glyphs in mini canvases and then paste them (a given glyph with a given size and color doesn't need to rendered twice)
https://github.com/nodebox/opentype.js/issues/286

Hi @darkfrog26,
rendering text is very complex indeed. Opentype has not been designed as a fast rendering library (what for, anyway ?) but as a glyph and font manipulation tool. Things could be improved, though.

I'm building a framework that, I'm hoping, will be a viable alternative to using HTML, but everything is drawn in Canvas.  The performance issues create serious problems with that being possible.

I suggest profiling to see which parts are slow (and then proposing a PR that fixes it ;-)).
As always, the solution will be caching. If you think about "normal" font rendering, the cache the glyphs of a specific font at a specific size in a texture atlas. If you want the same performance I think you will end up with a solution very similar to that.
Rendering a texture atlas from OpenType.js is out of scope, but I imagine you could build a library on top of OTjs...

The problem is, in the test I'm running I'm playing with a scenario that sets the fill of the text path to a video, so it needs to re-render with every video frame.  Obviously this is a pretty crazy scenario, but I figured if I could get the performance good enough to do that then HTML can effectively be considered antiquated. :-p
Unfortunately, this means that caching isn't really an option apart from caching the paths.  I have been considering using Path2D on browsers that support it, but I'm not sure if that will really offer much of a performance benefit over drawing the paths on-demand.

FYI, two changes in the way I deal with rendering paths increased performance from 250ms per render to 50ms:
1.) I removed all open and close path calls between letters so the entire block of text is represented by a single path.
2.) Utilize Path2D (https://developer.mozilla.org/en-US/docs/Web/API/Path2D) instead of raw instructions to canvas context (made a significant improvement per render).
Any other suggestions are appreciated, but 20 renders per second is pretty decent for the level of complexity I'm drawing (especially since I'm up-scaling rendering for retina displays, so it's rendering at twice the displayed size).

In case you want a video in the fill, how about just making a white/transparent cookie cutter of the whole text and apply it as "and-put" on each frame.
Heck you can even overlay two canvases, or a canvas above a  tag.

PS: the native type rendering libraries of your operating system do glyph and even word caching too. Also on the very first render of a new glyph aren't that fast either, native and canvas.drawText().
@fpirsch for me performance is important too, but as I said, opentype.js is very acceptable, if added some caching. Maybe some things can be improved, but IMO opentype.js is in the upper field of doable already anyway.
PPS: The reason why I switched to opentype.js from canvas.drawText() are unrepairable issue with textzooming there. First there is an upper limit in text size which makes unlimited zoom not possible. Secondly native canvas.drawText() adds fonthinting rounding errors to text propagation, while opentype.js can be changed for each letter to be rounded, but not add rounding decissions to following letters. (that is "oooooooooooooooo" and "oooooooooooooooo" in a slightly different font size can have suddendly vastly different total lengths)

@axkibe I'm not sure I understand the "cookie cutter" approach you're talking about...can you elaborate on how that would work?

Just make a transparent canvas above a video element. Or make two canvases atop each other one in which your text is transparent and the lower one behind with the animated content (however you want to animate it).
The web is full of examples that do this, it's simple CSS.

Ah, I see what you mean. Thanks. :)

:+1: for Path2D. Except that it only works in the browser, and it is not editable (remember OT.js is initialy a glyph edition library). Path2D could be used alongside the internal representation, just for rendering. But then memory could become an issue.

I understand, and I wasn't suggesting adding it to OpenType.js, but rather just as some feedback for anyone else looking to optimize their rendering.  It's incredibly unclear based on online reading if Path2D offers much benefit, and I'm here to say that it definitely does!

Just wondering, what you want to do can also be done with conventional canvas.strokeText -- using the stroke for globalCompositeOperation = 'destination-out' to cut out transparency. For this there is no need for opentype.js


Update microsoft365-maturity-model--intro.md

Category

[X] Content fix

Contents of the Pull Request
Fixed Staff & Training title and added link. Removed old Maturity Model logo.

Docs Build status updates of commit 45686c5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Community/microsoft365-maturity-model--intro.md
:white_check_mark:Succeeded
View

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


Native component for "AIRMap" does not exist

Is a fix for this problem Native component for "AIRMap" does not exist available?
I installed react-native-maps manually like the instructions but this is still now working and I'm getting only a red box...
"react-native": "0.49.5"
"react-native-maps": "^0.17.1",

react-native unlink react-native-maps && react-native link react-native-maps && react-native run-ios

Thank you @maxlxq but I have still the same problem...

me too having same issue. pls guide.

I've Solved this problem by these steps:
1-In X-Code > Linked Frameworks and Libraries : Remove libAirMaps.a and re Add it
2-Clean project
3-Delete iOS app from simulator/device
4-Run
Done!

I'm also getting this error:
"react-native": "0.50.3",
"react-native-maps": "^0.17.1",
In iOS I can't find the libAIRMaps.a binary file. I've tried unlinking and linking react-native-maps, restarted, but still getting the same error...Any help is greatly appreciated!

i got it solved by 2 hrs!
in documentation(https://github.com/airbnb/react-native-maps) they say we need to do something on the --(following are what the document say)--
"Option 1: CocoaPods - Same as the included AirMapsExplorer example
Setup your Podfile like the included example/ios/Podfile, replace all references to AirMapsExplorer with your project name, and then run pod install. (If you do not need GoogleMaps support for iOS, then you can probably completely skip this step.)"
but, i even can not find the profile of Podfile.......
then i cleverly create my project name as "AirMapsExplorer"(so i don't need to change the target name right?) by run the command $react-native init AirMapsExpolorer......
after all, it is then working........
i have to say the styles are also important cuz just import the AirMap will only show a blank screen on  my ios simulator.
what you need to also do is set-up the style(following are my App.js file:
/**

Sample React Native App
https://github.com/facebook/react-native
@flow
*/

import React, { Component } from "react";
import { Platform, StyleSheet, Text, View } from "react-native";
import MapView from "react-native-maps";
export default class App extends Component {
render() {
return (

<MapView
style={styles.map}
initialRegion={{
latitude: 37.78825,
longitude: -122.4324,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421
}}
/>

);
}
}
const styles = StyleSheet.create({
container: {
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
justifyContent: "flex-end",
alignItems: "center"
},
map: {
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0
}
});

in above code:
i don't know why it didn't show the  part, that just very basic codes from documentation and paste that in too.

Click on your project
Go to Build Phases
Go to Link Binary With Libraries
Add libAirMaps.a
Run the project
This work for me.

I recently made a fresh example build with pods and GoogleMaps with no issues.
https://github.com/alvelig/react-native-maps-pods-example.
Try to check it out or build through the README.MD. If it does not help, let me know.

@alvelig , I am following the steps according to the README.MD.
Error I got while - Pod install (The bold part is error)
Analyzing dependencies
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `react-native-google-maps` from `../node_modules/react-native-maps`
Fetching podspec for `react-native-maps` from `../node_modules/react-native-maps`
Fetching podspec for `yoga` from `../node_modules/react-native/ReactCommon/yoga/yoga.podspec`
**[!] CocoaPods could not find compatible versions for pod "GoogleMaps":
  In Podfile:
    GoogleMaps

    react-native-google-maps (from `../node_modules/react-native-maps`) was resolved to 0.20.1, which depends on
      GoogleMaps (= 2.5.0)

Specs satisfying the `GoogleMaps, GoogleMaps (= 2.5.0)` dependency were found, but they required a higher minimum deployment target.**

Below is my Pod file contents:
# Uncomment the next line to define a global platform for your project

platform :ios, '8.0'

target 'TestProject' do
  rn_path = '../node_modules/react-native'

    pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
    pod 'React', path: rn_path, subspecs: [
      'Core',
      'RCTActionSheet',
      'RCTAnimation',
      'RCTGeolocation',
      'RCTImage',
      'RCTLinkingIOS',
      'RCTNetwork',
      'RCTSettings',
      'RCTText',
      'RCTVibration',
      'RCTWebSocket',
      'BatchedBridge'
    ]

    pod 'GoogleMaps'  # Remove this line if you don't want to support GoogleMaps on iOS
    pod 'react-native-maps', path: '../node_modules/react-native-maps'
    pod 'react-native-google-maps', path: '../node_modules/react-native-maps'  # If you need GoogleMaps support on iOS

  end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'react-native-google-maps'
      target.build_configurations.each do |config|
        config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
      end
    end
    if target.name == "React"
      target.remove_from_project
    end
  end
end

I tried changing ios version from 8.0 to 11.0, but still got the error.
Should I file this as new issue.

@jiteshwadia try a pod update

@rborn , It Worked. Thanks !!

Helped me tremendously - thanks

@TheoGit which solution worked for you?

@jiteshwadia solution with the coco Pods, sadly now my Permissions and Orientation packages don't work - I'm going to delete my Node_Modules and use my package.json from a previous project - good luck


build(cosmosdb): add resource manager in ci build

Add this to arm core build to ensure we don't miss any bug in arm core change.

All SDK Contribution checklist:
This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] Please open PR in Draft mode if it is:

Work in progress or not intended to be merged.
Encountering multiple pipeline failures and working on fixes.

[ ] If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
[ ] I have read the contribution guidelines.
[ ] The pull request does not introduce breaking changes.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

SDK Generation Guidelines

[ ] The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code. (Track 2 only)
[ ] The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK. Please double check nuget.org current release version.

Additional management plane SDK specific contribution checklist:
Note: Only applies to Microsoft.Azure.Management.[RP] or Azure.ResourceManager.[RP]

[ ] Include updated management metadata.
[ ] Update AzureRP.props to add/remove version info to maintain up to date API versions.

Management plane SDK Troubleshooting

If this is very first SDK for a services and you are adding new service folders directly under /SDK, please add new service label and/or contact assigned reviewer.

If the check fails at the Verify Code Generation step, please ensure:

Do not modify any code in generated folders.
Do not selectively include/remove generated files in the PR.
Do use generate.ps1/cmd to generate this PR instead of calling autorest directly.
Please pay attention to the @microsoft.csharp version output after running generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version.

Note: We have recently updated the PSH module called by generate.ps1 to emit additional data. This would help reduce/eliminate the Code Verification check error. Please run following command:
  `dotnet msbuild eng/mgmt.proj /t:Util /p:UtilityName=InstallPsModules`

Old outstanding PR cleanup
Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.

The same change as #25992

It's has been fixed in https://github.com/Azure/azure-sdk-for-net/pull/26007

close since it's fixed in https://github.com/Azure/azure-sdk-for-net/pull/26007


Improve accessibility for layout and spacing

Description
This PR improves the spacing and layout for better readability.
Notable changes:

Line height: Should ideally be somewhere between 1.5 and 2. I like using 1.618 (the golden ratio).
Paragraph spacing: Should be around 2em.
Line width: A line of text should be ~70 characters. I find that 33rem tends to achieve that.

Anything other changes are to accommodate the ones listed above.
Type of change

[ ] Bug fix
[ ] New feature
[ ] Documentation
[ ] Infrastucture
[x] Other (please clarify): Accessibility

Checklist

[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generate no new console warnings.
[x] I manually tested to prove my fix is effective or that my feature works.
[ ] I have assigned this PR to an owner.

Awesome! We've really not played with CSS at all yet but just getting it started, and we'll still have a long way to go here eventually. The font is an great choice. Heck yeah! I approve.


Add fallback name for span

If a root span does not have a name, the whole trace will be thrown out. Give the root span a fallback name that is meant to be overridden in order to prevent this.
Fixes appsignal/support#217, in the sense that it will enable us to debug this better if/when it happens again (we'll be able to have a conversation about ugly span names, instead of one about no data showing up at all)

@jeffkreeftmeijer You mentioned that you wanted to take a look at this and see if it causes undesired data to be sent? Let me know if I can help.

Heads up: I’m getting [unknown request] spans when running a version of appsignal-plug with this patch on an example app. I’m seeing if I can reproduce it, and investigating where they come from.

Alright, looking at this, I found that these are caused by requests like assets and 404s. Basically, for each request that doesn’t hit a route, a span is opened and closed (because the block wrapping the whole request is fired).  Right now, there’s no way around this because the span is opened before we know it won’t match a route.
The solution would be to remove the whole block and rely on the :telemetry hooks exclusively. That’d make all of the Plug and Phoenix instrumentation based on telemetry, and thus would remove the need for us to depend on them, allowing us to merge everything back into one package.
I’ll look into that in the last cycle, and I’m hoping to have a prototype of something like that done this year as my end-of-year project. Will be continued. :)

Ah, thanks for looking into this @jeffkreeftmeijer!
Note that this behaviour is present and "tolerated" for other integrations as well. For example, a 404 for favicon.ico will happen as you visit a sample Node.js + Express application from a browser (if the aplication does not serve a favicon) and it appear as an [unknown request] span (or in 3.x, HTTP GET)


502 Error after upgrading to newer image

Summary

When I attempt to update my docker-compose to use a new tiredofit/wordpress image, I receive a 502 error.
Steps to reproduce

replace image line in docker-compose with updated image (image: tiredofit/wordpress:php7.4-5.7.1)
pull the image to my environment (docker pull tiredofit/wordpress:php7.4-5.7.1)
save docker-compose and recycle the container
visit site to receive error

What is the expected correct behavior?

Should be able to update to newer images.
Relevant logs and/or screenshots

nginx/error.log (site details redacted for privacy)
2023/06/05 10:34:26 [warn] 2846#2846: *669 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/03/0000000031 while reading upstream, client: ###.###.#, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://<IP_ADDRESS>:9000", host: "REDACTED", referrer: "REDACTED"
2023/06/28 12:08:08 [error] 2846#2846: *9 access forbidden by rule, client: ###.###.#, server: , request: "GET /.user.ini HTTP/1.1", host: "REDACTED"

After using docker-compose logs (site details redacted for privacy)
name-app        | 2023-06-21.10:56:26 [STARTING] ** [nginx] [50] Starting nginx 1.25.0
name-app        | nginx: [emerg] duplicate location "/favicon.ico" in /etc/nginx/snippets/site_optimization.conf:9
name-app        | 2023-06-21.10:56:27 [ERROR] ** [nginx] POTENTIAL RUNWAY DETECTECTED: Disabling 10-nginx service because it has tried restarting '50' times

When I tried removing the duplicate /favicon.ico location block from that file, I got the same error but referencing a duplicate /robots block instead.  When I deleted that duplicate robots block, I got the following error.
nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)

Environment

Image version / tag:

Old version: tiredofit/wordpress@sha256:b2ee3e1734666c4f8b516b69f557872f4c420c5f672f35705c771aa818e3f9a0
Target version: tiredofit/wordpress:php7.4-5.7.1

Host OS: Arch Linux

Possible fixes

I noticed you made some changes to the LLNG auth system in the php-fpm underlying image here. Could that have caused any issues?

This looks like it was introduced in 5.5.0 and seems to have brought in an old wordpress nginx configuration that was last used in 2019.
I'll patch up the configuration and leave it to the site_optimization routines coming from upstream tiredofit/nginx. Workaround in short term is NGINX_ENABLE_SITE_OPTIMIZATIONS=FALSE as an environment variable.

5.7.2 should resolve https://github.com/tiredofit/docker-wordpress/commit/2ade255d5500643d8a7da59feaef7a5ce1acd17f


Creating new project: Hang at "npm start", crash if I say "y"

Expected Behavior
I am running the latest commit with gpte ../node-game3/ --model gpt-4o and the script hang at "npm start" (see failure logs) and nothing happens
Current Behavior
The program hang, then crash if I say "y", with no file created.
Failure Information
Running on windows using Powershell.
Failure Logs
gen_entrypoint_chat.txt
all_output.txt
powershell_output.txt
The powershell_output is the not-logged error, ending with a UnicodeEncodeError: 'charmap' codec can't encode characters in position 17-19: character maps to <undefined>

Hello!
Thanks for submitting the issue.  Does this occur consistently -- i.e. gpte fails to execute the code and crashes when you tell it to run the generated code, or was this just one run?

Additional follow-up:
When you run npm start in your project folder, what happens?

Closing due to lack of follow-up.  @flotos please do come back with details if this persists.


DXI-26587- Modify landing page for v3 Hub, so Signin goes to CH/v4

JIRA: https://jira.corp.adobe.com/browse/DXI-26587
Test URLs:

updated redirect condition in landing-page.js

sharepoint changes to add redirect url: https://adobe.sharepoint.com/:w:/r/sites/HelixProjects/_layouts/15/Doc.aspx?sourcedoc={D90917E5-7DCC-49AC-8A7B-D25AAAE25B1E}&file=index.docx&action=default&mobileredirect=true

Before: https://main--adobe-gmo--hlxsites.hlx.page/qa/

After: https://dxi-26587--adobe-gmo--hlxsites.hlx.page/qa/

Closing this PR and opening against rc branch. Thanks!


[HUDI-1950] Move TestHiveMetastoreBasedLockProvider to functional

HiveTestUtil static setup mini servers caused connection refused issue in Azure CI environment, as TestHiveSyncTool and TestHiveMetastoreBasedLockProvider share the same test facilities. Moving TestHiveMetastoreBasedLockProvider (the easier one) to functional test with a separate and improved mini server setup resolved the issue.
The next step is to move TestHiveSyncTool to functional as well.
Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contributing.html before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@vinothchandar TestHiveSyncTool was passing in Azure before as that's the only class using HiveTestUtil. It fails now and I noticedTestHiveMetastoreBasedLockProvider was recently added. I'm not sure how exactly the tests are executed in parallel there but the way HiveTestUtil and its static vars are used is problematic anyway. Verified moving 1 class out to functional works in this build. Planning to make the next PR for moving TestHiveSyncTool to functional and deprecate HiveTestUtil.

Codecov Report

Merging #3043 (b870114) into master (08464a6) will decrease coverage by 41.31%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #3043       +/-   ##
============================================
- Coverage     49.86%   8.54%   -41.32%
+ Complexity     3527      62     -3465
============================================
  Files           488      68      -420
  Lines         23618    2843    -20775
  Branches       2528     355     -2173
============================================
- Hits          11777     243    -11534
+ Misses        10802    2579     -8223
+ Partials       1039      21     -1018

Flag
Coverage Δ

hudicli
?

hudiclient
?

hudicommon
?

hudiflink
?

hudihadoopmr
?

hudisparkdatasource
?

hudisync
6.77% <ø> (-39.83%)
:arrow_down:

huditimelineservice
?

hudiutilities
9.27% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Unable to add client.go dependency in rancher-agent

I am trying to add client.go dependency in rancher agent. I have included
- package: k8s.io/client-go/kubernetes
  version: ee121606b0d09b2e1c467183ee46217fa85a6b67

in the trash.yml and then ./vendor/github.com/docker/distribution/vendor.conf and ./vendor/github.com/docker/docker/vendor.conf
But whenever I try update dependencies using trash update I get the following error.
INFO[0003] Fetching latest commits from 'origin' for 'k8s.io/client-go/kubernetes'
FATA[0004] `git checkout -f --detach ee121606b0d09b2e1c467183ee46217fa85a6b67` failed:
fatal: reference is not a tree: ee121606b0d09b2e1c467183ee46217fa85a6b67

When I try to build agent I get the following:
common.go:11:2: cannot find package "k8s.io/client-go/kubernetes" in any of:
	/go/src/github.com/rancher/agent/vendor/k8s.io/client-go/kubernetes (vendor tree)
	/usr/local/go/src/k8s.io/client-go/kubernetes (from $GOROOT)
	/go/src/k8s.io/client-go/kubernetes (from $GOPATH)
 ...

@atheoscommune try with k8s.io/client-go instead of k8s.io/client-go/kubernetes


Cannot run multiple instances on one machine -> username already exists

The steam username appears to be used, I would like to test and use this mod to have two, or even three viewports into the same game but this username issue is blocking that from happening.

There's a section on usernames in the FAQ: https://github.com/Zetrith/Multiplayer/wiki/FAQ


clean-repo-tabs doesn't show actions when they're only on one branch

Description
When viewing a repo without actions enabled on the main branch, but with actions enabled on a secondary branch, the actions button in the top bar doesn't appear.
In a perfect world, the actions button would only appear when viewing on the branch that adds them. However, this isn't really intuitive with how github works, because pages like Issues aren't per-branch. Because of this, I think it should just check all branches before deciding not to display Actions, instead of just the main branch.
Actions not appearing on the top:

When visiting the actions menu from Additional Navigation Options, they suddenly appear. There are existing Actions, so it should have appeared before.

After it realizes that Actions do exist, they'll now persist for a short time, but the menu will disappear upon reloading.

How to replicate the issue + URL
https://github.com/quatquatt/no-actions-menu
Visit this repo with Clean Repo Tabs enabled, and observe that the Actions menu doesn't appear, which would make you assume that it was empty. Then, go to the Additional Navigation Options, and select Actions. You'll see that Actions do exist, which the extension has suddenly realized, since it now appears in the top bar. This doesn't occur for something that isn't set up, like Projects. Now when you go back to Code, Actions will persist on the tabs menu. However, it'll disappear upon reloading the page.
Extension version
24.7.10
Browser(s) used
Firefox, Chrome

I assume it's very rare the workflow files are located in non-default branches only. I don't think it's worth it to query every branch just for this.

Then, go to the Additional Navigation Options, and select Actions. You'll see that Actions do exist, which the extension has suddenly realized, since it now appears in the top bar.

This works as expected, we don't hide the tab if you are looking at it.

Indeed this is a bug and we can't fix it unless we find a different way to ask for workflows.
https://github.com/refined-github/refined-github/blob/4d54cf5ec5a29c017b7f1c9a1e3b344923696a2c/source/features/clean-repo-tabs.gql#L3-L9
And… good news! There's actually a way:
https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#list-workflow-runs-for-a-repository
Let's use this new REST endpoint /repos/quatquatt/no-actions-menu/actions/runs instead

The page/Link trick explained here also applies. This lets us do HEAD requests and avoid fetching any data from the API.


Hard inequality constraints for SQP solver

Is your feature request related to a problem? Please describe.
I would like to use hard inequality constraints with the SQP solver (based on HPIPM), rather than just soft constraints (via penalty functions). I would expect hard inequality constraints to be supported by SQP, but after trying to add them, and then digging a bit in the ocs2_sqp package code, it doesn't appear that they are currently supported.
Describe the solution you'd like
Assuming I'm correct that hard inequality constraints are not currently implemented for the SQP solver (happy to be corrected here!), then my preferred solution is for support for them to be added. I would potentially be interested in working on this myself if others see a need for it, too.
Describe alternatives you've considered
Of course, one could just use soft constraints via penalty functions like for DDP-based approaches, but having the alternative of hard inequality constraints is a nice point of comparison for controller behaviour.

You are correct, hard inequality constraints are currently not there and would be nice to have. It would also not be too hard to do for the SQP solver because HPIPM already supports this on the QP side.
The main challenge would be to come up with a good interface for specifying box constraints / general constraints and the potential to slack them (as HPIPM does for the linear case).
There is nobody working on this from our side, so your contribution would be welcome.


Change relative links to absolute links

Changed because when accessing a non-existent https://example.com/post/hello-world/, relative links starting with ./, which is not present, the relative link is not rendered correctly and the link does not work.

This pull request is being withdrawn due to a breathing problem with the relativeURLs = true setting.
https://gohugo.io/content-management/urls/


Error SSHKEY

Hello, i have an error during actions of your script :
Load key "/home/builder/.ssh/aur": invalid format
Importing private key
mode of '/home/builder/.ssh/aur' changed from 0644 (rw-r--r--) to 0600 (rw-------)
after that, the actions is stoped

Lacking information. Closing.

Make sure both the private key you entered to GitHub secrets and the public key you entered to your AUR profile do not contain redundant newlines.


Populating an array of objects

Hi!
I have a question about populating. I saw that you updated the code to use populating like mongoose, but there is still no documentation.
I have the following schema
`
var PhysioSchema = new Schema({
    userid: {
        type: String,
        required: true,
        hashKey: true
    },
    username: {
        type: String,
        required: true
    },
  programs:[{
        program:
        {
            type: String,
            ref: 'Program'
        }
    }]
}, {
    useDocumentTypes: true
});

programs should be populated with a Program model. The schema for the program looks like this
var ProgramSchema = new Schema(
    {
       programid:{
            type: String,
            required:true,
            hashKey: true,
        },
        ownerid:
        {
            type: String,
            required:true
        },
        programtitle:
        {
            type : String,
            required: true
        },
        programdescription:
        {
            type:String
        },
        exercises:[
        {
            exerciseid: String
        }]

    }
);

So basicaly a physio should be stored like this  with 2 programs
var newPhysio = new Physiotherapist({
     userid: "1",
     username: "Bram Sikkens",
     programs: [{program:'1'},{program:'2'}],
     exercises: [{
         exerciseid: "1"
     }],
     libraries: [{
         libraryid: "1"
     }],
     patients: []
 });

The json response looks like this
Model-Physiotherapist {
  programs: [ { program: '1' }, { program: '1' } ],
  exercises: [ { exerciseid: '1' } ],
  username: 'Bram Sikkens',
  patients: [],
  libraries: [ { libraryid: '1' } ],
  userid: '1' }

How do I populate programs array with the Program model?
I already tried
    physio.populate({
            path:'programs.program',
            model:'Program'
        }).then(function(populatedphysio){
            console.log(populatedphysio);
        })

But this does not work

@BramSikkens Few things before I get to your question. First, adding **help wanted** to your title doesn't really serve any purpose and takes away from the focus of your question that you are really asking. At the end of the day if you file an issue on GitHub, chances are you are looking for help, support, or at the very least a reply. So in the future, please try to keep your issues focused and on topic. I promise I will make every effort to answer issues as quickly as possible 😃. Adding **help wanted** doesn't change that fact, and if anything delays the time it takes for me to reply to your issue.
Second, we have an issue template on GitHub that gives us a lot of useful information to help solve your issue quicker. There are very few reasons not to follow the issue template. In your issue you say But this does not work. That doesn't give me enough information at all to help solve your issue. How doesn't it work? What is the current output? Is it giving you an error? Is it failing silently? Those are all questions that the issue template helps to encourage you to write in your issue. So in the future, please follow the issue template.

On to your issue.
Short answer, I don't think this is currently possible with the populate feature. I could be totally wrong, but I don't think it's currently possible. Although I haven't really used populate in one of my projects before, so I really am not really sure the complete scope of this feature.
My suggestion would be to do something like the following:

async function getAndPopulate() {
  const myItem = await Physiotherapist.get("1");

  myItem.programs = await Promise.all(myItem.programs.map(async program => {
    const myProgram = await Program.get(program.program);
    return myProgram;
  }));

  return myItem;
}

If my code is correct, that should loop through the programs array, and get each program item for the program id in the array.
Of course you probably want to add in some try/catch statements to handle errors, and might want to edit the code to fit your needs better. But the overall concept and underlying ideas should work.

If you would like to go and do some investigating into the Dynamoose codebase to check to see if this is supported natively that would be awesome too. If it's not supported, feel free to submit a PR adding support for it.
Either way, probably should add some documentation for this (again, PR would be great).

Hopefully this helps! Feel free to comment if you have further questions.

First of all, thank you for the reply. I fairly new to the whole issue thing so, I didn't really know how I it was the proper way to ask a question. I added the help wanted to clarify that it was not an issue, but a question. It was not my intention to push for your attention.
I was reading an issue about the implementation of the populate method, like mongoose. The only thing missing was the documentation. I am just starting with dynamoose and when I understand it fully I will try to add some help to your incredible tool.
Just thanks for the help!

@BramSikkens Totally understand!
Hopefully that works and feel free to create more issues as you have more questions, bug reports, suggestions, etc. And as always PRs are always welcome! haha
Good luck!


Update cats-helper to 2.6.2

Updates com.evolutiongaming:cats-helper from 2.2.3 to 2.6.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.evolutiongaming", artifactId = "cats-helper" } ]

labels: library-update, early-semver-minor, semver-spec-minor

Superseded by #157.


Underscores instead of dashes in repo name is bothering me

😢

is hyphen convention? I thought it was personal preference. Can rename if so!


Provision Chocolatey Package With Packer From .ovf

Hi all.  I am creating base VM images using the Hashicorp stack (Packer, Vagrant).  I created a base Virtualbox .ovf via Packer which has Windows Updates already installed.  Going this route allows me to provision software and other settings without having to wait over an hour to get all the Windows Updates again.  This has significantly reduced my troubleshooting/debugging time while creating provisioned boxes for my team.
I am currently trying to automate our local SQL Server 2016 installation and have to install SSMS separately since it is no longer shipped with SQL Server 2016.  There is a chocolatey package for this (sql-server-management-studio) but I am running into an issue with the KB2919442 dependency.  I believe this has to do with quietly installing the KB.
Here is the error output from the console:
    packer-test: Installing the following packages:
    packer-test: sql-server-management-studio
    packer-test: By installing you accept licenses for the packages.
    packer-test: Progress: Downloading KB2919355 1.0.20160915... 100%
    packer-test: Progress: Downloading KB2919442 1.0.20160915... 100%
    packer-test: Progress: Downloading sql-server-management-studio 14.0.17277.0... 100%
    packer-test: Progress: Downloading DotNet4.6.1 4.6.01055.20170308... 100%
    packer-test:
    packer-test: KB2919442 v1.0.20160915 [Approved]
    packer-test: kb2919442 package files install completed. Performing other installation steps.
    packer-test: Downloading KB2919442 64 bit
    packer-test:   from 'https://download.microsoft.com/download/D/6/0/D60ED3E0-93A5-4505-8F6A-8D0A5DA16C8A/Windows8.1-KB2919442-x64.msu'
    packer-test: Progress: 100% - Completed download of C:\Users\vagrant\AppData\Local\Temp\chocolatey\KB2919442\1.0.20160915\Windows8.1-KB2919442-x64.msu (10.22 MB).
    packer-test: Download of Windows8.1-KB2919442-x64.msu (10.22 MB) completed.
    packer-test: Hashes match.
    packer-test: Installing KB2919442...
    packer-test: WARNING: User (you) cancelled the installation.
    packer-test: ERROR: Running ["C:\Windows\System32\wusa.exe" "C:\Users\vagrant\AppData\Local\Temp\chocolatey\KB2919442\1.0.20160915\Windows8.1-KB2919442-x64.msu" /quiet /norestart /log:"C:\Users\vagrant\AppData\Local\Temp\chocolatey\KB2919442.Install.evt" ] was not successful. Exit code was '5'. Exit code indicates the following: User (you) cancelled the installation..
    packer-test: The install of kb2919442 was NOT successful.
    packer-test: Error while running 'C:\ProgramData\chocolatey\lib\KB2919442\tools\ChocolateyInstall.ps1'.
    packer-test:  See log for details.
    packer-test:
    packer-test: KB2919355 v1.0.20160915 [Approved]
    packer-test: kb2919355 package files install completed. Performing other installation steps.
    packer-test: Skipping installation because hotfix KB2919355 is already installed.
    packer-test:  The install of kb2919355 was successful.
    packer-test:   Software install location not explicitly set, could be in package or
    packer-test:   default install location if installer.
    packer-test:
    packer-test: DotNet4.6.1 v4.6.01055.20170308 [Approved]
    packer-test: dotnet4.6.1 package files install completed. Performing other installation steps.
    packer-test: Microsoft .NET Framework 4.6.1 or later is already installed
    packer-test:  The install of dotnet4.6.1 was successful.
    packer-test:   Software install location not explicitly set, could be in package or
    packer-test:   default install location if installer.
    packer-test:
    packer-test: sql-server-management-studio v14.0.17277.0 [Approved]
    packer-test: sql-server-management-studio package files install completed. Performing other installation steps.
    packer-test: Downloading SQL Server Management Studio
    packer-test:   from 'https://download.microsoft.com/download/0/5/B/05B2AF8F-906F-4C57-A58E-5780F64F9D62/SSMS-Setup-ENU.exe'
    packer-test: Progress: 100% - Completed download of C:\Users\vagrant\AppData\Local\Temp\chocolatey\sql-server-management-studio\14.0.17277.0\SSMS-Setup-ENU.exe (806.28 MB).
    packer-test: Download of SSMS-Setup-ENU.exe (806.28 MB) completed.
    packer-test: Hashes match.
    packer-test: Installing SQL Server Management Studio...
    packer-test: SQL Server Management Studio has been installed.
    packer-test:   sql-server-management-studio may be able to be automatically uninstalled.
    packer-test: Environment Vars (like PATH) have changed. Close/reopen your shell to
    packer-test:  see the changes (or in powershell/cmd.exe just type `refreshenv`).
    packer-test:  The install of sql-server-management-studio was successful.
    packer-test:   Software installed to 'C:\Program Files (x86)\Microsoft Help Viewer\v2.2\'
    packer-test:
    packer-test: Chocolatey installed 3/4 packages. 1 packages failed.
    packer-test:  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
    packer-test:
    packer-test: Failures
    packer-test:  - kb2919442 (exited 5) - Error while running 'C:\ProgramData\chocolatey\lib\KB2919442\tools\ChocolateyInstall.ps1'.
    packer-test:  See log for details.
==> packer-test: Deregistering and deleting imported VM...
==> packer-test: Deleting output directory...
Build 'packer-test' errored: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]

==> Some builds didn't complete successfully and had errors:
--> packer-test: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]

==> Builds finished but no artifacts were created.

I am using choco install sql-server-management-studio -y to install the package and have tried choco install kb2919442 -y with no luck.  These calls work if I run them manually from within the VM after it has been brought up using vagrant up.
Note: I have also tried using the Boxstarter shell and this suggestion by @mwrock but it didn't work.  Maybe I did something wrong?

This is an issue with winrm and installing .msus. The msu install does not allow remote callers to perform this task. However, you can work around this by using an elevated_user and elevated_password in your packer powershell provisioner which will cause the provisioner to run via a scheduled task and appear to be local.

@mwrock Thank you for your response.  I've been hacking around this issue for a few days now and this took care of my problem.  You wrock!


Add qdr log output to CI (trying to debug a CI issue)

Sometimes the CI fails with ceilometer timing out
when trying to send metrics. I hope that these logs make it clearer what is happening.

Although this PR seems useful, I'll just close it now. I'm starting to work on rewriting most of the CI. I'll include the changes there.


pbpst: drop

Motivation for this change
has been marked as broken since October 2019
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

ping @tmplt

It's broken because (most likely) the default provider closed its doors.
I'm not aware of any other instances, nor do I use the program any more.
Feel free to drop.