How to Completely Suppress Mediapipe and TensorFlow Logs in Python ？

Hello,
I am using Mediapipe's Pose module in Python to extract region masks from images. My environment includes VS Code for debugging. Despite my efforts to suppress logs, I am still seeing a significant amount of information printed to the console, including INFO, WARNING, and other messages from Mediapipe and TensorFlow.
Here is an excerpt of the problematic log output:
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
W0000 00:00:1731912234.538702   75025 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
W0000 00:00:1731912234.624405   75029 landmark_projection_calculator.cc:186] Using NORM_RECT without IMAGE_DIMENSIONS is only supported for the square ROI. Provide IMAGE_DIMENSIONS or use PROJECTION_MATRIX.
I have already implemented multiple solutions to suppress the output, including:
1.Setting environment variables:
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
os.environ['GLOG_minloglevel'] = '3'
2.Using Abseil's logging verbosity:
from absl import logging as absl_logging
absl_logging.set_verbosity(absl_logging.FATAL)
3.Redirecting stdout and stderr during the execution of Mediapipe's code:
from contextlib import contextmanager
@contextmanager
def suppress_all_output():
devnull = open(os.devnull, 'w')
old_stdout, old_stderr = sys.stdout, sys.stderr
try:
sys.stdout, sys.stderr = devnull, devnull
yield
finally:
sys.stdout, sys.stderr = old_stdout, old_stderr
devnull.close()
Despite these efforts, the logs persist, particularly during the instantiation of Mediapipe's Pose module and subsequent processing steps.
My Environment:
Operating System: Ubuntu 20.04
Python Version: 3.9
Mediapipe Version: 0.10.18
tensorboard                         2.18.0
tensorboard-data-server             0.7.2
tensorboard-plugin-wit              1.8.1
tensorboardX                        <IP_ADDRESS>
tensorflow-io-gcs-filesystem        0.37.1
Debugger: VS Code
Steps to Reproduce:
1.Load an image and process it using Mediapipe's Pose：
with mp.solutions.pose.Pose(min_detection_confidence=0.5, min_tracking_confidence=0.5) as pose:
results = pose.process(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
2.Observe the persistent log output in the console.
Expected Behavior:
No logs should be printed to the console if suppression methods are applied.
Actual Behavior:
Logs from TensorFlow, Mediapipe, and Abseil persist even after applying the above suppression techniques.
Question:
Is there a definitive way to completely suppress all logs (including INFO, WARNING, and ERROR) from Mediapipe, TensorFlow, and Abseil without modifying Mediapipe's source code?
Alternatively, if source code modification is required, could you provide detailed guidance on which parts of the Mediapipe source are responsible for logging and how to suppress them effectively?
Thank you for your time and assistance.

Hi @ThomaswellY,
It appears that you are still using the legacy Pose solution, which has been replaced by the upgraded Pose Landmarker Task API. Please note that support for the legacy solution has ended. You can find more details about this change in the legacy guide and available solutions documentation.
We recommend migrating to the new Pose Landmarker Task API, which offers improved features and support. You can review the API overview and follow the Python implementation guide to get started.
If you are still using the legacy solution, you may try the provided workaround here, but please note that further assistance is limited as support for the legacy version has ended. However, if you are using the upgraded API and need help suppressing warning logs, we may be able to assist. please let us know if you need further clarification.
Thank you!!

HI！@kuaashish
Thank you for your response and for pointing out the transition to the Pose Landmarker Task API. I have migrated my implementation to the upgraded API, following the Python implementation guide](https://ai.google.dev/edge/mediapipe/solutions/vision/pose_landmarker/python?hl=zh-cn)   . However, I am still encountering the issue of persistent log outputs in the console.
Despite applying various log suppression techniques, including setting environment variables (TF_CPP_MIN_LOG_LEVEL, GLOG_minloglevel), adjusting Abseil's logging verbosity, and redirecting stdout/stderr during the execution, logs such as the following continue to appear:
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1731930035.529357   21253 task_runner.cc:85] GPU suport is not available: INTERNAL: ; RET_CHECK failure (mediapipe/gpu/gl_context_egl.cc:84) egl_initializedUnable to initialize EGL
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
W0000 00:00:1731930035.660247   28339 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
W0000 00:00:1731930035.831237   28343 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
Here is a simplified version of the code that reproduces the issue:
`import mediapipe as mp
import os
import cv2
Set environment variables to suppress logs
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
os.environ['GLOG_minloglevel'] = '2'
Load Pose Landmarker Task API
model_path = "/xx/models/mediapipe/pose_landmarker.task"
BaseOptions = mp.tasks.BaseOptions
PoseLandmarker = mp.tasks.vision.PoseLandmarker
PoseLandmarkerOptions = mp.tasks.vision.PoseLandmarkerOptions
VisionRunningMode = mp.tasks.vision.RunningMode
Configure options
options = PoseLandmarkerOptions(
base_options=BaseOptions(model_asset_path=model_path),
running_mode=VisionRunningMode.IMAGE
)
Create PoseLandmarker instance and process an image
with PoseLandmarker.create_from_options(options) as landmarker:
image = cv2.imread("example.jpg")
mp_image_input = mp.Image.create_from_file("example.jpg")
result = landmarker.detect(mp_image_input)
`
Issue:
The logs persist during the creation of the PoseLandmarker instance
Question:
Is there a specific way to suppress these logs (INFO, WARNING, and others) using the Pose Landmarker Task API?
I look forward to your suggestions or insights to address this persistent issue. Please let me know if additional details or context are needed.
Thank you for your continued support!
Best regards,
ThomaswellY

@kuaashish if any farther details are needed, pls let me know , thanks ~

HI @ThomaswellY,
Thank you for the update. Please allow us some time to discuss this with our team, and we will get back to you with an update as soon as possible.


Minor fix for video driver(2)

Summary
Continue the work https://github.com/apache/nuttx/pull/7780:

drivers/video: Remove validate_frame_setting NULL check from video_[s|try]_fmt
drivers/video: Zero all fields in an output struct
drivers/video: Replace malloc/realloc/free with kmm_[malloc/realloc/free]
drivers/video: Move the clip operation from video_s_selection to validate_frame_setting
drivers/video: Check th size for IMGSENSOR_CTRL_TYPE_U[8|16|32]
drivers/video: Add stop_capture function

Impact
Minor
Testing

@masayuki2009 can you test on the HW?

@masayuki2009 do you have any result?


docs: Add user guide for Collapse a Message.

docs: Add user guide for Collapse a Message for 540KJ

Automated message from Dropbox CLA bot
@540KJ, it looks like you've already signed the Dropbox CLA. Thanks!

Looks good to me.

You need a better screenshot :). 'Mute the topic Collapse A Message' is confusing.

Shouldn't we also mention the Uncollapse option?
That'd require screenshots with messages that have been collapsed/uncollapsed, but I think it would be a bit clearer - the current screenshot just shows the menu.

Added screenshots.

Thanks for addressing the comments!
@showell lgtm, could you take a look as a final review?

Looks great, merged, thanks @540KJ!!


Support for RC6

Angular2 rc.6 removes the deprecated API also removes components.pipes and components.directives.

https://github.com/gevgeny/angular2-highcharts/issues/57


Add test for InverseMelScale

This PR follows up #366 and adds test for InverseMelScale (and MelScale) for librosa compatibility.
For MelScale compatibility test;

Generate spectrogram
Feed the spectrogram to torchaudio.transforms.MelScale instance
Feed the spectrogram to librosa.feature.melspectrogram function.
Compare the result from 2 and 3 elementwise.
Element-wise numerical comparison is possible because under the hood their implementations use the same algorith.

For InverseMelScale compatibility test, it is more elaborated than that.

Generate the original spectrogram
Convert the original spectrogram to Mel scale using torchaudio.transforms.MelScale instance
Reconstruct spectrogram using torchaudio implementation
3.1. Feed the Mel spectrogram to torchaudio.transforms.InverseMelScale instance and get reconstructed spectrogram.
3.2. Compute the sum of element-wise P1 distance of the original spectrogram and that from 3.1.
Reconstruct spectrogram using librosa
4.1. Feed the Mel spectrogram to librosa.feature.inverse.mel_to_stft function and get reconstructed spectrogram.
4.2. Compute the sum of element-wise P1 distance of the original spectrogram and that from 4.1. (this is the reference.)
Check that resulting P1 distance are in a roughly same value range.

Element-wise numerical comparison is not possible due to the difference algorithms used to compute the inverse. The reconstructed spectrograms can have some values vary in magnitude.
Therefore the strategy here is to check that P1 distance (reconstruction loss) is not that different from the value obtained using librosa. For this purpose, threshold was empirically chosen
print('p1 dist (orig <-> ta):', torch.dist(spec_orig, spec_ta, p=1))
print('p1 dist (orig <-> lr):', torch.dist(spec_orig, spec_lr, p=1))
>>> p1 dist (orig <-> ta): tensor(1482.1917)
>>> p1 dist (orig <-> lr): tensor(1420.7103)

This value can vary based on the length and the kind of the signal being processed, so it was handpicked.

@vincentqb Once we settle on the test, we can do;

Squash merge #366 to master
Rebase this branch to master
Squash merge this.
That way the credit of @jaeyeun97 is preserved properly.

For the record;
the following is what the reconstructed spectrograms look like in test_InverseMelScale test.
As mentioned in my comment and as in the original PR, these values are mostly close but in some places they can be extremely different.

 code for plot
# based on https://gist.github.com/jaeyeun97/8651dff509d5b084636ac6c3a7547108
# thanks @jaeyeun97

def _plot_melspecs(sample_rate, spec_original, spec_ta, spec_lr):
    def log_mag(spec):
        ref = spec.max().clamp(1e-16).log10_()
        spec = spec.clamp(1e-16).log10().sub_(ref).mul_(20).clamp(min=-80)
        return spec.squeeze().numpy()

    spec_original = log_mag(spec_original)
    spec_ta = log_mag(spec_ta)
    spec_lr = log_mag(spec_lr)

    import librosa.display
    import matplotlib
    import matplotlib.pyplot as plt

    matplotlib.use('TkAgg')
    plt.figure(figsize=(20, 10))

    plt.subplot(3, 1, 1)
    librosa.display.specshow(spec_original, sr=sample_rate)
    plt.title('Original')

    plt.subplot(3, 1, 2)
    librosa.display.specshow(spec_lr, sr=sample_rate)
    plt.title('Librosa')

    plt.subplot(3, 1, 3)
    librosa.display.specshow(spec_ta, sr=sample_rate)
    plt.title('Torchaudio')
    plt.savefig(f'test_InverseMelScale.png')

As you noticed, test is failing.
        # This threshold was choosen empirically, based on the following observations
        #
        # torch.dist(spec_orig, spec_ta, p=1)
        # >>> tensor(1482.1917)
        # torch.dist(spec_orig, spec_lr, p=1)
        # >>> tensor(1420.7103)
        # torch.dist(spec_lr, spec_ta, p=1)
        # >>> tensor(881.7889)
>       assert torch.dist(spec_orig, spec_ta, p=1) < threshold
E       AssertionError: assert tensor(1658.8206) < 1500.0
E        +  where tensor(1658.8206) = <built-in method dist of type object at 0x7fe5e2937880>(tensor([[[1.5051e+00, 7.9520e-01, 3.0737e-01,  ..., 6.0686e-01,\n          8.8888e-01, 2.8056e+00],\n         [7.7557e-0...e-04, 2.0129e-03],\n         [2.0623e-04, 4.6134e-05, 6.3226e-05,  ..., 6.4552e-05,\n          1.0691e-03, 2.0032e-03]]]), tensor([[[0.3844, 0.4208, 0.1461,  ..., 0.9873, 0.7092, 0.8993],\n         [0.7756, 1.1142, 0.9477,  ..., 0.8303, 1.985...0466, 0.0493, 0.0557,  ..., 0.0246, 0.0529, 0.0000],\n         [0.8467, 0.9353, 0.5868,  ..., 0.6988, 0.8108, 0.9290]]]), p=1)
E        +    where <built-in method dist of type object at 0x7fe5e2937880> = torch.dist
test/test_transforms.py:620: AssertionError


Fixes app crashing when background/foreground

These methods were crashing our iOS app when backgrounding/foregrounding the app.
XCode warns about these deprecations:
'appDidBecomeActive:' is deprecated: SDK now automatically detects if app becomes active, this method will be removed in upcoming releases.
'appDidBecomeActive:' is deprecated: SDK now automatically detects if app becomes active, this method will be removed in upcoming releases.
'appDidEnterBackground:' is deprecated: SDK now automatically detects if app enters background, this method will be removed in upcoming releases.
'appDidEnterBackground:' is deprecated: SDK now automatically detects if app enters background, this method will be removed in upcoming releases.
But the actual crashes come from [self blueshift_swizzled_applicationWillEnterForeground:application]; and [self blueshift_swizzled_applicationDidEnterBackground:application]; and those crashes are Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) and the relevant log for it is
->  0x1290852b5 <+101>: leaq   0x82b12b(%rip), %rdi      ; "Application violated contract by causing UIApplicationMain() to return. This incident will be reported."

When I comment these out or remove them, the app doesn't crash and works as expected.

I accidentally approved this.

@ketanshikharebsft or @rahulrvp can we get some movement on this?

Hey @mike-roberts @jontroncoso  the methods are just marked as deprecated, those are still present in the SDK so it should not cause any crashes. Please reach out to our support by sending email to<EMAIL_ADDRESS>to talk about this more. Make sure to share the Blueshift plugin/SDK versions used and any steps to reproduce it.

It crashes and points specifically to those lines, with the message Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

I'm using the latest version of the plugin, 1.0.0, and BlueShift-iOS-SDK 2.2.6

Thanks for sharing the additional details. The changes made in the PR are incomplete, we will release a hotfix for this issue and update you here.

@mike-roberts @jontroncoso We have released the hotfix with the necessary changes, please update the Blueshift plugin to v1.0.1.
For any SDK related queries, please reach out to<EMAIL_ADDRESS>Thank you.


Add create new conversation on first message send.

Yes, it's possible to update the address in the address bar without redirecting the user by using the History API in JavaScript. Specifically, you can use the pushState() method of the history object to add a new entry to the browser's history stack without triggering a page refresh or navigation.
Here's an example of how you can use pushState() to update the address in the address bar:
function updateAddressBar(url) {
    window.history.pushState({}, '', url);
}

You can call this function with the desired URL to update the address bar without causing the browser to navigate to the new URL. This is useful for scenarios where you want to update the URL dynamically based on user interactions or application state changes without reloading the page.


Created a matrix multiplication program using C++.

Created a matrix multiplication program using C++

@mahalakshmi-08  contribute to https://github.com/Ishaan28malik/Get-Dev-Resources instead


Context file cannot find modules in counterfact 0.40+

I upgraded from 0.38.3 to 0.42.0 to try out the new hot reloading changes (#835). Unfortunately, the app no longer works at all.
Setup
I have custom counterfact code in a sub-folder of my little UI project, like so:
my-ui/
	...files...
	package.json
	counterfact/
		path-types/
		paths/
			mocks/ <-- my custom code
				session-manager.ts
			_.context.ts
		package.json

I have a lot of custom code in that /mocks directory, but I'm simplifying things here to a minimal test case.
counterfact/package.json
{
	"name": "my-ui-counterfact",
	"version": "0.0.1",
	"private": true,
	"scripts": {
		"mockapi": "counterfact ../path/to/my/openapi.yaml ."
	},
	"devDependencies": {
		"counterfact": "^0.42.0"
	},
	"type": "commonjs"
}

counterfact/paths/_.context.ts
import { SessionManager } from './mocks/session-manager';

const sessionManager = new SessionManager();

export class Context {
	someCustomFunction(): any {
		return sessionManager.toString();
	}
}

counterfact/paths/mocks/session-manager.ts
class SessionManager {}
export { SessionManager };

Error
With all that in place, when I run my-ui/counterfact> npm run mockapi, I get the following:
...
Watching for changes
Starting server
Starting REPL, type .help for more info

Error loading /Users/.../my-ui/counterfact/.cache/_.context.cjs:
Error: Cannot find module './mocks/session-manager'
Require stack:
- /Users/.../my-ui/counterfact/.cache/_.context.cjs
- /Users/.../my-ui/counterfact/node_modules/counterfact/dist/server/uncached-require.cjs

Please let me know if my setup is unsupported/I'm doing something wrong, if you cannot reproduce, or if this is a genuine bug.

Thanks for letting me know! The issue is Counterfact expects the imported file to have a .js extension.
import { SessionManager } from './mocks/session-manager';

If you add the .js extension it should work.
import { SessionManager } from './mocks/session-manager.js';

Adding the .js extension is considered a best practice. I'll link a reference when I find it. However, I don't see any value in being pedantic about it. I'll fix the code so that either no extension or .ts works.

Fixed in 0.42.1. Please let me know if that does the trick (and the hot reload works)!

Ah yes, my inexperience with node is showing. Sure enough, I added file extensions and it worked! I see how node (and its module systems) are more browser-like and require full paths to resources (unlike other languages where file extensions are omitted, which was my naive assumption).
I'll stick with explicit extensions, but I'm sure someone out where will appreciate the flexibility.
I tested it out hot reloading, and indeed it works like a charm now! Lightning fast and seamless. Well done.
I consider this issue closed.

Awesome! At this point it should work even without the file extension. Any valid TypeScript code should work. If you run into anything that doesn't work, or behaves in a way that is not obvious, please let me know. I want this tool to be absurdly intuitive.
Thanks again for the feedback!


Use Relay v1.4 observable API

Closes #84

Hello! Can you accept this PR, please? I'm converting my web app to Relay Modern and would like to use Found Relay with Relay v1.4.
Thanks!

I will soon, but note that all this does is fix a deprecation warning. The library as-is works just fine with the newest Relay release.

Published v0.3.0-alpha.8.


Add missing export keys

Adds the missing export keys as described here: https://github.com/PKISharp/ACME-PS/issues/135
This will enable PowerShell to do the command discovery for this module quicker.
Note that I'm assuming this module isn't exporting any cmdlets, variables, aliases or DSC resources. If it is, then the exports needs to be updated to list those.

Thank you very much, I pulled it and created a package (V1.5.4)


[Microsoft.Sql] - 'az sql server advanced-threat-protection-setting show/update'

Related command

az sql server advanced-threat-protection-setting show
az sql server advanced-threat-protection-setting update
az sql db advanced-threat-protection-setting show
az sql db advanced-threat-protection-setting update
az sql mi advanced-threat-protection-setting show
az sql mi advanced-threat-protection-setting update
az sql midb advanced-threat-protection-setting show
az sql midb advanced-threat-protection-setting update
Description
Microsoft.Sql - Implementation of cmds advanced-threat-protection-setting
Adding the support for Azure CLI for the new ARM API advancedThreatProtectionSettings.
This new API is intended to replace the previous existing ARM API securityAlertPolicies.
Testing Guide

az sql server advanced-threat-protection-setting show -g <resource_group> -n <sql_server_name>
Displays the current advancedThreatProtectionSettings state for the SQL Server (Enabled or Disabled)
az sql server advanced-threat-protection-setting update -g <resource_group> -n <sql_server_name> --state <Disabled/Enabled>
Updates the current advancedThreatProtectionSettings state for the SQL Server (Enabled or Disabled)
az sql server advanced-threat-protection-setting show -g <resource_group> -n <sql_server_name>
Displays the current advancedThreatProtectionSettings state for the SQL Server (Enabled or Disabled)
az sql server advanced-threat-protection-setting update -g <resource_group> -n <sql_server_name> --state <Disabled/Enabled>
Updates the current advancedThreatProtectionSettings state for the SQL Server (Enabled or Disabled)
az sql db advanced-threat-protection-setting show -g <resource_group> -s <sql_server_name> -n <db_name>
Displays the current advancedThreatProtectionSettings state for the SQL Database (Enabled or Disabled)
az sql db advanced-threat-protection-setting update -g <resource_group> -s <sql_server_name> -n <db_name> --state <Disabled/Enabled>
Updates the current advancedThreatProtectionSettings state for the SQL Database (Enabled or Disabled)
az sql mi advanced-threat-protection-setting show -g <resource_group> -n <managed_instance_name>
Displays the current advancedThreatProtectionSettings state for the SQL Managed Instance (Enabled or Disabled)
az sql mi advanced-threat-protection-setting update -g <resource_group> -n <managed_instance_name> --state <Disabled/Enabled>
Updates the current advancedThreatProtectionSettings state for the SQL Managed Instance (Enabled or Disabled)
az sql midb advanced-threat-protection-setting show -g <resource_group> --mi <managed_instance_name> -n <db_name>
Displays the current advancedThreatProtectionSettings state for the SQL Managed Database (Enabled or Disabled)
az sql midb advanced-threat-protection-setting update -g <resource_group> --mi <managed_instance_name> -n <db_name> --state <Disabled/Enabled>
Updates the current advancedThreatProtectionSettings state for the SQL Managed Database (Enabled or Disabled)
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

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

[X] The PR title and description has followed the guideline in Submitting Pull Requests.

[X] I adhere to the Command Guidelines.

[X] I adhere to the Error Handling Guidelines.

sql


Add support for kube-proxy with IPVS

Currently, if kube-proxy is configured to use IPVS, instead of iptables, the kube-proxy pods fail to come up in IPVS mode. This is because ipset is missing from the hypokube image (thanks Ivan!).
I'll be posting a PR to resolve this shortly.

/assign


Guarantee partition predicate evaluation

One of the design goals of the partition functions that the predicate is evaluated only once (not twice) per item. This should be documented guarantee so that developers can take advantage of it.
A similar guarantee should be added for Array.partition.

Docs Build status updates of commit 575ae90:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/conceptual/list.partition['t]-function-[fsharp].md
:white_check_mark:Succeeded

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


[LCS + Move values] Simplify (de)serialization code

Motivation
Remove the macros serialize_vec and deserialize_specialized_vec and use LCS on vectors to do the same thing.
The rest is just me trying to make code look less indented.
Test Plan
CI

@bors-libra r=vgao1996

:pushpin: Commit 1929f09 has been approved by vgao1996

:hourglass: Testing commit 1929f093e906534cee6f4ea3902d890bc343b625 with merge 11143b346320ae1ea6834654714e15df68f03b71...

:broken_heart: Test failed - checks-actions_land_blocking_test

@bors-libra r+

:bulb: This pull request was already approved, no need to approve it again.

This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.
There's another pull request that is currently being tested, blocking this pull request: #3374

:pushpin: Commit 1929f09 has been approved by matbd

:hourglass: Testing commit 1929f093e906534cee6f4ea3902d890bc343b625 with merge 9d94861190939a330052b59084b72f61878a0a5f...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: matbd
Pushing 9d94861190939a330052b59084b72f61878a0a5f to master...


Docker build is not triggered by release

This is caused by this. Will create and use a PAT instead.


Failed to execute operation: No such file or directory

curl: (22) The requested URL returned error: 500 Internal Server Error
[INFO] WireGuard is disabled.
[INFO] Getting the network interface IPv4 address...
[INFO] IPv4 Address: <IP_ADDRESS>
[INFO] Getting the network interface IPv6 address...
[INFO] IPv6 Address: 2607:f130:0:155::791d:f4a7
[INFO] Getting the best MTU value for WireGuard...
[INFO] WireGuard MTU: 1420
[INFO] WireGuard profile (/etc/wireguard/wgcf.conf) generation in progress...
Generated by P3TERX/warp.sh
Visit https://github.com/P3TERX/warp.sh for more information
[Interface]
PrivateKey = oMqBojTNc0wuu7+qlJKfRrjJcCDn1cZXRaEKix+Bqkc=
Address = <IP_ADDRESS>/32,2606:4700:110:80d2:5f:120a:2fd:e2c2/128
DNS = <IP_ADDRESS>,<IP_ADDRESS>,2001:4860:4860::8888,2001:4860:4860::8844
MTU = 1420
PostUp = ip -4 rule add from <IP_ADDRESS> lookup main prio 18
PostDown = ip -4 rule delete from <IP_ADDRESS> lookup main prio 18
PostUp = ip -6 rule add from 2607:f130:0:155::791d:f4a7 lookup main prio 18
PostDown = ip -6 rule delete from 2607:f130:0:155::791d:f4a7 lookup main prio 18
[Peer]
PublicKey = bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=
AllowedIPs = <IP_ADDRESS>/0,::/0
Endpoint = <IP_ADDRESS>:2408
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.docker0.stable_secret"
sysctl: reading key "net.ipv6.conf.eth0.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
sysctl: reading key "net.ipv6.conf.vethc7897f9.stable_secret"
sysctl: reading key "net.ipv6.conf.vethf476bd6.stable_secret"
[INFO] Starting WireGuard...
Failed to execute operation: No such file or directory
[ERROR] WireGuard failure to run!
-- No entries --

请问该怎么解决呀


Audio Switcher Client Issue

Details:
Audio Switcher
Version: <IP_ADDRESS>
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1 64-bit
Administrator Privileges: False
Client Email Address:
User Comments:
making new hotkey
Stacktrace:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at FortyOne.AudioSwitcher.AudioSwitcher.RefreshNotifyIconItems()
   at FortyOne.AudioSwitcher.AudioSwitcher.RefreshRecordingDevices()
   at System.Windows.Forms.Form.OnActivated(EventArgs e)
   at System.Windows.Forms.Form.WmActivate(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Update the version.


Enterprise SSL Certificate

Environment

OS: RockyLinux 8.6
Kubernetes/K3s: v1.23.6+k3s1 (418c3fa8)
AWX Operator: 0.22.0

Description
I deployed using a self-signed SSL certificate using
AWX_HOST="awx.example.com"
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out ./base/tls.crt -keyout ./base/tls.key -subj "/CN=${AWX_HOST}/O=${AWX_HOST}" -addext "subjectAltName = DNS:${AWX_HOST}"
However, I would like to switch it to an enterprise CA signed SSL certificate.  Do I just need generate a new certificate and key using my enterprise CA using the same names, place them in the same spot, then run kubectl apply -k base to apply the new certificate and private key?

@smccloud
Hi, thanks for filling the issue.

Do I just need generate a new certificate and key using my enterprise CA using the same names, place them in the same spot, then run kubectl apply -k base to apply the new certificate and private key?

Correct. To be more specifically:

Generate private key (A) and CSR on the K3s host
Send CSR to your CA
Receive CA-signed server certificate (B) from your CA
Put your private key (A) and certificate (B) to your Ingress, by renaming them to tls.crt and tls.key and replacing old self-signed one, then kubectl apply -k base.

Note that both your private key (A) and certificate (B) has to have PEM format. You may need to ask the CA to create a certificate in PEM format, or convert it to PEM format yourself.
I'm closing this issue but please feel free to re-open if you have further questions.


Refactor polymorpic attach

This PR makes it look a bit cleaner to use attach method of polymorphic many to many. It might apply to CanBlock.php and CanLike.php, too.

At the point I wrote the code, I had serious trust issues with morphToMany and using the right fields. Can you provide code change also for the rest of the traits?

Will do. I will close this and submit another PR after applying this to other files. Thanks.

You should have just kept the same branch and push code to it and it would reflect the changes here.

Oh, got it. pretty much beginner here. Thanks for the advice.


Using Static Links for All Resources

A critical concept for modern devops and automated builds in general is reproducible builds. Particularly with build recipes, it's important to make sure that all URL's accessed are static.
There is currently a simple yet significant obstacle to getting reproducible builds with Dockerfiles with VS Build Tools.  It is visible in your Dockerfiles here:
ADD https://aka.ms/vs/15/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
This URL, while great for publishing an evergreen link for users to get the "latest version", is non-deterministic by design, and thus not a good fit for use in Dockerfiles.
In contrast, earlier releases get static URL's.
https://docs.microsoft.com/en-us/visualstudio/productinfo/installing-an-earlier-release-of-vs2017#installing-the-earlier-release
We need a way to get static URL's for the latest versions of all the MSVC SKU's please.

The Dockerfile is an important artifact in devops. The specificity of it's contents matter.  People share Dockerfiles on Github and internally within teams and companies. They're often version controlled, and often held in separate branches or folders with names based on their contents.  Different people build them independently in different environments at different times, constantly. People change minor things and rebuild from them frequently.  When Microsoft posts Dockerfiles on Github, potentially tens of thousands of developers will copy them and build them over the course of the next year or two.
For these and other reasons, it's widely preferable for everyone if a Dockerfile produces the "same" resulting docker image each time it is built, regardless of the date it was built.  It's best if they're stored in folders which describe the version number of the major components they feature (in this case, the OS and build tools). Of course, it's fine to keep a Dockerfile which uses a "latest" URL around for those who want to constantly rebuild and re-test something against the latest version.
Example of how this repository might should look over time as new versions of build tools are released:
https://github.com/conan-io/conan-docker-tools
At the end of the day, the most important part of this request was that many of us just need a way to get a static URL to the most recently released version of VS Build tools. This seems perfectly reasonable and practical.  Each release is ultimately going to get a static link when it hits the "Previous Releases" page, we'd just like to have that link when it's released so we can create our static Dockerfiles for that version.

It looks like somebody named Stan asked a related question on your blog 9 months ago.  https://blogs.msdn.microsoft.com/heaths/2017/09/18/installing-build-tools-for-visual-studio-2017-in-a-docker-container/

I understand that in DevOps reproducibility is important. That's why docker images can be built and pushed to a registry and serve as the fixed environment you should use. This is no different than the plethora of, for example, Linux images that just run apt-get install to get the latest of a bunch of different tools and libraries? Once you've built an image and tested your runtime components, pushing that image ensures that every machine that pulls it has the exact same version every time. That's how the stable environment is kept, and is one of the major design goals of docker images. If you're trying to recreate container images with the same contents, a better approach would be to rely on file system layering. Get your dependencies installed first into a tagged image, and build on top of that your more dynamic components.
If that doesn't work, our currently supported approach is to create and - whenever desired - update a network layout: https://docs.microsoft.com/visualstudio/install/create-a-network-installation-of-visual-studio?view=vs-2017

Indeed, you are right about these things.  Pushing an image and sharing it in an environment is ideal, and a good part of the solution. Also, it's true that historically most sample Dockerfiles do things like apt install and use the latest.  However, these are very superficial points about the devops ecosystem around docker.  This does not begin to represent the vast diversity of how people use Docker in OSS and Enterprise.
I can accept that you've closed the ticket as wontfix, but I still want to share an example of what most production-targeting enterprise and OSS Dockerfiles look like when deterministic builds are necessary. Based on your comments, it doesn't seen like you've seen any like this before, but it is the standard for production Dockerfiles that I have worked with, where version numbers for everything are paramount (especially compiler versions).  Hopefully this will help to better inform your future decisions about the VS Build Tools Dockerfiles.
 We will consider this as we look toward future versions, not only for Build Tools on Docker but compilers in general. We are aware of the feedback about maintaining compiler versions and are considering different approaches.
FWIW, I do not include samples among the Dockerfiles to which I referred, but to files used in production like https://github.com/moby/moby/blob/5d82d77a6df0c95bb5986ace1255de424c700b33/Dockerfile#L27-L49. And you're absolutely right - the base image is of a specific version of go - but the various libraries are not. And this is perhaps a good compromise: as with all software, we make not only reliability fixes but security fixes in our runtime code (e.g. libraries) that we want to make sure people get. While compilers certainly do play a part in security, it's typically not to the extent of runtime code on end users' machines.


Add support for winit's choice of XWayland

With winit#199 XWayland is usable with env var WINIT_UNIX_BACKEND. Glutin can no longer assume wayland is winit's preferred backend whenever available.
By checking winit::os::unix::get_x11_xconnection() we can tell if winit has a preference for X.
This allows WINIT_UNIX_BACKEND=x11 cargo run --example window to run the example under XWayland, instead of panic.

@vberger if you have time maybe you could glance over this?

Well, this looks good, and should likely have been the proper way of doing it from the start. 👍


GNOME does not support automatic brightness

Describe the bug
I am using NixOS 25.05 on an older Retina MacBook Pro (MacBookPro11,1). Under my previous installation of Fedora Silverblue, I was able to toggle an automatic screen brightness feature out of the box under Settings > Power > Power Saving. This appears to be missing in NixOS.

Steps To Reproduce
Steps to reproduce the behavior:

Install NixOS, GDM and GNOME
Attempt to use automatic brightness

Expected behavior

Automatic brightness is available under the GNOME Desktop Environment.
Screenshots

Additional context

On my MacBook, the contents of

/sys/class/hwmon/hwmon2/device/light
/sys/bus/iio/devices/iio:device0/in_illuminance_raw

correlate with brightness when I put a flashlight near the ambient light sensor, so I think the kernel is already configured correctly. Maybe we just need a small tweak in Systemd/DBus/GNOME?
Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.1, NixOS, 25.05 (Warbler), 25.05.20241130.4703b8d`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/ghh70y72vgas7f7pb7fasvksa2h9yxxr-source`

Notify maintainers

@NixOS/gnome

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

Works perfectly, thanks!

We should probably add it to gnome.nix like Plasma does.

I was also considering adding it to my Laptop's module in nixos-hardware. gnome.nix directly works for me too, but not every platform has brightness sensors I reckon.


Private repo will inaccessible

The url for a private repo can be added to Zenodo. However, the code will be unavailable.

Made public to allow joe public to view.


Configurable miss_per_hit_limit in outlier removing processor.

Was hardcoded to 3 before, but it makes sense to make this a parameter.

Bazel fails because it can't download boost.

```
ERROR: error loading package '': Encountered error while reading extension file 'boost/boost.bzl': no such package '@com_github_nelhage_rules_boost//': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
Traceback (most recent call last):
File "bazelci.py", line 1607, in
sys.exit(main())

File "bazelci.py", line 1592, in main
incompatible_flags=args.incompatible_flag)

File "bazelci.py", line 445, in execute_commands
print_bazel_version_info(bazel_binary, platform)

File "bazelci.py", line 689, in print_bazel_version_info
execute_command([bazel_binary] + common_startup_flags(platform) + ["--nomaster_bazelrc", "--bazelrc=/dev/null", "info"])

File "bazelci.py", line 1062, in execute_command
return subprocess.run(args, shell=shell, check=fail_if_nonzero, env=os.environ).returncode

File "/usr/local/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['bazel', '--nomaster_bazelrc', '--bazelrc=/dev/null', 'info']' returned non-zero exit status 2.
</details>

@wally-the-cartographer merge

Merge requested by authorized user pifon2a. Merge queue now has a length of 1.


Update time zone handling

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

Coverage data is based on head (ee797bc) compared to base (acb8706).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #98   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           22        22
  Lines         1725      1730    +5
=========================================
+ Hits          1725      1730    +5

Impacted Files
Coverage Δ

triad/utils/pandas_like.py
100.00% <100.00%> (ø)

triad/utils/pyarrow.py
100.00% <100.00%> (ø)

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

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


Add support for ubuntu-22.04 runners

Currently fails to detect the OS and errors out

Hey, @aslilac.
Are you using the latest version? Let me check this. I believe there was a PR (from me), but I don't know if we tagged the latest code recently.
Cheers.

Yeah, PR is here: https://github.com/erlef/setup-beam/pull/124. Let me just confirm something with the other PR that's open and then we can probably have a release soon. Thanks.

Until the release I believe you can use @main, instead of  @v1. If you find issues you're more than welcome to report them to us.

Oh, neat! Yeah I was just using the latest @v1, I’ll try main for now

Oh, neat! Yeah I was just using the latest @v1, I’ll try main for now

Using @vxy.yz is the preferred method, for sure, especially for repeatability purposes (any change might introduce unexpected changes to your CI); main is last-resort...


Confirmation on bounding conditions to mark labels for plate presence

The gen.py decides on presence of plate on two conditions:

Scale bounds
Translation bounds

I found a few images where the presence(p)  was not consistent from visual perspective.
Can this lead to slower convergence of the model?
Just wanted a confirmation whether including a tight bound on skew/rotation would help.

Image 1: license plate is skewed but presence is true

Image 2: license plate is in the image but presence is false

Image 3: license plate is in the image but presence is false

@matthewearl  Please let me know what are your thoughts about the same....

The image is too small or too big in both cases, that is why it is p = 0 in all of them


Technical information/clarification on how client certificates are validated when APIM acts as a client

If you look at the equivalent pages on App Gateway there is an entire section on SSL, but for APIM no such section.
The documentation would benefit from a callout that explicitly covers how certificates are validated between API Management and the API Endpoint. In particular, how the CN or DN checking is done as in this context API Management is acting as a client and creates a TLS session - which implied the CA from the (backend) server has a trusted root and trusted intermediate stored with APIM.

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

ID: 5e20660e-86ff-b872-628b-4b61c2bb63fe
Version Independent ID: 6e7a2f4d-207b-2c9d-675c-c7b1c26bb39d
Content: Add a custom CA certificate - Azure API Management
Content Source: articles/api-management/api-management-howto-ca-certificates.md
Service: api-management
GitHub Login: @dlepow
Microsoft Alias: danlep

@rmartin-msft
Thanks for your feedback! We will investigate and update as appropriate.

Thanks for your suggestion. I have captured your suggestion in a backlog work item for future updates to this content. According to our usual process, I'll now proceed to close this issue. In the meantime, please feel free to continue discussion with community members using Q&A. If you have an Azure support plan and need technical help, please create a support request.
#please-close


On Slug Change Event feature

Hello,
First of all, thanks for maintaining this plugin, this saves a great hassle!
I am using sluggable on L4, on my model on_update parameter set as true, and I want to store old slugs and redirect them to new ones.
What I've been thinking is that something like a model event, something like onSlugChange which I can catch old and new slug and work with them.
How can I achieve this?
Thanks in advance,

Yup, I could certainly add some events into the package, so that you can do stuff when a slug is set, or changes, etc..  I'll add it to my todo list.
Thanks for the suggestion!


Fixing broken links

Corrections in response to suggestions from Cameron Mott

Hey. when our offline setup repo was merged, I seem to have lost merging privileges. Sebastien, can you merge and then give me write access? Thanks.

Ok...another addition to this branch. Pleas either commit or give me write permission? Thanks.
Lois


Take a screenshot

I'm using zgui and would like to save a screenshot of a imgui window.
How can I achieve this?

You could use your window position and size to determine the region of your frame buffer occupied by the window, copy the pixels to a buffer and write to a file but I'm not sure if this is what you are trying to do exactly. The details depend on what backend you are using.


Technical Reports overview is not a data table anymore

The searchable data table on the Technical Reports overview does not work anymore. The script is still there, but it does not convert the Markdown table created by _list_technical_reports.py into a data table.

It seems like a Quarto blog is a good alternative here. See also https://github.com/ComPWA/report/issues/19


Detecting @deprecated annotations

My questions is: Are @deprecated annotations special - or is my code wrong?

package util;

import io.github.lukehutch.fastclasspathscanner.FastClasspathScanner;
import io.github.lukehutch.fastclasspathscanner.matchprocessor.ClassAnnotationMatchProcessor;

public class AnnotationScanTest {

    public static void main(String args[]) throws ClassNotFoundException {

        new FastClasspathScanner("com")
                // Optional, in case you want to debug any issues with scanning.
                // Add this right after the constructor to maximize the amount of log info.
                .verbose()
                // Add a MatchProcessor ("Mechanism 1")
                .matchClassesWithAnnotation(Deprecated.class, new ClassAnnotationMatchProcessor() {
                    @Override
                    public void processMatch(Class<?> matchingClass) {
                        System.out.println("Matching annotation: " + matchingClass);
                    }
                })
                // Actually perform the scan (nothing will happen without this call)
                .scan();
    }

}

Works for me, I just tested your code -- but realize that
.matchClassesWithAnnotation(Deprecated.class, ...)
matches class annotations, not method annotations. To match method
annotations, use
.matchClassesWithMethodAnnotation(Deprecated.class, ...)
I just tested this too, and this also works for me.
If you still can't get it working, please open a bug with a minimal
complete testcase attached so I can replicate your environment as closely
as possible. Thanks!
On Mon, Jan 16, 2017 at 6:27 PM, Julian Gamble<EMAIL_ADDRESS>wrote:

My questions is: Are @deprecated annotations special - or is my code
wrong?
package util;
import io.github.lukehutch.fastclasspathscanner.FastClasspathScanner;
import io.github.lukehutch.fastclasspathscanner.matchprocessor.
ClassAnnotationMatchProcessor;
public class AnnotationScanTest {
public static void main(String args[]) throws ClassNotFoundException {

    new FastClasspathScanner("com")
            // Optional, in case you want to debug any issues with scanning.
            // Add this right after the constructor to maximize the amount of log info.
            .verbose()
            // Add a MatchProcessor ("Mechanism 1")
            .matchClassesWithAnnotation(Deprecated.class, new ClassAnnotationMatchProcessor() {
                @Override
                public void processMatch(Class<?> matchingClass) {
                    System.out.println("Matching annotation: " + matchingClass);
                }
            })
            // Actually perform the scan (nothing will happen without this call)
            .scan();
}

}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/lukehutch/fast-classpath-scanner/issues/102, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAxhKdYPg6vrvInpCP6MxXDX9sIXvqKaks5rTCcfgaJpZM4LlKZd
.

Works for me, I just tested your code -- but realize that
    .matchClassesWithAnnotation(Deprecated.class, ...)

matches class annotations, not method annotations. To match method
annotations, use
    .matchClassesWithMethodAnnotation(Deprecated.class, ...)

I just tested this too, and this also works for me.
 Thanks!

I wanted to detect Classes marked deprecated - and it wasn't matching anything. Does the first version of the code work for you?

@juliangamble yes, it does work for me -- see the test I just committed. What was wrong?


chore(ci): added circleci configs

With this CircleCI config you can enable CI build for PRs which will check that both frontend and backend passes build.
Pre-requirement for unit/integration testing.
More info on: https://circleci.com/docs/2.0/getting-started/
Needs: portainer/golang-builder/pull/2

Closing this now but will leave source repo to Git so it can be reopened if we decide go forward with this one.


Can I change min, max value dynamically?

How can I change min, max value (or other option values) dynamically?

Hi @jjhok .
Does that mean you want to change options after instantiation?
It is currently not implemented.
I want to support in the near future, because I think also need.

This is a nice to have a feature.

@jjhok
It added support to be changing the option after instantiation.
Please use the version 0.2.0

Nice, thanks

@heshanlk
Likewise. Thank you for your advice.

Close due to the corresponding.
https://github.com/shushutochako/CircleSlider/pull/3


External hooks support for notifying or validating changeset

Tweek publishing service is responsible for handling new git changes and publishing it to relevant services.
These mechanisms can be more generalized as:

Validation - check key payload is valid (format, compilation), check for circular dependencies between keys.
Publishing - bundle and upload keys and policies.

It can be useful to add support for running client code to support custom validation or integration with external keys.
For example, a team can create hook that allow changes to a specific key only in a specific time, or apply logic that enforce acknowledgement from external system when trying to open a specific feature flag.
Another example, is that when changing a key that has value of a url or external resource, an hook can check that this resource exist to prevent human errors and there are many other examples as well.
There are also the cases that a team want to be notified when there's a change to one of their keys, maybe in email, slack or similar tool.
We can investigate adding these types of hooks:

ValidationHook -> run as part of validating a new change-set, can be invoked with the relevant changes, and can reject a change-set by returning an error code.
NotificationHook -> run after validation, notifies a url with change-set details.
MutationHook (?) -> probably should be done after the others or not at all since it can be dangerous, but the idea is the create a webhook that can mutate the changeset. (for example, adding meta data, formatting)

All hooks can be defined to only run on specific paths/changes. (we can use wild cards), for example:
| Path                         | Type         |  url
|  *                           | notification |  http://some-external-service/hook1
|  manifests/path/to/key       | validation   |  http://some-external-service/hook2
|  implementations/*/module    | validation   |  http://some-external-service/hook3

Suggested workflow:

Adding a file of hooks, and rest api for adding, listing, and removing hooks.
Publishing read hook and see that changeset match relevant hook.
For each validation hook, the publishing service sends a http/s request in the validation process for each validation hook matching the changeset and wait for a 2xx response for a validation hook.
For each notification hook, the publishing trigger each notification hook after the commit is pushed to upstream successfully.

Some questions:

Would it be better to use a co-located file approach instead of one centralized file.
Do permission to write hooks are path level or global?
Do we allow invoking both http and https request
What's the policy for long validation hook, or unavailable validation hook, should it be customizable per hook registration.
Should we allow the format of hook protocol to be more flexible (not just webhook) to allow easier integration with other systems (such as slack/email).
Should we limit the hooks on several part of the repos, for example, hooks themselves or security policies?

@Yshayy A few questions/ideas:

Did you purposefully omit the rest api for updating a hook (and why?) or should we do that as well?

I'm not sure I understand Publishing read hook and see that changeset match relevant hook.

Do we allow any customization of the hook request? (http method, payload, headers, authentication/authorization etc.)

For notification hooks, WDYT about publishing the info to NATS and having a separate job for running the notification hooks? We don't really have to wait for the outcome of the notification hook since it won't change anything about the rest of the process either way

Regarding long/unavailable validation hooks, IMO an unavailable hook should count as a failure (why have the hook in the first place if its not important enough?) and timeout should be customizable per hook registration (perhaps with some upper limit?)

For hook protocol format we should probably have a hook type (e.g. web/slack/email) even if we only implement the web type initially. This should make adding the other types much easier later on.

Also, lets have a short chat about numbers 1,2,6 from your list of questions

I think there should be a REST api for writing and reading hooks, maybe something similar to policies api. (https://github.com/Soluto/tweek/blob/master/services/authoring/src/routes/policies.ts)
I meant 'publishing service' read the hooks, and see that the corresponding commit changeset has files updates that are matched by the hook path. (but maybe we should define matcher on 'keys' and not 'paths', to prevent creating a hook on policies/hooks files)
That's a good question, I think we need to find a good standard to match, I think the method is POST and the body should be content describing the changeset.
I think that all post-receive stuff happens asynchronously, so nats can be useful mainly if we want to delegate this responsibility to another service that handles these notifications, might be a bit premature at this point, but it could be a direction.
Sounds good. Maybe we can start with a fixed timeout and add the ability to change it if necessary
I agree. I would start with webhook as it's possible to create a hook that integrates with other systems and there various solutions for that. (or create serverless function)

Notification hooks were implemented:
Docs
PRs #1156 #1157 #1158 #1159 #1161


Replace license header checker, and update license headers.

As the title says.
Replace spotless for a custom solution since it doesn't support conditionals, which is needed for QSL since some files are derived from Fabric API, but some are not.
The custom solution includes checking (:checkLicenses) and formatting (:applyLicenses).
Also started updating the concerned license headers.
This is an urgent PR.

Shouldn't some other classes like ArrayEvent have the fabric copyright notice too?

Shouldn't some other classes like ArrayEvent have the fabric copyright notice too?

This PR doesn't update every file concerned files yet, there's still a bit of talk internally to make sure stuff's done properly.
Concerned files will have the notice once that's solved.


percentile_disc(unknown) error message on aggregate function

In prior versions of SQLC I was able to use the aggregate function percentile_desc as defined here.
When I run the current version of v.1.7.0. I get the error message:
function percentile_disc(unknown) does not exist
Here's the full query:
-- name: SelectMeasurementSummaries :many
select
  (to_timestamp(floor((extract('epoch' from measurement_timestamp) / 60 / @period::integer )) * 60 * @period::integer)
    AT TIME ZONE 'UTC')::Timestamp as measurement_time_period,
  avg(measurement)::real mean_measurement,
  max(measurement)::real max_measurement,
  min(measurement)::real min_measurement,
  stddev_samp(measurement)::real sd_measurement,
  percentile_disc(0.25) within group (order by measurement.measurement)::real Q25,
  percentile_disc(0.5) within group (order by measurement.measurement)::real Q50,
  percentile_disc(0.75) within group (order by measurement.measurement)::real Q75,
  count(*)::integer measurement_count
from measurement
where
  subject_id = @subject_id and
  measurement_type_id = @measurement_type_id and
  measurement_timestamp >= @start_measurement_time::Timestamp
group by measurement_time_period
order by measurement_time_period
limit @limit_
offset @offset_
;

This is still an issue in v1.10.0 https://play.sqlc.dev/p/19e394c998d4b274c8e7376d259a60c3a15f7fe0506263c2166a27056fa45937


Safe Transaction Service for Sepolia

Description
Is there any API link for doing safe transactions on sepolia? using the sdk
Environment

Sepolia Testnet

You can initialize the api-kit like this:
import SafeApiKit from '@safe-global/api-kit'

const safeApiKit = new SafeApiKit({
  txServiceUrl: 'https://safe-transaction-sepolia.safe.global',
  ethAdapter
})

Hey I figured this out, this URL was not listed on the website. Thanks for the update.


[BUG] Graphic glitches.

Issue Type: Bug
After new update I have a lot of Graphic glitches in vscode:
JavaScript:

JSON:

 cursor is on line 18
or I had (this only one time) scrollbar out from box "Open Editors" in Explorer.
VS Code version: Code 1.27.2 (f46c4c469d6e6d8c46f268d1553c5dc4b475840f, 2018-09-12T16:17:45.060Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.88GB (10.10GB free)

Process Argv
C:\Users\Mloci\AppData\Local\Programs\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Extensions: none

The first screenshot appears to show links decorations and the second one bracket match decorations. @Mlocik97-issues what steps do you do when this happens? Are there any errors in the Developer Tools Console?

no errors in console... it happen when you open some files (I had opened about 20-30 files). After click on that "decoration" it disappear, but if I open few files again, these "decorations" will appear often again, but it's randomly on random positions. One time it appear in one file or on line 20, next time in another file or on line 6...

if I remove  from DOM, glitches dissapear.

I could not reproduce, but I did a brief code review of the bracket matching code. I found one case where the bracket matching code could still end up using cached results (namely when the cursor position between two files is the same and two files are switched and they happen to have the same version id -- like 1 -- meaning they are both freshly opened).
I don't know about the links. Rather than me doing another code review in there (where the logic is quite more complicated), can you please keep a look out and check if you find any relevant steps.
Thanks!

I have managed to find reproducible steps. To the verifier:

create a file file1.json

{
    "hello": "world"
}

create a file file2.json

{
    "hello": "world",
"SOME TEXT"
}

have the files opened in two tabs in the same editor group
on both files place the cursor at (1;1)
leave file1.json opened
reload window (such that both files are clean at version 1)

c77cc9898f389bd50d309d0162390fa2fd2e69d1 fixes this issue.


csi-isilon: second csi-metadata-retriever instance eliminated

Do not install additional instance of retriever when Encryption is enabled.

Is this a new chart?
No
What this PR does / why we need it:
Do not install additional instance of retriever when Encryption is enabled.
Which issue(s) is this PR associated with:
1309
Special notes for your reviewer:
Checklist:
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] Chart Version bumped
[x] Title of the PR starts with the chart name (e.g. [charts_dir/mychartname]) if applicable

@alexemc, should this be merged into the release branch instead?

@alexemc, should this be merged into the release branch instead? release-v1.11.0

@gallacher I'm not familiar with the process in CSM. Should I merge it to release-v1.11.0 instead of main?

metadata-retriever is mandatory sidecar to create volume, I'm not sure why this check is in place if encryption is enabled ?

There is also a loop on line 184, so this part of yalm is rendered twice - first time with encrypted=false, second time (provided, that encryption module is enabled) with encrypted=true. The bug was that the retriever container was included in both passes of the loop resulting in two instances of the container, which is not needed and fails to work. With the fix in this PR, the retriever is only included once, during the first pass of the loop. Hope this explains the change.

@alexemc, should this be merged into the release branch instead? release-v1.11.0

@gallacher I'm not familiar with the process in CSM. Should I merge it to release-v1.11.0 instead of main?

Hi @alexemc any chart changes that go into main kick off the release actions so ideally we should merge to a release branch. Please merge to the release-v1.11.0 branch. Please also address the failed checks before merging to release-v1.11.0. Thank you!

If these linting issues are still relevant https://github.com/dell/helm-charts/actions/runs/9548768257, can you address them as part of your PR? Thanks

If these linting issues are still relevant https://github.com/dell/helm-charts/actions/runs/9548768257, can you address them as part of your PR? Thanks

This PR was initially supposed to merge to main and there where many failed linter checks (in files I have not even touched), but then I rebased to release-v1.11.0 and all checks succeeded.


RCL demos in Foxy

I'm preparing this repository for the Foxy release, and I was wondering what should we do with the RCL folder.
Maybe if the micro-ROS default client library is RCLC, RCL examples should not exist. But on the other hand, there are interesting examples in RCL folder such as configuration_examples, actions or services.
Should we gradually port this functionality to the RCLC so the RCL folder can be removed?

My opinion: It should be ported soon. You may even move the demos from rcl/* right now to the rclc folder and then include the rclc convenience functions gradually later. By avoiding two folders rcl and rclc, we emphasize that we consider one C API only, namely rcl+rclc. How much a developer uses from rclc in the daily practice is up to him/her. The rclc package is intended to simplify the developer's life - but he/she does not have to.

Okey, so we move all examples to rclc folder. I'm going to do a PR with these changes soon.


Question: Is there documentation of the available options in omnisharp.json?

Currently, there is Configuration-Options.
but it seems to be not listed all of the available options(like msbuild's one).

it now lists all the options 😄


Add support for conditional constant tokens

@nhanaa when you do this, it should be relatively easy to evaluate the filter conditions -- you can use the BursarFilterEvaluator


Write good  tests

We've had some regressions lately, mainly due to the lack of good test coverage. As a rule of thumb, we should be writing tests that go with the code from now onwards.
Basic guideline to test writing:

It should not be coupled to the implementation of the code, i.e. it should not need to know the internals of the component/module

Scope:

Client and server-side

I think we need to test server side codes too.

Fix failing tests as well #790

Fix failing tests as well #790


Do not use a form for the primary contact identity.

Coverage remained the same at 90.659% when pulling c2f28368db103d37fb6b5d1c3916d490617b928c on akatsoulas:primary-contact-form-error into 589fb7164ad5aaa9199ab40062c679d5ad984ddb on mozilla:master.


Revert "Enable per-app integration tests"

This reverts commit 783c916cdf06a527d7fdf01ba12870dfe194a6d8.
Currently, there's a small bug in writing app specific build
specs. It won't be too hard to fix, but rather than rush,
just revert for now.
I ran through a pipeline init and update experience to
confirm everything worked.
Fixes #550

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

What was the bug?


Sorting ignores the initial state when enableSorting is false

Describe the bug
React Table does not initially sort the values when enableSorting is false.
Your minimal, reproducible example
https://codesandbox.io/s/react-table-v8-initial-sorting-issue-mdic6x?file=/src/main.tsx
Steps to reproduce
1- Open the example
2- Don't do anything, firstName is not sorted
Expected behavior
the firstName column should be sorted initially
How often does this bug happen?
Every time
Screenshots or Videos
No need
Platform
OS : Windows
Browser : Chrome / Firefox
react-table version
v8.5.11
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

I think this is expected behavior? If you disable sorting, it won't occur. Sort your data before passing it to the table.

@KevinVandy Take a look in the behavior of React Table v7. It wasn't the same.
Sorting the data in the parent component means adding another useless layer of code which. If I use a built-in sorted method and I passed an initial state I expect to see the initial state executed just after the mount then disable the possibility of sorting that column. Exactly the same as React Table v7.

Most likely going to close this issue, as it seems to be an argument with intended behavior. If you want sorting to occur, don't disable it? You can disable your sorting UI independently of this built-in enableSorting if that's what you need.

@KevinVandy oh I didn't see this issue was closed until now. And I have no clue why this is closed.
okay so, are you suggesting that the initial sortBy state of a table depends on enableSorting ? I don't think this is the entended behavior tbh. Please check first the version 7 of this library.
I might sort by multi columns initially and deactivate the sorting feature.
enableSorting = canSort() => false
But should not affect the initial state.

This was closed because it is intended behavior for v8

In that case we will have to use the same sort plugin before passing the data to the Table.
Is there a way/documentation/example that show how to use th e sort plugin ? (Especially for complex cases like : Date, Leaf columns ... etc)

This is an example using Data Grid of Material UI to sort initially by rating and disable sorting
https://codesandbox.io/s/initial-sorting-and-disable-sorting-using-data-grid-table-github-link-8cwfbw

The plugin system is removed in v8. Again, I really don't understand why you want to disable sorting but expect initial sorting to occur. The very easy and simple solution is to enable sorting, but have a separate state to disable sorting in your ui.

Yeah that's what I am using since day one, before I post this issue.
I just posted it because I thought it's a bug.
Why I thought it's not intended ?
Because many Table Libraries including (React-Table v7) mount the table with the initial state (it has a priority) then enable/disable sorting (Filter, or any other feature).
It's a matter of priority.
When we prioritize the initial state over enableSorting, there is no need to write a code like this :
<MyTable sorting={[{ id: 'col1', desc: false }]} enableSorting butDisableUISorting />

Instead we write just
<MyTable enableSorting sorting={[{ id: 'col1', desc: false }]} />

And we understand that this table will sort the data by col1. However it's not possible to use toggleSorting and getCanSort returns false.
Anyway, thanks for you time and your suggestion.


Changing commit

Is there a way to revert a commit made to the main branch instead of manually reverting back each changed lines of code?

git revert

git revert

But i want to revert an old commit. I have Github pc software. It has the option to revert but it says i need to "pull" before saving the changes.


Grid summary has duplicate summary rows when data change

@jianwu

I'm submitting a ...
[ ] bug report

What is the current behavior?
Grid summary has duplicate summary rows when data change, i also created that Gist
to show the current behavior .

If the current behavior is a bug, please provide the steps to reproduce and if possible a screenshots.

What is the expected behavior?
grid will have summary rows as defined

Can u please assist?

@jianwu  any idea please?

If a "normal" record is identified as a summary record, it is moved (copied) to grid.summary.
If you keep adding summary records the way you're doing, grid.summary will grow.
You can either clear only the summary records before setting grid.records with w2ui['grid'].summary = [];
- or -
you could call w2ui['grid'].clear(); - which is the preferred way, because it takes care of resetting everything, even stuff that might change in the future.

@eliavmaman Is your problem now resolved? Can this issue be closed?
@mrg2001 / @vitmalina : please consider to close this due to inactivity and because @eliavmaman already received a detailed explanation why this happens, including a work-around.

Closing issue as resolved


/sys/class/fpga_bridge empty directory

Hi Sahand,
Do you get any of the bridges to show up in /sys/class/fpga_bridge? Currently, that directory is empty but when I look at my other sd card with Terasic's image, the bridges exist.

Hi,
No, the directory is not empty on my side. Here is what I have:
sahand@DE0-Nano-SoC:~$ ls /sys/class/
bdi           gpio         leds      mtd        rtc          spidev
block         hwmon        mdio_bus  net        scsi_device  tty
fpga_bridge   i2c-adapter  mem       pps        scsi_disk    udc
fpga_manager  i2c-dev      misc      ptp        scsi_host    vc
fpga_region   input        mmc_host  regulator  spi_master   vtconsole

sahand@DE0-Nano-SoC:~$ ls /sys/class/fpga_bridge/
br0  br1

sahand@DE0-Nano-SoC:~$ ls /sys/class/fpga_bridge/br0/
device  name  of_node  power  state  subsystem  uevent

sahand@DE0-Nano-SoC:~$ ls /sys/class/fpga_bridge/br1/
device  name  of_node  power  state  subsystem  uevent

Wow! Would you have any ideas why mine would be empty? I tried using the device tree you used in the tutorial and another one that I've been using and got the same results. Would an issue like this be from the device tree or something else?
Thanks Sahand

I noticed that I'm missing some boot messages that you get.

[ 1.432987] fpga_manager fpga0: Altera SOCFPGA FPGA Manager registered
[ 1.439884] altera_hps2fpga_bridge ff400000.fpga_bridge: fpga bridge [lwhps2fpga] registered
[ 1.448516] altera_hps2fpga_bridge ff500000.fpga_bridge: fpga bridge [hps2fpga] registered
[ 1.457125] fpga-region soc:base_fpga_region: FPGA Region probed
[ 1.463383] oprofile: no performance counters
[ 1.467821] oprofile: using timer interrupt.

I don't messages saying that the bridges got registered.

[    1.305363] fpga_manager fpga0: Altera SOCFPGA FPGA Manager registered
[    1.312359] oprofile: no performance counters
[    1.316815] oprofile: using timer interrupt.

The device tree just indicates what hardware is available on the board, so these messages are not coming from the device tree itself. A driver is instantiated depending on the elements found in the device tree.
Where are you getting your linux kernel image from? It looks like your kernel does not have the required drivers to make the bridges appear, so I suspect you are probably using the mainline linux kernel.
From what I recall, the mainline linux kernel on github does not have all the drivers for the various peripherals of Cyclone V chips. I had to use Altera's upstream linux repository to have these drivers.

I recall using the same linux kernel you were using.

git clone
https://github.com/altera-opensource/linux-socfpga.git
DE1_SoC_demo/sw/hps/linux/source

git checkout ffea805b5209e0e6ad8645217f5ab742455a066b

I re-created zImage from the commands above but I still get the same results and nothing in /sys/class/fpga_bridge. Your zImage was created from the commands above as well, correct?

Sahand,
I ran the command

$ make socfpga_cyclone5_socdk.dtb

and copied that device tree to my sdcard. This does show br0 and br1 under the fpga bridges. Before I was taking the device tree but without running the 'make' command, so I'm not sure if that was the problem.
Thanks Sahand.

Both the bridges seem to be disabled. Are yours enabled?

root@DEI:/sys/class/fpga_bridge/br1# ls
device  name  of_node  power  state  subsystem  uevent
root@DEI:/sys/class/fpga_bridge/br1# cat state
disabled

It's strange because we can run our c code just fine with using the lightweight and the heavy weight bridges. So, I'm not sure why I'm getting that disabled result. Our problem is that we're getting low performance and we were expecting much better performance. I recall that the terasic image gave better performance in terms of data transfer speed. So I'm trying to find out what's going on with a custom image vs terasic image.

git checkout ffea805b5209e0e6ad8645217f5ab742455a066b
That is the indeed the correct commit to checkout.

It looks like you were taking the device tree source before, but linux uses a binary version at runtime which needs to be compiled before used. That is what the make socfpga_cyclone5_socdk.dtb was for.

$ make socfpga_cyclone5_socdk.dtb
From your previous messages, I believe you are using the DE0-Nano-SoC, correct? If so, note that I've uploaded a second version of the tutorial specifically for that board. 99% of it is identical, but some commands are slightly different. For example, the DE0-Nano-SoC version of the tutorial uses make socfpga_cyclone5_de0_sockit.dtb instead of the version you used (from the DE1-SoC version of the tutorial).


[BUG] Reconcile differences from CUDF's row_conversion.cu

CUDF JNI has a copy of row_conversion.cu that has a couple of material differences from the version in spark-rapids-jni. (The changes have to do with which stream is used when constructing a LIST column, the use of cudaMemcpyDefault, etc.)
It would be good to review those differences, and reconcile them before row_conversion.cu is removed from CUDF JNI.

Code of row_conversion was moved into libcudf in https://github.com/rapidsai/cudf/pull/14664, and the version in cudf's JNI was removed. From now, there is just one version of row_conversion so close this.


feat(console): add ens domains

close #87
using:

ethers

Hey @developerfred, any progress with this? Let us know if you have any follow up questions. We may move this one to a public bounty in the coming weeks otherwise.

@vmichalik I'm going back to work on the task, I had some impediments but I'm back.

Hey @developerfred
We developed the ENS support for Dashboard v2. I can the snippets of code you can reverse-engineer to the Console if you like. If you continue the development then I'd prefer if you started a new PR and used an IDE that catches TypeScript errors (or just run yarn build before commiting/pushing).
Here are the snippets:
ensApi.slice.ts
import { fakeBaseQuery } from "@reduxjs/toolkit/dist/query";
import { createApi } from "@reduxjs/toolkit/dist/query/react";
import { ethers } from "ethers";

export interface ResolveNameResult {
  address: string;
  name: string;
}

export const ensApi = createApi({
  reducerPath: "ens",
  baseQuery: fakeBaseQuery(),
  keepUnusedDataFor: 600, // Agressively cache the ENS queries
  endpoints: (builder) => {
    const mainnetProvider = new ethers.providers.FallbackProvider(
      [
        {
          provider: new ethers.providers.JsonRpcBatchProvider(
            "https://eth-mainnet.public.blastapi.io",
            "mainnet"
          ),
          priority: 1,
        },
        {
          provider: new ethers.providers.JsonRpcBatchProvider(
            "https://eth-rpc.gateway.pokt.network",
            "mainnet"
          ),
          priority: 1,
        },
        {
          provider: new ethers.providers.JsonRpcBatchProvider(
            "https://cloudflare-eth.com",
            "mainnet"
          ),
          priority: 1,
        },
      ],
      1
    );
    return {
      resolveName: builder.query<ResolveNameResult | null, string>({
        queryFn: async (name) => {
          if (!name.includes(".")) {
            return { data: null };
          }

          const address = await mainnetProvider.resolveName(name);
          return {
            data: address
              ? {
                  name,
                  address: address,
                }
              : null,
          };
        },
      }),
      lookupAddress: builder.query<
        { address: string; name: string } | null,
        string
      >({
        queryFn: async (address) => {
          const name = await mainnetProvider.lookupAddress(address);
          return {
            data: name
              ? {
                  name,
                  address: ethers.utils.getAddress(address),
                }
              : null,
          };
        },
      }),
      getAvatar: builder.query<any, string>({
        queryFn: async (address) => {
          const avatarUrl = await mainnetProvider.getAvatar(address);
          return {
            data: avatarUrl,
          };
        },
      }),
    };
  },
});

AddressName.ts (All addresses are displayed through this component.)
import { memo } from "react";
import useAddressName from "../../hooks/useAddressName";
import shortenHex from "../../utils/shortenHex";

export interface AddressNameProps {
  address: string;
  length?: "short" | "medium" | "long";
}

export default memo(function AddressName({
  address,
  length = "short",
}: AddressNameProps) {
  const addressName = useAddressName(address);
  if (addressName.name) {
    return <>{addressName.name}</>;
  } else {
    return (
      <>
        {length === "long"
          ? addressName.addressChecksummed
          : shortenHex(
              addressName.addressChecksummed,
              length === "medium" ? 8 : 4
            )}
      </>
    );
  }
});

AddressAvatar.tsx
import { Avatar, AvatarProps } from "@mui/material";
import { memo } from "react";
import { ensApi } from "../../features/ens/ensApi.slice";
import Blockies from "react-blockies";
import { getAddress } from "../../utils/memoizedEthersUtils";

interface AddressAvatarProps {
  address: string;
  AvatarProps?: AvatarProps;
}

export default memo(function AddressAvatar({
  address,
  AvatarProps = {},
}: AddressAvatarProps) {
  const { data: ensAvatarUrl } = ensApi.useGetAvatarQuery(address);
  if (ensAvatarUrl) {
    return (
      <Avatar
        alt="ens avatar"
        variant="rounded"
        src={ensAvatarUrl}
        {...AvatarProps}
      />
    );
  } else {
    return (
      <Avatar alt="generated blockie avatar" variant="rounded" {...AvatarProps}>
        {/* Read about the Blockies API here: https://github.com/stephensprinkle-zz/react-blockies */}
        <Blockies seed={getAddress(address)} size={12} scale={3} />
      </Avatar>
    );
  }
});

useAddressName.tsx (with an address book, the address book's name would take precedence over ENS)
import { ensApi } from "../features/ens/ensApi.slice";
import { getAddress } from "../utils/memoizedEthersUtils";

interface AddressNameResult {
  addressChecksummed: string;
  name: string | "";
}

const useAddressName = (address: string): AddressNameResult => {
  const ensLookupQuery = ensApi.useLookupAddressQuery(address);
  return {
    addressChecksummed: getAddress(address),
    name: ensLookupQuery.data?.name ?? "",
  };
};

export default useAddressName;

I think that's about it.
NOTE: "shortenHex" is the same as "shortenAddress" in the Console.

Ok @kasparkallas thanks!

@kasparkallas
I have some doubts about the function below, is it just an ethers.getAddress() or is there something else involved?
import { getAddress } from "../../utils/memoizedEthersUtils";

@kasparkallas I have some doubts about the function below, is it just an ethers.getAddress() or is there something else involved? import { getAddress } from "../../utils/memoizedEthersUtils";

Yes, it's just ethers.getAddress().

thanks, can you tell me what is the vercel error log?

[10:28:40.807] Cloning github.com/superfluid-finance/superfluid-console (Branch: add-ens-resolver, Commit: c6d2d83)
[10:28:41.422] Cloning completed: 614.552ms
[10:28:41.913] Installing build runtime...
[10:28:43.751] Build runtime installed: 1.838s
[10:28:44.461] Looking up build cache...
[10:28:54.374] Build cache downloaded [215.97 MB]: 9300.271ms
[10:28:54.607] Installing dependencies...
[10:28:54.845] yarn install v1.22.17
[10:28:54.912] warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[10:28:54.916] [1/4] Resolving packages...
[10:28:55.778] [2/4] Fetching packages...
[10:29:31.696] [3/4] Linking dependencies...
[10:29:31.698] warning "@emotion/react ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>[10:29:31.698] warning "@emotion/react > @emotion/babel-plugin ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>[10:29:31.702] warning " ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>[10:29:31.703] warning "graphiql ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>[10:29:31.704] warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0".
[10:29:31.705] warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^16.0.0".
[10:29:31.705] warning " ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>|| ^16.0.0".
[10:30:10.001] [4/4] Building fresh packages...
[10:30:20.084] success Saved lockfile.
[10:30:20.089] Done in 85.25s.
[10:30:20.118] Detected Next.js version: 12.1.7-canary.23
[10:30:20.126] Running "yarn run build"
[10:30:20.407] yarn run v1.22.17
[10:30:20.434] $ next build
[10:30:21.147] info  - Linting and checking validity of types...
[10:30:25.729]
[10:30:25.730] ./src/components/DetailsDialog.tsx
[10:30:25.730] 34:6  Warning: React Hook useEffect has missing dependencies: 'handleClose' and 'router.events'. Either include them or remove the dependency array. If 'handleClose' changes too often, find the parent component that defines it and wrap that definition in useCallback.  react-hooks/exhaustive-deps
[10:30:25.730]
[10:30:25.731] ./src/components/IndexUpdatedEventDataGrid.tsx
[10:30:25.731] 89:5  Warning: React Hook useMemo has a missing dependency: 'network'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
[10:30:25.731]
[10:30:25.731] ./src/components/SearchDialog.tsx
[10:30:25.732] 78:6  Warning: React Hook useEffect has missing dependencies: 'handleClose' and 'router.events'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
[10:30:25.732]
[10:30:25.732] info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[10:30:39.964] Failed to compile.
[10:30:39.964]
[10:30:39.964] ./src/components/AddressBook.tsx:66:9
[10:30:39.964] Type error: Type 'string | undefined' is not assignable to type 'string'.
[10:30:39.965]   Type 'undefined' is not assignable to type 'string'.
[10:30:39.965]
[10:30:39.965]   64 |         open={isDialogOpen}
[10:30:39.965]   65 |         handleClose={() => setIsDialogOpen(false)}
[10:30:39.965] > 66 |         description={ensAddress.data?.name}
[10:30:39.965]      |         ^
[10:30:39.965]   67 |       />
[10:30:39.965]   68 |       {avatarUrl.data ? <Avatar alt={address} src={avatarUrl.data?.avatar} /> : ''}
[10:30:39.965]   69 |     </>
[10:30:45.257] Failed to compile.
[10:30:45.257]
[10:30:45.257] ./src/components/AddressBook.tsx:66:9
[10:30:45.258] Type error: Type 'string | undefined' is not assignable to type 'string'.
[10:30:45.258]   Type 'undefined' is not assignable to type 'string'.
[10:30:45.258]
[10:30:45.258]   64 |         open={isDialogOpen}
[10:30:45.258]   65 |         handleClose={() => setIsDialogOpen(false)}
[10:30:45.258] > 66 |         description={ensAddress.data?.name}
[10:30:45.258]      |         ^
[10:30:45.258]   67 |       />
[10:30:45.258]   68 |       {avatarUrl.data ? <Avatar alt={address} src={avatarUrl.data?.avatar} /> : ''}
[10:30:45.258]   69 |     </>
[10:30:50.608] Failed to compile.
[10:30:50.608]
[10:30:50.609] ./src/components/AddressBook.tsx:66:9
[10:30:50.609] Type error: Type 'string | undefined' is not assignable to type 'string'.
[10:30:50.609]   Type 'undefined' is not assignable to type 'string'.
[10:30:50.609]
[10:30:50.609]   64 |         open={isDialogOpen}
[10:30:50.609]   65 |         handleClose={() => setIsDialogOpen(false)}
[10:30:50.609] > 66 |         description={ensAddress.data?.name}
[10:30:50.609]      |         ^
[10:30:50.609]   67 |       />
[10:30:50.609]   68 |       {avatarUrl.data ? <Avatar alt={address} src={avatarUrl.data?.avatar} /> : ''}
[10:30:50.609]   69 |     </>
[10:30:55.855] Failed to compile.
[10:30:55.855]
[10:30:55.855] ./src/components/AddressBook.tsx:66:9
[10:30:55.855] Type error: Type 'string | undefined' is not assignable to type 'string'.
[10:30:55.855]   Type 'undefined' is not assignable to type 'string'.
[10:30:55.855]
[10:30:55.855]   64 |         open={isDialogOpen}
[10:30:55.855]   65 |         handleClose={() => setIsDialogOpen(false)}
[10:30:55.856] > 66 |         description={ensAddress.data?.name}
[10:30:55.856]      |         ^
[10:30:55.856]   67 |       />
[10:30:55.856]   68 |       {avatarUrl.data ? <Avatar alt={address} src={avatarUrl.data?.avatar} /> : ''}
[10:30:55.857]   69 |     </>
[10:30:55.883]
[10:30:55.883] > Build error occurred
[10:30:55.884] Error: Call retries were exceeded
[10:30:55.885]     at ChildProcessWorker.initialize (/vercel/path0/node_modules/next/dist/compiled/jest-worker/index.js:1:11661)
[10:30:55.885]     at ChildProcessWorker._onExit (/vercel/path0/node_modules/next/dist/compiled/jest-worker/index.js:1:12599)
[10:30:55.885]     at ChildProcess.emit (events.js:400:28)
[10:30:55.885]     at ChildProcess.emit (domain.js:475:12)
[10:30:55.885]     at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) {
[10:30:55.885]   type: 'WorkerError'
[10:30:55.885] }
[10:30:55.905] error Command failed with exit code 1.
[10:30:55.905] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[10:30:55.919] Error: Command "yarn run build" exited with 1

You can run yarn build locally to find out the same TypeScript compilation errors.

Closing this because the feature got implemented in: https://github.com/superfluid-finance/superfluid-console/pull/105


Runnable error

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.

Example Code
qa_chain = (
RunnablePassthrough.assign(context=( lambda x: format_docs(x["context"])))
| rag_prompt
| custom_model_api(query)
| StrOutputParser()
)
Description
I am getting the below error
Expected a Runnable, callable or dict.Instead got an unsupported type: <class 'list'>
System Info
python version 3.10
Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[X] Chains
[ ] Callbacks/Tracing
[ ] Async

@dosu-bot. I followed your suggested method but now i am getting another error
Expected a callable type for func.Instead got an unsupported type: <class 'dict'>


Bug? After sending links in message they are replaced

Original link is a http://bit.ly/something

Is anyone also experiencing this?

Screencast:

nevemind... it was a bug in code


Makes sure a surface is not created with a width or height of zero

What does the pull request do?
It prevents the creation of a SKSurface with a width or height of zero and instead creates a surface with a width or height greater or equal to one.
What is the current behavior?
It can happen that someone tries to create a surface with a width or height of zero and that will fail.
What is the updated/expected behavior with this PR?
The application no longer crashes when someone tries to create a surface with a width or height of zero.
How was the solution implemented (if it's not obvious)?
Width and Height are held at a minimum of one.
If the pull request fixes issue(s) list them like this:

Fixes #2119

It's probably better to ensure that we don't try to draw zero-sized images. But 1x1 works too.


Move methods from specs::WorldExt to World

Also bumped to 0.9.0 due to recent breaking change (#138).

bors r+


re-enable pylint output

Codecov Report

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

@@          Coverage Diff          @@
##           master   #653   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          42     42
  Lines        2120   2120
=====================================
  Hits         2120   2120

It was in my next PR but thx :)


[Improvement-3369][api] Introduce executor and datasource service interface for clear code

What is the purpose of the pull request
Introduce executor and datasource service interface for clear code and close pr #3440 which has conflicts and not updated for a long time
Compared to pr #3440 with 2 vulnerabilities, 1 security hotspot and 34 code smells half year ago, there are only 27 code smells in this pr.
This closes #3369
Brief change log

Add DataSourceServiceImpl and change DataSourceService to interface
Add ExecutorServiceImpl and change ExecutorService to interface

Verify this pull request
(Please pick either of the following options)
This pull request is already covered by existing tests, such as (please describe tests).

Codecov Report

Merging #4759 (0e15f8b) into dev (c997293) will decrease coverage by 0.06%.
The diff coverage is 47.46%.

@@             Coverage Diff              @@
##                dev    #4759      +/-   ##
============================================
- Coverage     45.29%   45.23%   -0.07%
- Complexity     3393     3399       +6
============================================
  Files           537      537
  Lines         23076    23093      +17
  Branches       2687     2694       +7
============================================
- Hits          10452    10445       -7
- Misses        11692    11718      +26
+ Partials        932      930       -2

Impacted Files
Coverage Δ
Complexity Δ

...inscheduler/api/controller/ExecutorController.java
11.11% <ø> (ø)
2.00 <0.00> (ø)

...nscheduler/api/controller/ResourcesController.java
2.02% <0.00%> (+0.04%)
2.00 <0.00> (ø)

...cheduler/api/service/impl/ExecutorServiceImpl.java
37.38% <37.38%> (ø)
20.00 <20.00> (?)

...eduler/api/service/impl/DataSourceServiceImpl.java
55.29% <55.29%> (ø)
33.00 <33.00> (?)

...lphinscheduler/service/process/ProcessService.java
35.47% <100.00%> (ø)
59.00 <4.00> (ø)

...ver/master/consumer/TaskPriorityQueueConsumer.java
43.33% <0.00%> (-11.51%)
16.00% <0.00%> (-5.00%)

...olphinscheduler/plugin/alert/email/ExcelUtils.java
78.18% <0.00%> (-3.64%)
8.00% <0.00%> (-1.00%)

.../org/apache/dolphinscheduler/common/Constants.java
81.81% <0.00%> (-3.19%)
1.00% <0.00%> (ø%)

...inscheduler/server/master/config/MasterConfig.java
42.42% <0.00%> (-3.04%)
11.00% <0.00%> (-1.00%)

...org/apache/dolphinscheduler/remote/utils/Host.java
13.43% <0.00%> (-2.99%)
5.00% <0.00%> (-1.00%)

... and 14 more

Continue to review full report at Codecov.

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

@CalvinKirs Now only 8 code smells


update Create to CreateDbContext. Create is out of date

IDesignTimeDbContextFactory CreateDbContext is now used instead of Create in the code example

@damienbod,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

:x: Validation status: errors

File
Status
Preview URL
Details

:x:Error

Details

[Error] Cannot sync git repo to specified state. Please make sure the pull request is mergeable. Details: Git merge results in conflict, repository remote url: https://github.com/aspnet/EntityFramework.Docs, working directory: W:\cbls-s, target branch: master, target branch commit: a7665e60675fb4e903c53ec6fe6e161f94a8fc9f, source branch: 302411980d60fdb3defe9414b6bf554c/damienbod-IDesignTimeDbContextFactory-code-bug, source branch commit: .

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

just saw that this  PR fixed this but has nnot been merged.
https://github.com/aspnet/EntityFramework.Docs/pull/476