JamfPolicyUploader Conflict "Error: Problem with script"

Hallo Graham,
i'm using your greate JamfPolicyUploader  but i'm getting following Error ( i don't understand why? is that an Issue with script? )
com.github.grahampugh.jamf-upload.processors/JamfPolicyUploader
{'Input': {'API_PASSWORD': 'API_PASSWORD',
'API_USERNAME': 'API_USERNAME',
'JSS_URL': 'JSS_URL',
'icon': 'Firefox.png',
'policy_name': 'Install_Firefox',
'policy_template': 'policy_template',
'replace_policy': 'True'}}
JamfPolicyUploader: No value supplied for replace_icon, setting default value of: False
JamfPolicyUploader: File found at: /path/to/policy
JamfPolicyUploader: ("Replacing any instances of 'POLICY_NAME' with", "'Install_Firefox'")
JamfPolicyUploader: ("Replacing any instances of 'NAME' with", "'Firefox'")
JamfPolicyUploader: ("Replacing any instances of 'POLICY_CATEGORY' with", "'Browser'")
JamfPolicyUploader: ("Replacing any instances of 'pkg_name' with", "'Firefox-99.0.pkg'")
JamfPolicyUploader: ("Replacing any instances of 'PATH_TO_APP' with", "'/Applications/Firefox.app'")
JamfPolicyUploader: ("Replacing any instances of 'SELF_SERVICE_DISPLAY_NAME' with", "'Mozilla Firefox'")
JamfPolicyUploader: ("Replacing any instances of 'INSTALL_BUTTON_TEXT' with", "'Install'")
JamfPolicyUploader: ("Replacing any instances of 'REINSTALL_BUTTON_TEXT' with", "'Reinstall'")
JamfPolicyUploader: ("Replacing any instances of 'SELF_SERVICE_DESCRIPTION' with", "'Mozilla Firefox is a free Web Browser.'")
JamfPolicyUploader: Policy data:
JamfPolicyUploader: <?xml version="1.0" encoding="UTF-8"?>
<policy>
<general>
<name>Install_Firefox</name>
<enabled>true</enabled>
<frequency>Ongoing</frequency>
<trigger_other>Install_Firefox</trigger_other>
<category>
<name>Browser</name>
</category>
</general>
<scope>
<all_computers>true</all_computers>
</scope>
<package_configuration>
<packages>
<size>1</size>
<package>
<name>Firefox-99.0.pkg</name>
<action>Install</action>
</package>
</packages>
</package_configuration>

</scripts>
<self_service>
<use_for_self_service>true</use_for_self_service>
<self_service_display_name>Mozilla Firefox</self_service_display_name>
<install_button_text>Install</install_button_text>
<reinstall_button_text>Reinstall</reinstall_button_text>
<self_service_description>Mozilla Firefox is a free Web Browser.</self_service_description>
<feature_on_main_page>false</feature_on_main_page>
</self_service>
<maintenance>
<recon>true</recon>
</maintenance>
</policy>
JamfPolicyUploader: Checking for existing 'Install_Firefox' on JSS_URL
JamfPolicyUploader: Checking for existing authentication token
JamfPolicyUploader: Checking JSS_URL against JSS_URL
JamfPolicyUploader: URL for token matches current request
JamfPolicyUploader: Existing token is valid
JamfPolicyUploader: Existing cookie found: APBALANCEID=APBALANCEID
JamfPolicyUploader: Jamf Pro Version: 10.37.2-t1648851072
JamfPolicyUploader: Token auth will be used,
JamfPolicyUploader: Existing cookie found: APBALANCEID=APBALANCEID
JamfPolicyUploader: Policy 'Install_Firefox' already exists: ID 225
JamfPolicyUploader: Replacing existing policy as 'replace_policy' is set to True
JamfPolicyUploader: Uploading Policy...
JamfPolicyUploader: Policy upload attempt 1
JamfPolicyUploader: Existing cookie found: APBALANCEID=APBALANCEID
JamfPolicyUploader: b'\n\n <title>Status page</title>\n\n\n
Conflict
\n
Error: Problem with script
\n
You can get technical details here.
\nPlease](http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10%22%3Ehere%3C/a%3E.%3Cbr%3E\nPlease) continue your visit at our home page.\n
\n\n\n'
WARNING: Policy 'Install_Firefox' update failed due to a conflict
Failed.
Receipt written to /path/to/cached/recipe

Does the script dockutil_add exist on the server already?

yes, it exists

It's not called dockutil_add.sh or something like that? The name has to be exact.

that is the exact Name on Server. Everything was running without any Problem

i just built the exact policy without adding script "dockutil_add" and it works fine but once i add script, it throws an Error

Can you post the recipe and the full output please? Hard to properly diagnose from partial output and without seeing the input.

Ah, I think I see the problem. You have a script id set in the policy, but you shouldn't do that, because you can't guarantee which id it will be. Just remove the line, it's not needed.

Let me see your policyTemplate.xml please.

that is my policyTemplate.xml thanks for checking ;)
<?xml version="1.0" encoding="UTF-8"?> <policy> 	<general> 		<name>%POLICY_NAME%</name> 		<enabled>true</enabled> 		<frequency>Ongoing</frequency> 		<trigger_other>Install_%NAME%</trigger_other> 		<category> 			<name>%POLICY_CATEGORY%</name> 		</category> 	</general> 	<scope>         <all_computers>true</all_computers> 	</scope> 	<package_configuration> 		<packages> 			<size>1</size> 			<package> 				<name>%pkg_name%</name> 				<action>Install</action> 			</package> 		</packages> 	</package_configuration> 	 	</scripts> 	<self_service> 		<use_for_self_service>true</use_for_self_service> 		<self_service_display_name>%SELF_SERVICE_DISPLAY_NAME%</self_service_display_name> 		<install_button_text>%INSTALL_BUTTON_TEXT%</install_button_text> 		<reinstall_button_text>%REINSTALL_BUTTON_TEXT%</reinstall_button_text> 		<self_service_description>%SELF_SERVICE_DESCRIPTION%</self_service_description> 		<feature_on_main_page>false</feature_on_main_page> 	</self_service> 	<maintenance> 		<recon>true</recon> 	</maintenance> </policy>

OK, nothing wrong with that. The only real reason that "Problem with Script" comes up is because the script named in the policy template cannot be found. I just had the same problem but it was because I had forgotten to upload the script to that particular Jamf instance.
I think you need to double-check the script name. Better still, include the script in your recipe, then there's no doubt about the script matching...

my Bad, it was permission Issue, autopkg user didn't have Script Permissions in Jamf (read create update delete) none of them was selected.
it's strange, i used the JamfPolicyUploader the whole time (without need to give Autopkg Script-Permissions.
thank u so much for your Supporting :)


[RFC] Let the default integer type depend on the platform

Right now Int32 is the default type for integer literals that don't have a type:
x = 1
typeof(x) # => Int32

We also have #4011, where Array is limited to an Int32 length... and in fact we also have this limit in String, Slice, Hash and basically every container. I think this can indeed be a problem if someone wants to have a program with that memory. Maybe right now it's not that common, but as time passes maybe we'll have 128 bits machines and having more and more data will be common?
In any case, we should have an integer type that depends on the platform and have containers that support such size.
To do that, I propose all of the following:

We rename the current Int type to Integer
We introduce an Int type that is an alias of Int32 or Int64, depending on the platform
We let untyped integer literals have an Int type (though values larger than Int32::MAX will have an Int64 type)
We change Slice, Array, Hash and String lengths to be Int
We start using Int in most places instead of Int32

We can then also do the same with UInt (and have literals like 123u).
This change doesn't have to be done now, but I believe eventually we'll have to do it.

This will cause portability problems, and I really don't think thats a good idea.
I don't think this is actually going to happen either. The size of pointers is unlikely to change to be 128bit in the near future simply because having 16 exibytes memory is actually almost physically impossible. By the time physics gets to the level where we have to worry about 128bit address busses we'll all be dead.
Since the integer size of processors is closely related to the pointer size, I don't forsee support for more than native 256bit arithmetic in the future. I think a good bet would be 64bits as a good default integer size until basically forever

After some research, the performance impact may be negligible, it can even improve a bit. This needs confirmation for the Crystal case.
It's too bad now on 64bits machines to not use by default all available bits in the registers.

@RX14 Well, yeah, it's what I propose or at least changing the default int size to Int64... not sure how will that behave in 32 bits systems (yes, Crystal still supports those).
I forgot to mention that what I propose is how it works in Go and Nim. I didn't check other languages, thought...

For reference, Rust has is isize and usize and Golang int and uint.

Using 64bits integers on 32bits systems will undoubtly kill the performance, really bad idea.
armhf is still there, and in general 32bits is and will be still widely used in efficient/embedded systems. One Crystal aim is to be efficient, some users target this machines because it fits perfectly on Raspberries, Arduino, routers...
@asterite 's proposal will bring better use of the underlying system's registers, bringing eventually more performance.

Hm, Rust's default integer type is Int32, and they say it's the fastest type, even in 64 bits systems. So that's something to think about...

@j8r We do have such type, it's LibC::SizeT. Having a type for it is not a problem. The problem is that the current containers (and even files) have a limit of int32, where the limit should be Int64 (or UInt64) in 64 bits systems. And how to design the language in a way that you don't have to constantly cast stuff, or that a program compiles fine both in 32 and 64 bits, even though a type changes definition from one system to another.

@asterite I appreciate your concerns about possible performance hits, but real world apps indeed require machine-dependant lengths of containers.

Having a simple Int type (and UInt) instead of specifying Int32 would be very nice! Same for the Integer alias, it's a very good idea.
Having an arch dependent integer size would help fix some inconsistencies (e.g. pointer address), and probably help with some C bindings, and yes, allow container types (String, Array, ...) to be capable to map more memory.
I'm not sure about making Int be arch-dependent. You'd have to remember about it and that could lead to portability issues between 32 and 64-bit arch. But Go does that, so maybe it's not much of a concern? We can still use explicit Int32 or Int64 when needed.
Defaulting to 64-bit on all architectures would ruin program performance on 32-bit architectures, so I'm uncomfortable with that. It also feels like wasted space to me; I seldom need integers to be in the 64-bit range, but that's my personal impression.

Swift also uses Int and UInt for arch dependent integer sizes (see https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html#ID317).
Performance impact shouldn't matter much since we'll soon have check for overflow anyway, and can always use an Int32 when needed.

The PR as proposed is good :+1:

+1

Maybe the standard library can use arch-dependant integer sizes correctly. I don't trust anyone else to run CI on 32-bit systems, simply because it's very hard to set up. For that reason, we shouldn't encourage or expose arch-specific integer types (outside LibC, where they're not known) because without error-prone automatic casting like C, we will end up with all libraries defacto only working on 64-bits. And that's not a situation I want to be in. Extremely strong thumbs down on this whole feature.

Swift uses arch-dependant default integer sizes because swift is specifically designed for objective-c compatibility, recounting etc. I doubt swift would be designed as-is if not for those constraints.

Also note that in go, int and int32/int64 are seperate types which always require an explicit cast to go between. This avoids the compilation/portability problem, but doesn't avoid the issue of overflow.

@RX14 that's a good point

I think the only container that effectively needs 64 bit size is Slice, but that is really needed. Being able to load and access more than 4 gigabytes of data in memory is not a thing for the future but actually common in some applications.
Crystal should be able to use 64 bit sizes for Slice, one way or the other. It probably doesn't need a platform-dependent integer type. Maybe it's fine to just use Int64 even on 32 bit platforms. Can anyone tell how much of a performance impact that would have?

I strongly believe that by the time anyone is using crystal on embedded linux, they will be using it on aarch64 or a similar 64bit architecture - simply due to economies of scale with the smartphone soc market. So I'm really in favour of using 64bit for pointers and slices. Arrays, strings and other containers can be discussed later after we've agreed a strategy for slice.

For the record: Pointer already uses UInt64 for addresses even on 32 bit platforms.

Assuming that 32-bit is dead is a bold assumption. I doubt Raspberry will drop its 32-bit models anytime soon, and they don't seem eager to have an arm64 Raspbian for the Pi 3.
Assuming that max integer size is always the pointer size is wrong. On Arduino pointers are 8-bit (or maybe it's 16?) but an int is 32-bit. On ARM the FPU has 64-bit registers. Who can say in some years there won't be an arch with 64-bit pointers and 128-bit integers? Most languages already provide support for them.
I don't know if an Int type should be arch-dependent. What I know is that lower-level languages, such as Rust chose to keep it a 32-bit integer, and to introduce an arch-dependent type (isize and long for C), whereas similar languages such as Go and Swift decided it to be arch-dependent.
Swift didn't have to:

all supported Apple devices and OSes are 64-bit;
there is no Obj-C compatibility issue (where an int is 32-bit and long is arch-dependent).

Swift could have fixed Int to be Int64 and keep a Long type around for Obj-C compatibility, yet, they didn't and instead chose for Int to be arch-dependent. That's an interesting choice, and IMHO a realistic one.

@ysbaddaden even if 128bit arithmetic pops up as common (we already have an Int128 type), I doubt it'll be a common type for people to use.
I'm also not thinking about dropping 32bit support, but I'm being realistic that 99%+ of the usage of crystal will be on desktops and servers. So taking a performance hit on 32bit is acceptable.
However, for the record, I think the status quo on int types is just fine too. The only thing that really needs to be changed is the types inside certain specific containers to 64bit. Any proposal to make architecture-dependant types common or recommended outside of C-interface is a huge no from me though.

32-bit users, of embedded or old devices, don't have to be relagated to second class citizens.
For now, for things limited by of the system's register/pointer size, like containers,  a new system dependent type like IntT and UIntT can be used (or whatever name), based on LibC::SizeT.
This will change nothing for 32-bit, and more space for 64-bit.
Like @ysbaddaden said, all isn't black and white. With RISC-V coming, and also OpenRISC, this opens even more possibilities.
The language adaptating itself a bit depending of the platform will allow to take more advantage of the system's characteristics.

@j8r This is no an issue as long as the type is only used internally. But with Slice#size returning Int32 or Int64 depending on platform, you can end up having different types in your math operations and potentially risk overflows on 32 bit systems.

@straight-shoota good point. This could return an IntT, and then casting can be made.
Or simply just let users cast with `to_i if they want reducing the risk of overflow.
But at first, if we agree to start using them progressively at some places internally, it would be a nice start 😀
An example may be #6644
The hypothetic IntT could be a dedicated type, not just an alias, something like 9_t and 9_ut with #to_t for casting.

Closing because I think this is a bad proposal. The way to go would be to have a separate int type that's not compatible/assignable from other int types, like in Go. That would make compilation on one system always compile on another system. But I don't think we can do that, or we'll do that.


Bundle grpc/protobuf curl zlib ssl in release-5.2 (#3896) (#3901) (#3974) (#3987)

the cherry-pick of https://github.com/pingcap/tiflash/pull/4211

What problem does this PR solve?
Issue Number: close #4196
Problem Summary:
What is changed and how it works?
Reference: https://github.com/grpc/grpc/issues/23144
Change to use boringssl.

cherry-pick (#3896) (#3901) (#3974) (#3987)
update ci/cd process

use cmake-3.22
optimize integration tests process

Check List
Tests

[x] Unit test
[x] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

Fix the potential crash issue that occurs when TLS is enabled

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: zanmato1984:x: Zhi QiZhi Qi 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.

/run-all-tests

/run-unit-test

/run-unit-test

/run-unit-test

/run-all-tests

/run-unit-test

/run-unit-test

/run-unit-test

/run-integration-test

/merge


User-Guide Documentation Git as a Data Source

Fixes: #97

User Guide for utilizing the git as a data source feature within Nautobot.

Would be good to review common issues and troubleshooting. Also, should likely be more explicit about what is supported from token vs ssh as an example.

token vs ssh as an example.

@itdependsnetworks can you expand one what you're looking for on the ssh vs. token section?  SSH isn't supported right now in the integration, and Git suggests to use HTTPS.  Are you talking about the fact that you must use a PAT and what permissions to use with that?

Just saying that it should be made clear that only token is supported right now. Should also review what it looks like when it fails to connect, and some potential ways to troubleshoot.

Just saying that it should be made clear that only token is supported right now. Should also review what it looks like when it fails to connect, and some potential ways to troubleshoot.

I did add a troubleshooting common issues section with screen shots.

Hmm. Looks like that failed to add highlighting on RTD, as https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/jinja.min.js is returning a HTTP 404. Looking more closely at the HighlightJS docs, jinja is an alias for django -- try using django here instead? (continuing to use jinja in the actual markdown file should be fine.)

Sure, I was just looking at this.  I'll play with it a bit more.

@jeffkala Can you please fix the merge conflicts so we can get this finalized? Thank you!

@jeffkala Can you please fix the merge conflicts so we can get this finalized? Thank you!

@jathanism should be good now. Sorry for the delay.


Certified Kubernetes updates

Pre-submission checklist:
Please check each of these after submitting your pull request:

[x] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[x] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[x] Have you picked the single best (existing) category for your project?
[x] Does it follow the other guidelines from the new entries section?
[x] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[x] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[x] Does your project/product name match the text on the logo?
[x] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[x] ~15 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

Build failed because of:
no headquarter addresses for open-infrastructure-foundation at https://www.crunchbase.com/organization/open-infrastructure-foundation

Build failed because of:
no headquarter addresses for open-infrastructure-foundation at https://www.crunchbase.com/organization/open-infrastructure-foundation

Build failed because of:
Integration tests have failed for unclear reasons. Please run locally for more info and/or ask for help on #landscapers-help on slack.cncf.io


Use TestUtil.problemsService() consistently in functional tests

Fixes https://github.com/gradle/bt-ide-experience/issues/33
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test QFL

I've triggered the following builds:

Quick Feedback - Linux Only (Trigger) (Check)

Build Scan

@bot-gradle merge

Can't merge a draft PR.

The following builds have failed:

Quick Feedback - Linux Only (Trigger) (Check)

Build Scan

@bot-gradle merge


Can't bind a Specktrum receiver to Pixhawk 4 board.

Hi guys,
First time posting, I've had a quick look across the group but I can't see a post that answers my issue:
I’ve just bought a pixhawk 4 board from holybros and I can’t get a spektrum dsmx satellite receiver to connect to my transmitter
I’ve tried all three options in the spektrum bind option in QGroundControl, but each time the status led on the GPS module flashes green, there’s three quick beeps, the led on the receiver flashes once and then nothing.
I've also sucessfully bound the satellite receiver using the master receiver.  But when I plug it into the pixhawk, it doesn't light up and QGround Control says there is no connection.
I’ve tried using an identical satellite receiver and got the same results.  There is 3.29V being supplied from the DSM/S-BUS RC socket and the supplied cable has good continuity.  I've also tried powering the pixhawk from a battery as well as USB.
The satellite receivers are about 7-8 years old, although they do still work.  Could this be an issue?
Transmitter: Spektrum DX8. Tried using 11ms and 22ms frame rate as well as an additional Spectrum DX7.
Receivers: Two satellite receivers from two Spektrum AR8000 receiver kits. One was bound, one had never been used.
Pixhawk 4 board: 1.7.3dev set to generic ground vehicle (I’m building a rover).
QGround Control v3.3.2
Log to follow.

Please upgrade the Pixhawk 4 board to v1.8 and also potentially try a different "airframe" vehicle config.

Hi Lorenz, I've now tried both of those things and still have exactly the same issue.  Any more suggestions?

Hello, this has been solved now.  The Pixhawk - DSM cable supplied with the Pixhawk was incorrectly wired on the receiver end.  Swapping the voltage and signal wires solves the issue.


Fix non-commutative pointwise combinations

This fixes #120, but in a way I don't overly appreciate. It could possibly do with some refactoring, and I'm not sure whether the math is correct.
I'd love to have @OAGr take a look at some parts before merging. I'll highlight them in a review

Codecov Report

Merging #308 (8deb796) into develop (b682a27) will decrease coverage by 0.56%.
The diff coverage is 58.73%.

@@             Coverage Diff             @@
##           develop     #308      +/-   ##
===========================================
- Coverage    61.75%   61.18%   -0.57%
===========================================
  Files           33       33
  Lines         2021     2056      +35
===========================================
+ Hits          1248     1258      +10
- Misses         773      798      +25

Impacted Files
Coverage Δ

...rescript/Distributions/GenericDist/GenericDist.res
78.30% <0.00%> (-3.88%)
:arrow_down:

...pt/Distributions/GenericDist/GenericDist_Types.res
23.72% <0.00%> (-0.84%)
:arrow_down:

...cript/Distributions/PointSetDist/Distributions.res
66.66% <ø> (ø)

.../src/rescript/Distributions/PointSetDist/Mixed.res
40.59% <0.00%> (ø)

...Interface/ReducerInterface_GenericDistribution.res
61.94% <0.00%> (-2.41%)
:arrow_down:

...ns/DistributionOperation/DistributionOperation.res
58.26% <11.11%> (-4.36%)
:arrow_down:

...rescript/Distributions/PointSetDist/Continuous.res
60.74% <75.00%> (+0.57%)
:arrow_up:

...butions/PointSetDist/AlgebraicShapeCombination.res
25.58% <95.83%> (+0.38%)
:arrow_up:

...script/Distributions/PointSetDist/PointSetDist.res
73.86% <100.00%> (+0.30%)
: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 25a6918...8deb796. Read the comment docs.

It could possibly do with some refactoring, and I'm not sure whether the math is correct.

I think you and/or Nuno should try to confirm that the math is correct somehow.
I don't understand this part of the code well, so it would take me a lot of time to figure out if it is correct or not.
In terms of making sure some stuff is working, we could use monte carlo for now.
We can discuss more when you get here.

I'm going to be working on the pointwise-commutative-error branch. Please don't merge this yet

The main part of this is addressed in #342. However, there is a second part (Nuno's convolution code) that I haven't created a PR for. I'm thinking I might put this aside for now, just because I'd like to make sure that we have a testing library to ensure that Nuno's code actually is better than the original stuff before going forward.


query for multiple sheets should always return a multi-sheet response

right now a query for multiple sheets will return a single sheet if only 1 sheet exists from the queried set, but there's no way to identify which sheet it is
I propose we always return a multi-sheet response for multi-sheet requests, even if there's 1 sheet in the response
example of the problem: https://www.hlx.live/tools/hidden-features.json?sheet=pfizer--all&sheet=pfizer--anything-else

wdyt @tripodsan @dominique-pfister ?

there was a concern this wouldn't be backwards compatible and could introduce issues if any site was relying on the single sheet response for multi sheet queries. sharing details here for completeness:
https://helix.coralogix.com/#/query-new/logs?id=3XLyzArarVP&page=0&querySyntax=lucene

excluding helix-website, 4 sites used multi-sheet queries between 05/23/23 and 05/30/23

hlxsites/fcbayern
adobe/design-website
hlxsites/wknd

all requests in that period returned a multi-sheet response

looks safe to change this


Checkboxes not rendering

🐛 Describe the bug
Not sure where to ask this question other than a bug request.. but I can't get them to render properly

Versions
All versions are up to date etc.. like I said not sure where to ask this question other than create a bug ticket

Hey @hsheikhali1, I'm guessing you need to set conceallevel to a higher value, such as 2. See https://github.com/epwalsh/obsidian.nvim/issues/264 and https://github.com/epwalsh/obsidian.nvim#concealing-characters.

Hey @hsheikhali1, I'm guessing you need to set conceallevel to a higher value, such as 2. See #264 and https://github.com/epwalsh/obsidian.nvim#concealing-characters.

Thanks @epwalsh that's exactly what I was looking for !!


Stop sending manual change notes to Panopticon

We want to reduce our dependency on Panopticon, to eventually remove our
dependency on it.
Before this change, we were relying on Panopticon to register the route for the
change notes/updates with router-api. By sending it on the content item,
publishing-api/content-store will do it for us.
There will be some cleanup work to remove the existing change notes from
Panopticon's database and the ManualChangeHistory model from
govuk_content_models and where it is used in govuk_content_api.

:+1:


Cover always reports UP position, can only get cover to move DOWN but never UP.

Describe the bug
Curtain always report 'UP position'. and you can only click on down button. When the curtain is down there's no way to get it up. You can only ever get it down.
Expected behavior
Correct indication of position of the curtain. And possibility to move the BOTH up and DOWN :)
Screenshots
Both curtains are currently in their DOWN position. You can see that you can only make them go DOWN with the down arrow. And because in reality they are already down they won't move.

Home Assistant Version

2021.7.4

Device info (please complete the following information, which can be found in log):
{
"active_time":<PHONE_NUMBER>,
"biz_type": 18,
"category": "cl",
"create_time":<PHONE_NUMBER>,
"icon": "smart/program_category_icon/cl.png",
"id": "",
"ip": "",
"lat": "",
"local_key": "",
"lon": "",
"name": "Curtain 1",
"online": true,
"owner_id": "5049300",
"product_id": "xmn86dg364jogqec",
"product_name": "RD智能 窗帘电机",
"status": [
{
"code": "control",
"value": "open"
},
{
"code": "percent_control",
"value": 0
},
{
"code": "control_back",
"value": true
},
{
"code": "work_state",
"value": "opening"
}
],
"sub": false,
"time_zone": "+00:00",
"uid": "",
"update_time":<PHONE_NUMBER>,
"uuid": ""
},
Device specifications (please complete the following information, which can be found in log):
}
2021-07-28 15:09:14 DEBUG (SyncWorker_0) [tuya iot] Request: method = GET, url = https://openapi.tuyaeu.com/v1.0/devices/83652817a4e57c8aa682/specifications, params = None, body = None, headers = {'client_id': '', 'sign': '', 'sign_method': 'HMAC-SHA256', 'access_token': '', 't': '1627481354001', 'lang': 'en'}
2021-07-28 15:09:14 INFO (SyncWorker_1) [homeassistant.loader] Loaded notify from homeassistant.components.notify
2021-07-28 15:09:14 DEBUG (Thread-4) [tuya iot] _on_log: Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k60) client_id=b'cloud_5840e766ed9f7ca9a3ee6d2ec7da04b6'
2021-07-28 15:09:14 DEBUG (SyncWorker_0) [tuya iot] Response: {
"result": {
"category": "cl",
"functions": [
{
"code": "control",
"type": "Enum",
"values": "{"range":["open","stop","close"]}"
},
{
"code": "percent_control",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code": "control_back",
"type": "Boolean",
"values": "{}"
}
],
"status": [
{
"code": "control",
"type": "Enum",
"values": "{"range":["open","stop","close"]}"
},
{
"code": "percent_control",
"type": "Integer",
"values": "{"unit":"%","min":0,"max":100,"scale":0,"step":1}"
},
{
"code": "control_back",
"type": "Boolean",
"values": "{}"
},
{
"code": "work_state",
"type": "Enum",
"values": "{"range":["opening","closing"]}"
}
]
},
"success": true,
"t":<PHONE_NUMBER>057
}
Additional context
Add any other context or logs about the problem here.

I tried new code for cover.py and the issue don't dissapear. (#227 )

Hello, I can confirm the issue is still active.

@Yersi88 Check v1.5.0.

@tsutsuku the initial issue is fixed, however the slider position isn't working, it doesn't indicate the % of percent_control properly, is always static in HA. Happening on blind too.

@tsutsuku the initial issue is fixed but the state for blinds and curtains isn't updating and their is no history (likely due to no state changes).


Add repair test for CASSANDRA-13153

Complementary dtest for CASSANDRA-13153

The ticket has been committed and the PR can now be merged. Thanks!


Marriage in CCO

I'm uncertain what class Married represents. It's a subclass of Stasis of Generically Dependent Continuant. That being so, what is the GDC? The definition of Married makes reference of a legal contract. Is the GDC therefore a Directive Information Content Entity? That seems more like a marriage license than the marriage itself.
In BFO, one of the examples of relational quality is "A marriage bond". Assuming that "marriage" is a colloquial form of "marriage bond", a marriage would fit more naturally in CCO as a Stasis of Quality.

@swartik Marriage is ambiguous. For discussion w.r.t. BFO, see section 4.5 of the following: https://philpapers.org/archive/OTTBBF.pdf
I believe in this case the intent is that cco:Marriage refers to the state during which the legal contract is valid. For this reason, it is a process and has duration and the relevant GDC would be the effective legal contract. One of the reasons I think it is preferred to model marriage in this way is that it also allows for easy timestamping in OWL, whereas performing this with a relational quality would require a three place predicate.
@APCox does my guess as to the intent seem correct?
The definition could be clearer w.r.t. the GDC in question. Any takers on a candidate revision?


What the setting of parameters needed to reproduce the LongLLMLingua?

Because the parameter's name in the paper does not match the API compress_prompt calling parameter's name.
So what the setting of parameters needed to reproduce the LongLLMLingua?
The following are the parameter settings I speculate:
prompt  = compressor.compress_prompt(
    context=documents,
    instruction=instruction,
    question=question,
    ratio=0.75, # for 4x speedup
    iterative_size=200,
    condition_compare=True,
    condition_in_question='after',
    rank_method='longllmlingua',
    reorder_context='two_stage',
    dynamic_context_compression_ratio=0.25,
    context_budget="*2.0",
)

Hi @czwlines,
most of the parameters are correct, but reorder_context should be sort, condition_in_question set to after_condition, and bigger dynamic_context_compression_ratio like 0.3 or 0.4, smaller context_budegt like *1.3 or +300.
We will make our parameters open-source after the review process.


freeBSD 13 custom engine binaries, but it doesn't work properly.

I build freeBSD 13 custom engine binaries, but it doesn't work properly.
In the project directory I created the .env file and set the binary engine configuration, but I keep trying to download the engine and it fails.
/workspace/orm# export PRISMA2_BINARY_PATH="/workspace/orm/prisma/binaries/"
/workspace/orm# export PRISMA_BINARY_PATH="/workspace/orm/prisma/binaries/"
/workspace/orm# npx prisma init
Warning Precompiled engine files are not available for freebsd13. Read more about building your own engines at https://pris.ly/d/build-engines Downloading Prisma engines for Node-API for freebsd13 [                    ] 0% Error: Not Found https://binaries.prisma.sh/all_commits/d6e67a83f971b175a593ccc12e15c4a757f93ffe/freebsd13/introspection-engine.gz

Other CLI commands also give the same error.
Why do I keep trying to download??  what did i do wrong??
/workspace/orm/prisma/binaries# test-cli introspect --file-path prisma/schema.prisma
reading the prisma schema from prisma/schema.prisma
Error: Some(Object {"is_panic": Bool(false), "message": String("\u{1b}[1;91merror\u{1b}[0m: \u{1b}[1mEnvironment variable not found: DATABASE_URL.\u{1b}[0m\n  \u{1b}[1;94m-->\u{1b}[0m  \u{1b}[4mschema.prisma:4\u{1b}[0m\n\u{1b}[1;94m   | \u{1b}[0m\n\u{1b}[1;94m 3 | \u{1b}[0m  // url      = \"postgresql://test:test@<IP_ADDRESS>:5443/test?schema=public\"\n\u{1b}[1;94m 4 | \u{1b}[0m  url      = \u{1b}[1;91menv(\"DATABASE_URL\")\u{1b}[0m\n\u{1b}[1;94m   | \u{1b}[0m\n"), "meta": Object {"full_error": String("\u{1b}[1;91merror\u{1b}[0m: \u{1b}[1mEnvironment variable not found: DATABASE_URL.\u{1b}[0m\n  \u{1b}[1;94m-->\u{1b}[0m  \u{1b}[4mschema.prisma:4\u{1b}[0m\n\u{1b}[1;94m   | \u{1b}[0m\n\u{1b}[1;94m 3 | \u{1b}[0m  // url      = \"postgresql://test:test@<IP_ADDRESS>:5443/test?schema=public\"\n\u{1b}[1;94m 4 | \u{1b}[0m  url      = \u{1b}[1;91menv(\"DATABASE_URL\")\u{1b}[0m\n\u{1b}[1;94m   | \u{1b}[0m\n")}, "error_code": String("P1012")})

.env
PRISMA_CLI_QUERY_ENGINE_TYPE=binary
PRISMA_QUERY_ENGINE_BINARY=./prisma/binaries/query-engine
PRISMA_MIGRATION_ENGINE_BINARY=./prisma/binaries/migration-engine
PRISMA_INTROSPECTION_ENGINE_BINARY=./prisma/binaries/introspection-engine
PRISMA_FMT_BINARY=./prisma/binaries/prisma-fmt
PRISMA_QUERY_ENGINE_LIBRARY=./prisma/binaries/libquery_engine.so
DATABASE_URL="postgresql://test:test@<IP_ADDRESS>:5443/test?schema=public"

package.json
{
  "name": "orm",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "dotenv": "^16.0.3"
  },
  "devDependencies": {
    "prisma": "^4.8.1"
  }
}

/workspace/orm# ls -l
total 24
-rw-r--r--  1 root  wheel   435 Jan 16 03:57 .env
drwxr-xr-x  2 root  wheel     3 Jan 15 14:56 .vscode
-rw-r--r--  1 root  wheel    81 Jan 16 03:26 index.js
drwxr-xr-x  6 root  wheel     7 Jan 16 02:06 node_modules
-rw-r--r--  1 root  wheel  2341 Jan 16 02:06 package-lock.json
-rw-r--r--  1 root  wheel   317 Jan 16 02:59 package.json
drwxr-xr-x  3 root  wheel     4 Jan 16 02:55 prisma
-rw-r--r--  1 root  wheel    70 Jan 15 14:47 prisma.code-workspace

/workspace/orm/prisma/binaries# ls -l
total 57669
-rwxr-xr-x  1 root  wheel  14523472 Jan 15 18:33 introspection-engine
-rwxr-xr-x  1 root  wheel    314832 Jan 15 18:34 libprisma_fmt_build.so
-rwxr-xr-x  1 root  wheel  14669112 Jan 15 18:34 libquery_engine.so
-rwxr-xr-x  1 root  wheel  11756136 Jan 15 18:35 libquery_test_macros.so
-rwxr-xr-x  1 root  wheel   3133216 Jan 15 18:35 libtest_macros.so
-rwxr-xr-x  1 root  wheel   3109696 Jan 15 18:36 libuser_facing_error_macros.so
-rwxr-xr-x  1 root  wheel  16355776 Jan 15 18:37 migration-engine
-rwxr-xr-x  1 root  wheel   3174112 Jan 15 18:37 prisma-fmt
-rwxr-xr-x  1 root  wheel  16771192 Jan 15 18:38 query-engine
-rwxr-xr-x  1 root  wheel  16337176 Jan 15 18:38 test-cli

Usually this kind of error happens if either the env vars are not actually set in your environment (check that they are), or if the paths don't point to the correct location.
One issue I see here is how your library is called libquery_engine.so. You should rename it to libquery_engine.node so it can be loaded correctly. This probably is not the reason for the issue, but will cause issues later on.
You can take a look how we handle these variables for NixOS:
https://github.com/prisma/prisma-engines/blob/main/nix/cli-shell.nix

What output do you get on prisma -v? That will tell you if the environment variables are correctly picked up and if it tries to correctly run the correct paths. I should also give some more input what might be going wrong.

npm prisma -v
8.19.1

`# export PRISMA_CLI_QUERY_ENGINE_TYPE="binary"
export PRISMA2_BINARY_PATH="/workspace/orm/prisma/binaries"
export PRISMA_BINARY_PATH="/workspace/orm/prisma/binaries"
export PRISMA_QUERY_ENGINE_BINARY="/workspace/orm/prisma/binaries/query-engine"`
`# echo $PRISMA_CLI_QUERY_ENGINE_TYPE
binary
echo $PRISMA2_BINARY_PATH
/workspace/orm/prisma/binaries
echo $PRISMA_BINARY_PATH
/workspace/orm/prisma/binaries
echo $PRISMA_QUERY_ENGINE_BINARY
/workspace/orm/prisma/binaries/query-engine`
`# npx prisma -v
Warning Precompiled engine files are not available for freebsd13. Read more about building your own engines at https://pris.ly/d/build-engines

Downloading Prisma engines for freebsd13 [                    ] 0%Error: Not Found https://binaries.prisma.sh/all_commits/d6e67a83f971b175a593ccc12e15c4a757f93ffe/freebsd13/prisma-fmt.gz`

Did you set all the needed variables?

PRISMA_MIGRATION_ENGINE_BINARY: The executable migration engine in a working path.
PRISMA_QUERY_ENGINE_BINARY: The executable query engine in a working path.
PRISMA_QUERY_ENGINE_LIBRARY: The Node API library file, .so renamed to .node.
PRISMA_INTROSPECTION_ENGINE_BINARY: The executable introspection engine in a working path.
PRISMA_FMT_BINARY: The executable formatter in a working path.

They all have to be set and working for the binary bypass to work.

After export all binary engines, the contents of the .env are recognized and operate normally. 😂
I think need to update the custom engine binaries tutorial.
Thank you @pimeys
⋊> export PRISMA_CLI_QUERY_ENGINE_TYPE="binary"
⋊> export PRISMA_QUERY_ENGINE_BINARY="/workspace/orm/prisma/binaries/query-engine"
⋊> export PRISMA_MIGRATION_ENGINE_BINARY="/workspace/orm/prisma/binaries/migration-engine"
⋊> export PRISMA_INTROSPECTION_ENGINE_BINARY="/workspace/orm/prisma/binaries/introspection-engine"
⋊> export PRISMA_FMT_BINARY="/workspace/orm/prisma/binaries/prisma-fmt"
⋊> export PRISMA_QUERY_ENGINE_LIBRARY="/workspace/orm/prisma/binaries/libquery_engine.node"

⋊> env | grep PRISMA
PRISMA_FMT_BINARY=/workspace/orm/prisma/binaries/prisma-fmt
PRISMA_CLI_QUERY_ENGINE_TYPE=binary
PRISMA_MIGRATION_ENGINE_BINARY=/workspace/orm/prisma/binaries/migration-engine
PRISMA_QUERY_ENGINE_BINARY=/workspace/orm/prisma/binaries/query-engine
PRISMA_INTROSPECTION_ENGINE_BINARY=/workspace/orm/prisma/binaries/introspection-engine
PRISMA_QUERY_ENGINE_LIBRARY=/workspace/orm/prisma/binaries/libquery_engine.node

⋊> cat /workspace/orm/.env
PRISMA_CLI_QUERY_ENGINE_TYPE=binary
PRISMA_QUERY_ENGINE_BINARY=./prisma/binaries/query-engine
PRISMA_MIGRATION_ENGINE_BINARY=./prisma/binaries/migration-engine
PRISMA_INTROSPECTION_ENGINE_BINARY=./prisma/binaries/introspection-engine
PRISMA_FMT_BINARY=./prisma/binaries/prisma-fmt
PRISMA_QUERY_ENGINE_LIBRARY=./prisma/binaries/libquery_engine.node
DATABASE_URL=postgresql://test:test@<IP_ADDRESS>:5443/test?schema=public

⋊> npx prisma -v
Warning Precompiled engine files are not available for freebsd13. Read more about building your own engines at https://pris.ly/d/build-engines
Environment variables loaded from .env
prisma                : 4.8.1
@prisma/client        : 4.9.0
Current platform      : freebsd13
Query Engine (Binary) : query-engine 8216abc56c0f2a7e0bf05489a7555da4b7ed1999 (at prisma/binaries/query-engine, resolved by PRISMA_QUERY_ENGINE_BINARY)
Migration Engine      : migration-engine-cli 8216abc56c0f2a7e0bf05489a7555da4b7ed1999 (at prisma/binaries/migration-engine, resolved by PRISMA_MIGRATION_ENGINE_BINARY)
Introspection Engine  : introspection-core 8216abc56c0f2a7e0bf05489a7555da4b7ed1999 (at prisma/binaries/introspection-engine, resolved by PRISMA_INTROSPECTION_ENGINE_BINARY)
Format Binary         : prisma-fmt 8216abc56c0f2a7e0bf05489a7555da4b7ed1999 (at prisma/binaries/prisma-fmt, resolved by PRISMA_FMT_BINARY)
Format Wasm           : @prisma/prisma-fmt-wasm 4.8.0-61.d6e67a83f971b175a593ccc12e15c4a757f93ffe
Default Engines Hash  : d6e67a83f971b175a593ccc12e15c4a757f93ffe
Studio                : 0.479.0

So there is not bug?
What exactly needs to be updated where?

In the tutorial.I have information about env, but I don't think I've seen any information about OS shell environment settings, so I think it would be good to supplement that.

Which tutorial do you mean exactly?

As a result of the test, there is no need to set .env. only set the environment variable globally.
In my case, I had to set up all the engines because it was a FreeBSD environment, but how would it work if I used a specific custom engine?
https://www.prisma.io/docs/concepts/components/prisma-engines#setting-the-environment-variable

.env is just a file where you can define environment variable and their values - Prisma CLI reads that file and loads these into the environment. There is nothing magic. Anything you can to via "global environment variables" you can also do with .env.

Would you mind sharing those engine files for FreeBSD13? I have the same problem but I don't know how to build the engines.

As per last message, closing the issue as it is not a bug.


Remove sentry (and raven, the sentry client) from ansible settings

Goes with: https://github.com/dimagi/commcare-hq/pull/8707/files
@dannyroberts @benrudolph
Once this is merged, I will need to run (on each environment):

[ ] Stop sentry service
[ ] Remove sentry from config .yml files
[ ] deploy_proxy
[ ] postgres configuration (pg_hba.conf)
[ ] --tags=localsettings

should localsettings and restart services come before postgres conf? or does it not really matter

@benrudolph I don't think it will really matter, the step I didn't include here is actually stopping the sentry service at which point the rest of this shouldn't have any effect.  Added that step in.

cool,  just checking, i'll go ahead and merge then


Kornia transforms

Thanks for this clean and timely implementation. I have few question about Kornia transforms.
Why did you not use torchvision.transforms in data_loader instead? Is it for performance reason?

@reactivetype yup, for performance reasons, mainly because I didn't want to transform to a pillow image and back to a tensor


Fixes issue #912 - Fix failures when running TCK Sample "ServletRequestTest"

Partially fixes #912
I could not get to fix the getRequestDispatcherTest, more info at https://github.com/piranhacloud/piranha/issues/912#issuecomment-651514704

Please file a separate issue for the getRequestDispatcher bug


Can't make it work

Hi, i'm trying to use the emulator but it's not working, after some research i noticed there is no SDK services at all, i have no idea if i can reinstall it or whatever.
I read that reinstalling synapse would install SDK too, but for some reason it doesn't for me, i tried it several times, and i also tried removing every razer file/register entry/whatever from my computer and doing a clean reinstallation, but it's still the same.
i also can't find a way to download the Chroma SDK Core components as an install file or anything like that, i checked in "https://developer.razer.com/works-with-chroma/download/" but i can't find the link there, is there any way of installing SDK on its own? Cause Synapse is not installing it for me.
Thanks in advance :)

Hi, you can actually uninstalling ChromaSDK without uninstalling Synapse by removing the Chroma Connect module in Synapse, and then you can re-install by selecting the 'Install & Restart' button (refer to the attached screenshot).

please ensure the following folders and files are removed after uninstallation:
C:\Program Files (x86)\Razer Chroma SDK
C:\Program Files\Razer Chroma SDK
C:\Windows\SysWOW64\RzChromaSDK.dll
C:\Windows\System32\RzChromaSDK64.dll
(in case it's not automatically deleted after uninstallation, pls delete manually)
if problem persists, you may gather some logs for checking:
https://mysupport.razer.com/app/answers/detail/a_id/1462/~/how-to-gather-razer-synapse-3-logs-from-a-pc

It's still the same, the problem is that the services arent even there, all the SDK files are installed properly when i install Chroma Connect, but the services are not there.

Please try the following steps:

Open a Command Prompt window as an Administrator.
Type the following command: cd C:\Program Files (x86)\Razer Chroma SDK\bin
Next, type the following command: sc.exe create "Razer Chroma SDK Service" binPath= "C:\Program Files (x86)\Razer Chroma SDK\bin\RzSDKService.exe" start= auto
If the service is successfully created, you should see a message saying "[SC] CreateService SUCCESS".
Restart system

Please try the following steps:

Open a Command Prompt window as an Administrator.
Type the following command: cd C:\Program Files (x86)\Razer Chroma SDK\bin
Next, type the following command: sc.exe create "Razer Chroma SDK Service" binPath= "C:\Program Files (x86)\Razer Chroma SDK\bin\RzSDKService.exe" start= auto
If the service is successfully created, you should see a message saying "[SC] CreateService SUCCESS".
Restart system

Already tried that but for some reason it's not working, the service is created, but i can't run it at all.

And the Conect module is still the same.


ssl

even when a site isnt down, it says "Connection Down!!!". and even if the site goes down i would like to keep hitting. how do i fix??

When the site isn't down and it said "connection down" mean the site do something to protect itself. Maybe you should try port 80 on https server.

If the site got down it will continue hit except the site connection full or "fully" down not like connection timeout and reset.


[modify] compatibility of #sanitize before rails 7.1

…re rails 7.1

既存の設定
https://github.com/shirasagi/shirasagi/blob/master/config/initializers/sanitize.rb
新規の設定方法
https://github.com/rails/rails-html-sanitizer/blob/main/lib/rails/html/sanitizer.rb#L379


_includes not assigning links correctly

This may show my nativity, but the html items within the _includes file do not link the correct links within the _site file upon build. See screen shots attached.

That is
research

Does not yield
research

A little late @adamnicholasprice , but I think this is because the generated page is "served" and not built. If you run bundle exec jekyll serve, it will serve your site locally.
You can create the correct settings for your site url and baseurl (which you may not need) in the config.yml
baseurl: #subpath of your site if needed

When you bundle exec jekyll build, the site should be correctly inserted.


WIP InconsistentMetaDataException repomanager bug

So the problem here is that when we are initializing the server data model we also check for consistency in that model and throw errors if it is not consistent.  This is inconvenient for the repo manager since a data repo could very well have been put in an inconsistent state by a user, and we don't want to throw errors in that case.  The previous solution was to sever init and check functionality and to put the later into checkConsistency functions which were called on server startup, but not on data repo init.  In this case the 2 functionalities are a bit harder to disentangle.  @jeromekelleher do you think this is the right way to approach this?
Issue #946

I think we need to move the consistency checks to repo-add time, and at run time we just assume that everything is OK. Suppose we have 10 thousand BAM files and a bag load of VCFs in our repo. There's no way we can check all of these at server start up. I don't think we should check them at load-time either (i.e., when we actually open the file handle when a request comes in), as this could add a lot of processing overhead and latency.
Does this make sense? So, the idea is that at repo import time, we check the consistency of our data, and every other time we assume it's OK. I think this should be doable, as our dependency model is a DAG. The repo admin has to add the references first before adding readgroupsets.

Agreed. Consistency check are better done by the repo manager.
It's not as performance sensitive as the server, easier to
report detailed errors, and easier for a user to fix when its
something they are actively doing, vs a failure later in time.
Given it is quite easy to for a human to screw up a file-base
repo, a validation mode for the repo manager would be valuable.
Check that the repo is in a consistent state.
Jerome Kelleher<EMAIL_ADDRESS>writes:

I think we need to move the consistency checks to repo-add time, and at run
time we just assume that everything is OK. Suppose we have 10 thousand BAM
files and a bag load of VCFs in our repo. There's no way we can check all of
these at server start up. I don't think we should check them at load-time
either (i.e., when we actually open the file handle when a request comes in),
as this could add a lot of processing overhead and latency.
Does this make sense? So, the idea is that at repo import time, we check the
consistency of our data, and every other time we assume it's OK. I think this
should be doable, as our dependency model is a DAG. The repo admin has to add
the references first before adding readgroupsets.
—
Reply to this email directly or view it on GitHub.*

@dcolligan any progress on this?

updated

fixed tests

I was able to add the 1000 genomes VCFs after pulling down these changes. +1 from me!
This file must be removed from the set ALL.wgs.phase3_shapeit2_mvncall_integrated_v5b.20130502.sites.vcf.gz since it contains contigs represented in other files.


[cmake] A board should support multiple configurations (variants)

right now we support 1 defconfig per board, there are cases where different configuration might be required, for example one will be fully loaded with all peripherals loaded, another would be only enabling basic IOs. We should also be able to have defconfigs for testing and test harnesses etc.
The idea is to have one yaml file per board and support multiple variants.

done in cmake


Issues with meta stacking

I'm having troubles with meta stacking. I have edited the config so stacking is possible, and I have set the weights + tracks, but only displays the prefix with the highest weight when I have added multiple groups to a player.

Nevermind. I uninstalled chatex and used EssentialsXChat and it worked perfectly.


Multiple OpenVPN services running on VM

Problem Statement
Hi, I am wondering what is the best solution to use openvpn-auth-oauth2 plugin when running several OpenVPN services on the same VM. In my case, there are separate services for TCP and UDP mode (e.g. config files - /etc/openvpn/server/tcp.conf & /etc/openvpn/server/udp.conf). At this point, we are using openvpn-auth-ldap plugin for user authentication for both OpenVPN services and want to move to OIDC. Is it necessary to run two openvpn-auth-oauth2 daemons separately for both OpenVPN services in my situation?
openvpn-auth-oauth2 logs
Not related

Environment

openvpn-auth-oauth2 Version: 1.21.2
OpenVPN Server Version: 2.6.10
Server OS: Linux (Ubuntu 22.04)
OpenVPN Client (flavor, OS): Linux/Windows/MacOs

Hi, yes.
for each VPN instance, openvpn-auth-oauth2 must run as dedicated instance, too.

Correct, it is possible, I am currently running two OpenVPN server instances (TCP and UDP) on the same AWS EC2 instance. So, for every OpenVPN server - dedicated openvpn-auth-oauth2 must run and expose dedicated base URL for /oauth2/callback endpoint? I plan to use MS Entra ID provider, is it necessary to register two Azure applications in my case as well?

Hi, I finally had a moment to test and some more questions came up :):

As a provider I use MS Entra ID, I noticed that when I run openvpn-auth-oauth2 plugin it connects to login.microsoftonline.com endpoint. In my case all traffic to the Internet will be proxied, does openvpn-auth-oauth2 support traffic proxying?
Does openvpn-auth-oauth2 expose any healt-check endpoint, e.g. /health or /healthz? In front of OpenVPN server I have set up Load Balancer and it performs some health-checks. At this point, i check connection to TCP:9000 on OpenVPN server, but this approach produce a lot of log warnings:

In my case all traffic to the Internet will be proxied, does openvpn-auth-oauth2 support traffic proxying?

No, not yet. But it seems to be possible to implement http proxy via HTTP_PROXY environment variable.

Does openvpn-auth-oauth2 expose any healt-check endpoint

No, not yet.

I also noticed that after restarting OpenVPN server service (management interface connection terminated), the openvpn-auth-oauth2 service (deb package) is deactivated

I guess Restart=always should help here in the Service section of the unit file. Could you validate this?


Add KMS sample for Forseti bundle

Forseti checks for crypto keys that are older than 100 days. The policy library contains a sample checking for 365 days. In order to switch over, we want to provide a policy that has the same behavior. Add a sample for this.

I think it would be fine to change the existing sample to 365 days.

I think it would be fine to change the existing sample to 365 days.

Thanks, I considered it, but that one is part of a CIS benchmark. I know it's kind of silly to have 2, but want to make sure the default behavior remains the same out of the box with Forseti. And I need to have a sample in order to pull in the policy bundle easily with KPT.

Do you know if the CIS benchmark actually requires this period though, or just the existence of one?
I'm fine with making a separate one if you want though.

I reviewed the CIS benchmark and it looks like it was updated in v1.1 to require the CMEK to be rotated within 365 days. Forseti has defaulted to scanning for 100 days, will submit a PR for a new sample.


How to group alerts by a label AND status? (I want group_by: [alertstatus, alertname])

Currently Alertmanager groups all firing and resolved alerts if config like
group_by:
  - alertname

is used.
I'd like to be able to receive separate notifications about alerts based on both alertname and alert's status.
Maybe I can already do so, but docs don't mention built-in labels, maybe there's already something like 'status' for alerts statuses?

Here I found about alertstate, but it doesn't seem to work.
Also, relevant ticket is #371

Thanks for your report. It looks as if this is actually a question about usage and not development.
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

Would you like me to file a new ticket rephrased as 'Add a way to separate alerts based on alerts state'?

@roidelapluie thank for your suggestion, filed a new ticket.


Regression in c75a817 breaks pkg/test tests

I did the bisect dance to find the commit - looks like its this c75a817
Repo

Get pkg/test: https://github.com/dart-lang/test
pub get
pub run test -x browser test/runner/configuration/

CC @zanderso @nex3

Output from test.
Seems that a weird path is generated? ...
00:03 +31 -76: test/runner/configuration/top_level_test.dart: command line args take precedence
  The schedule had 2 errors:
  ScheduleError:
  | ProcessException: No such file or directory
  |   Command: /Users/kevmoo/source/github/test.dart/p --packages=file:///Users/kevmoo/source/github/test.dart/.packages /Users/kevmoo/source/github/test.dart/bin/test.dart --package-root=/Users/kevmoo/source/github/test.dart/packages --concurrency=1 --timeout=none test.dart

  Stack chain:
  | dart:io                                                    Process.start
  | package:scheduled_test/scheduled_process.dart 158:24       ScheduledProcess._scheduleStartProcess.<fn>.<fn>

More fun:
It seems that Platform.resolvedExecutable is returning garbage. The same tests fail each time, but each run the value changes.
Some samples
value, value.codeUnits
², [57377, 178, 1]
!à², [33, 224, 178]
à, [8, 224]

A scoped allocated string is being cached in a global. I'll have a fix shortly.

https://codereview.chromium.org/1813943004/
This should fix the problem, but I was unable to follow your repro instructions. 'pub get' fails after I clone the test package. Could you please either fix the instructions or post a small reproduction. Thanks!

edit the pubspec.yaml to have a version of 0.12.12
Sorry – it's a difficult repo. I think it involves isolates?

Confirmed in ca924d09d14e54133c1d52c8da1aece6240cd5e6 with original repro – Thanks!


Using HTTPie, sending a POST, PUT, or DELETE request without payload raises a TypeError

Hey there!
Making a request from httpie as http delete localhost:8900/api/entity/1, raises a TypeError on this definition:
@hug.delete('/{uid}')
def delete_entity(uid: hug.types.text):
  try:
    item = Entity.get(Entity.id == uid)
  except peewee.DoesNotExist:
    raise falcon.HTTPNotFound
  else:
    item.delete_instance()
    return item.repr

The traceback (truncated):
[2016-06-05 13:50:14 +0530] [41014] [ERROR] Error handling request /api/entity/1
Traceback (most recent call last):
  ::

  File "/Users/prashantsinha/.virtualenvs/BioDB/lib/python3.5/site-packages/hug/api.py", line 381, in api_auto_instantiate
    return module.__hug_wsgi__(*kargs, **kwargs)
  File "falcon/api.py", line 215, in falcon.api.API.__call__ (falcon/api.c:2563)
  File "falcon/api.py", line 189, in falcon.api.API.__call__ (falcon/api.c:2182)
  File "/Users/prashantsinha/.virtualenvs/BioDB/lib/python3.5/site-packages/hug/interface.py", line 581, in __call__
    input_parameters = self.gather_parameters(request, response, api_version, **kwargs)
  File "/Users/prashantsinha/.virtualenvs/BioDB/lib/python3.5/site-packages/hug/interface.py", line 447, in gather_parameters
    content_type, content_params = parse_content_type(request.content_type)
  File "/Users/prashantsinha/.virtualenvs/BioDB/lib/python3.5/site-packages/hug/format.py", line 35, in parse_content_type
    if ';' in content_type:
TypeError: argument of type 'NoneType' is not iterable

Funny though, if I add some random parameter in HTTPie request, it works fine. eg: http delete localhost:8900/api/entity/1 _=__
I would open a Pull Request with the fix, however, I am not sure if it is something that I am doing wrong here. 😕
A trivial patch for the fix can be:
def parse_content_type(content_type):
    """Separates out the parameters from the content_type and returns both in a tuple (content_type, parameters)"""
    if content_type is not None and ';' in content_type:
        return parse_header(content_type)
    return (content_type, empty.dict)

in hug/format.py
Thanks!

Which version do you use?

I have the version 0.9.3 from homebrew at the moment.
I think it's not a problem with hug, as such. I read httpie docs and found that -f parameter sets the content-type headers.
However, this certainly shouldn't raise a TypeError which leads to 500 error -- rather, the client should be sent a 400 Bad Request with a Missing Header description.

@PrashntS Thanks for finding and fixing this issue! Good work! Your fix has been merged into develop and will make its way into the next release

2.2.0 has now been officially pushed to PYPI with this issue resolved
Thanks!
~Timothy


Small test data

While working on a wrapper for Galaxy I was wondering if there is a small test data set for calisp.
Ideally it would be possible to run calisp as short time as possible .. and size of max 1MB would be cool.

Hi Bernt, I've created a small dataset for testing. Unfortunately it is still about 14 Mb large (that is still  at least 100x smaller than data for a typical MS run). The calisp run is quite fast, about 2 s on my 10 year old laptop. I've added the two input files to the repository, as well as the output that should be expected if calisp is running well. Is this something that could work for you? Would you want those files to be included in a calisp installation? If yes, I'll update setup.py. Let me know...

Dear @kinestetika. This sounds great.

Would you want those files to be included in a calisp installation?

I think this is not necessary.


ci: allow e2e tests to run on arbitrary mayastor source tree MQ-430

I preparation for moving the e2e tests to separate repository,
allow e2e tests to run on arbitrary mayastor repo trees.
The e2e tests will use yaml files in the mayastor source
tree to deploy mayastor as defined for the revision of mayastor
that exists in the mayastor source tree

Stop using relative paths to locate files in the directory trees,
instead rely on 2 absolute paths

mayastor source tree root
e2e test tree root

Reduce reliance on environment variables (which are transient and not
recorded automatically) in favour of using the configuration entity.
Document more clearly where the configuration file is searched for and loaded.

bors try

bors try

bors try

bors try

bors try

bors merge


TBI - Proposal to increase robustness of environment check

Description
Module @sap-ux/environment-check helps analyzing issues when developing SAP Fiori applications by checking the current environment. Main focus is here on connectivity of destinations in  SAP Business Application Studio (BAS) or saved systems in Microsoft Visual Studio Code.
In a BAS environment we experienced situations, where the destination to be checked is not listed and recognized by the environment check tool. Root cause are filter conditions in used module @sap/bas-sdk, which follows a more restrictive approach, meaning new types of destinations need to be allowed-listed. This causes issues with the usability of @sap-ux/environment-check.
Proposal is, to use plain HTTP requests to retrieve the list of destinations over
Value
Better and more robust analyzation of destination issues.
Architecture Elaboration
Replace
https://github.com/SAP/open-ux-tools/blob/74222f04ec0e003519beb3b09be5f536bfbfc819/packages/environment-check/src/checks/destination.ts#L92
with plain HTTP request $H2O_URL/api/listDestinations to retrieve list of destinations.

@Klaus-Keller could you please replace it with a call to https://github.com/SAP/open-ux-tools/blob/74222f04ec0e003519beb3b09be5f536bfbfc819/packages/btp-utils/src/app-studio.ts#L75. It does the same but at least keeps the app-studio specific knowledge in one place.

Closing as sap-ux/btp-utils is now used for retrieving destinations


Add tests and examples for UnionArray::from(data: ArrayData)

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There is no test or example covering UnionArray::from(data: ArrayData). We need to add some.
impl From<ArrayData> for UnionArray {
    fn from(data: ArrayData) -> Self {
        let mut boxed_fields = vec![];
        for cd in data.child_data() {
            boxed_fields.push(make_array(cd.clone()));
        }
        Self { data, boxed_fields }
    }
}

I have found the function is used in try_new which has been tested. So close this issue.


Fix SetFromList serialization

Resolves #2000
Closes #2001

@gkorland @marcosnils ping!

Hi @sazzad16 does this PR not fix this  issue #1304?

@yangbodong22011 Yes, but not entirely. This PR reverts half of #1304


How to host on ip address?

Having issue hosting multiple asp.net core projects on local ip address.
In yaml file i define binding like this:

protocol: http
name: http
host: 192.168.X.X
port: 3043

But project is not starting on ip address, however i can access from localhost:3043 address.

Hi @Sanchklyc,
Thanks for raising an issue!
I'm curious to what you are trying to achieve - are you trying to get your service accessible from computers external to your localhost?
You may be able to access the service using your LAN IP by opening your computers firewall- however this is not recommended.
It also means that your Tye file is not shareable to other developers, as your binding is assuming they use the <IP_ADDRESS>/24 or <IP_ADDRESS>/16 IP ranges.
If you can explain what you are trying to achieve I can do my best to help or advise otherwise.

Hello @Phiph ,
Thanks for your response. I'am trying to host my API which i need to call from my mobile phone so that's why i need to host it on my ip address. When i'm starting project in debugging mode setting ip adress in launchSettings.json, it is hosted on ip adress without problem.
But i couldn't figure out how to achieve the same output with tye.
Thank you.

Hi Team,
I am working on coolstore-microservices on the Linux/AMD64 AWS instance, which uses tye to run the application.
My application ran with tye run and I can curl to http://localhost:8000/ locally on the AWS instance. However, I am unable to open my application in the browser with my public IP of the AWS instance.
May I know, is there a way I can access my application on the AWS public IP on the browser after running tye run?
I have already disabled firewall, but that hasn’t helped.
Kindly provide some pointers on this issue.


terra_sdk.exceptions.LCDResponseError: Status 400 - account sequence mismatch

terra_sdk version: 2.0.3
Python version: 3.9.4
Operating System: Windows
Description
Receiving this error. Happens about 50% of the time after during the second transaction in a pair of rapid succession TXs from the same wallet. Looking for any advice or idea why 1. it seems to happen only sometimes 2. any reason why I cant make 2 TXs back to back. first one never fails, just the second.
terra_sdk.exceptions.LCDResponseError: Status 400 - account sequence mismatch, expected 24, got 23: incorrect account sequence: invalid request
What I Did

https://terra-money.github.io/terra.py/guides/transactions.html#signing-multiple-offline-transactions

thank you. not sure how I missed that.

Terra Network Live Support.
We received your complain kindly visit the official website to chat With a live support CLICK HERE


ONT

There is renewed interest for nanopore sequencing.
If I remember correctly, this just involves the artic workflow creating a consensus fasta file, which can then be used downstream.
I will need some time to look into this, however, and some sample files.

Hopefully this helps for sample files:
We submit all of our clinical sequencing data for samples that received at least 50% reference genome coverage to NCBI. The human read scrubbed fastq files can be found in the SRA submissions associated with our BioProject PRJNA686984.
Let me know if I can help any other way!

Forgive me for taking so long to address this. I have a PR that's almost ready to get released (https://github.com/UPHL-BioNGS/Cecret/pull/221) which might address this issue. This will use artic's pipeline for nanopore reads and allow the generated files into the normal subworkflows (i.e. for pangolin or freyja)
Nanopore reads will be able to be read in via a directory
nextflow run UPHL-BioNGS/Cecret --nanopore <directory with nanopore reads>

Or in a sample sheet
sample,fastq_1,fastq_2
example,example.fastq.gz,nanopore

And then the sample sheet is read in with the sample_sheet param.
nextflow run UPHL-BioNGS/Cecret --sample_sheet samplesheet.csv

I'm running several files through now, and I'm going to compare results to see if what I've done makes sense.


CORE-18457: Remove entity persistence duplication

Ticket CORE-17819: PersistenceWorker - Remove Kafka Implementation, Review Missing Tests and Duplications includes removal of ledger persistence and entity persistence duplication.
This PR addresses subtask CORE-18457: Remove entity persistence duplication
This will include an api change to remove unused entity persistence topic: https://github.com/corda/corda-api/pull/1369

I don't see anything untoward here. The JIRA title has "review missing tests" in it. Are you happy there are no missing tests?

Yes I think so. I think we've discussed it in brief ITO and Miljenko dropped a note in our team slack on the review for missing tests on his opinion that I think makes sense. Also most tests that were there before were switched over to use the new processor and just ones that are no longer used (specific kafka ones) were deleted. 👍


Remove remaining Teams code

WMAgent branch version of https://github.com/dmwm/WMCore/pull/8464

 Fix #8490 - Remove remaining Teams code

Darn it! I just noticed we need to backport it to wmagent 1.1.8 too... it might be a bit more complicated, I'll check whether I can deploy new agents such that we never UNdrain those.


Enhance reducer to simplify compound statement to guard

The reducer can now simplify e.g. "if(e) { ... }" to "e;", and
similarly for loops and switch statements.
Fixes #732.

Just a thought about this: should we instead make it so the "replace if with its body" outputs the guard + the body? Because if "replace if with its body" and "replace if with its guard" both fail, we have increased the number of reduction steps, perhaps quite significantly.


Cleanup templates and remove kafka-bridge templates

_REPO -> _IMAGE
Remove with_kafka parameter
Stop generated enmasse-with-kafka template
Remove old role file

@ppatierno I think both the fact that that it doesn't work (doesnt have authentication + authorization enabled, image version released does not match template versions etc...),  and because we eventually want to support it in an official way (though that is not an immediate plan).

@lulf in order to have this demo (https://github.com/ppatierno/amqp-kafka-demo) still working (for people who are curious about this kind of support) can you point me to the latest EnMasse version that should work so that I can update that repository ? Do you think that it should be the 0.9.0 ?

@lulf for that demo I have to update the references to "barnabas" as well but I'd like to have it working even if we are going to remove the Kafka template from EnMasse (which makes sense to me).

@ppatierno I think maybe 0.11.2 should work


Add unit tests to tabs

Deploy preview for project-koku ready!
Built with commit 97979bdf8867a9f5b3e67c9051e7434017e34dd5
https://deploy-preview-105--project-koku.netlify.com

Codecov Report

Merging #105 into master will increase coverage by 2.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #105      +/-   ##
==========================================
+ Coverage   83.78%   85.82%   +2.03%
==========================================
  Files         113      113
  Lines        1178     1178
  Branches      145      145
==========================================
+ Hits          987     1011      +24
+ Misses        177      153      -24
  Partials       14       14

Impacted Files
Coverage Δ

src/components/tabs/tabContent.tsx
100% <ø> (+50%)
:arrow_up:

src/components/tabs/tabs.tsx
100% <0%> (+28.57%)
:arrow_up:

src/components/tabs/tabItem.tsx
100% <0%> (+63.63%)
:arrow_up:

src/components/tabs/tabNavigation.tsx
100% <0%> (+72.22%)
: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 dc58f34...97979bd. Read the comment docs.

Yeah, I thought about it too.
Let's speak about it offline.

@dlabrecq - I hope I didn't get too far but I think I found a better way to test without snapshot. WDYT?

I'm all for a better way. My thought was we should avoid relying on snapshots and use more traditional unit testing.

great then you probably will love this change (no snapshot, only verifying through props and text). would you mind reviewing it?