[release-1.3] Fix UDS and Sidecar ingress listeners issues

This is an automated cherry-pick of #16298

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

integ-security-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-security-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

reopening. The original PR was approved and there was no specific objection [had plenty of tests to prove out the logic as well].

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-security-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-security-k8s-presubmit-tests-release-1.3

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

integ-security-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-security-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rlenglet please remove your block as all commenters in the master branch have indicated that they actually have no objection. This is a bug fix for an API level feature - it has been around since 1.2 release blocking people from using the ingressListeners in sidecars properly.

ping!

/retest

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-security-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-security-k8s-presubmit-tests-release-1.3

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

integ-security-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-security-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rshriram @rlenglet
This got the necessary approvals on master (retroactively).  Thank you @ozevren
It still fails a required test though and that of course needs to be addressed by @rshriram before this can be merged

/retest

integ-security-k8s-presubmit-tests-release-1.3 was flaky in release-1.3. I backported the test fix from master, so it should pass now.

@istio-testing: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

integ-security-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-security-k8s-presubmit-tests-release-1.3

integ-new-install-k8s-presubmit-tests-release-1.3
757b1813237316cd4e94bf9f5e07285196e2d417
link
/test integ-new-install-k8s-presubmit-tests-release-1.3

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


DaftCoreException: DaftError::External Error joining spawned task: task 136525 panicked

attached reproducible notebook
https://colab.research.google.com/drive/14ZKkEYPWNcDJwy3LmQBA22euB2H_yjXg#scrollTo=HZl-zR2SbbjS

@desmondcheongzx or @universalmind303 can one of y'all take a look? Looks like it may be some sort of concurrency bug?

i can't reproduce it using the latest update.


modify the official website in README.md

Since http://openwhisk.org is redirected to openwhisk.incubator.apache.org, so maybe we can use the new one.

Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[ ] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[x] Documentation

Types of changes

[ ] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[ ] I signed an Apache CLA.
[ ] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

I'd suggest not changing until after we exit incubation.  (The incubator portion of the URL will disappear when the project graduates from incubation).

Well, that makes good sense, maybe I should close the PR for now?


Change Yoga Images

The following image needs to be changed with an appropriate picture using SILK Corp SharePoint

I will work on this issue.


Remove version: YABE.YetAnotherBacnetExplorer version 1.3.2

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://downloads.sourceforge.net/project/yetanotherbacnetexplorer/SetupYabe_v1.3.2.exe
OK
(Automated message - build 923)

Close with reason: Package still available;


[GCP] Error while deploying Cloud Function

Once I have everything set up following the instructions (lithops version 2.7.0 and python 3.9.13).
I run a lithops test and I get an error saying "Error while deploying Cloud Function".

Click to see error trace
    2022-11-03 13:03:33,899 [INFO] config.py:131 -- Lithops v2.7.0
    2022-11-03 13:03:34,195 [INFO] gcp_storage.py:45 -- Google Cloud Storage client created
    2022-11-03 13:03:34,276 [INFO] gcp_functions.py:56 -- Google Cloud Functions client created - Region: us-east1 - Project: gfinol-lithops-debug
    2022-11-03 13:03:34,276 [INFO] invokers.py:108 -- ExecutorID 562265-0 | JobID A000 - Selected Runtime: lithops-default-runtime-v39 - 256MB
    2022-11-03 13:03:34,810 [INFO] invokers.py:116 -- Runtime lithops-default-runtime-v39 with 256MB is not yet deployed
    2022-11-03 13:03:34,810 [INFO] gcp_functions.py:273 -- Deploying runtime: lithops-default-runtime-v39 - Memory: 256 Timeout: 300
    2022-11-03 13:03:34,811 [INFO] gcp_functions.py:241 -- Building runtime lithops-default-runtime-v39 from /tmp/gcf_default_requirements.txt
    2022-11-03 13:04:37,617 [INFO] gcp_functions.py:225 -- Waiting for the function to be deployed
    Traceback (most recent call last):
    File "/home/gerard/.anaconda3/envs/py39/bin/lithops", line 8, in <module>
        sys.exit(lithops_cli())
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
        return self.main(*args, **kwargs)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1055, in main
        rv = self.invoke(ctx)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
        return ctx.invoke(self.callback, **ctx.params)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 760, in invoke
        return __callback(*args, **kwargs)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/scripts/cli.py", line 173, in test_function
        fexec.call_async(hello, username)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/executors.py", line 209, in call_async
        runtime_meta = self.invoker.select_runtime(job_id, runtime_memory)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/invokers.py", line 117, in select_runtime
        runtime_meta = self.compute_handler.deploy_runtime(self.runtime_name, runtime_memory, runtime_timeout)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/serverless/serverless.py", line 73, in deploy_runtime
        return self.backend.deploy_runtime(runtime_name, memory, timeout=timeout)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/serverless/backends/gcp_functions/gcp_functions.py", line 278, in deploy_runtime
        self._create_function(runtime_name, memory, timeout)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/serverless/backends/gcp_functions/gcp_functions.py", line 234, in _create_function
        raise Exception('Error while deploying Cloud Function')
    Exception: Error while deploying Cloud Function

This is a screenshot of the error in the Google cloud console:

I also tried to create a custom runtime using
lithops runtime build -f requirements.txt -b gcp_functions my_Image_runtime -s gcp_storage
But I get a AttributeError: 'NoneType' object has no attribute 'put_data'.

Click to see error trace
    2022-11-03 13:08:02,137 [INFO] config.py:131 -- Lithops v2.7.0
    2022-11-03 13:08:02,138 [DEBUG] config.py:90 -- Loading configuration from /home/gerard/.lithops/config
    2022-11-03 13:08:02,155 [DEBUG] config.py:183 -- Loading Serverless backend module: gcp_functions
    2022-11-03 13:08:02,379 [DEBUG] gcp_functions.py:79 -- Getting GCP credentials from /home/gerard/.lithops/gfinol-lithops-debug-7dea7b8f11a1.json
    2022-11-03 13:08:02,464 [INFO] gcp_functions.py:56 -- Google Cloud Functions client created - Region: us-east1 - Project: gfinol-lithops-debug
    2022-11-03 13:08:02,464 [INFO] gcp_functions.py:241 -- Building runtime my_Image_runtime from requirements.txt
    2022-11-03 13:08:02,464 [DEBUG] utils.py:228 -- Creating function handler zip in /tmp/lithops_gcp_functions.zip
    Traceback (most recent call last):
    File "/home/gerard/.anaconda3/envs/py39/bin/lithops", line 8, in <module>
        sys.exit(lithops_cli())
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
        return self.main(*args, **kwargs)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1055, in main
        rv = self.invoke(ctx)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
        return ctx.invoke(self.callback, **ctx.params)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/core.py", line 760, in invoke
        return __callback(*args, **kwargs)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
        return f(get_current_context(), *args, **kwargs)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/scripts/cli.py", line 451, in build
        compute_handler.build_runtime(runtime_name, file, ctx.args)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/serverless/serverless.py", line 66, in build_runtime
        self.backend.build_runtime(runtime_name, file, extra_args)
    File "/home/gerard/.anaconda3/envs/py39/lib/python3.9/site-packages/lithops/serverless/backends/gcp_functions/gcp_functions.py", line 254, in build_runtime
        self.internal_storage.put_data(bin_location, action_bin)
    AttributeError: 'NoneType' object has no attribute 'put_data'

I can't reproduce the first error. I delted everything from my account and ran lithops test and it works.
The second erros should be fixed with #1003
#  lithops runtime deploy -b gcp_functions my_Image_runtime -s gcp_storage
2022-11-03 15:16:12,556 [INFO] config.py:131 -- Lithops v2.7.1.dev0
2022-11-03 15:16:12,556 [DEBUG] config.py:90 -- Loading configuration from /home/josep/.lithops/config
2022-11-03 15:16:12,573 [DEBUG] config.py:183 -- Loading Serverless backend module: gcp_functions
2022-11-03 15:16:12,876 [DEBUG] config.py:248 -- Loading Storage backend module: gcp_storage
2022-11-03 15:16:12,885 [DEBUG] gcp_storage.py:36 -- Creating GCP Storage client
2022-11-03 15:16:12,885 [DEBUG] gcp_storage.py:39 -- Getting GCP credentials from /home/josep/.lithops/lithops-dev-dac9d5b5a802.json
2022-11-03 15:16:12,919 [INFO] gcp_storage.py:45 -- Google Cloud Storage client created
2022-11-03 15:16:12,919 [DEBUG] gcp_functions.py:79 -- Getting GCP credentials from /home/josep/.lithops/lithops-dev-dac9d5b5a802.json
2022-11-03 15:16:12,987 [INFO] gcp_functions.py:56 -- Google Cloud Functions client created - Region: us-east1 - Project: lithops-dev
2022-11-03 15:16:12,987 [DEBUG] gcp_functions.py:391 -- Runtime key: gcp_functions/2.7.1.dev0/lithops-dev/us-east1/lithops_v2-7-1-dev0_my_Image_runtime_256MB
2022-11-03 15:16:12,987 [INFO] gcp_functions.py:268 -- Deploying runtime: my_Image_runtime - Memory: 256 Timeout: 300
my_Image_runtime
2022-11-03 15:16:14,494 [DEBUG] gcp_functions.py:167 -- Creating topic projects/lithops-dev/topics/lithops_v2-7-1-dev0_my_Image_runtime_256MB_us-east1_topic
2022-11-03 15:16:18,862 [DEBUG] gcp_functions.py:179 -- Creating function projects/lithops-dev/topics/lithops_v2-7-1-dev0_my_Image_runtime_256MB_us-east1_topic
2022-11-03 15:16:21,201 [DEBUG] gcp_functions.py:218 -- Creating function projects/lithops-dev/locations/us-east1/functions/lithops_v2-7-1-dev0_my_Image_runtime_256MB
2022-11-03 15:16:22,405 [INFO] gcp_functions.py:225 -- Waiting for the function to be deployed
2022-11-03 15:16:22,848 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:16:43,319 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:17:03,777 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:17:24,280 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:17:44,730 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:18:05,196 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:18:25,670 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:18:46,129 [DEBUG] gcp_functions.py:230 -- Function status is DEPLOY_IN_PROGRESS
2022-11-03 15:19:06,590 [DEBUG] gcp_functions.py:230 -- Function status is ACTIVE
2022-11-03 15:19:06,590 [DEBUG] gcp_functions.py:358 -- Extracting runtime metadata from: my_Image_runtime
2022-11-03 15:19:10,825 [DEBUG] storage.py:455 -- Uploading runtime metadata to: gcp_storage://lithops-data-us-east1/lithops.runtimes/gcp_functions/2.7.1.dev0/lithops-dev/us-east1/lithops_v2-7-1-dev0_my_Image_runtime_256MB.meta.json
2022-11-03 15:19:11,236 [DEBUG] storage.py:461 -- Storing runtime metadata into local cache: /home/josep/.lithops/cache/lithops.runtimes/gcp_functions/2.7.1.dev0/lithops-dev/us-east1/lithops_v2-7-1-dev0_my_Image_runtime_256MB.meta.json
2022-11-03 15:19:11,238 [INFO] cli.py:494 -- Runtime deployed

It also works for me using a new project

I created a new project and it works ok for me. Could you check in the GCP console logs if you can see why the function is not deployed correctly?

@JosepSampe I get the following error message:
    Invalid argument (HTTP 400): Build failed: *** Error compiling './lithops/storage/backends/infinispan/infinispan.py'... File "./lithops/storage/backends/infinispan/infinispan.py", line 42 match self.mech: ^ SyntaxError: invalid syntax; Error ID: 49c34848

Seems the "match case" feature set in the infinispan backend is only available for python > = 3.10. I'm using python3.10, thats why it doesn't fail for me. Will change it

@gfinol  I added a fix. Can you try with master branch?

Yes, it worked after installing from master branch. 🎉


Fail to parse xml when there are "<" and ">" in element

for example:
<test>
a + b > c;
d + e < f;
</test>
xml fail to parse such text

This is not valid XML. < and >  have to be encoded or put into a <![CDATA[ ... ]]> section.


put relevant docs into security/

将以下文档移到 security 目录下(以及沿途的文章内容润色):

数据加密
管理权限

大致看了看, 找不到别的安全相关内容了, 因此先这样.

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

Coverage data is based on head (0d60c8c) compared to base (dbbeea8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #464   +/-   ##
=======================================
  Coverage   46.69%   46.69%
=======================================
  Files          27       27
  Lines        2844     2844
=======================================
  Hits         1328     1328
  Misses       1417     1417
  Partials       99       99

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.


CLOUDSTACK-9617: Fixed enabling remote access after PF configured on …

Enabling Remote access Vpn Fails when there is a portforwarding rule of the reserved ports ( 1701 , 500 , 4500) under TCP protocol on Source nat IP

@jayapalu what about load balancer ports ? shall we consider it as well?

@murali-reddy can you help review this?
@jayapalu this looks useful, can you rebase against 4.9 and change PR's base branch to 4.9?

@ustcweizhou
I am updating code for the LB rules as well

Rebased on 4.9 and added changes for @ustcweizhou

@jayapalu can you change the PR's base branch to 4.9? Thanks


Create subnets only when needed

don't create ad subnet when not using AD
don't create Lustre subnet when not deploying AZMLFS
don't create netapp subnet when not using netapp

ad and lustre subnets can now be removed from the config file as NSGs are dynamic


Add function to create spoly from an array of numbers in radians

As discussed in issue #95, this pull request adds a constructor function to create an spoly from an array of numbers in radians. It is very similar to spoly_deg() except without the calls to deg_to_rad().
Question 1: Can the spoly(float8[]) function be marked PARALLEL SAFE? My reading of the documentation for PARALLEL SAFE doesn't mention anything about accessing arrays or allocating memory, so I think it should be.
Question 2: Can it be marked STRICT? select spoly(NULL::float8[]) returns null, I believe.
If the answer to either or both questions, I would like to make the same change(s) to spoly_deg also.

I believe the answer to both question is "yes".
Mind that besides the parameter being NULL, individual array elements might also be NULL.

@esabol I think, everything ok except of some trivial formatting changes. Thank you!

@esabol I'm ok to accept the patch. Could you please squash the commits?

Rebased and squashed. Ready to merge whenever you are. Thank you for your reviews, @vitcpp !

It seems I'm the only reviewer. Lets merge it, since the risks to break the pgpshere are minimal.


There is an error with the python code pertaining to the bot.py file.

The bot.py file has an error in it.  I had to make the following changes to get my bot to work and bypass the syntax error messages.
def init(self, config: Config):
self.qna_maker = QnAMaker(
QnAMakerEndpoint(
knowledge_base_id=config.QNA_KNOWLEDGEBASE_ID,
endpoint_key=config.QNA_ENDPOINT_KEY,
host=config.QNA_ENDPOINT_HOST,
)
)

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

ID: 466e4935-993f-ed61-0446-c6eff7310572
Version Independent ID: 50fe83f8-c261-0bbe-5b8e-910ee27f17dc
Content: Azure Bot Service tutorial to have a bot answer questions - Bot Service
Content Source: articles/v4sdk/bot-builder-tutorial-add-qna.md
Service: bot-service
GitHub Login: @JonathanFingold
Microsoft Alias: kamrani

Thanks for bringing this to our attention @jdgarcia01, I'll update the docs shortly.

Closing now that the updates have been merged.


Minor changes

I tried to split the changes by commit. It maybe easier to review by commit.
@kpango

The line 2157 only can pass on go test -race. Do you have any idea?
https://github.com/yahoojapan/athenz-authorizer/blob/2d6bbdef41652476108349d41c8439e444d0777b/policy/daemon_test.go#L2157-L2158

seems the retry interval is missing in jwkd: https://github.com/yahoojapan/athenz-authorizer/commit/6c79437ff203aad80ef35a9d40cdeaaffcf7b4da

the ebuf will also wrap previous error. Is this expected?
https://github.com/yahoojapan/athenz-authorizer/blob/6c79437ff203aad80ef35a9d40cdeaaffcf7b4da/jwk/daemon.go#L86-L87

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@62bbcd5). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master      #15   +/-   ##
=========================================
  Coverage          ?   93.35%
=========================================
  Files             ?       14
  Lines             ?      918
  Branches          ?        0
=========================================
  Hits              ?      857
  Misses            ?       42
  Partials          ?       19

Impacted Files
Coverage Δ

option.go
100% <ø> (ø)

jwk/daemon.go
89.06% <100%> (ø)

authorizerd.go
95.55% <100%> (ø)

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 62bbcd5...a67ecf9. Read the comment docs.

I tried to split the changes by commit. It maybe easier to review by commit.
@kpango

The line 2157 only can pass on go test -race. Do you have any idea?
https://github.com/yahoojapan/athenz-authorizer/blob/2d6bbdef41652476108349d41c8439e444d0777b/policy/daemon_test.go#L2157-L2158
seems the retry interval is missing in jwkd: 6c79437
the ebuf will also wrap previous error. Is this expected?
https://github.com/yahoojapan/athenz-authorizer/blob/6c79437ff203aad80ef35a9d40cdeaaffcf7b4da/jwk/daemon.go#L86-L87

Sorry I cannot reproduce the problem with go test ./... command.... can you paste the error message here?
Thank you (Y)
yes, it is expected....

// time.Sleep(time.Duration(2) * time.Nanosecond) // not working
       time.Sleep(time.Duration(2) * time.Millisecond)

replace the code like this
time.Sleep(time.Duration(2) * time.Nanosecond)
// time.Sleep(time.Duration(2) * time.Millisecond)

The expiration of SetWithExpire() is calculated at runtime, making the expiration of the entry is not accurate, leading the object didn't delete during DeleteExpired() is called.
Gache and the policy cache do not need this level of accuracy.

LGTM


CI tests

Continuous integration tests - validate markdown style using markdownlint-cli
Rules: https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md

I guess I can't accept it since it failed ;)

This should now make each pull-request and commit have an automated test which checks the markdown.  However, it will force all contributors to write markdown in the same style, and should catch certain problems before they become an issue.

That's weird - why can't it open the config file? Looks fine to me.. 🤔

This is an exact copy of the code we use in nf-core eg. here. So I'm not sure why it's failing.. 😕

yml not yaml 🤦


CORS problem

How to activate cors in simplcommerce project in deployment server ?
many thanks.

Just follow the docs from Microsoft https://docs.microsoft.com/en-us/aspnet/core/security/cors?view=aspnetcore-3.1


Refactor StaffController from a D on Code Climate

https://codeclimate.com/repos/54d4fa64695680762a0024c5/StaffController

Closing Dup of #273


Build image if possible when in develop mode

If a docker-compose file specifies an image and a dockerfile to build, the dockerfile should be built and used when using develop mode. The image should be used when not in develop mode.
Maybe a command as well:
$ navy rebuild [?service]

to rebuild the images for the service.
Maybe also it should be possible to specify build parameters such as context path and dockerfile path in .navyrc, as sometimes your docker-compose won't be in the same directory as your service.

Closed in favour of #33 which will allow overriding any service configuration when in development


Reducer initialState is never set if it's dynamically injected

If I don't include a reducer in reducers.js:
export default function createReducer(injectedReducers) {
  return combineReducers({
    route: routeReducer,
    global: globalReducer,
    ...injectedReducers,
  });
}

And instead just inject it like so:
const withConnect = connect(mapStateToProps, mapDispatchToProps);
const withReducer = injectReducer({ key: 'modules', reducer });
const withSaga = injectSaga({ key: 'modules', saga });

export default compose(withReducer, withSaga, withConnect)(App);

Then reducer  never seems to set it's initialState - I assume because they don't seem to receive the @@INIT action that causes it to hit the default in it's case statement:
function myReducer(state = initialState, action) {
  switch (action.type) {
    case DO_SOMETHING:
      ...
    default:
      return state; <- never happens
  }
}

It looks like this is because it gets injected at componentWillMount, which is after @@INIT... how do I get the initialState set so that it can be referenced at componentDidMount?

I found the/a solution - we should just export the initialState from the reducer and use it as the default value in the selector as they do here:
https://github.com/react-boilerplate/react-boilerplate/blob/98f5c0e5bc54a5540466515e38dea9e9cb752019/app/containers/HomePage/selectors.js#L8
In here:
https://github.com/flexdinesh/react-redux-boilerplate/blob/master/app/containers/HomePage/selectors.js#L7

@ross-freeagent It's an interesting find. I am away from my dev machine for three weeks now and I won't have access for two more weeks I guess. If you could create a PR, I'll be able to merge it though.

selector solution will not update redux state, therefore redux devtools will not show that reducer initial state attached.
You could do
store.dispatch({ type: '@@REDUCER_INJECTED' }); after store.replaceReducer, this will set initial state of the reducer to store state.

Thanks @ross-freeagent, @ruslansavenok and @piotr-roslaniec. The PR with the proposed solution is now merged.


Tuple sorting

https://github.com/nmorale5/NoahYixiaoHashCode.jl/blob/449e3d8b75060206bb4a287c18d7621f811e54b2/src/solver_greedy.jl#L6
By default, Julia seems to sort tuples in the way you'd expect:
julia> (1, 2) < (4, 0)
true

julia> (1, 2) < (1, 0)
false

I get it.


Android build fail

When taking Android build getting the following error.
FAILURE: Build failed with an exception.

Where:
Build file '/pub-cache/hosted/pub.dev/screen_protector-1.3.1/android/build.gradle' line: 29

What went wrong:
A problem occurred evaluating project ':screen_protector'.

No signature of method: build_2oq11jo52f2v2qoejhsr1s8v3.android() is applicable for argument types: (build_2oq11jo52f2v2qoejhsr1s8v3$_run_closure2) values: [build_2oq11jo52f2v2qoejhsr1s8v3$_run_closure2@57c0058d]

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 6s

updated gradle version to 7.5 and the issue was fixed.


Castle Strike break when alt tabbing

Alt tabbing in Castle Strike will make you not able to go ingame again. This is likely due to some upstream work from a rebase.
Software information
Castle Strike
System information

GPU: 7900xtx
Driver: mesa-git
Wine version: 8.12
DXVK version: Master and https://github.com/AlpyneDreams/d8vk/pull/172
Remaining resources is lower with the latter

Apitrace file(s)
Castlestrike.tar.gz
One with d8vk and one with wined3d
Log files
Castlestrike_d3d8.log
Castlestrike_d3d9.tar.gz

The game apparently expects device lost signaling on alt+tab (as can be seen in the WineD3D trace):

It's worth checking out if @K0bin's d3d9 config option does anything in this case.

Forgot to note i already tried with d3d9.deviceLossOnFocusLoss and it has the same issue.
Here is trace with it enabled Castlestrike-DeviceLost.trace.tar.gz

Turns out we were not releasing state blocks on calls to D3D8Device::DeleteStateBlock(), rather only removing their references from ye' olde state block set. That kept the D3D9 resources around as well, which cause issue on device Reset. Should be fixed now.

Confirmed fixed


KAFKA-9798: Send one record before starting the async producer

Comparing all other test cases, the shouldAllowConcurrentAccesses starts an async producer sending records throughout the test other than just synchronously sent and acked a few records before we start the streams application. Right after the streams app is started, we check that at least one record is sent to the output topic (i.e. completed processing). However since only this test starts the producer async and did not wait for it to complete, it is possible that the async producer gets too longer to produce some records and causing it to fail.
To follow what other tests did, I let this test to first send one round of records synchronously before starting the async producing.
Also encountered some new scala warnings that I fixed along with this PR.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@mjsax @cadonna to take a look.

@mjsax thanks for the review! Addressed your comments.


Review the 'Take quiz page' issue

Review the changes from #30

The page and the respective functions will be rewritten with another issue.


Tarjan's Algorithm

Overview

Write code for Tarjan's Algorithm in C++.
Add that code into a directory named "Graphs", if the directory doesn't exist, create one and add the code file.

Please take care of these things while creating the pull request.

The code file was added to the correct directory.
Code quality looks good.
The programming language used is the same as mentioned in the issue.

please assign me this issue

Please assign me this issue


Social — Fix the Puck Activity Heights

Here’s something that should have been taken care of a long time ago: the puck activities do not rearrange based on the height of the display. This is especially egregious in landscape mode.

Done and done, as seen in the attached image.

This is still not quite as clean as I would like it to be on all screen sizes, but it's a heck of a lot better on phones and should look better on wide devices as well.
Update is part of 20B190. Closing Ticket.


Add FlatGeobuf element

Issue

Currently there is no way to load FlatGeobuf data in this library.
It's pretty easy to load a FlatGeobuf using the official lib, deserialize to GeoJSON, then pass through to our GeoJSON component.

Solution

Made a FlatGeobuf component that essentially wraps GeoJSON.
It has a bit of additional logic there for:

Taking a bounding box array and only fetching the data within the BBOX (using RANGE requests). extent={bbox}
If a polygon GeoJSON is passed instead, then the BBOX is calculated for fetching data, and the final dataset is trimmed to the extent of the polygon. extent={polygonGeojson}

Of course, having a dynamic bbox is possible, via events such as clicking on bounding map geometries. I have tested this and it works nicely.

A extractGeomCols prop, when set to true will extract the first geometry from within a GeometryCollection. This is a bit of a hack required so that properties can be extracted alongside the geometry when working with PostGIS.
Accepts a function for prop metadataFunc={funcHere} to handle flatgeobuf metadata on fetch.

Child components can be passed through via a slot, to allow for styling in the same way as the GeoJSON component.
Also takes a few additional props used by the GeoJSON component that are passed directly through.

[!NOTE]
This component uses Svelte 5 syntax, with the PR anticipating the merge of https://github.com/dimfeld/svelte-maplibre/pull/197

I had some issues with the rendering orders that are hopefully fixed by the functions I used from context and source logic.
Please let me know if I should change anything here!
Screenshot

If you want to rebase this onto the next branch I'm happy to merge it in there.

Nice! Happy to keep contributing to this lib 😄
Svelte 5 is fully backward compatible with Svelte 4 syntax, so the upgrade could still be done without migrating all the syntax. Of course this would be a breaking major version increment.
The upgrade should be done over time, but it could be gradual and community supported if time is limited 👍
I currently use this lib in a Svelte 5 project without issues


Feat 50 processing json

Closes #50
Attaches some metadata file before uploading to cloud bucket

@dyf This code pulls the processing schema from the data_schema repo, but the current version in main isn't valid. Ideally, I'd like to pip install the data_schema repo instead of using requests get to fetch the latest schema.


Permutation entropy in higher dimensions (2D)

What is this PR?
A permutation entropy estimator for 2D arrays with arbitrary element type (matrices of numbers, strings , or any other custom type which can be sorted will work).
Interface
I use a flexible stencil-based approach, as discussed in #73. The new estimator has two signatures:
PermutationStencil(stencil::AbstractArray{T, D})
PermutationStencil(m::Int, D::Int)

where the first once takes any (D-dimensional) (hyper)rectangular stencil as input, and the second one is a convenience constructor for square stencils of size m*m in D dimensions. I've only implemented the estimator for D == 2 (for use on images, matrices).
The 3D case requires a bit more though, and I will submit that in a separate PR, once we've decided on the final api design (see below).
Basic usage
The interface is the same as for most other estimators. Below is a reproduction of the example in Riberio et al. (2012)
julia> x = [1 2 1; 8 3 4; 6 7 5]
3×3 Matrix{Int64}:
 1  2  1
 8  3  4
 6  7  5

julia> m, D = 2, 2
(2, 2)

julia> est = PermutationStencil(m, D)
PermutationStencil{2}(Bool[1 1; 1 1])

julia> # Compute the entropy to base 2 and order 1
       h = genentropy(x, est, base = 2, q = 1)
0.32715643797829735

julia> # Only compute probabilites
       ps = probabilities(x, est)
3-element Probabilities{Float64}:
 0.5
 0.25
 0.25

Generators for repeated application
Again, I find that the generator approach discussed in #70 is necessary for efficient repeated computations.
I here use both probabilitygenerator/ProbabilityGenerator and entropygenerator/EntropyGenerator. I'm favoring the approach in this PR, where probability generation and entropy computation is done separately.
# A collection of ten square matrices
xs = [rand(["a", "b", "c"], 5, 5) for i = 1:10]

# Probability generator that uses the first matrix as template. Any array with the same type and size can then be
# used as input to to generator to obtain probabilities.
m, D = 2, 2
est = PermutationStencil(m, D)
pgen = probabilitygenerator(first(xs), est);

# Compute probabilities for each matrix:
[pgen(xi) for xi in xs]

# Entropy generators work the same way. Internally, they pre-allocate based on a template matrix, such that
# entropy may be computed efficiently for many arrays of the same size and element type.
hgen = entropygenerator(first(xs), est);

[hgen(xi, base = 2, q = 2) for xi in xs]

Tests
I have implemented generic tests, and successfully reproduce the example from Riberio et al. (2012)
What needs to be discussed before merging?
We need to decide on

If  we want generators that pre-allocate (I vote yes, because it is much more efficient that repeated initialization)
What the api should look like (I'm happy with what I've implemented here (based on TimeseriesSurrogates.jl)
If we want ProbabilityGenerators and EntropyGenerators, or just have EntropyGenerators.

I definitely favor having both ProbabilityGenerators and EntropyGenerators, because only probabilities (and not entropies) are needed for #75. By separating, we can compute both entropy and other measures that require probabilities without double the computations. The generators are also trivially extendable to other methods, if wanted/needed.
References
Ribeiro, H. V., Zunino, L., Lenzi, E. K., Santoro, P. A., & Mendes, R. S. (2012). Complexity-entropy causality plane as a complexity measure for two-dimensional patterns.

Thanks for your effort @kahaaga . If it is okay with you, I'd like to implement a different solution to #73, that is both more performant, and in my opinion a simpler interface with less source code. I've written code that iterates over "neighborhoods" of multi dimensional arrays several times, and refined it over three different versions, starting from TimeseriesPrediction.jl, into its fastest possible form that exists currently in Agents.jl.
Here is my code outline, and I show below an example of the API as seen by a user.

Stencils are Vector{CartesianIndex}. The user just gives the indices of offsets of each entry of the array that defines the stencil. This is simpler, takes less memory, allows for efficient iterations, allows as arbitrary stencils as the current code, and naturally integrates with view so that there are no unecessary allocations.
An iterator (that already exists in Agents.jl) scans through the original array and iterates using the stencil. It views the array, and efficiently uses vec on the view.
I do not see yet the advantage of introducing new API functions that are the "generator" approaches. With the solution I've outlined above, there is nothing to be pre-allocated because there are no allocations done anyways.
Given that we iterate over vector-like views of an array, this should lead to large code re-use of the existing permutation entropy methods.
The code in agents also allows for iteration with periodic boundary conditions, or terminating boundary conditions. A user may choose if they want periodic warping or not. If not, points that do not fullfill the stencil extent will be skipped.
The solution I propose is dimension agnostic. The exact same source code will work for any dimensionality of input data.

Here's how it looks like. The following defines a 2x2 "square" stencil that goes from the pixel of the array to the bottom and right.
stencil = PermutationStencil([CartesianIndex(0,1), CartesianIndex(0,1), CartesianIndex(1,1)]; periodic = true)
# stencils always include the 0,0 cartesian index.

data = [rand(50,50) for _ in 1:50]

perment = genentropy(data, stencil)

So, given my familiarity with the codebase of Agents.jl, I'll open a second PR where I implement this interface. The amount of new API stuff is definitely much much smaller. Whether it is much much faster as well, we will have to see once I open it. I have not read any other PRs yet, like #70, so I don't know yet about this generator interface you want. It will take some time to go to the other stuff.

Thanks for your effort @kahaaga . If it is okay with you, I'd like to implement a different solution to https://github.com/JuliaDynamics/Entropies.jl/issues/73, that is both more performant, and in my opinion a simpler interface with less source code. I've written code that iterates over "neighborhoods" of multi dimensional arrays several times, and refined it over three different versions, starting from TimeseriesPrediction.jl, into its fastest possible form that exists currently in Agents.jl.

Hey @Datseris! Faster, less-code approaches are always welcome. I feel no particular urge to stick with my implementation if you've got something more efficient. I suggest we leave this PR open until you've submitted your version, and then compare performance.

It will take some time to go to the other stuff.

No worries. I've got plenty of other stuff to do in the meanwhile that doesn't hinge on any of my currently open PRs :D

Shouldn't we close this in favor of #78 ...?


Accept Suggestion On Enter doesn't change the behavior of debug console

VSCode Version: 1.45.1
OS Version: Darwin x64 19.4.0

Steps to Reproduce:

Set "editor.acceptSuggestionOnEnter": "off" in settings
Start a debug session (for me it's Python) and go to debug console
The enter key is still being used for accepting auto completion, instead of sending the command to debug console. I would only like to use the TAB key for accepting auto completion.

Does this issue occur when all extensions are disabled?: Yes/No

Adding a short video clip.


api: generalize writeErr function

Longhorn/longhorn#6319

Waiting for https://ci.longhorn.io/job/private/job/longhorn-tests-regression/4586/console

LGTM! Thanks!

@mergify backport v1.5.x


Feature Request: Support for 'Fn::GetAtt' -> 'Name'

I would like to see support for retrieving the Name attribute.
Use-case:
In my pipeline I would like to always reference the latest component version. Crafting that string today is difficult because I cannot easily retrieve the 'Name' attribute. I can only fetch the full Arn, and then parse the string using intrinsic functions.
See below example:
  Recipe:
    Type: "AWS::ImageBuilder::ImageRecipe"
    Properties:
      Name: !Sub ${Prefix}-recipe
      Version: "1.0.7"
      ParentImage: !Sub "arn:aws:imagebuilder:${AWS::Region}:aws:image/${BaseImage}/x.x.x"
      Components:
        - ComponentArn: !Join
            - ""
            - - !Sub arn:aws:imagebuilder:${AWS::Region}:${AWS::AccountId}:component/
              - !Select [1, !Split ["/", !Ref Component]]
              - /x.x.x

Instead, I'd like it to work like this:
  Recipe:
    Type: "AWS::ImageBuilder::ImageRecipe"
    Properties:
      Name: !Sub ${Prefix}-recipe
      Version: "1.0.7"
      ParentImage: !Sub "arn:aws:imagebuilder:${AWS::Region}:aws:image/${BaseImage}/x.x.x"
      Components:
        - !Sub arn:aws:imagebuilder:${AWS::Region}:${AWS::AccountId}:component/${Component.Name}/x.x.x

Relevant Cloudformation Documentation:

If you specify template parameter names or resource logical IDs, such as ${InstanceTypeParameter}, AWS CloudFormation returns the same values as if you used the Ref intrinsic function. If you specify resource attributes, such as ${MyInstance.PublicIp}, AWS CloudFormation returns the same values as if you used the Fn::GetAtt intrinsic function.

Why can't I just Ref the Component?
Because referencing a different component version requires me to update the recipe version as well because it's immutable. In Cloudformation this leads to deployment failures if I forget to increment the recipe which I don't want to do .

track https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/68 for GetAtt expansion beyond readOnlyProperties

track https://github.com/aws-cloudformation/aws-cloudformation-coverage-roadmap/issues/68 for GetAtt expansion beyond readOnlyProperties


disallowSpaceBeforeBinaryOperators doesn't alow , but it is used in Crockford preset

The Crockford preset contains the lines
"disallowSpaceBeforeBinaryOperators": [
        ","
    ],

(see https://github.com/jscs-dev/node-jscs/blob/master/presets/crockford.json#L44-L46)
which causes this error

The value of property "disallowSpaceBeforeBinaryOperators" was "," but must be one of the following values: "?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", null

This is slightly confusing as the listed operators are not "binary" as defined in the ECMAScript spec. (eg &&). Even more confusing the documentation includes the comma operator "'," in the example (see http://jscs.info/rules.html#disallowspaceafterbinaryoperators).
I tested by copying the raw preset contents to a .jscsrc file used by WebEssentials in VisualStudio

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9921368-disallowspacebeforebinaryoperators-doesn-t-alow-but-it-is-used-in-crockford-preset?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

If the message means option means a Mathematical 'binary operator" (see http://en.wikipedia.org/wiki/Binary_operation) as it appears to then I think comma be included in the set .

Well:
https://github.com/jscs-dev/node-jscs/blob/master/lib/rules/require-space-between-arguments.js
https://github.com/jscs-dev/node-jscs/blob/master/lib/rules/require-spaces-in-for-statement.js
I really don't know what is wrong there but rules are in place and crockford preset looks fine.
Can you look at version you using? These rules are pretty fresh (3 dec '14, and 15 jan '15).

Oh. Probably you just trying to use rules that weren't published at the moment. If so it's ok ;-) And thanks for contribution!

Surely in theory it would only be used the settings from the Crockford template in the project .jscsrc?

Summoning @markelog as the great master of presets.
Btw. @SteveALee how you using presets? Via preset option or by manual copying it to .jscsrc? I still can't get how you've got these errors.

Copy and pasted into the new file in VS13 from
https://raw.githubusercontent.com/jscs-dev/node-jscs/master/presets/crockford.json

I created a downstream issue too -
https://github.com/madskristensen/WebEssentials2013/issues/1816

Yeah, okay. That's why you have these errors. Some of rules in master doesn't exist in JSCS bundled with VS13 (or WebEssentials).
For further usage: { "preset" : "crockford" }. It will load this file for ya and won't fail because we synchronising presets and rules.

Ah, yes that makes sense. Can you the add extra rules in the file after that "preset".
Can I suggest that  you add a note to
http://jscs.info/overview.html#presets
Thanks very much

Yeah, we need to do something with this.
http://jscs.info/overview.html#presets vs http://jscs.info/overview.html#preset

Almost but not quite. There are still some version dependencies you can;t quite escape. I'll stick to by patched version of crockford preset for now. heh

The value of property "preset" was "crockford" but must be one of the following values: "jquery", "google"

Almost but not quite. There are still some version dependencies you can;t quite escape. I'll stick to by patched version of crockford preset for now. heh

The value of property "preset" was "crockford" but must be one of the following values: "jquery", "google"

I looked at submitting a pull request for jscs-dev.github.io but have got a little lost.
It seems the dev branch creates master, from MD source files in a folder /jcsc but i cannot find those.
Strangely they DO seem to exist in he root this repo. files.
Do I just submit a PR for the OVERVIEW.md in this repo?

Do I just submit a PR for the OVERVIEW.md in this repo?

Yep


Styling for Editor Component

User Story
As a user, I want to have a styled UI, because I want to enjoy using it.
Implementation
Steps to implement the feature:

[x] stylesheet for Editor Component

animations added


fix parsing issue with requestParameters.disableApiStop

Issue #, if available:
#299
Description of changes:
fix
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks very much!


in the cloud attach dialog, putting the version text in parentheses

…pending state
Fixes #419

Leaving the selector label as Target for now.

LGTM

Is it possible to include the necessary change to tutorial.markdown at the same time? It mayb e tricky since it's on a different branch; and if so I'm will to take that as a separate PR. However we should probably ge tin the habit of updating docs in sync with code changes.

@elharo, I already had the other PR ready to go so this time around I am merging them separately. Going forward though I agree it would be nice to merge code + doc changes together in a single PR, perhaps using a fork (although I still think that would require us to select a specific branch for the PR).

@elharo if it looks good to you, I'll go ahead and merge it in

lgtm


Style 360 imagery points in photo layers correctly (circles, not directional pins)

Fixed in fe0ca709faa122621cb939302f7a4ed48725890e.


FIX - Max Channel Balance per currency

Description
This PR addresses an issue with committing balances in LTC, where LTC will be capped at the BTC max channel balance (16777215) instead of the correct balance<PHONE_NUMBER>).
The max channel balances are currently set in LND at https://github.com/lightningnetwork/lightning-rfc/blob/master/02-peer-protocol.md#rationale
BTC is 2^24
LTC is BTC * 60 (btcToLtcConversionRate
Related PRs
List related PRs if applicable
Todos

[x] Tests
[x] Documentation
[x] Link to Trello

 Per currency for max channel balance on commit-balance


TypeError on InstanceV1.list_servers

Example code:
from os import getenv
from scaleway import Client
from scaleway.instance.v1 import InstanceV1API

access_key = getenv("SCW_ACCESS_KEY", "")
secret_key = getenv("SCW_SECRET_KEY", "")
client = Client(
    access_key=access_key,
    secret_key=secret_key,
)
api = InstanceV1API(client)
response = api.list_servers(zone="pl-waw-2")
print(response)

Error:
Traceback (most recent call last):
  File "/home/otlet/XXX/inventory.debug.py", line 12, in <module>
    response = api.list_servers(zone="pl-waw-2")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/otlet/.local/share/virtualenvs/XXX-XXX/lib/python3.12/site-packages/scaleway/instance/v1/api.py", line 435, in list_servers
    return unmarshal_ListServersResponse(res.json())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/otlet/.local/share/virtualenvs/XXX-XXX/lib/python3.12/site-packages/scaleway/instance/v1/marshalling.py", line 2022, in unmarshal_ListServersResponse
    [unmarshal_Server(v) for v in field] if field is not None else None
     ^^^^^^^^^^^^^^^^^^^
  File "/home/otlet/.local/share/virtualenvs/XXX-XXX/lib/python3.12/site-packages/scaleway/instance/v1/marshalling.py", line 827, in unmarshal_Server
    {key: unmarshal_VolumeServer(value) for key, value in field.items()}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/otlet/.local/share/virtualenvs/XXX-XXX/lib/python3.12/site-packages/scaleway/instance/v1/marshalling.py", line 715, in unmarshal_VolumeServer
    return VolumeServer(**args)
           ^^^^^^^^^^^^^^^^^^^^
TypeError: VolumeServer.__init__() missing 5 required positional arguments: 'name', 'organization', 'size', 'state', and 'project'

Looks like regress with other issue: https://github.com/scaleway/scaleway-sdk-python/issues/557
SDK Version:
        "scaleway": {
            "hashes": [
                "sha256:006a70416f37f9cd8774859a7508cf14af64bc2cb3209a8cff96ddcf48d14627",
                "sha256:745fbd4114caa47d3c6bc5445b8bec5377a93c776ef9984b8741df6749cf519b"
            ],
            "index": "pypi",
            "version": "==2.7.0"
        },
        "scaleway-async": {
            "hashes": [
                "sha256:59d44806ffc2210abd9298b72171e7064779fe1fc67a47bdf13278e66dd52ac0",
                "sha256:9b2cbd9898b92a60debb888529e3506cd4e63369a9ed469fc95a3a674759bfd5"
            ],
            "index": "pypi",
            "version": "==2.7.0"
        },
        "scaleway-core": {
            "hashes": [
                "sha256:1ff173236ffa77239c75942a184d2774c7575d2dbc1303dbb8459a03cf907879",
                "sha256:897b2570fb4a1ab6e4533121ba61cf2d0557d14bd07f9fda68d803b759ae0f11"
            ],
            "markers": "python_version >= '3.8' and python_version < '4.0'",
            "version": "==2.7.0"
        },

Python 3.12.2

Hello,
The issue has been raised to the product team, and a fix should be released at the beginning of January. We apologize for the inconvenience and the delay.
Thank you for reporting this and for your patience.
Laure


Append current issues to README

It would be nice to have this project, code4sac/projects, be at the top of the list at github.com/code4sac. Right now it's way at the bottom and says "Updated on Aug 14, 2015". This is because a file needs to be changed to make the project "update".
My idea is to listen for every time an issue is created or commented on and then bump up that issue on a list in the README file. It could look like this:

Current Projects

WALKSacramento Project [Proposed 2/15/17]
OSMnx: X-Ray Sacramento's Street Network
Up to twenty?

Further reading:
https://developer.github.com/webhooks/

Ok, so you can try this out by posting an issue to https://github.com/natebass/natebass.github.io/issues
I haven't tested doing actions like assigning and labeling issues; there are probably bugs. But for creating, deleting, and commenting on issues this will post it to the project's README.md file.

There is a bug with the regular expression matching the list.
Here is an example: http://regexr.com/3fm79

This is now working perfectly as far as I can tell. Let me know your guys' feedback and if it is something you think we should use for the projects repository. @joelrip @KalebClark


Cannot use generator v3 generator outside of azure-sdk-net. ClientDiagnostics is internal to azure-sdk

I followed the steps mentioned here (Use outside of the azure-sdk-net repo) to try out the v3 generator, but the generator adds ClientDiagnostics to all my constructors which is basically inaccessible since it is marked as internal in Azure.Core. I think it is pretty cool that you're using HttpPipeline and most of the Azure.Core stuff for building the v3 clients, but I'm not sure how to use it outside of the azure-sdk-net repo. Am I missing something here? or following some incorrect steps to generate?

Have you added reference to Microsoft.Azure.AutoRest.CSharp?
  <PropertyGroup>
    <LangVersion>9.0</LangVersion>
    <IncludeGeneratorSharedCode>true</IncludeGeneratorSharedCode>
    <RestoreAdditionalProjectSources>https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json</RestoreAdditionalProjectSources>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20211112.1" />
  </ItemGroup>

I tried to add the reference you mentioned along with RestoreAdditionalProjectSources but it seems the version you mentioned isn't available in that source:
error NU1102: Unable to find package Microsoft.Azure.AutoRest.CSharp with version (>= 3.0.0-beta.20211110.2)
error NU1102:   - Found 144 version(s) in https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json [ Nearest version: 3.0.0-beta.20210604.3 ]

So I ended up adding 3.0.0-beta.20210604.3. Looks like it is now able to resolve RawRequestUriBuilder but ClientDiagnostics still doesn't work. Do you have a sample for the v3 version outside of azure-sdk-net?

Try
<PropertyGroup>
	<IncludeGeneratorSharedCode>true</IncludeGeneratorSharedCode>
	<RestoreAdditionalProjectSources>https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json</RestoreAdditionalProjectSources>
</PropertyGroup>

<ItemGroup>
	<PackageReference Include="Azure.Core" Version="1.21.0" />
	<PackageReference Include="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20210311.1" PrivateAssets="All" />
</ItemGroup>

Thanks @eskaufel , had the same issue and this helped.

I've just generated a new client and it is not compiling. As far as I see everything is included in the csproj file, as @eskaufel suggested, but I still get the following error message.
Unable to find package Microsoft.Azure.AutoRest.CSharp with version (>= 3.0.0-beta.20220221.1)
  - Found 144 version(s) in https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json [ Nearest version: 3.0.0-beta.20210604.3 ]
  - Found 0 version(s) in Microsoft Visual Studio Offline Packages
  - Found 0 version(s) in nuget.org

As far as I see there is a big gap between the available version (20210604.3) and the requested one (20220221.1), so what to do now?
Generated csproj:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <Nullable>annotations</Nullable>
  </PropertyGroup>

  <PropertyGroup>
    <LangVersion>8.0</LangVersion>
    <IncludeGeneratorSharedCode>true</IncludeGeneratorSharedCode>
    <RestoreAdditionalProjectSources>https://azuresdkartifacts.blob.core.windows.net/azure-sdk-tools/index.json</RestoreAdditionalProjectSources>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220221.1" PrivateAssets="All" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Azure.Core" Version="1.22.0" />
  </ItemGroup>

</Project>

Just so the project is aware, after trawling through a few threads etc on this @neilrees post above was most helpful.
You have to add in the additional Nuget source AND include prerelease to be able to see the magical "Microsoft.Azure.AutoRest.CSharp" package that everyone mentions.
Still doesn't work.

Yes, I tried the alpha of Azure.Core also. Didn't change anything.
There is nothing else in my project, just the auto-generated code.


New package: Mozilla.Thunderbird.es-MX version 128.2.0

Microsoft Reviewers: Open in CodeFlow

Possible duplicate package entry.
Similar installer SHA256 hash found in manifest:

InstallerSha256: 5a2abfc8ee18dbb9692d1214c31b39d68317b8b6a77831adac0ddcedd8a92194

manifests\m\Mozilla\Thunderbird\128.2.0

InstallerSha256: 63e51ac8bf37fb09f64c0549155c86c94d954969346ad96be06e20602ec4b176

manifests\m\Mozilla\Thunderbird\128.2.0

Verify by hash.


i like development

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

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

@ezioda004
Hi, this is not marked as invalid yet!

@GuillemPM Thanks for the heads up.


Possible conflict between sorting, totals and aggregation

Sorting does not go back to a good stage when coming back from the aggregation pipeline.
As I was inspecting the code in my browser, I observed that the sorting data source was passed on with the Totals subgrid instead of the data one which explains why I couldn't see any effect.
Could there be any conflict between sorting, totals and aggregation?

It is likely that the pipelines are not fully compatible and that their state may leak a bit. As we are ripping them out, we won't be doing further maintenance of them
Sorry again to have to post this notice. Its for everyone else's sake. I aware that you understand our current roadmap
For all interested readers. Please note that we are going to be dropping support for our aggregations, filtering, sorting and analytics services. Our reasoning is defined here. We will provide an API to allow you to update the grid's view of nested data and or subgrids, but the actual grouping or aggregations etc, must be done on your end. In short, Hypergrid is a view. That being said our existing analytics services are being exported out of Openfin's github domain, but they will still be available for private forking by those interested.

For all interested readers. Please note that we are going to be dropping support for our aggregations, filtering, sorting and analytics services. Our reasoning is defined here. We will provide an API to allow you to update the grid's view of nested data and or subgrids, but the actual grouping or aggregations etc, must be done on your end. In short, Hypergrid is a view. That being said our existing analytics services are being exported out of Openfin's github domain, but they will still be available for private forking by those interested.

@nclsclsn Some urgent items came up. We will have to revisit this in another week or so. Sorry for the delay.

@nclsclsn Confirming that this will be removed from the core dataModel interface and offered as example code.


Tunneling problem with CCD enabled bodies

Hello ! I'm encoutering a problem with my objects/bodies. I'm working on JS 3D video-game which takes place in space (so no gravity) but it isn't a space simulation. More like an arcade video game.
So, the player controls a space ship (third person view) and can fire lasers (they are small boxes geometry which are going pretty fast), I enabled CCD on both bodies (spaceship and each laser body/collider). But when a player fires lasers on another player's spaceship at a certain angle, we can experiment tunneling.
https://github.com/user-attachments/assets/76d83d8e-9cf7-4754-b0e8-c304b7afc733
I thought at first time it was because the lasers are moving really fast (like X-wings lasers in star wars movies) or because the spaceship collider geometry isn't clean, so maybe some faces of the model are glitching (it was a TriMesh).
So I tried several things:

added a RayCast on my laser firing so a ray testing is performed each step, on each laser, to know if a collider collide or will collide the laser pretty soon ( => the system worked but I experienced tunneling too)
modified my spaceship collider (custom) geometry to something more simple, less complex, even tested a relatively thick cuboid geometry
Lowered the lasers' speed to determine if the tunneling is related to it ( => it is, because I experience a lot less tunneling with low speed, but it's not the feeling I want).
modified my lasers collider geometry to make it a little bigger
set my bodies to setCanSleep(false) because it can happen when a spaceship isn't moving, so I thought maybe it was because of Sleeping mode
tried to edit IntegrationParameters.maxCcdSubsteps to increase it but didn't work I think ? Or at least I didn't notice changes in my problem

But nothing significant or relevant to fix the tunneling problem with all this.
Few things to note :

My laser colliders are set to sensor and the bodies to KinematicVelocityBased with CCD enabled;
My spaceship body is set to dynamic (and I control its translation with its velocity, it's not very clean but it do the job)
It's a multiplayer game so my physic engine is server-side and graphics engine is only client-side.

I don't really know what to do now. I will try to update this issue with a simplified version of my project I can share with you, if you're interested to help me. But if you already have some clues, especially with the IntegrationParameters.maxCcdSubsteps parameter which doesn't seem to change collision accuracy, feel free to share your thoughts :)

Have you tried using the built-in Rapier debugger yet?
I created a Three.js helper class that adds your world buffer to the scene as a 3D object:
https://github.com/doppl3r/resume/blob/master/src/js/Debugger.js
Simply run the update() method whenever you run world.step(). This should help visualize why your bodies appear to be tunneling with CCD enabled.

Thank you for your answer.
That's a really good point but actually, in my project, Rapier is server-side and my graphics engine (Three.js) is client-side. Rapier updates position and send them to clients. With my infrastructure, I don't think it'll be possible to send complete geometries to clients, or I'll need to implement the debugger server-side and client-side which seems a bit redundant...
And because I tested cuboid geometries instead of custom geometries for my bodies/colliders, a part of me think it might not help me as it should.
But I will try it anyway, as I tend to reproduce this bug in a smaller environment than my video-game prototype (like with no server at all, only client-side, with simpler shapes, etc....)

Thank you for your answer.
That's a really good point but actually, in my project, Rapier is server-side and my graphics engine (Three.js) is client-side. Rapier updates position and send them to clients. With my infrastructure, I don't think it'll be possible to send complete geometries to clients, or I'll need to implement the debugger server-side and client-side which seems a bit redundant...
And because I tested cuboid geometries instead of custom geometries for my bodies/colliders, a part of me think it might not help me as it should.
But I will try it anyway, as I tend to reproduce this bug in a smaller environment than my video-game prototype (like with no server at all, only client-side, with simpler shapes, etc....)

Thank you for your answer.
That's a really good point but actually, in my project, Rapier is server-side and my graphics engine (Three.js) is client-side. Rapier updates position and send them to clients. With my infrastructure, I don't think it'll be possible to send complete geometries to clients, or I'll need to implement the debugger server-side and client-side which seems a bit redundant...
And because I tested cuboid geometries instead of custom geometries for my bodies/colliders, a part of me think it might not help me as it should.
But I will try it anyway, as I tend to reproduce this bug in a smaller environment than my video-game prototype (like with no server at all, only client-side, with simpler shapes, etc....)

It seems rapier is easier to tunneling, compare to others physics engine.
https://lo-th.github.io/phy/index.html?E=w_rapier#simple
switch engine:

set objects num:

It seems rapier is easier to tunneling, compare to others physics engine. https://lo-th.github.io/phy/index.html?E=w_rapier#simple
switch engine:
set objects num:

Oh it's interesting ! Very nice tool to compare Js physics engines. thanks !
So yeah, Rapier seems easier to tunneling if substep is equal to 1, but if we set it to like 5 it seems more relevant.
Do you know if, in your example, the substep parameter can refer to integrationParameters.maxCcdSubsteps in Rapier.JS ? Or is it a tweak to increase global engine steps ?
Because in my project, I can't figure out how to modify integrationParameters.maxCcdSubsteps properly 😅


Could not pass event EntityDamageEvent to OldCombatMechanics v1.7.3

Info

Server version: 1.9.4
OldCombatMechanics version: v1.7.3
Server log file: https://pastebin.com/C16ntBtY
OldCombatMechanics config file: https://pastebin.com/7Vf3XHcg

Problem Description

Players using custom enchant weapons, armours  when fighting this error spamming in console (Crazy enchantments)

Duplicate of #312


Should 'logconfig' in gunicorn_conf.py takes value from environment variable?

According to start-dev.sh, it can take LOG_CONFIG
https://github.com/zhanymkanov/fastapi_production_template/blob/c61a71531b647a446b2c62eef6cec6d1d9ec3548/scripts/start-dev.sh#L14
But this is static value.
https://github.com/zhanymkanov/fastapi_production_template/blob/c61a71531b647a446b2c62eef6cec6d1d9ec3548/gunicorn/gunicorn_conf.py#L42
We can change to
logconfig = os.getenv("LOG_CONFIG", "/src/logging_production.ini")
What do you think? This will make LOG_CONFIG in .env has meaning for both dev and prod environment.

Neat! That's a good idea. Would be great to see a PR 👍

Ok, I'll do.

Just noticed that you are mentioning start-dev vs gunicorn_conf.
start-dev scripts uses uvicorn, while start-prod uses gunicorn and parses configs from gunicorn_conf.py, i.e. your suggestion will not work as described.
Anyway, thank you for your note!


Feature Request: Local File System Block Config for dbt Core Operation

Expectation / Proposal
Currently we can add a path for the project/profiles/working dir as a string. When we manage multiple dbt Core Operation it would be nice if we can define these paths as "Local File System" blocks instead.
My proposal is to add optional drop down selection fields for selecting a "Local File System" block for these three fields.
Traceback / Example
None

[ ] I would like to help contribute a pull request to resolve this!

Thanks for the suggestion; this sounds useful!


⚠ Bofrost.es has degraded performance

In 87eb4b0, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1693 ms

Resolved: Bofrost.es performance has improved in f47499e after 6 minutes.


LibSerialPort 0.2.0

I pinned the dependencies for compat in 6ee67bf9e281f5ea326371ccd72f464ea84354c1. Hopefully this will enable automated releases going forward.
@JuliaRegistrator register

Registration pull request updated: JuliaRegistries/General/4889
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" 6ee67bf9e281f5ea326371ccd72f464ea84354c1
git push origin v0.2.0


almsaeedstudio.com IS DOWN

Bandwidth limit reached.
This is a good problem.
Maybe time for new hosting provider?

Thank you for informing us! Our website is being transferred to a new hosting service. We apologize for the inconvenience.

have you ever considered hostgator ? They are very good

Almsaeed Studio is now up and running.
@kressly my experience with Godaddy's vps was really good before so I transferred to it since it's familiar to me. Thank you for the suggestion!