text:
policy: ensure Endpoint lock held while accessing identity

Because the endpoint identity is mutable, we need to hold the lock for the endpoint while we are updating the caches in the rules which specify what identities are selected by that rule. The endpoint's identity may change while we are updating the caches, which could result in an identity being left behind in said caches. Also, the endpoint's identity may be set to a nil value, which would result in a panic, since fields within the identity are dereferenced to access the identity's labels when the caches within the rules are updated.
The locks which check liveness with the endpoint are used here because if the endpoint is being deleted, we don't need to update the caches within the rules anymore for it. Also, when an endpoint is deleted, its security identity is set to nil in pkg/endpoint.go:LeaveLocked. Read-locking is needed because no updating of the security identity is performed here.
There is still a possibility that the endpoint's identity could be nil while itis 'alive', as the endpoint is inserted into the endpointmanager before its identity is allocated in daemon/endpoint.go:createEndpoint. This is OK, as once an endpoint's identity is changed, another regeneration will occur for it, which will populate the caches within the rules with its new identity. This case, while possible, is not probable.
Signed-off by: Ian Vernon ian@cilium.io
Related: #7837

This change is

test-me-please

test-me-please

test-me-please

Coverage increased (+0.006%) to 41.605% when pulling 4ed2d2f495af2ab496e6140fe290964a39e0f2e1 on pr/ianvernon/fix-security-identity-access into 9765d3adffd1554793aeee123a80b23e17b5b6ed on master.

One other query, this will block out some endpoint interactions whenever policy is being changed for the duration of an iteration over the policy repository (albeit, not policy computation so not super expensive). Do we have appropriate logging of delays in the other paths? For instance, when deleting an endpoint?

@joestringer are you asking whether we track how long it takes for mutexes to be acquired for an endpoint? We only have that in some places in the regeneration codepath.

test-me-please

Build failure: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/11884/testReport/junit/Suite-k8s-1/10/K8sServicesTest_Checks_ClusterIP_Connectivity_Checks_service_on_same_node/
Appears unrelated.

test-me-please

authors: coveralls ianvernon


text:
Add XValidations CRD marker support

This PR adds cherry-pick of an upstream change that adds support for XValidations CRD marker, allowing generation of the x-kubernetes-validations extension for the expression-based validation rules.
Also bumps the necessary dependencies to allow the cherry-pick.

superseded by https://github.com/cilium/controller-tools/pull/5 as we are already on top of a newer upstream version

source: gharchive/pull-request

repo: cilium/controller-tools

license_type: permissive

license_source: github-api


text:
cleanup: add linters on error checks and return

After the following cleanup:

https://github.com/cilium/tetragon/pull/976
https://github.com/cilium/tetragon/pull/983

It would be nice to enable these linters about errors, but it will be some amount of work since they return a lots of alerts.

errcheck (this one is particularly important)
nilerr
errorlint
nilnil

We could see if we can then catch situations where we use the return value before checking the error as well.

this is old and happy with linters now. closing...

source: gharchive/issue

authors: jrfastab mtardy

repo: cilium/tetragon


text:
Update scalafmt-core to 2.5.3

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

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, semver-patch

Codecov Report

Merging #1473 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1473      +/-   ##
==========================================
- Coverage   85.89%   85.85%   -0.05%
==========================================
  Files          57       57
  Lines        2184     2184
  Branches      109      109
==========================================
- Hits         1876     1875       -1
- Misses        308      309       +1

Impacted Files
Coverage Δ

...rc/main/scala/io/circe/shapes/SizedInstances.scala
78.57% <0.00%> (-14.29%)
:arrow_down:

...re/shared/src/main/scala/io/circe/KeyDecoder.scala
97.29% <0.00%> (-2.71%)
:arrow_down:

...les/core/shared/src/main/scala/io/circe/Json.scala
80.44% <0.00%> (ø)

.../core/shared/src/main/scala/io/circe/Decoder.scala
85.01% <0.00%> (ø)

...rc/main/scala/io/circe/numbers/BiggerDecimal.scala
85.38% <0.00%> (ø)

...re/shared/src/main/scala/io/circe/JsonNumber.scala
96.38% <0.00%> (+2.40%)
:arrow_up:

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 ada52e2...423b7b9. Read the comment docs.

authors: codecov-commenter scala-steward

repo: circe/circe

license_source: bigquery


text:
Some copy edits.

Simple copy edits.

I love this. Thank you @felicianotech!

@ryanwohara Is that your LGTM?

thanks for this !! @felicianotech added one more change but LGTM 👍

authors: felicianotech iynere ryanwohara

repo: circleci/circleci-images

license: mit


text:
Unable to install with PIP

🐛 Summary
Unable to use PIP to do a clean pshtt install on a new machine. First you receive a warning about dependencies, then an error for recursive evaluation going too deep.
I was able to get this to work in 2018 and 2019, but not in 2021 (installing on a new machine). If I had to guess, I'm thinking the requirements.txt needs to be updated with tighter version constraints.
for my VM, it runs for 24 hours then ends up with this error (full error in the screenshot below)
Error: pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
To reproduce
Steps to reproduce the behavior:

Create a new VM with windows subsystem for linux, install python3 + PIP from the bash shell
run command  pip install pshtt
wait for it to time out / error (may take 24 hours depending on how fast dependencies evaluate)

Error logs from Console##
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime.
ERROR: Exception:
Traceback (most recent call last):
File "/home/user/.local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
status = self.run(options, args)
File "/home/user/.local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
return func(self, options, args)
File "/home/user/.local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 316, in run
requirement_set = resolver.resolve(
File "/home/user/.local/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve
self._result = resolver.resolve(
File "/home/user/.local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/home/user/.local/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 364, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 2000000
Add any screenshots of the problem here.

Same issue here. Crazy CISA hasn't acknowledged this.

I am seeing the same error when attempting to install using the PIP included in the official Python for Windows on Windows 10 and Windows Server 2016.
On Ubuntu 20.04 LTS, I am seeing this error with it's pip 20.0.2 package:
ERROR: Could not find a version that satisfies the requirement nassl<2.3.0,>=2.2.0 (from sslyze<3.0.0,>=2.1.3->pshtt) (from versions: 0.13.4.win32, 0.13.1, 0.13.2, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.17.0, 1.0.1, 1.0.2, 1.0.3, 3.0.0, 3.1.0, 4.0.0) ERROR: No matching distribution found for nassl<2.3.0,>=2.2.0 (from sslyze<3.0.0,>=2.1.3->pshtt)

This package currently only supports Python 3.6 and 3.7. The current configuration does not enforce that limitation, but it is a problem on installation because there are dependency versions that do not support >py3.7.

This package currently only supports Python 3.6 and 3.7. The current configuration does not enforce that limitation, but it is a problem on installation because there are dependency versions that do not support >py3.7.

Instead of just closing the issue could a PR be created to resolve the problem?

authors: NeckBeardPrince erowley2501 infopowerbroker mcdonnnj

repo: cisagov/pshtt


text:
Fsoc 24

Description
Every 24 hours, FSOC will check if there is a update available. It will create a temp file that holds the most recent timestep
Type of Change

[ ] Bug Fix
[x] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

[x] I have read the contributing guidelines
[x] Existing issues have been referenced (where applicable)
[x] I have verified this change is not present in other open pull requests
[ ] Functionality is documented
[x] All code style checks pass
[ ] New code contribution is covered by automated tests
[ ] All new and existing tests pass

Codecov Report

Merging #145 (248e809) into main (62d908f) will decrease coverage by 0.57%.
The diff coverage is 0.00%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main     #145      +/-   ##
==========================================
- Coverage   32.34%   31.77%   -0.57%
==========================================
  Files          27       27
  Lines        3568     3632      +64
==========================================
  Hits         1154     1154
- Misses       2323     2387      +64
  Partials       91       91

Impacted Files
Coverage Δ

cmd/version/version.go
4.83% <0.00%> (-6.28%)
:arrow_down:

... and 2 files with indirect coverage changes

@pnickolov it is great to have the ability to check for available updates. Can we make this to not be the default behavior. This kind of hidden work raises some brows, in most cases would be undesirable and AFAIk it is somewhat unorthodox for an OSS CLI tool. On top of being a bad practice (IMO), I have a few practical cases where it would be undesirable:

I do a local operation (like fsoc solution bump), but now I have to wait for a network call for something that I did not ask for
Version check fails (or release location changed) - is the exit status going to reflect the status of my operation or the version update?

Here are some suggestions on how to make it less intrusive, ordered by my preference:

Make this run only as part of fsoc version so it can show you your version and latest available version, keep the flag for disabling the remote check
Make this a "best effort" operation - if it is done by the time the command is done, then tell me about the new version (and/or store the result so you can keep warning me even without making the network call), if it is not done, try next time. In short - never make fsoc run longer because of the version check
Have a config option to disable this (I suspect it will be a popular option, especially for CI operations and internal)

and rather add a new command for it or only do the check as part of fsoc version.

In reply to @pavel-georgiev : I agree with some of the issues but we still expect significant changes and making sure the latest version is in use is important.
I think @GDW1 has addressed most of the issues:

the check is best effort; if it fails, it will be warned but the operation and its exit code are never affected
the version check is done in parallel with the main operation
while very fast operations will still wait for the version check to complete at exit, the check is performed no more often than once a day, so it will not affect most operations (only one per day, less than login)
there is a global command-line option AND an environment variable to disable the version check (for CI or in environments that don't have access to github or writeable temp dir)

authors: GDW1 codecov-commenter pavel-georgiev pnickolov

repo: cisco-open/fsoc


text:
Encoding at 30kbps bitrate broken in v1.3-1552-g664127f

When trying to encode a YUV file with the following encode configuration with bitrate set to 30kbps, only 3 frames are encoded successfully when using  v1.3-1552-g664127f.  This works OK in the older version v1.3-1314-g0fd88df.  Higher bitrates from 300kbps upwards also work OK.
New broken version v1.3-1552-g664127f
Width:		1280
Height:		720
Frames:		3
encode time:	0.312591 sec
FPS:		9.597205 fps
Old working version v1.3-1314-g0fd88df
Width:		1280
Height:		720
Frames:		285
encode time:	1.294076 sec
FPS:		220.234360 fps

I'm not sure how the version numbers work in the openh264 repo, but the v1.3 comes from git describe --tags --long master, but I noticed that you do have tags up to v1.6.0.
I'm comparing openh264 versions between the one that shipped in chrome m54 and the openh264 master.

Did you calculate the actual bitrate in these two versions? According to your encoder configuration, Some frames should be skipped when 720P with 30kpbs.  from our testing, v1.3-1552-g664127f version output bitrate match the target bitrate more closely.

The latest code should match the user's target. so close this issue. if still have questions, please submit a new one. thanks!


text:
Semi-Gibberish displayed video (screenshot attached)

I am seeing semi-gibberish(pieces are broken but inividually do contain various parts of the video feed) when I browse at http://127.0..0.1:8082/index. what am i doing wrong -- seems like some error in the encoder/decoder cycle ?

Hey,
It seems like this issue #11, could you try changing the width and height variable (line 13,14) in livestream.js ?
Try with the value 432x240.
If that works could you tell me which gopro you are using and which firmware version ?

Yes value 432x240 fixed it. Sorry for the duplicate
If that works could you tell me which gopro you are using and which firmware version ?
GoProH4 Black firmware version 3.0.0

Using value 432x240 fixes the problem also for me. Thank you!
Camera: GoPro HERO 4 Silver
Firmware: 03.00.00
Server: Raspbian 4.9.2-10 @ ffmpeg version N-80976-g9157ac2

If above values don't work, use resolution 640x480
Works for GoPro HERO 7 Silver

authors: ahnl citolen karjri saket424


text:
Get active parcel nft user address and display in PlotDetail/popup

Use the Opensea API (https://docs.opensea.io/reference/retrieving-a-single-asset) to retrieve asset data and render the user address in PlotDetail/Map popup.
You may have to add an API key in your env variables to get less aggressive rate limiting from the Opensea API.

@ssdsr It sends two requests when clicking on a plot. Can you check it?

The popup for the first selected plot does not show the owner address.

@ssdsr It shows different owner addresses.

Did you check the console / network tab? I think it is because when clicking on the map it send two requests and this may cause the API to reject the request. Even we have an API key, we need a proxy API to cache requests. I was planning to use https://vercel.com/integrations/upstash with this project for the same purpose: https://github.com/trkaplan/opensea-api-proxy

I checked console and network tab. Yeah it sends two request now and four requests sometimes. It may cause the issue to showing different owner address or "undefined" text.
I think we can add a hook to fetch NFT metadata from opensea against the selected plot id.

I can take a look at this today. I had a hook created but was getting a lot more re-renders on the map component.
I can take a look at this again today. I'll recreate the hook. If we're not displaying the address on the pop-up, it should be easier to fix

@trkaplan @blackeagle0188 I added a hook for fetching nft metadata and prevented the duplicate requests. Should only be sending 1 request per active plot change now :thumbsup:

@trkaplan is implementing proxy/caching in the scope of this task?
I found this walkthrough that seems along the lines of what you were looking for: https://upstash.com/blog/netlify-graph-upstash. I don't have access to the team Vercel account though unfortunately.

That's weird I'm only seeing one (split into the preflight and the actual request). Are you seeing differently than this?:

That's weird I'm only seeing one (split into the preflight and the actual request). Are you seeing differently than this?:

@ssdsr I am seeing this and it sends 2 requests for 1 active plot.

Anyway, please change the 2 lines code I mentioned above and let's merge this PR

@trkaplan is implementing proxy/caching in the scope of this task?
I found this walkthrough that seems along the lines of what you were looking for: https://upstash.com/blog/netlify-graph-upstash. I don't have access to the team Vercel account though unfortunately.

It does not look like a frontend task, but I think it can be easily implemented with the source code I shared. (open-sea-api-proxy)
Looks like it works now but I think It is important during the launch because many people may use the API after a citydao tweet and they may get error messages from the API
But If you prefer to work on another task, you can work on the showing ENS names task first.

authors: blackeagle0188 ssdsr trkaplan

repo: citydaoproject/app

license: MIT


text:
[New iOS] No jailbreak for 13.1.2

Apple is on fire lately, dropping releases left and right. 13.1.2 dropped this afternoon, no jailbreak yet.

All the releases! All the time!
Thanks


text:
ytop graphics have broken spacing compared to gotop

ytop graphics have a quirk, the points seem to be improperly spaced when the terminal window is maximized.
Example:

This is gotop running at the same time:

Required information:

ytop version (ytop -V): ytop v0.4.2 (https://github.com/cjbassi/ytop#f86926c7)
The output of uname -a: Linux Dianakko 5.4.17-1-MANJARO #1 SMP PREEMPT Tue Feb 4 11:40:50 UTC 2020 x86_64 GNU/Linux

Include any of the following information if relevant:

Terminal emulator (e.g. iTerm or gnome terminal): Gnome Terminal 3.34.2
tmux version (tmux -V): N/A
Any relevenat hardware info: N/A

Please copy or attach ~/.local/state/ytop/errors.log if it exists and contains logs: N/A

Confirmed, I have that too.

same

new graphs are awful compared to the good-ol' gotop: they have broken spacing and they are flickering (when graph moves dots are changing their positions)

I think this is fixed in the latest release of tui. There were some breaking changes in the latest release, so it's going to take some work to upgrade. See #69 for an issue relating to upgrading tui.

Should be fixed in the latest release!

I can confirm it's fixed :clap:

authors: amyspark cjbassi mighty9245 wsturgiss

repo: cjbassi/ytop


text:
README code sample is incorrect

The imports don't match the usages!

Fixed by @heckad in #35

repo: cjrh/aiorun


text:
Correct Regex for Parsing Workspace.bzl

The values the regex is searching for have changed and the scripts no longer work. I have edited the regex to work with the current releases of tensorflow.

@cjweeks Ping. The setup process doesn't work without this change.

authors: MatthewScholefield acidtonic

repo: cjweeks/tensorflow-cmake


text:
Beq constraint in data-flow graph

Beq constraints are now added properly to data-flow graphs.

🚀

authors: LexMonster alexanderlackner

repo: cksystemsgroup/monster


text:
Not all directories showing up when adding.

I'm using musikcube on the Ubuntu for WSL. When I enter the home directory of my windows install (/mnt/c) only 6 directories are listed.

musikcube will only show directories for which it has found and indexed music -- do any of the missing directories contain audio files? :)

Oh, I see, this is while adding music, not when browsing already-added stuff by directory. Interesting. I was able to reproduce the issue -- I'll see if I can figure out what's going on...

Thanks for reporting this, the issue has been fixed and will be part of the next release.

Fixed in https://github.com/clangen/musikcube/releases/0.99.0

authors: AbramHansen clangen

repo: clangen/musikcube


text:
autoPlayVisible should become an external plugin

Talking with @thiagopnts we thought that autoPlayVisible option should be moved to an external plugin, avoiding the need of scrollmonitor dependency on the default bundle.

removed at https://github.com/clappr/clappr/commit/3a62542eb63272859fff4e9de8c4b4bb7783b149

Seems to me this issue should be closed then. Please reopen if there's anything else to do.

authors: flavioribeiro thiagopnts towerz

repo: clappr/clappr


text:
Transform won't update preventing snapping behavior in scrollable grid.

Hi @clauderic and other contributors.
I'm using dnd-kit for couple of months and stuck into one issue where I need clamping/snapping behavior in scrollable grid. When I drag an element within a scrollable container the element won't snap to its desired location as the transform property in modifier won't update its x & y position once the dragging element reaches bottom or top viewport of its container. As the container continues to scroll and transform won't update, I'm not able to calculate the next position where the dragging element should snap.
Is there any way I can calculate how much transform x & y properties have changed while dragging.

I have the same issue, the transformation returned in the modifier is not applied on the onDragEnd event. Is there perhaps another way of accessing the changes made by the modifier?

authors: malviys victortimsit

repo: clauderic/dnd-kit


text:
Retry once if Net::HTTPFatalError from S3

Sometimes Amazon S3 returns 500 error, but we can simply retry and
solve this problem.

Coverage decreased (-23.4%) to 76.563% when pulling 6364ae6743f6665f08b568e365605944bf90a380 on retry-open into 24872139a65b446318c109643f1cd82ce6ef3c4c on master.

Coverage remained the same at 100.0% when pulling 5088330466be63d4d0d5cc0b9c9d904d5df077f8 on retry-open into 24872139a65b446318c109643f1cd82ce6ef3c4c on master.

Coverage remained the same at 100.0% when pulling 5088330466be63d4d0d5cc0b9c9d904d5df077f8 on retry-open into 24872139a65b446318c109643f1cd82ce6ef3c4c on master.

authors: claudiob coveralls

repo: claudiob/star


text:
Index page is missing

Frozen Flask doesn't create the index page

Fix with #5eac0623b138a4ba215c144c8aecc1ebe9c570b5


text:
feat: add opentelemetry 1.0.0beta7 release

update opentelemetry with release 1.0.0beta7

:tada: This PR is included in version 1.192.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

repo: claylo/pecl-info


text:
🛑 livevault is down

In 83dc245, livevault (https://livevault.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: livevault is back up in ce313be.

repo: claytonplong/backup-uptime


text:
🛑 livevault is down

In 48c0750, livevault (https://livevault.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: livevault is back up in a68b1ec.


text:
🛑 livevault is down

In e8e3292, livevault (https://livevault.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: livevault is back up in 9241a3a.


text:
🛑 livevault is down

In 9dc692c, livevault (https://livevault.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: livevault is back up in b360868.


text:
🛑 www.offsitedatasync.com is down

In 7ae216b, www.offsitedatasync.com (https://www.offsitedatasync.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: www.offsitedatasync.com is back up in d23e076.


text:
🛑 www.offsitedatasync.com is down

In d731f1b, www.offsitedatasync.com (https://www.offsitedatasync.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: www.offsitedatasync.com is back up in c59cb58.


text:
Own tile download implementation

Download OSM tiles directly from our python code instead of calling an external program as a subprocess (thank you for your service, brave little perl script o7).

The test failure seems to be a type hint that didn't exist yet in python 3.6?
.tox/py36/lib/python3.6/site-packages/clldutils/text.py:130: in <module>
    def replace_pattern(pattern: typing.Union[str, re.Pattern], repl, text: str, flags=0) -> str:
E   AttributeError: module 're' has no attribute 'Pattern'

(also, it seems to happen in clldutils, not in this package)

Okay, nevermind, I just dropped python 3.6 support (like clldutils did).

repo: cldf/cldfofflinebrowser


text:
vendor: Update virtcontainers vendoring

This commit vendors the latest version of virtcontainers. The main
purpose is to include the fix preventing the cleanup of the container
after a "start" or "stop" failed.
Shortlog:
5a57b52 virtcontainers: Do not rollback by deleting container or pod
10c38ae qemu: Move to qemu 2.11
80996b3 virtcontainers: kata_agent: Handle several /dev/shm
08909b2 virtcontainers: Don't ignore container mounts based on their path
423e864 qemu: refector createPod()
8c5fb45 qemu: only set systemd related kernel parameters when needed
463e6de qemu: append kernel root parameters iff root image is provided
4f57b65 hypervisor: add initrd image support
249945f virtcontainers: pod: remove cold plug support
47edcb3 virtcontainers: vfio: add support for hot plugging VFIO devices
4bca929 gitignore: merge gitignore files
5f1bc49 virtcontainers: qemu: Call removeDeviceFromBridge for virtio-blk
0916bb6 virtcontainers: agent: use onlineCPUMem to online vCPUs
bfd497f virtcontainers/tests: Disable selected tests for uid != 0
ce37ac1 lint: Rename vcMock to vcmock
b162863 lint: Fix virtcontainers staticcheck errors
d51a5e3 lint: Fix virtcontainers unused errors
97d2ef2 lint: Annotate unused virtcontainers iota consts
9b98c26 lint: Fix virtcontainers maligned errors
cc09b01 lint: Fix virtcontainers structcheck errors
c4e8590 lint: Fix virtcontainers unconvert errors
bd8b585 lint: Fix virtcontainers golint errors
3aad4f4 lint: Fix virtcontainers gofmt errors
d5b0661 vendor: Vendor github.com/safchain/ethtool
96c4977 utils: Use go env to discover the GOPATH
b6e6924 hyperstart_agent: ipv6: Skip ipv6 gateway for hyperstart agent
9f44729 kata_agent: ipv6: Skip ipv6 gateway for kata agent
21f8911 virtcontainers: kata_agent: Add virtio-scsi support
7e85032 virtcontainers: kata_agent: Use 9p2000.L version for 9p
8152e15 virtcontainers: kata_agent: Factorize appending devices
c2e9801 virtcontainers: kata_agent: Rely on Storage instead of Device for rootfs
dad59fe vendor: Move virtcontainers to project's root directory
Fixes #1089
Signed-off-by: Sebastien Boeuf sebastien.boeuf@intel.com

@grahamwhaley yep definitely, I hope nothing got broken...

repo: clearcontainers/runtime


text:
Corrigindo hardcoded em add_event_detect

No arquivo pykeypi.py, os números das portas da linha estão sendo definidos duas vezes, no array __row e também nas chamadas do método add_event_detect. Caso seja necessário modificar as portas, é necessário alterar o código em dois lugares. Fiz uma pequena correção, referenciando o array nas chamadas do método para que a alteração das portas seja feita apenas em um local.

Bem observado, obrigado pela correção/melhoria.

authors: cleitonbueno matheusaraujo

repo: cleitonbueno/pykeypi


text:
Support Fastify v5

Preliminary Checks

[X] I have reviewed the documentation: https://clerk.com/docs

[X] I have searched for existing issues: https://github.com/clerk/javascript/issues

[X] I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)

[X] This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.

Reproduction

Publishable key
pk_test_Zml0dGluZy15YWstOTguY2xlcmsuYWNjb3VudHMuZGV2JA
Description
When installing fastify v5, the backend immediately crashes with the following error:
[08:51:11 UTC] ERROR: fastify-plugin: @clerk/fastify - expected '4.x' fastify version, '5.0.0' is installed
    err: {
      "type": "FastifyError",
      "message": "fastify-plugin: @clerk/fastify - expected '4.x' fastify version, '5.0.0' is installed",
      "stack":
          FastifyError: fastify-plugin: @clerk/fastify - expected '4.x' fastify version, '5.0.0' is installed
      "code": "FST_ERR_PLUGIN_VERSION_MISMATCH",
      "name": "FastifyError",
      "statusCode": 500
    }

Environment
-

Having the same issue

Hi, thanks for the issue. The error comes from https://github.com/clerk/javascript/blob/c49eaa7f3ab791c38b8a1dfebb3a05e21c29dfc4/packages/fastify/src/clerkPlugin.ts#L26-L29 so it's expected to happen. Currently the plugin is only compatible with Fastify v4.
The migration guide is here for reference: https://fastify.dev/docs/latest/Guides/Migration-Guide-V5/
For example, they now require Node.js 20 whereas the Clerk package allows 18.17.0 or later. So we'll need to cut a new major version in doing this upgrade. We'll work on it 👍

Support for Fastify v5 has been added in @clerk/fastify@2.0.0. Please note that it's not backwards-compatible with Fastify v4, you will have to use Fastify v5.

authors: Floriferous LekoArts berkerdemirer

repo: clerk/javascript


text:
Improves sync/link for dev and prod instances

Type of change

[ ] 🐛 Bug fix
[x] 🌟 New feature
[ ] 🔨 Breaking change
[ ] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Packages affected

[x] @clerk/clerk-js
[ ] @clerk/clerk-react
[x] @clerk/nextjs
[x] @clerk/remix
[ ] @clerk/types
[ ] @clerk/themes
[ ] @clerk/localizations
[ ] @clerk/clerk-expo
[x] @clerk/backend
[x] @clerk/clerk-sdk-node
[ ] @clerk/shared
[x] @clerk/fastify
[ ] @clerk/chrome-extension
[ ] gatsby-plugin-clerk
[ ] build/tooling/chore

Description
This PR

Introduces __session_uat

Keep track when session was last updated in a cookie named __session_uat.

Throw interstitial when __session_uat is missing for satellite apps

Now interstitial throws for apps with dev instances when syncing is needed

Refactor sync/link flow inside clerk-js

Don't fetch dev JWT for dev browser until sync link fires
Set up dev browser after sync/link
Potential redirect back to satellite with a safely store jwt in dev browser

Review per commit might be easier

[x] npm test runs as expected.
[x] npm run build runs as expected.

!snapshot

Hey @panteliselef - the snapshot version command generated the following package versions:

Package
Version

@clerk/backend
0.23.1-snapshot.e5d9418

@clerk/chrome-extension
0.3.10-snapshot.e5d9418

@clerk/clerk-js
4.47.1-snapshot.e5d9418

eslint-config-custom
0.3.0

@clerk/clerk-expo
0.18.1-snapshot.e5d9418

@clerk/fastify
0.4.8-snapshot.e5d9418

gatsby-plugin-clerk
4.3.10-snapshot.e5d9418

@clerk/localizations
1.18.0

@clerk/nextjs
4.21.2-snapshot.e5d9418

@clerk/clerk-react
4.20.0

@clerk/remix
2.6.8-snapshot.e5d9418

@clerk/clerk-sdk-node
4.10.7-snapshot.e5d9418

@clerk/shared
0.19.0

@clerk/themes
1.7.5

@clerk/types
3.42.0

Tip: use the snippet copy button below to quickly install the required packages.
# @clerk/backend
npm i @clerk/backend@0.23.1-snapshot.e5d9418

# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.3.10-snapshot.e5d9418

# @clerk/clerk-js
npm i @clerk/clerk-js@4.47.1-snapshot.e5d9418

# eslint-config-custom
npm i eslint-config-custom@0.3.0

# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.18.1-snapshot.e5d9418

# @clerk/fastify
npm i @clerk/fastify@0.4.8-snapshot.e5d9418

# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.3.10-snapshot.e5d9418

# @clerk/localizations
npm i @clerk/localizations@1.18.0

# @clerk/nextjs
npm i @clerk/nextjs@4.21.2-snapshot.e5d9418

# @clerk/clerk-react
npm i @clerk/clerk-react@4.20.0

# @clerk/remix
npm i @clerk/remix@2.6.8-snapshot.e5d9418

# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.10.7-snapshot.e5d9418

# @clerk/shared
npm i @clerk/shared@0.19.0

# @clerk/themes
npm i @clerk/themes@1.7.5

# @clerk/types
npm i @clerk/types@3.42.0

!snapshot

Hey @panteliselef - the snapshot version command generated the following package versions:

Package
Version

@clerk/backend
0.23.1-snapshot.d6c3435

@clerk/chrome-extension
0.3.10-snapshot.d6c3435

@clerk/clerk-js
4.47.1-snapshot.d6c3435

eslint-config-custom
0.3.0

@clerk/clerk-expo
0.18.1-snapshot.d6c3435

@clerk/fastify
0.4.8-snapshot.d6c3435

gatsby-plugin-clerk
4.3.10-snapshot.d6c3435

@clerk/localizations
1.18.0

@clerk/nextjs
4.21.2-snapshot.d6c3435

@clerk/clerk-react
4.20.0

@clerk/remix
2.6.8-snapshot.d6c3435

@clerk/clerk-sdk-node
4.10.7-snapshot.d6c3435

@clerk/shared
0.19.0

@clerk/themes
1.7.5

@clerk/types
3.42.0

Tip: use the snippet copy button below to quickly install the required packages.
# @clerk/backend
npm i @clerk/backend@0.23.1-snapshot.d6c3435

# @clerk/chrome-extension
npm i @clerk/chrome-extension@0.3.10-snapshot.d6c3435

# @clerk/clerk-js
npm i @clerk/clerk-js@4.47.1-snapshot.d6c3435

# eslint-config-custom
npm i eslint-config-custom@0.3.0

# @clerk/clerk-expo
npm i @clerk/clerk-expo@0.18.1-snapshot.d6c3435

# @clerk/fastify
npm i @clerk/fastify@0.4.8-snapshot.d6c3435

# gatsby-plugin-clerk
npm i gatsby-plugin-clerk@4.3.10-snapshot.d6c3435

# @clerk/localizations
npm i @clerk/localizations@1.18.0

# @clerk/nextjs
npm i @clerk/nextjs@4.21.2-snapshot.d6c3435

# @clerk/clerk-react
npm i @clerk/clerk-react@4.20.0

# @clerk/remix
npm i @clerk/remix@2.6.8-snapshot.d6c3435

# @clerk/clerk-sdk-node
npm i @clerk/clerk-sdk-node@4.10.7-snapshot.d6c3435

# @clerk/shared
npm i @clerk/shared@0.19.0

# @clerk/themes
npm i @clerk/themes@1.7.5

# @clerk/types
npm i @clerk/types@3.42.0

Closing in favour of #1402 which reduces complexity

authors: clerk-cookie panteliselef

repo: clerkinc/javascript


text:
🛑 Click DMS is down

In e6edb54, Click DMS (https://myclickdealer.co.uk) was down:

HTTP code: 403
Response time: 399 ms

Resolved: Click DMS is back up in 775e793.

repo: clickdealer/upptime


text:
Milestone 4: Category Filter

Completed:

[x] Gitflow
[x] Create a new Redux action (CHANGE_FILTER) and a filter reducer.
[x] Add a new presentational component (CategoryFilter).
[x] Implement filtering of books in the table by category.
[x] ESLint
[x] Stylelint

Thanks, @krys2fa! 👍

repo: cliftondavies/Magic-Books


text:
Alternative Refrigerant Page & content

[ ] learn to write Markdown
[ ] learn to run a local copy of The Handbook on your machine and deploy it live for the best writing experience
[ ] Content update

@mozartInTheJungle - I added a checkbox about learning to deploy The Handbook on your machine for the best writing experience.

authors: futuresoup mozartInTheJungle


text:
uv-search 小米手机 clearabled 不生效

小米手机 有时生效有时不生效

已经优化了  你更新试试呢

authors: chuntaoXu climblee

repo: climblee/uv-ui


text:
[MergeConvertFilterPerfmonLogs] ERROR: Unable to find the converted log file

Hi,
I am unable to generate the HTML Report. Amy suggestion?
[MergeConvertFilterPerfmonLogs] ERROR: Unable to find the converted log file: C:\Users..\AppData\Local\Temp\78480824-0f57-4089-84a0-238af1e341ef_FilteredPerfmonLog.csv. Relog.exe failed to process the log. Review the results above this line. If relog.exe continues to fail, then try running Relog.exe manually and/or contact Microsoft Customer Support Servers for support on Relog.exe only. PAL is not supported by Microsoft.
SCRIPT ARGUMENTS:
Log: ....\DataCollector0130310201805.blg
ThresholdFile: C:\Program Files\PAL\PAL\SystemOverview.xml
AnalysisInterval: AUTO
IsOutputHtml: $True
IsOutputXml: $False
HtmlOutputFileName: [LogFileName]PAL_ANALYSIS[DateTimeStamp].htm
XmlOutputFileName: [LogFileName]PAL_ANALYSIS[DateTimeStamp].xml
OutputDir: [My Documents]\PAL Reports
AllCounterStats: $False
NumberOfThreads: 2
IsLowPriority: $True
DisplayReport: True

The error indicates that PAL was not able to convert the counter log from BLG to CSV using Relog.exe. This is most often caused by the counter log (BLG) being corrupted. Try running Relog.exe manually against the counter log to convert it to CSV and see if you get an error message. Also, try opening the counter log in Performance Monitor to see if the counter log is usable or not. If you are able to do these things and are still having this error in PAL, then send me the counter log and I can debug it. Try to attach the log to this posting or if that fails, upload to http://bit.ly/PALUpload

The issue is GetUserTemp in Ps1 script. For some reasson it don't have access to read/write in windows 10.
Suggestion would be to use c:\PAL for it

Issue with merging more than 1 blg file, Getting the same error as the original post - [MergeConvertFilterPerfmonLogs] , the blg is good - opens with perfmon, tried relog to convert couple to csv , but PAL doesn't merge CSV.
So issue remains while merging, using PAL individually with the files works fine.

Merging log files is very problematic. The logs have to be from the same PC and have sequential times. Otherwise the merge will fail. I was not going to add log merging into PAL simply due to this fact. Manually use relog.exe to merge the logs together and then try again with PAL as a single log. There is nothing else I can do.

Good to know, thanks Clint.

authors: King4s SQLRocker clinthuffman hodoszoe

repo: clinthuffman/PAL


text:
S3 deployment script

This script uploads the contents of the _site directory to a specified S3 bucket and prefix. It has a couple of features to make it nicer than a simply aws s3 sync:

Sets Content-Type and Cache-Control metadata on the uploaded objects. Using the --production flag will use long cache times on static resources to improve site performance.
Sets redirects metadata for .html files which have been renamed with the extension omitted. This means that we can remove these extensions without breaking old links.

@remusao Updated from your comments.


text:
Contribute to the doc

As someone who isn’t the author of this, you have super powers! You can see what is unclear in the documentation.
So please, when you try to use this script, if you notice anything unclear in the README, comment on this issue or open a PR, so that other people would find their way more easily. Thanks a lot!

I am willing to work on this, please assign it to me.

Thanks @evansusu !
I think multiple persons can work on this in parallel as they may spot different things, but I don’t mind assigning it to you for a while.

Please let me know if you need any help.

authors: cljoly evansusu

repo: cljoly/readme-in-static-site


text:
ssh_wait_time is deprecated

new option is pause_before connecting as previous is deprecated within packer https://packer.io/docs/templates/communicator.html#ssh_timeout
Also time is set to 166m by default so have flipped that to 10m to make it work :-)

Thank you!

authors: ZephrFish clong

repo: clong/DetectionLab


text:
Set writeable working directory for sysbench tests

Adds a writeable emptyDir volume to use as working directory for sysbench so that fileio tests can complete.
Currently fileio tests fail as the container working directory is read only:
sysbench 1.0.17 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time

Extra file open flags: (none)
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing sequential write (creation) test
FATAL: Cannot create file 'test_file.0' errno = 9 (Bad file descriptor)

After the change the fileio test completes:
sysbench 1.0.17 (using system LuaJIT 2.1.0-beta3)

128 files, 8192Kb each, 1024Mb total
Creating files for the test...
Extra file open flags: (none)
Creating file test_file.0
..
1073741824 bytes written in 7.06 seconds (144.97 MiB/sec).
..
Removing test files...

Can one of the admins verify this patch?

/rerun all

Results for ec2_jjb

Test
Result
Retries
Duration (HH:MM:SS)

test_sysbench
Pass
0
00:01:31

authors: comet-perf-ci jtaleric martineg

repo: cloud-bulldozer/benchmark-operator


text:
Post process fio result data

This feature adds the capability to calculate the average iops over multiple samples.

Sample of visualization -
http://marquez.perf.lab.eng.rdu2.redhat.com:3000/d/-8bpuoNWk/fio-summary?orgId=1&from=1564514191708&to=1564517172496&var-UUID=45b586e0834a63976d0b03d239231c61&var-Operation=All&var-io_size=All&var-log_interval=30s

repo: cloud-bulldozer/snafu


text:
🛑 cbn.id is down

In 5e8e6d2, cbn.id (https://cbn.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cbn.id is back up in 8038378.

repo: cloudbip/upptime


text:
🛑 cbn.id is down

In 7bf0c45, cbn.id (https://cbn.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cbn.id is back up in 2bd273a.


text:
🛑 cbn.id is down

In fbc45d0, cbn.id (https://cbn.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cbn.id is back up in f6915b7.


text:
🛑 portal.cloudkilat.com is down

In 75236d8, portal.cloudkilat.com (https://portal.cloudkilat.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: portal.cloudkilat.com is back up in a4ea4c2.


text:
🛑 puskomedia.id is down

In 2f5473a, puskomedia.id (https://puskomedia.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: puskomedia.id is back up in 0a8341e.


text:
🛑 nusa.id is down

In 1a10fb8, nusa.id (https://nusa.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: nusa.id is back up in 147a56d after 9 minutes.


text:
🛑 lintas.net.id is down

In 1f69084, lintas.net.id (https://lintas.net.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: lintas.net.id is back up in 8a2185f after 18 minutes.


text:
🛑 member.idwebhost.com is down

In 2fb6d0e, member.idwebhost.com (https://member.idwebhost.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: member.idwebhost.com is back up in 13c3df7.


text:
🛑 cLoudbip.com is down

In 1d23875, cLoudbip.com (https://cloudbip.com) was down:

HTTP code: 503
Response time: 518 ms

Resolved: cLoudbip.com is back up in 56243ab.


text:
🛑 cbn.id is down

In 604507e, cbn.id (https://cbn.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: cbn.id is back up in 5a5f5d5.


text:
🛑 connectindo.com is down

In e3b0fec, connectindo.com (https://connectindo.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: connectindo.com is back up in add759e.


text:
when beeswax use spark thrift instead of hiveserver2 ,error : Autocomplete data fetching error: list index out of range

I started spark-sql thriftserver :
/opt/spark/sbin/start-thriftserver.sh --hiveconf hive.server2.thrift.port=12000 --master yarn
[beeswax]
Host where HiveServer2 is running.
If Kerberos security is enabled, use fully-qualified domain name (FQDN).
hive_server_host=analysis
Port where HiveServer2 Thrift server runs on.
hive_server_port=12000
and I can run spark-sql in beeswax

There are some missing parts in the Spark SQL API that we are tracking  in https://issues.cloudera.org/browse/HUE-2985

Which Spark version are you using? On 1.6.1 I can't even list the tables

I'm using spark 1.6.0

@romainr Was anything fixed/changed for this and was that the reason you closed this issue?
We're still seeing the same message in the Table browser

Logs from Hue:
[16/Jul/2021 12:02:53 +0200] decorators   ERROR    Error running describe
Traceback (most recent call last):
  File "/usr/share/hue/desktop/libs/notebook/src/notebook/decorators.py", line 119, in wrapper
    return f(*args, **kwargs)
  File "/usr/share/hue/desktop/libs/notebook/src/notebook/api.py", line 1039, in describe
    describe = get_api(request, snippet).describe(notebook, snippet, database, table, column=column)
  File "/usr/share/hue/desktop/libs/notebook/src/notebook/connectors/base.py", line 646, in describe
    describe_database = self.describe_database(notebook, snippet, database)
  File "/usr/share/hue/desktop/libs/notebook/src/notebook/connectors/hiveserver2.py", line 950, in describe_database
    return db.get_database(database)
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/dbms.py", line 346, in get_database
    return self.client.get_database(database)
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 1510, in get_database
    return self._client.get_database(database)
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 850, in get_database
    return HiveServerTRowSet(desc_results.results, desc_schema.schema).cols(cols)[0]  # Should only contain one row
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 268, in cols
    cols = [rs.full_col(name) for name in col_names]
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 268, in <listcomp>
    cols = [rs.full_col(name) for name in col_names]
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 299, in full_col
    pos = self._get_col_position(colName)
  File "/usr/share/hue/apps/beeswax/src/beeswax/server/hive_server2_lib.py", line 303, in _get_col_position
    return list(filter(lambda i_col1: i_col1[1].columnName == column_name, enumerate(self.schema.columns)))[0][0]
IndexError: list index out of range

We're using the Spark thriftserver running Spark 3.1.1 and Hue 4.10.0

https://github.com/cloudera/hue/blob/master/tools/docker/hue/Dockerfile#L61

@romainr hmm, we're using that image/the upstream Hue image and still seeing this error.
Should I create a new issue?

You can, but would recommend to use the SQL Alchemy interface and not Hue's HiveServer2 as it should work out of the box https://gethue.com/blog/querying-spark-sql-with-spark-thrift-server-and-hue-editor/

authors: lemontreeshy romainr simonvanderveldt

repo: cloudera/hue


text:
Support for Stream API

Hi,
I was searching for Stream API support in the library but did not found any.
If there is already API method in the library for the Cloudflare Stream then please let me know.
Thank You

+1 please add :(

authors: Dectom saurabh-vijayvargiya

repo: cloudflare/cloudflare-php


text:
Please add support for environment to cloudflare_worker_route

Current Terraform and Cloudflare provider version
Terraform v1.3.7
on windows_amd64

provider registry.terraform.io/cloudflare/cloudflare v4.6.0

Description
Please add support for selecting worker environment to cloudflare_worker_route
Use cases
We have one domain with one zone, but it serves 2 environments, so testing workers separately would be nice.
Eg. www.staging.domain.com and www.domain.com
Potential Terraform configuration
resource "cloudflare_worker_route" "staging_route" {
  zone_id = var.cloudflare_zone_id
  pattern = "www.staging.domain.com/*"
  environment = "staging"
  script_name = var.script_name
}

resource "cloudflare_worker_route" "prod_route" {
  zone_id = var.cloudflare_zone_id
  pattern = "www.domain.com/*"
  environment = "production"
  script_name = var.script_name
}

References
No response

Service environments were deprecated a long time ago and basically removed at this point. Environments in Workers are back to appending the env on to the Worker name
Are you talking about the service environments or the Worker name ones?
I'd personally be hesitant to add an environment field until we properly reimplement actual environments.

I think I mean Environments in Workers. The one you can specify in the Dashboard when adding a Worker Route.
Can that be done by adding a special suffix to the worker name?

Yeah, that's service environments, you aren't actually able to create new environments anymore and they're being removed (slowly).

I see, that explains it, thank you

authors: WalshyDev akaltar


text:
Include HyperdriveID in Update payload

Implements #3250
Summarising the issue above:
terraform apply using an existing resource cloudflare_hyperdrive_config {} returns an error message
required hyperdrive config id

This message originates from https://github.com/cloudflare/cloudflare-go/blob/master/hyperdrive.go#L13, which in the context of our update call, starts here: https://github.com/cloudflare/cloudflare-go/blob/master/hyperdrive.go#L176-L178.
This is happening because our call to Update within the terraform-provider does not pass through a HyperdriveID parameter: https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/internal/framework/service/hyperdrive_config/resource.go#L130-L143.

thanks!

authors: jacobbednarz siame


text:
[BUG] 'ERR_STREAM_WRITE_AFTER_END' in wrangler-dist when using a DELETE method in Router

Is there an existing issue for this?

[X] I have searched the existing issues

What version of workers-rs are you using?
0.0.9
Describe the bug
When calling a DELETE method defined in a router, wrangler dev crashes with the error:
C:\Users\fluxe\AppData\Local\npm-cache\_npx\32026684e21afda6\node_modules\wrangler\wrangler-dist\cli.js:12110
            throw ex;
            ^

Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at new NodeError (node:internal/errors:387:5)
    at _write (node:internal/streams/writable:322:11)
    at Writable.write (node:internal/streams/writable:337:10)
    at IncomingMessage.ondata (node:internal/streams/readable:766:22)
    at IncomingMessage.emit (node:events:513:28)
    at Readable.read (node:internal/streams/readable:539:10)
    at flow (node:internal/streams/readable:1023:34)
    at resume_ (node:internal/streams/readable:1004:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ClientHttp2Stream instance at:
    at ClientHttp2Stream.onerror (node:internal/streams/readable:785:14)
    at ClientHttp2Stream.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ERR_STREAM_WRITE_AFTER_END'
}

I've confirmed this error occurs in workers-rs versions 0.0.9 and 0.0.10 on Windows 11, with Node.js version 16.x and 18.x. I've also occasionally seen that, instead of crashing, a 400 Bad Request is returned, but a restart will often fix this. This issue occurs with both regular and async delete routes.
Steps To Reproduce

Create a project using npm init cloudflare <name> worker-rust
Add any delete or async delete method to the router in lib.rs, such as:

router.delete("/test", |_, _| { Response::ok("Test") }

Run wrangler dev and call the method using any REST client.
wrangler dev crashes with error instead of returning the expected response.

It's possible this is a bug in wrangler rather than workers-rs but I haven't tested the JS equivalent.

I've confirmed that the issue occurs even when a DELETE route is not defined (i.e. a request to a non-existent DELETE route). It's very likely that this may be an issue with wrangler rather than workers-rs.

Ah, looks to be related to this issue here: https://github.com/cloudflare/wrangler2/issues/1388
I'll close this issue as it's unrelated to workers-rs.

repo: cloudflare/workers-rs


text:
🐛 BUG:  global is not defined while using aws-sdk

Which Cloudflare product(s) does this pertain to?
Workers Runtime, Wrangler core
What version(s) of the tool(s) are you using?
"wrangler": "^3.0.0", "aws-sdk": "^2.1416.0"
What version of Node are you using?
v18.16.0
What operating system are you using?
Mac
Describe the Bug
I get the following error when I try to deploy the code to worker from my local environment. This issue only occurs when using 'aws-sdk'
Uncaught ReferenceError: global is not defined
at worker.js:12285:35 in node_modules/aws-sdk/node_modules/buffer/index.js
at worker.js:3:50 in __require
at worker.js:13745:19 in node_modules/aws-sdk/lib/browserHashUtils.js
at worker.js:3:50 in __require
at worker.js:13788:21 in node_modules/aws-sdk/lib/browserHmac.js
at worker.js:3:50 in __require
at worker.js:14303:16 in node_modules/aws-sdk/lib/browserCryptoLib.js
at worker.js:3:50 in __require
at worker.js:17600:23 in node_modules/aws-sdk/lib/browser_loader.js
at worker.js:3:50 in __require
[code: 10021]
Please provide a link to a minimal reproduction
It's happening just by installing aws-sdk and importing it. "aws-sdk": "^2.1416.0". Even if it's a hello world project. Just install and import aws-sdk to index.js or wrangler.js. And once you try to deploy, it fails with these errors
Please provide any relevant error logs
Uncaught ReferenceError: global is not defined
at worker.js:12285:35 in node_modules/aws-sdk/node_modules/buffer/index.js
at worker.js:3:50 in __require
at worker.js:13745:19 in node_modules/aws-sdk/lib/browserHashUtils.js
at worker.js:3:50 in __require
at worker.js:13788:21 in node_modules/aws-sdk/lib/browserHmac.js
at worker.js:3:50 in __require
at worker.js:14303:16 in node_modules/aws-sdk/lib/browserCryptoLib.js
at worker.js:3:50 in __require
at worker.js:17600:23 in node_modules/aws-sdk/lib/browser_loader.js
at worker.js:3:50 in __require
[code: 10021]

hi @Codename-404 :) we haven’t heard back so we will close the issue for now. however, if this is still an issue and @mrbbot 's suggestion doesn't fix it, please feel free to re-open it. thanks!

Hi I have the same problem and adding globalThis.global = globalThis to my entrypoint did not resolve this.

repo: cloudflare/workers-sdk


text:
🐛 BUG: Unable to start wranger dev server

Which Cloudflare product(s) does this pertain to?
D1
What version(s) of the tool(s) are you using?
3.55.0 [wrangler]
What version of Node are you using?
No response
What operating system and version are you using?
Mac Sonoma 14.1.1
Describe the Bug
Observed behavior
Tried to start the wrangler dev server via npx wrangler dev. Got the following error message:
✘ [ERROR] workerd/server/workerd-api.c++:772: error: wrapped binding module can't be resolved (internal modules only); moduleName = cloudflare-internal:d1-api

✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.

Expected behavior
Expecting the dev server to start and serve HTTP requests
Steps to reproduce
Please provide the following:
See this repo: https://github.com/Tao-VanJS/twikoo-cloudflare
Steps to reproduce:

Create the d1 database: npx wrangler d1 create comment
Create d1 tables: npx wrangler d1 execute comment --local --file=./schema.sql
Start the dev server: npx wrangler dev

Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
✘ [ERROR] workerd/server/workerd-api.c++:772: error: wrapped binding module can't be resolved (internal modules only); moduleName = cloudflare-internal:d1-api
✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above.

It looks like your Worker is using the service-worker syntax, rather than the module worker syntax. D1 requires you to use the module worker syntax for writing your Worker. You can refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for docs on migrating

authors: Tao-VanJS penalosa


text:
[WIP] pages: Fix "worker called response.clone()" warnings in `wrangler pages dev

Fixes #3259
What this PR solves / how to test:
Author has addressed the following:

Tests

[ ] Included
[ ] Not necessary because:

Changeset (Changeset guidelines)

[ ] Included
[ ] Not necessary because:

Associated docs

[ ] Issue(s)/PR(s):
[ ] Not necessary because:

Note for PR author:
We want to celebrate and highlight awesome PR review! If you think this PR received a particularly high-caliber review, please assign it the label highlight pr review so future reviewers can take inspiration and learn from it.

@Cherry thanks a lot, you're totally right, we already internally discussed this.
I think the solution will be to remove the cloning there only when there is a single handler removing this error/warning for just some cases, not ideal but the best solution we can currently implement without introducing a breaking change
Then later in a major bump or whenever possible we should remove the cloning altogether, leaving the responsibility of doing the cloning to the user instead of Pages doing it for them under the hood (so basically your example would break and you'd have to do the cloning of the request yourself to make it work)
What do you think?

@Cherry ah yeah thanks a lot for the suggestion!
Somehow your suggestion didn't show up in our discussion 😅, it looks great, I feel like that should work nicely, when I get to this I will look into it and test it out! Thanks a lot! 🙂👍

Is there anything blocking merging this and bumping the major version? (Using wrangler in a pages project w/ middleware is basically unusable due to all the warnings.)


text:
wrangler publish: workers.api.error.script_not_found

🐛 Bug report
I ain't do anything fancy just followed tutorial from here: https://egghead.io/lessons/cloudflare-set-up-a-new-cloudflare-workers-project-with-wrangler unable to continue a tutorial due to this error.
Describe the bug
wrangler publish fails
Reproduce the bug
A list of steps to reproduce the bug.

wrangler generate fbevents
cd fbevents
wrangler config --api-key
add account_id to wrangler.toml  from wrangler whoami command
wrangler publish

holms@debian:~/Dev/gitlab/fbevents$ wrangler publish
✨  Basic JavaScript project found. Skipping unnecessary build!
Error: ⚠  There was an error fetching your subdomain.
 Status Code: 404 Not Found
 Msg: {
  "result": null,
  "success": false,
  "errors": [
    {
      "code": 10007,
      "message": "workers.api.error.script_not_found"
    }
  ],
  "messages": []
}

Expected behavior
Command should work
Environment and versions
Fill out the following information about your environment.

Linux debian 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18) x86_64 GNU/Linux
output of wrangler -V: wrangler 1.19.0
output of node -v: v14.17.5
content of wrangler.toml:

holms@debian:~/Dev/gitlab/fbevents$ cat wrangler.toml
name = "fbevents"
type = "javascript"

account_id = "5a6f4ba42ccae8578392f47e0c54e6a4"
workers_dev = true
route = ""
zone_id = ""

Ok solved, had to create a subdomain which this tutorial never covered.

hey, I had the same problem. How do you create a subdomian?

hey, I had the same problem. How do you create a subdomian?

I got it!

authors: CoraHo holms

repo: cloudflare/wrangler


text:
Move to WIT

Context
Right now the interface between the WASM plugins and the client is defined as a json spec, which is read at runtime and each time the client loads a plugin and then compares the functions exported by the wasm plugin to the json defined spec.
Description
Instead of using a json spec for defining the interface between the client and the WASM plugins, the spec should be defined in WIT.
Acceptance Criteria
The plugins have a minimal interface defined.
The client is able to use this interface to interact with the plugin implementation

goes together with https://github.com/cloudflavor/skycrane/issues/21

/label R&D Feature

done in  https://github.com/cloudflavor/skyforge/pull/2
/close

repo: cloudflavor/skyforge


text:
Best practice for leveraging cfEnv?

Say I am writing an SDK (just suppose…)
Is the following reasonable, and if so, should it be documented as a best practice?
OLD:
 var appEnv = require('cfenv').getAppEnv();
 var someClient = require('Some Random Thing').setup({ credentials: appEnv.getServiceCreds(/Something.*/) });

IMPROVED?
 var appEnv = require('cfenv').getAppEnv();
 var someClient = require('Some Random Thing').setup({ appEnv: appEnv });

implemented within the SDK by:
 … function setup(opts) {
    if(opts.appEnv && !opts.credentials) {  // if appEnv is available, use it
     opts.credentials = opts.appEnv.getServiceCreds( someRegex );
    }

Any pitfalls? My idea is to reduce the amount of copy and paste user code. User can just pass in appEnv if they have one, otherwise credentials can be supplied.

Ya, that seems reasonable.  I'd document your "Some Random Thing" package as providing a setup() method that takes an options object, where one key can be appEnv and is expected to be the result of a cfenv.getAppEnv() call.
I'm not sure about documenting it as best practice, since yours is the first suggestion I've seen of someone wanting to do this.  Let us know how it works out!  Maybe it WILL BE a best practice!

@pmuellr thanks. We'll see how it goes, I'll link back here. I'm also exporting the regex itself from the package.

As promised, see https://www.npmjs.com/package/g11n-pipeline

All OK, except for the issue #3 i hit.

repo: cloudfoundry-community/node-cfenv


text:
Mysql Dashboard open source license type

When prometheus BOSH Release v17.0.0 released, All Dashboards file moved from packages to job templates.
But mysql dashboard LICENSE file was removed. https://github.com/cloudfoundry-community/prometheus-boshrelease/commit/d5abc49c4a6e635ba490269ebcd9b2416e4de488
What is open source license type of mysql dashboard?(Apache or AGPL-3.0)

Good catch, It's AGPL. I planned to move it to the general NOTICE and I forget to add it. I'll add it again before cutting a new release.

Fixed at https://github.com/cloudfoundry-community/prometheus-boshrelease/commit/3f019e8ca3de2237c49a214fa38b9cc3b382cdad.

authors: frodenas mjsjinsu


text:
BOSH HM floods Director with alert events when /deployments is slow

Symptoms
The BOSH HM was posting alerts about found rogue agents with a frequency of ~1800 events/second to /events on the Director. When digging into the BOSH database of deployments, instances, and vms, we found that the agents from those 1800 events were actually well registered for existing deployments and all was okay with them.
Analysis
When you have enough deployments (e.g. ~500), the /deployments endpoint can become pretty slow (some improvements done in v264.2, see https://github.com/cloudfoundry/bosh/pull/1793 and https://github.com/cloudfoundry/bosh/commit/391e66347870f782964aac7cc5a7e63576b638c3), answering in the order of tens of seconds, rather than 1/10th of a second. This means, on each run of analyze_agents the HM operates with information from the director which is outdated – the longer the /deployments endpoint takes to answer, the worse the situation gets.
In a situation with a high amount of churn, e.g. a stemcell update on several deployments at once, all of the newly started VMs will be considered as rogue agents, leading to even more events being POSTed, leading to even higher response times for /deployments. Once deployments are finished, this situation resolves itself after a few hours, such that no agents are reported as rogue anymore and the HM doesn't send any events to the Director.
Mitigations

Set the rogue_agent_alert to some incredibly high number, such that no events are posted to the Director, even if the HM only has outdated information about deployments and instances.

Identified Issues

It is dangerous when the HM operates with old information from the Director. If for some reason the list of deployments and instances don't contain recent information, it would probably be better to not send events or scan_and_fix tasks to the Director?
Posting many events slows down other synchronous calls, such as GET /deployments. It may seem obvious, but not sure how to deal with this finding.
Rogue agent events don't seem to be very useful, as it is hard to turn them into actionable knowledge, see https://github.com/cloudfoundry/bosh/issues/1837

@dpb587-pivotal @cppforlife thoughts?

@voelzmo is this going to be resolved (or improved) thru puma and other perf stories yall been doing?

our performance improvements work towards making /deployments faster, thus and issue like this more unlikely, yes. Switching to puma certainly helps in terms of being able to process more requests.
The underlying issue here, which potentially needs to be tackled in the HM, isn't touched by anything we do.

authors: cppforlife voelzmo

repo: cloudfoundry/bosh


text:
config_server urls get truncated when they don't end in trailing slashes

We encountered a bug recently where a user configured their director with a config server URL like https://localhost:80/api. BOSH then uses URL join to add on /v1/data and was ending up with https://localhost:80/v1/data. It seems like it should have ended up with https://localhost:80/api/v1/data.
This seems to be the relevant code: https://github.com/cloudfoundry/bosh/blob/0a827060abf5361decf44e64a3fdacec6cc45bd7/src/bosh-director/lib/bosh/director/config_server/config_server_http_client.rb#L13

It does seem like we default to /api/ in bosh-deployment. I think it makes sense for director to suffix with a / if it's not already there.

Makes sense, seems pretty straightforward. Closing/re-opening to trigger a tracker story.


text:
ls: cannot access /var/vcap/packages//lib: No such file or directory ls: cannot access /var/vcap/packages///.jar: No such file or directory /var/vcap/jobs/cas_controller/bin/cas_controller_ctl: line 34: hash: numactl: not found

Hi,
I am facing this issue. Can you please help me out.

@srikanth19 thanks for submitting this issue. Unfortunately we need more details in order to help you. If this is a bug, please close and reopen this as a bug report, and follow the template.

Hi,
Thanks for responding.
I am trying to deploy SAS Viya on cloud foundry. The deployment has started and has thrown the below error:
Error: 'cas_controller/6f220e5f-f2ac-4fbf-8c78-d41538c6dc02 (0)' is not running after update. Review logs for failed jobs: java, numa, dpkg-installer, cas_controller, tmp_chmod, bosh-dns, bosh-dns-resolvconf, bosh-dns-healthcheck
Task 137 | 12:24:47 | Error: 'cas_controller/6f220e5f-f2ac-4fbf-8c78-d41538c6dc02 (0)' is not running after update. Review logs for failed jobs: java, numa, dpkg-installer, cas_controller, tmp_chmod, bosh-dns, bosh-dns-resolvconf, bosh-dns-healthcheck
I logged in the cas_controller and checked the /var/vcap logs and found below error(not sure if this is the real culprit) in the logs monit/cas-controller.err.log
ls: cannot access /var/vcap/packages//lib: No such file or directory
ls: cannot access /var/vcap/packages///.jar: No such file or directory
/var/vcap/jobs/cas_controller/bin/cas_controller_ctl: line 34: hash: numactl: not found
But I was able to locate numactl in /var/vcap/packages folder.
I am not sure if this could help or not, I have also observed diego cell was in failing state after the above error was encountered.
Thanks in advance.

This error typically suggests a misconfiguration in the release job - either by referring to incorrect paths to the /var/vcap/packages/{name}/{file} it needs, or by forgetting to have the job depend on that package to make sure it gets installed.
I'd recommend you look into the cas_controller job and verify it's spec file and cas_controller_ctl template.

@srikanth19 has your issue been resolved? If not, please reopen and we can look into it further. Closing for now.


text:
Empty response from /ids/Users when a single user with origin: ldap is requested

Test Case

Create a user with --origin ldap:

CF_CLI_EXPERIMENTAL=true cf -v create-user test1 --origin ldap

Login to uaac with a scope scim.userids.  We did this on a uaa deployed with a cc using the cloud_controller_username_lookup client.

query for user test1 with their guid:

uaac curl '/ids/Users?filter=id+eq+%22<GUID FOR test1>%22' -k
Result
200 OK
RESPONSE HEADERS:
  Cache-Control: no-cache, no-store, max-age=0, must-revalidate
  Content-Type: application/json;charset=UTF-8
  Date: Mon, 23 Jan 2017 22:49:52 GMT
  Expires: 0
  Pragma: no-cache
  Server: Apache-Coyote/1.1
  Strict-Transport-Security: max-age=31536000 ; includeSubDomains
  X-Content-Type-Options: nosniff
  X-Frame-Options: DENY
  X-Vcap-Request-Id: eebb633b-35e2-4d5a-69d4-819b8b44106e
  X-Xss-Protection: 1; mode=block
  Content-Length: 107
  Connection: close
RESPONSE BODY:
{
  "resources": [

  ],
  "startIndex": 1,
  "itemsPerPage": 100,
  "totalResults": 0,
  "schemas": [
    "urn:scim:schemas:core:1.0"
  ]
}

Expected Result
For users created without the --origin ldap flag, we get a response like:
RESPONSE BODY:
{
  "resources": [
    {
      "origin": "uaa",
      "id": "7e534af1-7c3b-4f78-ba8e-11f07a3dd8bb",
      "userName": "test4"
    }
  ],
  "startIndex": 1,
  "itemsPerPage": 100,
  "totalResults": 1,
  "schemas": [
    "urn:scim:schemas:core:1.0"
  ]
}

Extra strange behaviors

If you list the same user twice, and the user is created with --origin ldap, you get one response:

uaac curl '/ids/Users?filter=id+eq+%22%22+or+id+eq+%22%22' -k
RESPONSE BODY:
{
  "resources": [
    {
      "origin": "ldap",
      "id": "a8301882-bb25-4a6b-810f-39b314df5c19",
      "userName": "test1"
    }
  ],
  "startIndex": 1,
  "itemsPerPage": 100,
  "totalResults": 1,
  "schemas": [
    "urn:scim:schemas:core:1.0"
  ]
}

This bug was discovered while investigating this story on the Cloud Controller:
https://www.pivotaltracker.com/story/show/136451753

cc @ljfranklin

CLI team hit this as well: https://www.pivotaltracker.com/n/projects/892938/stories/136470795. They pinned it down to uaac seems to drop the last result when querying for ldap users.

@thausler786 This seems like a UAA issue. I will create an issue over there.

repo: cloudfoundry/cf-uaa-lib


text:
Update moment imports to remove warning when building library

When we build store as a lib, we get these warnings.
WARNING: Cannot call a namespace ('moment')
See this article: https://stackoverflow.com/questions/46876541/errors-when-using-momentjs-in-angular-typescript-library/47007576
This PR changes the way we import moment as per the article above, to remove the warnings.

Codecov Report

Merging #4534 into master will decrease coverage by 0.13%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4534      +/-   ##
==========================================
- Coverage   58.77%   58.63%   -0.14%
==========================================
  Files         889      877      -12
  Lines       29178    28964     -214
  Branches     4206     4191      -15
==========================================
- Hits        17148    16984     -164
+ Misses      12030    11980      -50

authors: codecov-commenter nwmac

repo: cloudfoundry/stratos


text:
Support previewClass in pattern frontmatter

Allows classes to be appended to container of pattern preview area.
Open to feedback on the name.

@erikjung @mrgerardorodriguez @saralohr @nicolemors
Closes #24

LGTM 👍

👍
We'll have a bit of cleanup to do when the auto-prefixing of classes is enabled for templates, but I don't think this will be used too often.

authors: erikjung mrgerardorodriguez tylersticka

repo: cloudfour/drizzle


text:
Remove process.exit calls in the error path

I wanted to put less into a long running server side process. However, the process.exit calls prevent that. These commits are the first step to making less integration possible.
deb5b3ec is really the only commit that contains that change. However, I believe the rest of the patches here are useful as well:

I integrated poswald's 'watch' option to command line lessc, and then fixed it to run immediately on startup (9a42c364).
fd107ce1 -- patch for moving to the recommended method of not modifying require.paths, and using relative requires for local sources.
a95f9caf	-- fixes a failing test
6d27d0bc -- adds a test for less.render

Thanks

Following up the discussion from #246:
process.exit called from importer:
https://github.com/cloudhead/less.js/blob/master/lib/less/index.js#L119
But, beyond the process.exit calls (which I needn't have removed from bin/lessc btw) is the pervasive use of throw everywhere that leads to uncatchable exceptions. For example, create a less file like this: "body {" and try compiling it with lessc -- you don't get the nice error output from less.writeError, you get an extremely short stack trace from an uncaught exception.

Ah yes, I will look into that. The error handling needs a revamp for sure, as some errors, as you noticed, don't output nicely.

authors: cloudhead wvl


text:
chore: Improve error output on snapshot command

We were previously waiting for the snapshot to be not ready to use,
with this patch we check if there's an error inside the VolumeSnapshot
object and error out and let the user knows the error directly.

/ok-to-merge additional error message, no e2e impact

authors: mnencia sxd

repo: cloudnative-pg/cloudnative-pg


text:
dev: argocd recreates crd prometheuses.monitoring.coreos.com

fix #1255
@@ -9745,8 +9745,8 @@ apiVersion: apiextensions.k8s.io/v1
 kind: CustomResourceDefinition
 metadata:
   annotations:
+    argocd.argoproj.io/sync-options: Replace=true
     controller-gen.kubebuilder.io/version: v0.6.2
-  creationTimestamp: null
   name: prometheuses.monitoring.coreos.com
 spec:
   group: monitoring.coreos.com

The file name prometheus.yaml is good? Any suggestion?

#1237 こっちも prometheus.yaml 使っている、変更はCRD だけなら prometheus-crd.yaml の方がいいかも？
annotationsだけ変えるなら、dev => prd じゃなくて base manifestを直接変更するもの大丈夫かな

baseをいじるにしても、外部YAMLにpatchを当てたいのでprometheus-crd.yamlを作成する必要があります。
反映しました。ご提案ありがとうございます！

authors: mayocream oke-py

repo: cloudnativedaysjp/dreamkast-infra


text:
スピーカーダッシュボードで動画や資料を非公開にしたものが反映されていない

動画を非公開にしたのに公開されてしまっているという連絡があった。
以前使っていたフラグが今は使われておらず、正しく反映されていない可能性がある

まずは動画・資料の公開可否について現状の挙動を整理する

まずはAs-isから。
動画の表示・非表示をどのように制御しているか
アーカイブ動画の埋め込みは以下のファイルで行っている。

app/views/talks/partial_show/_talk_video_block.html.erb
app/views/talks/partial_show/_talk_video_block_videojs.html.erb

これらは app/views/talks/partial_show/_col_main_pane.html.erb から呼び出されている。
      <% if (conference.closed? && @current_user) || (conference.opened? && @current_user) || conference.archived? %>
        <% if conference.abbr == 'cndt2021' %>
          <%= render 'talks/partial_show/talk_video_block_videojs', talk: talk %>
        <% else %>
          <%= render 'talks/partial_show/talk_video_block', talk: talk %>
          <% end %>
      <% end %>

conference.closed? && @current_user : カンファレンスがクローズ状態、かつ閲覧者が参加者としてログインしている
conference.opened? && @current_user : カンファレンスがオープン状態、かつ閲覧者が参加者としてログインしている
conference.archived?: カンファレンスがアーカイブ状態

これらのいずれかを満たしている場合talk_video_block_videojsかtalk_video_blockをレンダリングする。
さらに、talk_video_block_videojsとtalk_video_blockの中でも制御している。
<% if talk.video_published && talk.video.present? && talk.archived? %>
  [snip]
<% end %>

talk.video_published : talkレコードのvideo_publishedカラム。Boolean。
talk.video.present? : talkに紐付くvideoが存在するかどうか。
talk.archived? : talkのend_timeから600sec経過したかどうか。

これらを全て満たしている場合動画の埋め込みがレンダリングされる。
資料の表示・非表示をどのように制御しているか
資料URLの表示は以下のファイルで行っている。

app/views/talks/partial_show/_col_main_pane.html.erb

      <% if talk.document_url.present? %>

<a href="<%= talk.document_url %>" target="_blank">発表資料

      <% end %>

talk.document_url.present? : talkレコードのdocument_urlに値が入っているかどうか。

これらを満たしている場合、URLがリンクとして表示される。

To-be
従来の talk.video_published  を用いた制御に戻す

pros

ProposalItemConfigまわりのややこしい仕様に引っ張られない

cons

資料の表示制御の実装も必要

whether_it_can_be_published ラベルのProposalItemを制御に利用するように実装する

pros

Conference毎に資料の表示制御を行うかどうかをProposalItemでコントロールできる

cons

ProposalItem自体がややこしく、バグのもとになりそうな気もする

修正方針悩むなー。

whether_it_can_be_published を使う方向で実装しちゃうか。

手元で触っていて、ProposalItemConfigはアーカイブ表示可否には使わない方がいいなと思い直したのでやはり従来の方法を用いた制御にもどしたい

なおしました！

authors: jacopen takaishi

repo: cloudnativedaysjp/dreamkast


text:
fix header image path

ヘッダ画像へのパスが間違っていてCNDT2020のロゴが見えなくなってしまっていた問題を修正
ref: https://github.com/cloudnativedaysjp/dreamkast/pull/345

復活確認


text:
[opentelemetry] Logforwarding from OpenTelemetry to OpenSearch

Context
We chose OpenSearch as the Sink for OpenTelemetry (OTel) Logs and Metrics. In order to automate the process of data ingestion templates need to be created that automate indexing, rollover and state management.
Acceptance Criteria
Log Collector:

[x] Activate Daemonset for OTel to collect logs across different nodes
[x] Use Datastream Format

OpenSearch:

[x] Create  Data Stream Template
[x] Create ISM Templates
[x] Create Rollover Indexing
[ ] Define Common Mappings (if necessary)
[ ] Define Backing Indices (if necessary)

References
OpenSearch Datastreams: https://opensearch.org/docs/latest/im-plugin/data-streams/

Done
Related PRs:

[opentelemetry-operator] template otel index #227

repo: cloudoperators/greenhouse-extensions


text:
UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.4 to before v5.4.162",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9c3516d1b850ea938b074df33e4c86d721c77720",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9e0df711f8dbe5650ad4f557c12a5cb302432a37"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "9c3516d1b850ea938b074df33e4c86d721c77720",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "9e0df711f8dbe5650ad4f557c12a5cb302432a37",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "perf bench futex: Fix memory leak of perf_cpu_map__new()\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.4.162 by commit 9e0df711f8dbe5650ad4f557c12a5cb302432a37, it was introduced in version v5.4 by commit 9c3516d1b850ea938b074df33e4c86d721c77720. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1002264

repo: cloudsecurityalliance/gsd-database


text:
UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.52",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f6ec306b93dc600a0ab3bb2693568ef1cc5f7f7a"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "f6ec306b93dc600a0ab3bb2693568ef1cc5f7f7a",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "virtio_console: Assure used length from device is limited\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.52 by commit f6ec306b93dc600a0ab3bb2693568ef1cc5f7f7a. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001264

repo: cloudsecurityalliance/uvi-database


text:
Update Bindings: v2.0.2

Update bindings to v2.0.2
API version v1.236.5

I reckon the generic names for cursor-based pagination responses weren't picked up during the TF provider work simply because our TF provider doesn't use them... Will try to look at this.

@Leeoc  I think all of the previous comments have been addressed. Our only issue currently is that the package dependencies endpoint response's operator property contains symbols which the java generator in this version of swagger-codegen doesn't know how to generate valid enum members for. Investigating.

authors: Leeoc chrisimcevoy

repo: cloudsmith-io/cloudsmith-api


text:
1.9.4 release date?

What's the anticipated release date for 1.9.4?  Would love to take advantage of the ServiceName property for ECS services.  The autogenerated names are long and ugly!

Thanks for the ping. 1.9.4 was just released.

authors: jamietsao markpeek

repo: cloudtools/troposphere


text:
Fix README.md

Fixed some formatting issues in README.md

Merged README.md changes

repo: cloudviz/agentless-system-crawler


text:
optimize: Fix error reporting during server shutdown process #1065

What type of PR is this?

optimize
Check the PR title.

[ ] This PR title match the format: <type>(optional scope): <description>
[ ] The description of this PR title is user-oriented and clear enough for others to understand.
[ ] Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).

修复服务器shutdown过程中的报错问题
(Optional) Which issue(s) this PR fixes:

#1065
(Optional) The PR that updates user documentation:

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.YarBor seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@welkeyever Hey, is there anything to improve on this PR?

@welkeyever Hey, is there anything to improve on this PR?

Sorry for the late, I'll take look

@YarBor Plz rebase develop and fix the CI

authors: CLAassistant GuangmingLuo YarBor welkeyever

repo: cloudwego/hertz


text:
重试策略有data race

行数：
https://github.com/cloudwego/kitex/blob/67262666003df9d5e095e25c238f5950d958feac/pkg/retry/backup_retryer.go#L104
测试代码
func Test_backupRetryer_Do(t *testing.T) {
	r := &backupRetryer{
		enable: true,
		policy: &BackupPolicy{
			RetryDelayMS: 0,
			StopPolicy: StopPolicy{
				MaxRetryTimes: 100,
			},
			RetrySameNode: true,
		},
		cbContainer: &cbContainer{
			cbCtl:   nil,
			cbPanel: nil,
			cbStat:  false,
		},
		retryDelay:  0,
		logger:      klog.DefaultLogger(),
		RWMutex:     sync.RWMutex{},
		errMsg:      "",
	}
	r.Do(
		context.Background(),
		func(ctx context.Context, retryer Retryer) (rpcinfo.RPCInfo, error) {
			time.Sleep(100 * time.Millisecond)
			return nil, errors.New("1")
		},
		mockRPCInfo{}, nil)
}

L105 处的 StringBuilder 也有 race
https://github.com/cloudwego/kitex/blob/67262666003df9d5e095e25c238f5950d958feac/pkg/retry/backup_retryer.go#L105

backup request的race问题的修复已经提pr了 https://github.com/cloudwego/kitex/pull/19，内部验证OK后，会merge哈

authors: DZGodly YangruiEmma

repo: cloudwego/kitex


text:
当客户端主动关闭链接时，服务端获取不到完整的数据

Describe the bug
当客户端主动关闭链接时，服务端获取不到完整的数据。
To Reproduce

客户端发送消息并主动关闭链接。
统计服务端收到的消息长度。
消息实际长度为27260。

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
客户端代码

服务端部分代码

统计结果

Desktop (please complete the following information):

OS: macOS
Version: 13.0.1

@zyiuh 可以发下 tcp 抓包数据吗？看看是 client 没有彻底发送完毕还是 server 没有接收完毕。
另外，如果你有 Linux 环境的话，也可以在 Linux 下试试看能否复现。

可以确认的是client端的数据已经发送完毕了，linux也可以复现。

@zyiuh 我写了一个测试没法复现你的问题。你确定 server 执行完了吗？要不你贴下代码吧
func TestWriteAndClose(t *testing.T) {
	var network, address = "tcp", ":18888"
	var recv int32
	var total int32 = 1000 * 1000
	var loop = newTestEventLoop(network, address,
		func(ctx context.Context, connection Connection) error {
			buf, err := connection.Reader().Next(connection.Reader().Len())
			if errors.Is(err, ErrConnClosed) {
				return err
			}
			MustNil(t, err)
			atomic.AddInt32(&recv, int32(len(buf)))
			return nil
		},
	)

	var conn, err = DialConnection(network, address, time.Second)
	MustNil(t, err)
	size := total / 100
	sendMsg := make([]byte, size)
	for i := int32(0); i < total; i += size {
		_, err = conn.Write(sendMsg)
		MustNil(t, err)
	}
	err = conn.Close()
	MustNil(t, err)

	for atomic.LoadInt32(&recv) != total {
		runtime.Gosched()
	}

	err = loop.Shutdown(context.Background())
	MustNil(t, err)
}

@zyiuh 找到问题了，Close 的时候，如果一次没能读完所有数据，就会先关闭了连接。

@joway 确实是这样的，我这边暂时换成了net原生包实现，我会关注这个问题的，辛苦了

@zyiuh hi, 我提了个 PR 修复了，你可以 go get github.com/cloudwego/netpoll@fix/server-close-v2 再试试
https://github.com/cloudwego/netpoll/pull/226

@joway 好的，我这边验证没什么问题了，感谢。

authors: joway zyiuh

repo: cloudwego/netpoll


text:
Local image option

It would be interesting to have an option to choose if you want the images locally in the preferences.
Maybe something similar to what this plugin does would help:
https://github.com/niekcandaele/obsidian-local-images

Actually, I thought about that when creating this plugin. I just got time today and added the feature. 2d2e339a37913314f888591d659e58e71b409eb9
Now there's an option in the settings tab and you can choose the insert mode which can be remote or locally.
Remote means the image will not be downloaded and just use the unsplash image URL.
Locally means the image will be downloaded in the attachment folder, then insert it into the note.

Great!, thank you very much


text:
Please! Error in loading state dict to the model

when i try to build the project with TPS-ResNet-BiLSTM-CTC.pth, i get this:

Please, help me to fix it, i really need this project. Thanks!

@apophatique in case you didn't figure it out, you have to ensure --Prediction is set to CTC and --sensitive is set to False to successfully load the CTC model.

@apophatique in case you didn't figure it out, you have to ensure --Prediction is set to CTC and --sensitive is set to False to successfully load the CTC model.

authors: apophatique danielenricocahall

repo: clovaai/deep-text-recognition-benchmark


text:
docs: add clusterimportpolicy example for kubevela #243

Signed-off-by: Xiao Yang muma.378@163.com
What type of PR is this?

/kind documentation
What this PR does / why we need it:
Add an example to show how to import clusters added from kubevela.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/lgtm
@muma378 Thank you for adding the kubevela import policy

repo: clusterpedia-io/clusterpedia


text:
Remove ConsoleLogger from all samples

Fixes #1. The samples don't use the logger anyway.

Closing, no longer relevant

repo: cmayomsft/promptly-js


text:
Week 1

Package
Name
Txai Pereira de Lacerda
Class
Tech-4b
Repo link
https://github.com/Txai-HvA/BlokTech
Summary
Ik heb een "Hello world!" server gemaakt en nodemon, express en camel geïnstalleerd via npm.
Resources used
https://www.datacamp.com/community/tutorials/git-push-pull
https://medium.com/@nlfernando11/nodejs-ever-wondered-how-require-works-9aedf0c52128
https://www.freecodecamp.org/news/introduction-to-npm-scripts-1dbb2ae01633/
https://answers.sap.com/questions/9526545/global-dependency-vs-local-dependency.html
https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file
Any thoughts?
Het huiswerk vond ik wel te doen. Enige wat mij niet helemaal duidelijk was waren de "run scripts" in de package.json, maar dat werd in de laatste les duidelijk.

Fijn dat de run scripts duidelijk zijn geworden, ik denk dat dat naarmate het vak vordert ook nog wel iets duidelijk wordt.
Nice dat je in iedergeval al een response kan sturen vanuit de server, probeer ook nog even of je op eenzelfde manier statische html bestanden zou kunnen sturen!

authors: SamSlotemaker Txai-HvA


text:
Automatic file cache clearing

If more than 100 files are open (either in _fileCache or workspaces in wspnames objects), the caches are cleared to avoid "Too many open files" errors on user accounts

Closing this in favour of pending solution here, from @gpetruc


text:
Convert string to template literal

Convert a string, or string concatenation to a template literal
Key Behaviors:

Accessible by the same means as other automated tools

Context menu (conversion submenu)
Action palette
No keybinding

Allow user to place cursor on string or concatenation "expression" (tree of binary concatenation expressions)
Validate selection is a valid, convertable expression
Build new string template with appropriate variable interpolation notation on all non-string values
Does not descend into parenthetical expressions (for now, leave the expression as is)

Error Conditions:

Selection contains no string
Selection contains an operation other than concatenation (+)

Skipping parenthetical descent appears to be a topic of research for another time -- parenthetical statements have no representation in estree (which is fine and largely unsurprising).
First iteration complete in latest release:
https://github.com/cmstead/js-codeformer/releases/tag/v0.25.0

repo: cmstead/js-codeformer