Add ability to configure alternate configuration locations on OCP3 cluster

Currently this tool does not work with any oc cluster up environments. That isn't a huge deal since we don't support oc cluster up but for development it would be nice to test this against dev environments that use oc cluster up.
Would be nice if https://github.com/fusor/cpma/blob/master/ocp3/ocp3.go#L104 was configurable in my .cpma.yaml file.

We didn't pay much attention to oc cluster up. We will look into it.
@dymurray do you think the location of master and node config files can be different? Why would you want to change it?

Yeah I know they can be different :) When you run oc cluster up it creates a directory openshfit.local.clusterup which has openshift-apiserver/master-config.yaml and node/node-config.yaml.
I hardcoded these paths in my fork:
// New instantiates and returns Config structure that represents OCP3 configuration
func New() *Config {
        return &Config{
                Masterf: "/tmp/openshift.local.clusterup/openshift-apiserver/master-config.yaml",
                Nodef:   "/tmp/openshift.local.clusterup/node/node-config.yaml",
        }
}

I think it makes sense to focus on /etc/origin since that is where production installs places these files. This is more just a nice to have thing for development.


Documentation

Under "Installing and Building the Software"
"At the top if this page"
Should be changed to "at the top OF this page"

Another excellent catch. Fixed.


Advertise on replag

Add a warning while there is replication lag on dbs
Bug: T60841

Can be seen on https://quarry-dev.wmflabs.org/query/18

This seems to fail in the dev env, when I run a query I get
SELECT command denied to user<EMAIL_ADDRESS>for table `heartbeat_p`.`heartbeat`

This seems to cause the local dev environment to fail.

You are right, corrected.

This new db was added in this PR. Be sure to recreate the "db" container and its volume.


implement DAMAGE action

DAMAGE reduces the health of selected characters.
Action creator should take amount and one or more character (minion or hero) id's. Use rest operator like FREEZE.
It's OK if the character's health drops below zero.
Minions and Heroes reducer should handle DAMAGE.

@Bebersohl Ok.


TypeError: Expected int32, got list containing Tensors of type '_Message' instead

python2 sentence_convnet_final.py --static True --random False
file data/processed/mr.p already exists
Traceback (most recent call last):
File "sentence_convnet_final.py", line 101, in
evaluate_mr()
File "sentence_convnet_final.py", line 42, in evaluate_mr
evaluate(x, 2, 10)
File "sentence_convnet_final.py", line 35, in evaluate
cnn_model.build_model(embedding_dim, vocab_size, filter_sizes, num_filters, vector_length, num_classes, trainable)
File "/home/michael/project_improve_document_classification/ConvNetSent/model.py", line 75, in build_model
h_pool = tf.concat(3, pooled_outputs)
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1061, in concat
dtype=dtypes.int32).get_shape(
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 611, in convert_to_tensor
as_ref=False)
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 676, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 121, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/constant_op.py", line 102, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 376, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/home/michael/miniconda2/lib/python2.7/site-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
using...
nvcc V8.0.61
tensorflow 1.3.0
python 2.7.13

tf.concat has changed the order of parameters. Just change it to: tf.concat(pooled_outputs, 3)


Get Availability Zones with boto3

This piece of code doesn't handle us-east-1 region well: https://github.com/DualSpark/cloudformation-environmentbase/blob/1b92fd851efc1208dd6297cde4b22f497734f2b7/src/environmentbase/networkbase.py#L71-L102
Source: http://boto3.readthedocs.org/en/latest/reference/services/ec2.html#EC2.Client.describe_availability_zones

@jroberts235 FYI


New: Init

This pull request initializes the repository by adding all the necessary resources for a v1.

Self-approved 😎


⚠ Bofrost.fr has degraded performance

In 272d329, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 812 ms

Resolved: Bofrost.fr performance has improved in e924d30.


Plugin not starting

When I try to run the plugin using :ToggleBlame, :ToggleBlame window or :EnableBlame. Nothing happens and I get the following :messages
stack traceback:
^I[C]: in function 'nvim_get_hl'
^I...user/.vim/plugged/blame.nvim/lua/blame/highlights.lua:25: in function 'map_highlights_per_hash'
^I/home/user/.vim/plugged/blame.nvim/lua/blame.lua:54: in function </home/user/.vim/plugged/blame.nvim/lua/blame.lua:48> function: builtin#18 ...user/.vim/plugged/blame.nvim/lua/bla
me/highlights.lua:25: invalid key: create
stack traceback:
^I[C]: in function 'nvim_get_hl'
^I...user/.vim/plugged/blame.nvim/lua/blame/highlights.lua:25: in function 'map_highlights_per_hash'
^I/home/user/.vim/plugged/blame.nvim/lua/blame.lua:54: in function </home/user/.vim/plugged/blame.nvim/lua/blame.lua:48>

Please update, was probably bug fixed in #26  . And now after rewrite shouldn't be present

@FabijanZulj I'm using NvChad and installed the plugin as you recommended in the README. But it doesn't start, and when I'm trying to enter BlameToggle in the commandline, it shows me a message “E492: Not an editor command: BlameToggle”. Could you please help me?

It might be because setup() is not called, did you add the setup call to the config function?
Only thing I can think of like this with not much info

@FabijanZulj this is what I did:
  {
    "FabijanZulj/blame.nvim",
    config = function()
      require("blame").setup()
    end
  },

@FabijanZulj I'm using NvChad and installed the plugin as you recommended in the README. But it doesn't start, and when I'm trying to enter BlameToggle in the commandline, it shows me a message “E492: Not an editor command: BlameToggle”. Could you please help me?

I get the same error after updating plugin. Plugin not starting. Need a new issue for this.

I just tried with NvChad
https://nvchad.com/docs/config/plugins/
All NvChad default plugins will have lazy = true set. Therefore, if you want a plugin to be enabled on startup, change it to lazy = false.
So if you use the default installation method the plugin will not load so you need to set up the Lazy loading
One example with 'cmd'
 {
    "FabijanZulj/blame.nvim",
    cmd = { "BlameToggle" },
    config = function()
      require("blame").setup()
    end
  },

@FabijanZulj thank you a lot! It works for me. Thank you very much!

This didn't fix it for me. Still I get the same error. I don't use NvChad

Can you please provide some more info.
You get the “E492: Not an editor command: BlameToggle”. error?
What package manager are you using ?
How are you initializing the plugin?

I was using ToggleBlame instead of BlameToggle that was my issue. Not it is working!


Do not duplicate sexy_bash_prompt_command in PROMPT_COMMAND

Hi,
When sourcing a second time my bashrc, PROMPT_COMMAND value is "sexy_bash_prompt_command ; sexy_bash_prompt_command ; others_stuffs". The second call of sexy_bash_prompt_command reset sexy_bash_prompt_exit_code to 0.
Grepping the function name in PROMPT_COMMAND is used to avoid this.
Have a good day !

Why do you need to source the prompt twice? I'm not sure idempotence was ever an explicit requirement before.

I've got the same curiousity as @rpdelaney here o_o
Additionally, as a heads up, the grep check won't guarantee idempotence:

If someone nests sexy_bash_prompt_command in another command, it will still double run
If someone specifies a command which has the substring of sexy_bash_prompt_command, then it won't run at all (e.g. sexy_bash_prompt_command2)

A more robust fix would be a global boolean (e.g. sexy_bash_prompt_command_has_run=1)
(don't do this yet, mostly pointing out for awareness)
For reference, here's how I extend my PROMPT_COMMAND:
https://github.com/twolfson/dotfiles/blob/15df11a59b7a378e38cdba2dbcca78e0e3266bc3/.bashrc#L409-L427

Hi,
I don't need to source the prompt twice, but my .bashrc source it and it also source files from others projects that I need to reload often.
I just wanted to share an improvement I use but I realize that this solution is not the best may be I should have created an issue before 😓.
A better solution may be to check if prompt has been sourced already before sourcing it in .bashrc. What do you think ?
Anyway, thanks a lot for this piece of code !!

Heh, no worries about creating an issue before. It more would save your time than ours =/
If the only script loading sexy-bash-prompt's .bash_prompt file is your .bashrc and your .bashrc needs to be re-sourced often, then it sounds like the idempotence should live in the .bashrc
Example:
if test -z "${BASHRC_HAS_RUN}"; then
  . ~/.bash_prompt
fi

# End of file
BASHRC_HAS_RUN=1

This will also add-in nicely with other places you should have idempotence (e.g. sourcing other files, adding to $PATH variable)
I will also note that you're mostly making more work for yourself here. Usually when I change my .bashrc, I don't re-source it. I'll close the tab and re-open a new one -- thus avoiding needing to source + verify the command worked (and also fewer keystrokes)
Closing PR as wontfix for now


Determine how to store data

Postgres? SQLite?

Should be something that will work offline, i.e. can be installed on a pi.


$$Text.Format call in extendedProperties results in a value of 'System.Object'

Using the $$Text.Format functions in extendedProperties results in a value of 'System.Object' when the activity runs.

Hi Robin,
please use the updated version at https://github.com/gbrueckl/Azure.DataFactory.LocalEnvironment
the issue should be fixed there.
I assume that this was related to the fact that this version distinguished between upper and lower-case when you wrote "SliceStart" in your JSON definition
this is fixed in the new version
I also updated the README.md accordingly to link to the new Repository
-gerhard


Fix intl dependency as soon as flutter_localizations is upgraded

Currently it's impossible to upgrade intl from ^0.15.8 to ^0.16.0 as flutter_localizations depends on 0.15.8.

I cheated by declaring intl as >=0.1.0<2.0.0


Updating 2.0-2.4, 2.5 with new docs structure

Updating 2.0 - 2.4, 2.5, and 2.6 with new content.

In the test deployment (https://github.com/rancher/rancher-docs/runs/8256706580?check_suite_focus=true), there are still some broken links being introduced in this PR.

Warning:  Docs markdown link couldn't be resolved: (../getting-started/introduction/what-are-divio-docs?.md) in /home/runner/work/rancher-docs/rancher-docs/versioned_docs/version-2.5/pages-for-subheaders/introduction.md for version 2.5
Warning:  Docs markdown link couldn't be resolved: (../getting-started/introduction/what-are-divio-docs?.md) in /home/runner/work/rancher-docs/rancher-docs/docs/pages-for-subheaders/introduction.md for version current
Warning:  Docs markdown link couldn't be resolved: (../getting-started/introduction/what-are-divio-docs?.md) in /home/runner/work/rancher-docs/rancher-docs/versioned_docs/version-2.0-2.4/pages-for-subheaders/introduction.md for version 2.0-2.4
Docs markdown link couldn't be resolved: (workloads-and-pods.md) in /home/runner/work/rancher-docs/rancher-docs/versioned_docs/version-2.5/reference-guides/cli-with-rancher/rancher-cli.md for version 2.5
Warning:  Docs markdown link couldn't be resolved: (../how-to-guides/advanced-user-guides/manage-clusters/access-clusters/use-kubectl-and-kubeconfig.md) in /home/runner/work/rancher-docs/rancher-docs/docs/reference-guides/rancher-manager-architecture/communicating-with-downstream-user-clusters.md for version current
On source page path = /reference-guides/rancher-manager-architecture/communicating-with-downstream-user-clusters: -> linking to ../how-to-guides/advanced-user-guides/manage-clusters/access-clusters/use-kubectl-and-kubeconfig.md (resolved as: /reference-guides/how-to-guides/advanced-user-guides/manage-clusters/access-clusters/use-kubectl-and-kubeconfig.md)

@btat

@btat

For the first few, the question mark is causing the link issue.

@btat

For the first few, the question mark is causing the link issue.

Thanks


onReady() listener doesn't work when fresh installing the app having pooling disabled.

Describe the bug
Initializing unleash with .pollingStrategy.enabled(false) when fresh installing the app doesn't trigger onReady() listener.
However if the app was installed and had pooling enabled, then changed to pooling disabled, onReady() is called correctly.
It seems that in order to have the listeners working, you have to have pooling enabled at least once.
This makes .pollingStrategy.enabled(false) useless for our use case (we block the app launch relying in this listener).
Our workaround was to have pooling enabled with .pollingStrategy.interval(Long.MAX_VALUE)
Steps to reproduce the bug
Have unleash initialized with .pollingStrategy.enabled(false)
Expected behavior
onReady() is called when sdk is initialized
Unleash version
1.0.1
Subscription type
Enterprise
Hosting type
Self-hosted

@jnavarro98 I'm trying to understand this. If you're never polling the SDK will never be ready unless you provide a bootstrap, in which case the SDK will be ready as soon as the bootstrap file is read.
If you want to have polling disabled you need to explicitly tell unleash to do at least one fetch of the features configuration. If the SDK has not seen any configuration (either from polling or from a bootstrap) it won't be ready.
You can see many of our tests cover this use case, this is just an example: https://github.com/Unleash/unleash-android/blob/5e0519afc35cfdc79fa6481c9cc24f0bdf91c683/unleashandroidsdk/src/test/java/io/getunleash/android/DefaultUnleashTest.kt#L146-L174
To manually trigger 1 fetch an never poll again you have the following methods:
https://github.com/Unleash/unleash-android/blob/730bc2173b1c1e4a0fd96f12b7f2394778ade686/unleashandroidsdk/src/main/java/io/getunleash/android/Unleash.kt#L32-L42
Let me know if I misunderstood your request, but initially it doesn't seem like a bug.

We've added https://github.com/Unleash/unleash-android/pull/90 that is a very specific test for this particular use case

Thanks for the clarification. I found that the documentation in your website is quite lacking. When I call unleash.start I expect it to at least fetch flags, I shouldn't have to do reverse engineering to understand the behaviour of an sdk. There were many times where I had to figure out many things by looking at your code. For example the Heartbeat listener, needing to have the unleash.start in the main thread (or else it crashes) and many other features your SDK provide aren't documented.
This is not acceptable for an SDK. Please work on the documentation.

When I call unleash.start I expect it to at least fetch flags

Our assumption is that when you set the polling strategy to disabled, you don't want to poll (therefore you don't fetch flags), but maybe you understand it differently. I could see another way of understanding "polling disabled" is "continuous polling is disabled, but at least the SDK will fetch once". On the other hand, we have users that don't want that initial fetch because they want to control when that happens so we need to account for both.

When I call unleash.start I expect it to at least fetch flags, I shouldn't have to do reverse engineering to understand the behaviour of an sdk. There were many times where I had to figure out many things by looking at your code. For example the Heartbeat listener, needing to have the unleash.start in the main thread (or else it crashes) and many other features your SDK provide aren't documented.

This SDK is quite new, and as that the documentation is also quite fresh. We tried to support many different use cases (fetch, don't fetch, fetch once, fetch when the customer wants, etc), so that creates quite a lot of different combinations to cover. The ones that are documented in the website are the basics, but we will continue to improve them based on feedback or external contributions. If you have a snippet of what failed in your setup or how you ended up configuring your SDK for your use case we can add that, or if you have a suggestion how to make the polling configuration clearer we can also look into that.

At least have documented every function we can use from unleash.
For our use case, we wanted to block the application start until unleash is ready and do a single fetch at start, we used a suspend coroutine. That is why it was important to know that if we disabled the pooling it wouldn't be called unless we pass the bootstrap and we would be blocked waiting for a callback that never comes.
Now that we disabled pooling and added the bootstrap, we also had to fetch the toggles manually (which seems redundant and adds complexity, start could know when to do the fetch, in my opinion if you want to start unleash you want to get the flag values).
It would be useful to add the case of pooling disabled in the documentation, what do you need to do. Many developers don't want to alter the status of their feature flags in runtime since it adds complexity and gives almost no value in our case.

Thanks for the snippets! I'll try to do that next week and share a PR here.

At least have documented every function we can use from unleash.

Software is an iterative process and we'll get there eventually, but it's a moving target. Every piece of help we get from the community such as what you did, helps us make the product better. Thank you!


Enable merge gatekeeper

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 48.11%. Comparing base (21ceef9) to head (1ceb267).

:white_check_mark: All tests successful. No failed tests found.
Additional details and impacted files
@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   48.11%   48.11%
=======================================
  Files           3        3
  Lines         106      106
  Branches       19       19
=======================================
  Hits           51       51
  Misses         54       54
  Partials        1        1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


fixed dm links

As per suggestions I've fixed the channel links in the DMs on the #jobs-bulletin watcher.

Have addressed these issues in #442.


Create public image

@Mokto Could you create public image https://github.com/sentry-kubernetes/golang-test-image/pkgs/container/golang-test-image?

Pushed ghcr.io/sentry-kubernetes/golang-test-image:1.1.0 and made it public.

manually or does it automatically download the image?

Manually


During insert to a MergeTree table materialized column breaks materialized view insert

Bug Report
Briefly describe the bug
We previously reported inconsistent behaviour with materialized columns + materialized views during both server and direct worker insert. They got tagged duplicate and did not get a resolution so opening a fresh ticket with a reproducible sample to speed things up. Currently we are unable to insert to due to error:
Code: 10, e.displayText() = DB::Exception: Expected column test.column: while pushing to view ed.test_mv SQLSTATE: 22000 (version <IP_ADDRESS>)

2024.04.22 18:14:09.446540 [ 406 ] {00782240-42bf-4038-9c3c-3fbf24e66de0}<PHONE_NUMBER>13824523) <Error> DynamicQueryHandler: Code: 10, e.displayText() = DB::Exception: Expected column test.column: while pushing to view ed.test_mv SQLSTATE: 22000, Stack trace (when copying this message, always include the lines below):

0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x273a0892 in /opt/byconity/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0x108fb1a0 in /opt/byconity/bin/clickhouse
2. DB::StorageInMemoryMetadata::check(DB::Block const&, bool) const @ 0x21b9217c in /opt/byconity/bin/clickhouse
3. DB::MergeTreeDataWriter::splitBlockIntoParts(DB::Block const&, unsigned long, std::__1::shared_ptr<DB::StorageInMemoryMetadata const> const&, std::__1::shared_ptr<DB::Context const>) @ 0x220fc6ec in /opt/byconity/bin/clickhouse
4. DB::CloudMergeTreeBlockOutputStream::convertBlockIntoDataParts(DB::Block const&, bool) @ 0x21eb46bc in /opt/byconity/bin/clickhouse
5. DB::CloudMergeTreeBlockOutputStream::write(DB::Block const&) @ 0x21eb39be in /opt/byconity/bin/clickhouse
6. DB::PushingToViewsBlockOutputStream::process(DB::Block const&, DB::PushingToViewsBlockOutputStream::ViewInfo&) @ 0x2112a091 in /opt/byconity/bin/clickhouse
7. DB::PushingToViewsBlockOutputStream::write(DB::Block const&) @ 0x21128fbe in /opt/byconity/bin/clickhouse
8. DB::AddingDefaultBlockOutputStream::write(DB::Block const&) @ 0x211255ac in /opt/byconity/bin/clickhouse
9. DB::SquashingBlockOutputStream::finalize() @ 0x21124cf4 in /opt/byconity/bin/clickhouse
10. DB::SquashingBlockOutputStream::writeSuffix() @ 0x21124dae in /opt/byconity/bin/clickhouse
11. DB::CountingBlockOutputStream::writeSuffix() @ 0x2079a003 in /opt/byconity/bin/clickhouse
12. DB::ISink::prepare() @ 0x223f91bf in /opt/byconity/bin/clickhouse
13. DB::PipelineExecutor::prepareProcessor(unsigned long, unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::unique_lock<std::__1::mutex>) @ 0x2242f8c5 in /opt/byconity/bin/clickhouse
14. DB::PipelineExecutor::tryAddProcessorToStackIfUpdated(DB::ExecutingGraph::Edge&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, unsigned long) @ 0x2242f765 in /opt/byconity/bin/clickhouse
15. DB::PipelineExecutor::prepareProcessor(unsigned long, unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::unique_lock<std::__1::mutex>) @ 0x2242fe8d in /opt/byconity/bin/clickhouse
16. DB::PipelineExecutor::tryAddProcessorToStackIfUpdated(DB::ExecutingGraph::Edge&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, unsigned long) @ 0x2242f765 in /opt/byconity/bin/clickhouse
17. DB::PipelineExecutor::prepareProcessor(unsigned long, unsigned long, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::queue<DB::ExecutingGraph::Node*, std::__1::deque<DB::ExecutingGraph::Node*, std::__1::allocator<DB::ExecutingGraph::Node*> > >&, std::__1::unique_lock<std::__1::mutex>) @ 0x2242fe8d in /opt/byconity/bin/clickhouse
18. DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) @ 0x22434bad in /opt/byconity/bin/clickhouse
19. DB::PipelineExecutor::executeImpl(unsigned long) @ 0x2243310c in /opt/byconity/bin/clickhouse
20. DB::PipelineExecutor::execute(unsigned long) @ 0x22432b05 in /opt/byconity/bin/clickhouse
21. DB::executeQuery(DB::ReadBuffer&, DB::WriteBuffer&, bool, std::__1::shared_ptr<DB::Context>, std::__1::function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<DB::MPPQueryCoordinator>)>, std::__1::optional<DB::FormatSettings> const&, bool) @ 0x215aa389 in /opt/byconity/bin/clickhouse
22. DB::HTTPHandler::processQuery(std::__1::shared_ptr<DB::Context>, DB::HTTPServerRequest&, DB::HTMLForm&, DB::HTTPServerResponse&, DB::HTTPHandler::Output&, std::__1::optional<DB::CurrentThread::QueryScope>&) @ 0x22361dd9 in /opt/byconity/bin/clickhouse
23. DB::HTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x223649cf in /opt/byconity/bin/clickhouse
24. DB::HTTPServerConnection::run() @ 0x223d8d59 in /opt/byconity/bin/clickhouse
25. Poco::Net::TCPServerConnection::start() @ 0x273161ec in /opt/byconity/bin/clickhouse
26. Poco::Net::TCPServerDispatcher::run() @ 0x273166cc in /opt/byconity/bin/clickhouse
27. Poco::PooledThread::run() @ 0x273fd5ba in /opt/byconity/bin/clickhouse
28. Poco::ThreadImpl::runnableEntry(void*) @ 0x273fb16c in /opt/byconity/bin/clickhouse
29. start_thread @ 0x7ea7 in /lib/x86_64-linux-gnu/libpthread-2.31.so
30. clone @ 0xfca2f in /lib/x86_64-linux-gnu/libc-2.31.so
 (version <IP_ADDRESS>)

cc @kevinthfang since you seemed to tag this issue as duplicate the last time.
The result you expected
Insert to go through without a problem.
How to Reproduce
CREATE TABLE ed.test_table (
 `timestamp` DateTime64(3) CODEC(Delta(8), ZSTD(1)),
 `test_keys` Array(LowCardinality(String)) CODEC(ZSTD(1)),
`test_values` Array(String) CODEC(ZSTD(1)),
`test.column` LowCardinality(String) MATERIALIZED test_values[indexOf(test_keys, 'environment')] CODEC(LZ4),
)
ENGINE = CnchMergeTree
ORDER BY timestamp
SETTINGS storage_policy = 'cnch_default_s3', index_granularity = 8192

CREATE TABLE ed.test_table_samp_10
(
    `timestamp` DateTime64(3) CODEC(Delta(8), ZSTD(1)),
    `test_keys` Array(LowCardinality(String)) CODEC(ZSTD(1)),
    `test_values` Array(String) CODEC(ZSTD(1)),
    `test.column` LowCardinality(String) MATERIALIZED test_values[indexOf(test_keys, 'environment')] CODEC(LZ4),
)
ENGINE = CnchMergeTree
ORDER BY timestamp
SETTINGS storage_policy = 'cnch_default_s3', index_granularity = 8192

CREATE MATERIALIZED VIEW ed.test_mv TO ed.test_table_samp_10 AS SELECT timestamp, test_keys, test_values FROM ed.test_table

INSERT INTO ed.test_table (timestamp, test_keys, test_values)
VALUES ('2024-09-24 08:00:00.000',['environment','mat-column'], ['staging', 'test']);

Version
This does not work on version 0.4.0 still.

Sorry for the unexpected tagging, will look into this

The short-term fix is to temporarily prohibit the creation of materialized views on tables with materialized columns(it's already merged to master). As for the long-term fix, we will need to wait for further solutions.

Short term fix would still be a blocker for us since we already have our tables deployed in this manner. Do you have an ETA in mind for the long term solution? I will try to decide on an action plan according to that.

We plan to finish  long term fix at the end of June.

@ozcelgozde The fix looks good. But it seems in your own repo. We plan to pick it into our internal branch and then merge it to ByConity master. Are you OK with that?

Sure thanks!


h2_leveldb_impl_drv.cc doesn't compile under Erlang/OTP 17.5 or newer due to missing field 'emergency_close'

c_src/h2leveldb_impl_drv.cc:235:1:
error: missing field 'emergency_close' initializer [-Werror,-Wmissing-field-initializers]

The emergency_close field was introduced to Erlang/OTP 17.5 by this commit:
https://github.com/erlang/otp/commit/d373dc49ae4c8a2d27dde23564bcaf2642cc46e5

erts: Extend driver interface with emergency_close
The intention of this callback is to close all sockets associated to a port. It is closed only on crashdumps.
This will currently only be used for the epmd port.

Just for now, I simply added the new field emergency_close to ErlDrvEntry so that it does compile under Erlang/OTP 17.5. However, it doesn't compile under R16 anymore. I'll revisit this later to make it work under both 17.x and R16.
Commit: https://github.com/leveldb-erlang/h2leveldb/commit/0c1af443ce8a18d679bf0434f76cca6ca3d77726
Tested on Erlang 17.5. These simple eunit cases passed.
% freebsd-version
10.1-RELEASE-p10
% . ~/erlang/17.5_hipe/activate
% gmake clean eunit
...
==> h2leveldb (eunit)
  All 8 tests passed.


[DavesTrailerPageBridge] Add new bridge

Adds a bridge for Dave's Trailer, witch simply offers direct links to Apple trailers.
There's probably a more reliable way to fetch item['uri'] for 1080p links, but this is where my programmer talents stops.

Thanks for your first PR and welcome here !

Thanks for your help :)


Remove violations for Guava WithExpectedSize methods

The recommended replacement constructors take in initialCapacity (with default loadFactor), not expected size. To avoid reallocating and copying the internal array the expected size must be converted to an
initial capacity, like the Guava methods does.

Agreed that this was confusing.  Thank you for your contribution @snago!


Packager issues on Azure DevOps CI

Hi Simeon, I am able to use your code on my local machine without a problem however when I run the exact same pack command on an Azure DevOps build agent (running the default MS provided vm-2019 image)  there appears to be an exception: System.Runtime.InteropServices.COMException (0x80004005):   I was wondering if you could help, I would really appreciate it as I cannot use Microsofts own IntuneWinAppUtil.exe on CI build agents either.
You can invoke the tool using the following command: IntuneAppBuilder
Tool 'intuneappbuilder.console' (version '1.3.22') was successfully installed.
Solution Root is + D:\a\1\s
info: IntuneAppBuilder.Services.IntuneAppPackagingService[0]
Creating Intune app package from D:\a\1\s\Apps\7-Zip\Input.
info: IntuneAppBuilder.Services.IntuneAppPackagingService[0]
Creating intermediate zip of D:\a\1\s\Apps\7-Zip\Input at C:\Users\VssAdministrator\AppData\Local\Temp\Input.intunewin.zip.
info: IntuneAppBuilder.Services.IntuneAppPackagingService[0]
Generating encrypted version of C:\Users\VssAdministrator\AppData\Local\Temp\Input.intunewin.zip.
Unhandled exception: System.IO.InvalidDataException: The specified Windows Installer file could not be opened. Verify the file is a valid Windows Installer file.
---> System.Runtime.InteropServices.COMException (0x80004005): OpenDatabase,DatabasePath,OpenMode
at IntuneAppBuilder.Util.ComObject.TryInvokeMember(InvokeMemberBinder binder, Object[] args, Object& result) in d:\a\1\s\Source\IntuneAppBuilder\Util\ComObject.cs:line 92
at CallSite.Target(Closure , CallSite , Object , String , Int32 )
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at IntuneAppBuilder.Util.MsiUtil..ctor(String path, ILogger logger) in d:\a\1\s\Source\IntuneAppBuilder\Util\MsiUtil.cs:line 42
--- End of inner exception stack trace ---
at IntuneAppBuilder.Util.MsiUtil..ctor(String path, ILogger logger) in d:\a\1\s\Source\IntuneAppBuilder\Util\MsiUtil.cs:line 46
at IntuneAppBuilder.Services.IntuneAppPackagingService.GetMsiInfo(String setupFilePath) in d:\a\1\s\Source\IntuneAppBuilder\Services\IntuneAppPackagingService.cs:line 142
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__10_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<b__0>d.MoveNext()

@malcolmardalon
What vmImage do you have in your pool in your yml?
vmImage: 'windows-latest'?
Just checking that first.
Also, how is your msi file getting downloaded on the build agent? Can you add a step that runs
dir D:\a\1\s\Apps\7-Zip\Input
To your pipeline yml? If you could post your whole pipeline yml that would be helpful too

dir output:
Directory: D:\a\1\s\Apps\7-Zip\Input

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a---           8/16/2020  9:01 PM            132 7z1900-x64.msi

azure-pipelines.yml:
# Documentation link: https://aka.ms/yaml

trigger:
  - main
  - master

variables:
  TENANT_ID: $(TenantId)
  TENANT_NAME: $(TenantName)
  CLIENT_ID: $(ClientId)
  CLIENT_SECRET: $(ClientSecret)
  SCOPE_: $(Scope)
  GRANT_TYPE: $(GrantType)

pool:
    vmImage: 'windows-2019'

steps:
  - pwsh: >
      dotnet tool install -g IntuneAppBuilder.Console ;
      $solutionRoot = $pwd.Path ; write-host "Solution Root is" + $solutionRoot ;
      $SourceFolder = "$solutionRoot\Apps\7-Zip\Input" ;
      $SetupFile = "7z1900-x64.msi" ;
      $OutputFolder = "$solutionRoot\Apps\7-Zip" ;
      IntuneAppBuilder pack --source $SourceFolder --output $OutputFolder ;
      ls $SourceFolder
    displayName: "Test Different Packager"`

That was my next thought - that git is messing with the file. Would it be possible to update your pwsh script to just download the msi file as part of the build just to test?
Should be a one liner
Invoke-RestMethod "https://www.7-zip.org/a/7z1900-x64.msi" -OutFile "$SourceFolder\$SetupFile"

Looks like this was the case after all!  If I download the MSI as above it works.  Thank you for your speedy/helpful help!  Strange I thought using Git LFS would protect the integrity of the file.


Not Showing Namespace Quota value

Bug description
Not showing value under Namespace Quota for tenant, which allow creating multiple namespace in tenant when we use YAML file for installation of Capsule
How to reproduce
Steps to reproduce the behavior:

https://github.com/clastix/capsule/blob/master/config/samples/capsule_v1alpha1_tenant.yaml
. kubectl get tenant NAME   STATE    NAMESPACE QUOTA   NAMESPACE COUNT   NODE SELECTOR                  AGE oil    active                     0                 {"kubernetes.io/os":"linux"}   49s

Expected behavior
Expecting that it should show value 3 in Namespace quota. Works well with Helm but not with YAML
Logs
2021-08-10T17:37:44.692Z	INFO	controllers.Tenant	Ensuring all Namespaces are collected	{"Request.Name": "oil"} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Starting processing of Namespaces	{"Request.Name": "oil", "items": 0} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Starting processing of Network Policies	{"Request.Name": "oil", "items": 1} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Starting processing of Limit Ranges	{"Request.Name": "oil", "items": 1} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Starting processing of Resource Quotas	{"Request.Name": "oil", "items": 3} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Ensuring additional RoleBindings for owner	{"Request.Name": "oil"} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Ensuring RoleBinding for owner	{"Request.Name": "oil"} 2021-08-10T17:37:44.781Z	INFO	controllers.Tenant	Ensuring Namespace count	{"Request.Name": "oil"} 2021-08-10T17:37:44.799Z	INFO	controllers.Tenant	Tenant reconciling completed	{"Request.Name": "oil"} 2021-08-10T17:37:44.814Z	INFO	controllers.Tenant	Ensuring all Namespaces are collected	{"Request.Name": "oil"} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Starting processing of Namespaces	{"Request.Name": "oil", "items": 0} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Starting processing of Network Policies	{"Request.Name": "oil", "items": 1} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Starting processing of Limit Ranges	{"Request.Name": "oil", "items": 1} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Starting processing of Resource Quotas	{"Request.Name": "oil", "items": 3} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Ensuring additional RoleBindings for owner	{"Request.Name": "oil"} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Ensuring RoleBinding for owner	{"Request.Name": "oil"} 2021-08-10T17:37:44.830Z	INFO	controllers.Tenant	Ensuring Namespace count	{"Request.Name": "oil"} 2021-08-10T17:37:44.844Z	INFO	controllers.Tenant	Tenant reconciling completed	{"Request.Name": "oil"} W0810 17:42:57.231967       1 warnings.go:70] extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress W0810 17:43:14.232531       1 warnings.go:70] networking.k8s.io/v1beta1 Ingress is deprecated in v1.19+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress W0810 17:44:12.695369       1 warnings.go:70] discovery.k8s.io/v1beta1 EndpointSlice is deprecated in v1.21+, unavailable in v1.25+; use discovery.k8s.io/v1 EndpointSlice
Additional context

Capsule version: (Latest)
Helm Chart version: (helm list -n capsule-system)
Kubernetes version: (v1.21.1)

Hey @gaurav04, thanks for reporting!
The root cause of the issue you're facing is related to #369, a refactoring of the Namespace options. The issue is that you're running the image v0.1.0-rc5 that has been released before the said refactoring and this breaks the conversion from the v1alpha1 to the v1beta1 conversion.
If you try building locally Capsule from origin/HEAD you shouldn't encounter any issue, as I did.
$: make docker-build
Successfully tagged quay.io/clastix/capsule:v0.1.0-rc5

$: kind load docker-image --name kind --nodes kind-control-plane quay.io/clastix/capsule:v0.1.0-rc5
Image: "quay.io/clastix/capsule:v0.1.0-rc5" with ID "sha256:cafc4fd9971e479021a4215a413c1843d43de387a0889dfc613a2c2269cc7adb" not yet present on node "kind-control-plane", loading...

$: # deleting Pod in order to use newer image

$: kubectl apply -f https://raw.githubusercontent.com/clastix/capsule/master/config/samples/capsule_v1alpha1_tenant.yaml
tenant.capsule.clastix.io/oil created

$: kubectl get tenant
NAME   STATE    NAMESPACE QUOTA   NAMESPACE COUNT   NODE SELECTOR                  AGE
oil    active   3                 0                 {"kubernetes.io/os":"linux"}   2s

Going to keep this issue open so we can inform you when the v0.1.0 release will be out and these kind of errors should be fixed!

@gaurav04 The described behavior has not be reproduced with latest v0.1.1 release. Closing it. Feel free to reopen in case you will face it again.


left align options

hi Ali, first, great library. I had modified the HelpFormatter myself to do some left aligning for what I would consider "easier reading" - but I am sure that can be argued... Anyways, you may have already have this functionality baked in to the library but I didn't fully understand if the styles could be manipulated to do this, so I added it pretty quickly using my old code... No worries if you don't see this as useful, but I would love to hear if this is possible without my mods. Thanks!

Thank you. Unfortunately I don't think this fits into this library because:

rich_argparse tries to be as compatible as possible with argparse, the new behavior is not compatible at all
aligning short and long options doesn't work with argparse (unlike optparse) because in argparse the order of options is arbitrary. A user could provide them as -o , --opt or --opt, -o, --opt-alias or whatever order and the formatter will display them in this order
I don't think it improves the readability of the cli help. It may have a slight improvement in some cases where the size of --options is uniform, but in doesn't work in general where long option names push the metavar to the right a lot

I would love to hear if this is possible without my mods

I don't think it is currently possible to "align" options. You can try to ask for a new help formatter in argparse that does this and if you succeed to have it added upstream, I'll add it here as well.
You may also consider using the max_help_position parameter. It doesn't perform any alignment but it does push the help text away from the options which might "improve" readability

I'll close this as there is nothing to do here. Thanks again.

Thanks for getting back to me Ali, all good points you brought up.
Best,
Joe
On Fri, Jul 7, 2023 at 3:41 PM Ali Hamdan @.***> wrote:

I'll close this as there is nothing to do here. Thanks again.
—
Reply to this email directly, view it on GitHub
https://github.com/hamdanal/rich-argparse/pull/70#issuecomment-1625983723,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMT5TISYKI25FK3VKGSJX2LXPBRAJANCNFSM6AAAAAAZRY64UM
.
You are receiving this because you authored the thread.Message ID:
@.***>


Consider the biggest side of the image as the width for resize

I was thinking that since the image orientation (portrait vs landscape), especially for snes, we should consider a way to have images which have the same area, regardless of their orientation.
This is just a suggestion. Since, it is my first attempt to write Go code, so this is a quick hack.
So, there is room for improvement.

I think I should close this pull request, since an unwanted commit have been added by mistake.
I will recreate a correct pull request later.

I need to close this pull request, since an unwanted commit have been added by mistake.
I will recreate a correct pull request later.


front: bump sparkle v0.1.33

cc @Duncid

Won't deploy front for now as @philipperolet is still working on a multi-service deploy

Actually all done so will deploy front


Prevent confusion about the lifetime expectation of createKDTreeLinearHeap regarding its cloud argument

As the history of issues #9, #34, #38 impressively demonstrate the signature of createKDTreeLinearHeap does not warn enough about the fact the the cloud argument must stay alive for its returned object to work properly. This is especially bad for implicit casting of Eigen matrices. If the cloud does not fit the expected Matrix type exactly it will be casted into a temporary matrix, of which a reference will be stored (this caused #9, #34 and was not even really understood with some effort).
See https://github.com/ethz-asl/libnabo/blob/master/nabo/nabo.h#L357.
Of course we should at least update the documentation of that function to include a suitable warning.
But I would suggest to go further and change the signature and accept a raw or smart pointer instead. A runtime check could be added to prevent null pointers. This will be more warning "within the code / signature" and prevent temporary objects from being used accidental.
In case of a raw pointer one could add a boolean flag that can optionally requests the libnabo to take over ownership. By providing a value to that flag users will be forced to think about lifetime.
If this is too much of a API change one could overload it with templated function that gets resolved whenever the type does not exactly match and issues a meaningful static assertion. This would at least catch temporary objects cases stemming from implicit casts.

I am already working on a solution which accepts different types. I however also expect users to read the existing documentation and examples which clearly state the expectations of nabo. I am unsure if adding more information to the existing documents will resolve the issue of users not reading the docs in the first place.
I don't know how familiar you are with Eigen, but it is non trivial to make static assertions that would catch cases of wrong derived types without changing the API. Anyhow, I am working on a proposal for this, happy to get feedback on it then. (ETA <1week)

It does not seem to be a part of the methods documentation. That at least it should be, because it is pretty unusual to store a const reference argument. About the static assertion. Why not just have a function templated on exactly this first parameter. So e.g.
template <typename WrongMatrixType>
static NearestNeighbourSearch* createKDTreeLinearHeap(WrongMatrixType cloud, const Index dim = std::numeric_limits<Index>::max(), const unsigned creationOptionFlags = 0, const Parameters& additionalParameters = Parameters()) {
  typedef int Please_make_sure_that_the_decltype_of_the_first_parameter_is_equal_to_the_Matrix_typedef[sizeof(WrongMatrixType) > 0 ? -1 : 1];
  Please_make_sure_that_the_decltype_of_the_first_parameter_is_equal_to_the_Matrix_typedef dummy;
  return 0;
}

This should catch all non exact matches, because it can match without any conversion but is a template function so there is exactly one way to be a truly better match : to match exactly but as a non-template function (if I'm not mistaken).
It only looks that ugly because libnabo does apparently not rely on c++11, yet. So I could not just use a static_assert(sizeof(WrongMatrixType) < 0, "Please make sure that the decltype of the first parameter is equal to the Matrix typedef")

well, there are examples that go with it which all use the Nabo provided typedef. I don't know why a user would just pass a wrong type to a function and expect things to work, i.e.:
float Foo(float bar) {
 return bar * 2.f;
}

double value = 0.0;
double result = Foo(value);

Nobody would complain about the narrowing conversion, right?
Yes, we can add the template to make this a compilation error, this is a good point.

This was solved in #41.


CLOUD-42308 added arm docs

@martonsereg

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1743/


Use variable or parameter in demands

Is it possible to use a variable or parameters in agent pool demands?  Something like this:
variables:
  projectName:my-vsts-project
  agentName: '$(projectName)-$(Build.BuildId)'

jobs:
- job: JavaBuild
  dependsOn: LaunchAgent
  pool:
    name: 'mgmt-aks-sandbox'
    demands:
    - agent.name -equals $(agentName)

It doesn't seem to work, as I end up getting like this:
##[Error 1]
No agent found in pool mgmt-aks-sandbox which satisfies the specified demands:
     agent.name -equals $(projectName)-$(Build.BuildId)
     java
     Agent.Version -gtVersion 2.140.2

I've also tried with parameters and template expressions, and those don't work either:
##[Error 1]
No agent found in pool mgmt-aks-sandbox which satisfies the specified demands:
     agent.name -equals ${{ parameters.agentName }}
     java
     Agent.Version -gtVersion 2.140.2

It looks like this guy managed to do it via the UI (see comments at the end), but is there a way to do it in YAML?
https://www.noelbundick.com/posts/serverless-vsts-build-agents-with-azure-container-instances/

Ah, this is due to nested variable resolution; or the lack thereof. Agent name won't resolve to the value you think it is, it will end up as $(projectName)-$(Build.BuildId)
This still helped me, thank you for raising this issue!


Crash when I open the VC with the Swipe

Hello,
So, I access this VC with a segue and it works.
Although, when I tried to make it work with this pod it doesn't open anymore.
This is my VC's code.
Am I missing anything?
`class PortfolioDetailsVC: SwipeViewController {
override func viewDidLoad() {
    super.viewDidLoad()

    let pageController = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal, options: nil)
    let navigationController = PortfolioDetailsVC(rootViewController: pageController)

    let stb = UIStoryboard(name: "Main", bundle: nil)
    let pageOne = stb.instantiateViewController(withIdentifier: "PortfolioDetailsVC") as UIViewController
    let pageTwo = stb.instantiateViewController(withIdentifier: "AutoInvestSettingsVC") as UIViewController
    let pageThree = stb.instantiateViewController(withIdentifier: "AutoInvestOverviewVC") as UIViewController

    setViewControllerArray([pageOne])

    pageOne.title = "My AutoInvest"
    pageTwo.title = "AutoInvest Settings"
    pageThree.title = "Overview"

    setFirstViewController(0)
    setNavigationColor(UIColor.blue)
    equalSpaces = true
   setSelectionBar(80, height: 3, color: .black)

}

}`
In the image, the highlight is a navigation bar.
I would love some help.
Thanks

I wonder if the issue could be because of the top view (that's embedded in what exactly?) - maybe try it in a VC that does not have it? I'm planning to do a rewrite of this, but I'm not sure when I am able to accomplish it.

My navigation bar is inside a view.


[Transform] Fix perf regression in the dynamic case and add a test

d782f54f56def442105656cace5643666acd9b89 introduced a regression while refactoring: the SmallStrategy would be selected by default for dynamic cases.
Fix and add a test.
Ideally we should also have some microbenchmarkings part of presubmit.
Repro:
(benchmark-transform-create -r -b cuda  ../iree-samples/transform_dialect/benchmark_linalg_reductions.stub.mlir   reduction_2d_dynamic  f32 128 4096)

Before:
403.76ms  202.76us              (2 1 1)        (64 1 1)        56        0B        0B  NVIDIA GeForce          1        13                     -                -  reduction_2d_dynamic_dispatch_0_generic_DxD [33]
With transform dialect: reduction_2d_dynamic --function_input="128x4096xf32=1" P50: 202800.00 ns 2.64836291913214990138 GElements/s

After:
449.43ms  4.8640us            (128 1 1)       (256 1 1)        22        0B  1.0078KB  NVIDIA GeForce          1        13                     -                -  reduction_2d_dynamic_dispatch_0_generic_DxD [33]
With transform dialect: reduction_2d_dynamic --function_input="128x4096xf32=1" P50: 4608.0000 ns<PHONE_NUMBER>5555555555555 GElements/s

Ideally we should also have some microbenchmarkings part of presubmit.

Can't we somehow integrate into the existing benchmarking infra that gets triggered manually when needed?

I see this more as a "library curation" problem for our set of transform dialect recipes. General benchmarks are unlikely to be the right answer. Probably as we actually start having a "library" of transform dialect recipes we will want to have per-recipe "unit test" benchmarks that do some sort of smoke test of performance in a very directed fashion. The microbenchmarking infra that I'm building could be the basis for this.


Tenant Http tests failing to authenticate

Describe the bug
I am adding API tests for my tenant application - starting with a simple "it saves to the database" test. In my setUp() method I am creating a tenant and initializing it much like in the docs:
    protected function setUp() : void
    {

        parent::setUp();

        $tenant = Tenant::create([
            "name" => "test"
        ]);
        $domain = $tenant->createDomain("test");

        tenancy()->initialize($tenant);
    }

Then in my test I go to post to my tenant route:
    public function testCreateAProduct(){
        $testResponse = $this->post('/api/product', [/** some data **/]);
    }

And I get a not found exception (404):
E                                                                   1 / 1 (100%)

Time: 1.16 seconds, Memory: 34.00 MB

There was 1 error:

1) Tests\Feature\CreateNewProductTest::testCreateAProduct
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:

/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1040
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:45
/var/www/vendor/stancl/tenancy/src/Middleware/PreventAccessFromCentralDomains.php:23
/var/www/vendor/stancl/tenancy/src/Middleware/PreventAccessFromCentralDomains.php:26
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:683
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:624
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:613
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130
/var/www/vendor/fideloper/proxy/src/TrustProxies.php:57
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php:469
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php:287
/var/www/tests/Feature/CreateNewProductTest.php:69

However, if I create a domain for my tenant and then use that domain in my endpoint call:
// I have a helper in my Tenant class to select the domain
$testResponse = $this->post( tenant()->domain . '/api/product', $request);

I then get an "Unauthenticated" Exception:
E                                                                   1 / 1 (100%)

Time: 1.17 seconds, Memory: 34.00 MB

There was 1 error:

1) Tests\Feature\CreateNewProductTest::testCreateAProduct
Illuminate\Auth\AuthenticationException: Unauthenticated.

/var/www/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:81
/var/www/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:67
/var/www/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:41
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/stancl/tenancy/src/Middleware/IdentificationMiddleware.php:36
/var/www/vendor/stancl/tenancy/src/Middleware/InitializeTenancyBySubdomain.php:52
/var/www/vendor/stancl/tenancy/src/Middleware/InitializeTenancyByDomainOrSubdomain.php:22
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/stancl/tenancy/src/Middleware/PreventAccessFromCentralDomains.php:29
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:683
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:624
/var/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php:613
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130
/var/www/vendor/fideloper/proxy/src/TrustProxies.php:57
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171
/var/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php:469
/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php:287
/var/www/tests/Feature/CreateNewProductTest.php:69

The documentation is also not very explicit in the directions given there, can we get some more explanation?
Steps to reproduce
php artisan make:test HttpTest
<?php

namespace Tests\Feature;

use Tests\TestCase;

class HttpTest extends TestCase
{

    protected function setUp() : void
    {
        parent::setUp();
        $tenant = \App\Tenancy\Tenant::create(); // change to your tenant model
        tenancy()->initialize($tenant);
    }

    public function testTenantRoute(){
        $testResponse = $this->post('/api/product', []); // change to a route you have registered in routes/tenants
        dd($testResponse->json());
    }
}

phpunit --filter=HttpTest
Expected behavior
I expected to get the response from my tenant routes controller, or at least find the controller and get an error.
Your setup

Laravel version: 6.2.2
stancl/tenancy version: ^3.4

Hey, this seems to be a support question related to creating tests in your application. Is there an actual bug in tenancy that's preventing you from doing this? If you just want help, I recommend using our Discord.

I'm using the code directly from the documentation here: https://tenancyforlaravel.com/docs/v3/testing/#testing and getting errors, so I thought that this must not be working as intended, if the documentation is leading me astray.
I'm thinking there might not be a bug at all, I'm just doinitwrong, but the documentation doesn't give me much to go by - the rest of the content in my tests has worked it's just using the laravel TestCase::post methods are certainly not working on tenant routes.

I have same problem!

I cracked it!
You'll want to use actingAs as per the laravel docs: https://laravel.com/docs/6.x/http-tests#session-and-authentication in order to have your test API calls authenticated.

@AbrahamBrookes  The solution is use URL::forceRootUrl("tenant_domain") when initialize the tenant
Example: https://github.com/archtechx/tenancy/issues/250

@AbrahamBrookes  The solution is use URL::forceRootUrl("tenant_domain") when initialize the tenant
Example: https://github.com/archtechx/tenancy/issues/250


Update api comments so they render nicely

Also switch instances of Tigera Secure to Enterprise

These changes should render like this


Rules fail to load with yaml unmarshal error in 2.00 alpha.3 release

What did you do?
I tried to load my alert ruleset using the 'rule_files:' directive. (see config below) I also tried with the [] notation, and indenting the path.
What did you expect to see?
Proemtheus starting up and rules loading succesfully. (When I start it without including the rule file, it starts)
What did you see instead? Under which circumstances?
Prometheus fails to start. See error message in the log section below. I don't get any errors when using the 1.7.1 release, same config loads any ruleset.
Environment

System information:

Linux 4.4.0-1020-aws x86_64

Prometheus version:

prometheus, version 2.0.0-alpha.3 (branch: master, revision: 70f96b0ffb6567100ffc91f7c3fe4e57c8d9dedb)
build user:       root@5630fb1ab539
build date:       20170622-10:04:46
go version:       go1.8.3

Alertmanager version:

alertmanager, version 0.7.1 (branch: master, revision: ab4138299b94c78dc554ea96e2ab28d04b048059)
build user:       root@97e9539a4c3f
build date:       20170609-15:31:09
go version:       go1.8.3

Prometheus configuration file:

global:
  scrape_interval:     15s
  evaluation_interval: 15s

rule_files:
- "alert.rules"

scrape_configs:
# Node exporter
  - job_name: 'node'
    scrape_interval: "15s"
    file_sd_configs:
      - files:
        - '/home/hajzso/prometheus/targets/node/*.json'
        - '/home/hajzso/prometheus/discovery/node/*.json'
# Blackbox exporter
  - job_name: 'blackbox_http'
    metrics_path: /probe
    params:
      module: [http_2xx]  # Look for a HTTP 200 response.
    static_configs:
      - targets:
        - https:/example.com

    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: <IP_ADDRESS>:9115  # Blackbox exporter

Rules file:

ALERT website_down
  IF probe_success == 0
  FOR 3m
  LABELS { severity = "hipchat" }
  ANNOTATIONS {
    summary = "Instance {{ $labels.instance }} down",
    description = "{{ $labels.instance }} has been down for more than 3 minutes.",
}

ALERT downage
  IF up == 0
FOR 1h

Alertmanager configuration file:

route:
 group_by: [cluster]
 # If an alert isn't caught by a route, send it to hipchat.
 receiver: team-hipchat
 routes:
  # Send severity=hipchat alerts to hipchat.
  - match:
      severity: hipchat
    receiver: team-hipchat

receivers:
- name: team-hipchat
  hipchat_configs:
  - room_id: 12345
    auth_token: 12345
    notify: true

Logs:

● prometheus.service - Prometheus server
   Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2017-07-07 07:09:36 UTC; 2s ago
  Process: 31904 ExecStart=/home/hajzso/prometheus/prometheus/prometheus --config.file=/home/hajzso/prometheus/prometheus/prometheus.yml (code=exited, status=1/FAILURE)
 Main PID: 31904 (code=exited, status=1/FAILURE)

Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]: time="2017-07-07T07:09:36Z" level=info msg="Starting tsdb" source="main.go:210"
Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]: time="2017-07-07T07:09:36Z" level=info msg="tsdb started" source="main.go:216"
Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]: time="2017-07-07T07:09:36Z" level=info msg="Loading configuration file /home/hajzso/prometheus/prometheus/prometheus.yml" source="main.go:344"
Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]: time="2017-07-07T07:09:36Z" level=error msg="yaml: unmarshal errors:
Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]:   line 1: cannot unmarshal !!str `ALERT w...` into rulefmt.RuleGroups" source="manager.go:484"
Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]: time="2017-07-07T07:09:36Z" level=error msg="Failed to apply configuration: error loading rules, previous rule set restored" source="main.go:362"
Jul 07 07:09:36 ip-10-0-0-157 prometheus[31904]: time="2017-07-07T07:09:36Z" level=error msg="Error loading config: one or more errors occurred while applying the new configuration (-config.file=/home/hajzso/prometheus/prometheus/prometheus.yml)" source="main.go:265"
Jul 07 07:09:36 ip-10-0-0-157 systemd[1]: prometheus.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 07:09:36 ip-10-0-0-157 systemd[1]: prometheus.service: Unit entered failed state.
Jul 07 07:09:36 ip-10-0-0-157 systemd[1]: prometheus.service: Failed with result 'exit-code'.
e

Try use promtool update rules your.rules command,
it will generate a new rules file called your.rules.yml

Yes, for more info read: https://prometheus.io/blog/2017/06/21/prometheus-20-alpha3-new-rule-format/
Closing as there is nothing here to do. Please re-open if you think otherwise.

@wangybelle I assume this is from using the prometheus helm chart?  I ran into this as well.
Try:
rules.yml:
  groups:
  - name: example
    rules:
...

(Basically, remove the | or |-, etc. after rules.yaml:)


create a CMakeLists.txt file at the root dir

so that IDEs like Clion, VS, VSC CMake can reconginize and
build it without efforts.

需要对 workflow 文件进行一点修改, 来确保自动构建不会被破坏.
https://github.com/BoomingTech/Pilot/blob/3714fbd4c8ab10450fbc1e558c9e0f2976b65741/.github/workflows/build_macos.yml#L19

ok,

需要对 workflow 文件进行一点修改, 来确保自动构建不会被破坏.
https://github.com/BoomingTech/Pilot/blob/3714fbd4c8ab10450fbc1e558c9e0f2976b65741/.github/workflows/build_macos.yml#L19

ok, already done

需要对 workflow 文件进行一点修改, 来确保自动构建不会被破坏.
https://github.com/BoomingTech/Pilot/blob/3714fbd4c8ab10450fbc1e558c9e0f2976b65741/.github/workflows/build_macos.yml#L19

ok, already done


lp permissions data could not be load

im getting this error all the time.. i reinstall it sometimes but it still doesnt work

Please upload a copy of your servers most recent log file to https://gist.github.com/ and reply with the link.

https://gist.github.com/kohjoz/a05e84adf0a52dc55f204953473b03c6

java.lang.NoClassDefFoundError: java/sql/Driver

Your server seems to be missing the JDBC drivers.

Duplicate of https://github.com/lucko/LuckPerms/issues/779 ??

well i also have it on my paied servers..

Thank you for your answer ;) here is the log https://gist.github.com/kohjoz/c1b666b89e6eea8c4d0928c1a6e09161

I need to report I am seeing the same type of issues. For the sake of simplicity I set up a server instance with just LuckPerms, which is still getting error, and have Gist'd the logs below. The only settings I have (knowingly) changed from default are "eula=true", the server port to 25599 to avoid conflicts, and LuckPerms' storage engine for the second run. (The first was H2. The second was an unconfigured MySQL run as you suggested to Kohjoz.)
H2: https://gist.github.com/Neshram/787c7ccc5641aa5c574373ccff0c26de
MySQL: https://gist.github.com/Neshram/46933f8858787bdb8fa2abac7c3e36d2

Yeah, I've done some more testing. Seems this issue only occurs on Java 9, which explains why it hasn't been reported too frequently. :)
I'm guessing that the user in #779 was also using J9 - although they said they weren't.
Should be fixed by the above commit
https://ci.lucko.me/job/LuckPerms/

Confirmed. That solved it for me. Thank you, very much.


Windows: Roadmap to LCOW

This is a list of open PRs and issues required for containerd to run Linux Containers on Windows. Completion of this is targeted for 1.1

[x] Clients can use a --platform flag to select LCOW or WCOW. https://github.com/containerd/containerd/pull/1426

[x] snapshotter and differ implemented for LCOW. Much of logic is already in https://github.com/Microsoft/opengcs. The main open issue here is management of the service VM(s) for accessing the layers. Some initial thoughts are in https://github.com/containerd/containerd/issues/1356 and https://github.com/containerd/containerd/issues/1359

[x] A new runtime is implemented for LCOW. An initial prototype of this was in https://github.com/containerd/containerd/pull/1455. It used the current approach for WCOW runtime, which is to pull Dockerd created layers, and would need to use the above snapshotter layers instead.

I'll continue to update this issue as we track toward LCOW support and 1.1.

All of these have been completed. Closing out.

Turns out I cant lol. @crosbymichael - Can you close this

Got it!

@darstahl - Thanks Darren!


[SMALL] RevEng: Fixes codegen for column with same name as enclosing table

Fix for #3532.

:ship: :it:

Checked in with 90e5555.


Cannot test Cloud locally

If I try
docker build . -t cartographer:trusty -f Dockerfile.trusty --build-arg cc=gcc --build-arg cxx=g++

I get one failing test, like this:
Running main() from gmock_main.cc
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from LocalTrajectoryUploaderTest
[ RUN      ] LocalTrajectoryUploaderTest.HandlesInvalidUplink
E0117 19:38:40.493330864    4009 google_default_credentials.cc:283] Could not create google default credentials.
E0117 19:38:40.493455476    4009 google_default_credentials.cc:288] grpc_google_default_credentials_create: {"created":"@1547753920.394662388","description":"Failed to create Google credentials","file":"src/core/lib/security/credentials/google_default/google_default_credentials.cc","file_line":225,"referenced_errors":[{"created":"@1547753920.394665482","description":"creds_path unset","file":"src/core/lib/security/credentials/google_default/google_default_credentials.cc","file_line":168},{"created":"@1547753920.394701463","description":"Failed to load file","file":"src/core/lib/iomgr/load_file.cc","file_line":69,"filename":"/root/.config/gcloud/application_default_credentials.json","referenced_errors":[{"created":"@1547753920.394697166","description":"OS Error","errno":2,"file":"src/core/lib/iomgr/load_file.cc","file_line":43,"os_error":"No such file or directory","syscall":"fopen"}]}]}
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0117 19:38:40.493795  4009 local_trajectory_uploader.cc:123] Connecting to uplink invalid-uplink-address:50051
E0117 19:38:40.493837579    4009 channel_connectivity.cc:47] grpc_channel_check_connectivity_state called on something that is not a client channel, but 'lame-client'

I wonder how come this passes on Travis, and not on my box (Ubuntu 18.04, Docker version 18.09.1, build 4c52b90)?

same to me..

i donot know why but change to  grpc::InsecureChannelCredentials()  slove this error

@xuguangyun Would you please be more specific? I'm running into the same issue. Where can we make this change?


how to use Page transitions  inside navigation body?

there is no sample code on how to use drill in or Entrance page transition.
please provide some sample code for both?

NavigationBody(
 transitionBuilder: (child, animation) {
   return DrillInPageTransition(child: child, animation: animation);
 },
),

thank you its working...


Saving JSON log files to mongoDB, logged using morgan

Hi, I was trying to pass all my logged JSON files to a document store such as MongoDB.
Ref to logging toJSON : https://github.com/expressjs/morgan/issues/101

Hi @serganus, morgan is a line-based access logger, designed to be fed into a flat file on disk (or elsewhere). It does not easily allow for you to use storage that expects actual objects. You can of course "hack" it in order to do so. Here is an old example: https://github.com/expressjs/morgan/pull/44#issuecomment-62309400


updated imports

to add 1 new genes and some NCBITaxon required for annotations

@sabrinatoro just one question for you, but otherwise your PR looks good!


Screenshot

Could you provide some screenshots or screencapture animations to show what this is?

Hello mschipperheyn. We added a screencapture in README.md.


Added style and best practices

This fixes https://github.com/TBD54566975/ssi-sdk/issues/290

@decentralgabe PTAL


Fix bad translation

The translation to Spanish was referring to actors instead of character data type.

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

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

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Invalid type conversions on M1 Mac

Hello! I have been trying to use simd-everywhere to compile the RADULS sorting library for a Mac with an M1 chip. I am running into a problem that seems to originate from sse4.2.h, where a conversion between incompatible types is taking place. I get the following error message:
gcc-13 -IRaduls -Wall -fopenmp -O3 -march=armv8.5-a+fp+simd+crc+crypto -fno-ipa-ra -fno-tree-vrp -fno-tree-pre -m64 -std=c++14 -pthread  -c Example/main.cpp -o Example/main.o
In file included from Raduls/simde/x86/sse4.2.h:34,
                 from Raduls/simde/x86/avx.h:32,
                 from Raduls/raduls.h:19,
                 from Example/main.cpp:11:
/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc/aarch64-apple-darwin21/13/include/arm_acle.h: In function 'int __rndr(uint64_t*)':
/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc/aarch64-apple-darwin21/13/include/arm_acle.h:282:34: error: invalid conversion from 'uint64_t*' {aka 'long long unsigned int*'} to 'long unsigned int*' [-fpermissive]
  282 |   return __builtin_aarch64_rndr (__res);
      |                                  ^~~~~
      |                                  |
      |                                  uint64_t* {aka long long unsigned int*}
<built-in>: note:   initializing argument 1 of 'int __builtin_aarch64_rndr(long unsigned int*)'
/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc/aarch64-apple-darwin21/13/include/arm_acle.h: In function 'int __rndrrs(uint64_t*)':
/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/current/gcc/aarch64-apple-darwin21/13/include/arm_acle.h:289:36: error: invalid conversion from 'uint64_t*' {aka 'long long unsigned int*'} to 'long unsigned int*' [-fpermissive]
  289 |   return __builtin_aarch64_rndrrs (__res);
      |                                    ^~~~~
      |                                    |
      |                                    uint64_t* {aka long long unsigned int*}
<built-in>: note:   initializing argument 1 of 'int __builtin_aarch64_rndrrs(long unsigned int*)'
make: *** [Example/main.o] Error 1

I'm not really a C programmer, just trying to get this library compiled for use in another project, and I haven't been able to figure out the root cause of the issue. Any insights would be much appreciated.

Hello @aberthel
Which SIMDe function is this? Alas the compiler output doesn't say..

It's throwing errors at the #include <arm_acle.h> directive (ARM C Language Extensions). Within that file, the __builtin_aarch64_rndr and __builtin_aarch64_rndrrs intrinsics (which I think have some RNG function) seem to be returning 64-bit ints when something earlier up the line expected 32-bit ints. I haven't been able to figure out what that "something" is yet.

@aberthel Can you test again using #1148 ?

I believe this has been fixed, please let us know if not


docs(ast): clarify docs for RegExpPattern

Make it clearer what difference between RegExpPattern::Raw and RegExpPattern::Invalid is.

#5497  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @overlookmotel and the rest of your teammates on  Graphite

Only changes docs, and uncontroversial, so merging without review.


Update docs-elastic-co-publish.yml to use wordlake content.js data

This PR enables the ability of PR previews to be updated with the latest content and not what is currently live

wordlake doesn't have a content.js yet so we need to add that before we can merge this

Adding content.js: https://github.com/elastic/wordlake/pull/65/files


Chained trailing lambdas are formatted incorrectly

ktfmt currently formats this piece of code like this:
  private fun initializeRepository(repositoryDir: File) {
    val builder = FileRepositoryBuilder()
    repository =
      runCatching { builder.setGitDir(repositoryDir).build() }.getOrElse { e ->
        e.printStackTrace()
        null
      }
  }

While I would expect it to be something like this:
  private fun initializeRepository(repositoryDir: File) {
    val builder = FileRepositoryBuilder()
-    repository =
-      runCatching { builder.setGitDir(repositoryDir).build() }.getOrElse { e ->
-        e.printStackTrace()
-        null
-      }
+    repository = runCatching {
+      builder.setGitDir(repositoryDir).build()
+    }.getOrElse { e ->
+      e.printStackTrace()
+      null
+    }
  }

It seems that only the last lambda is considered for line breaks and not the intermediate one, which results in ktfmt assuming this line does not fit with the assignment and thus puts it on a new one.

I would expect this one:
  private fun initializeRepository(repositoryDir: File) {
    val builder = FileRepositoryBuilder()
    repository =
      runCatching { builder.setGitDir(repositoryDir).build() }
        .getOrElse { e ->
          e.printStackTrace()
          null
        }
  }

Yes, this is pretty pereceptive. Unfortunately, some people for different methods would expect the given version.
@nreid260 is trying to find a golden path to describe our core rules to decide what to do. Maybe he would like to chime in.
In the short term, we're unlikely to do this change though.

SGTM 👍🏼

val stuff = foo.bar.bloop
    .map {
      // statements
    }

This look weird to me, I would expect more break lines, something like:
val stuff =
    foo
	    .bar
	    .bloop
        .map {
            // statements with very long line
        }

val stuff =
    foo
	    .bar
	    .bloop
        .map { // statements }

val stuff =
    foo.bar
	    .bloop
        .map {
            // statements with very long line
        }

Supposing there is no line break on foo, I would expect something really weird.
val stuff = foo
    .bar
	.bloop
    .map {
        // statements with very long line
    }

val stuff = foo.bar
	.bloop
    .map {
        // statements with very long line
    }

Same indentation (4 spaces, kotlinlang). Maybe I used tabs instead of spaces (I use them randomly because the IDE and ktfmt fix them automatically when I write code).

v0.47 gets us this
private fun initializeRepository(repositoryDir: File) {
  val builder = FileRepositoryBuilder()
  repository =
      runCatching { builder.setGitDir(repositoryDir).build() }
          .getOrElse { e ->
            e.printStackTrace()
            null
          }
}

Closing as I'm assuming this is good enough for this issue (and because it is stale)


azkaban job running on all the servers separately？

Hello，
We are trying to switch to azkaban for managing our jobs, but facing issue in understanding how to use azkaban for the distributed server environment. We have different job set running on different servers and we like to have a common managing point for all of them, as per my knowledge, we execute both web and execution servers on a single server.
Please help me understand if its possible or we need to have azkaban running on all the servers separately.

If load is not too high – you can have all 3 on the same box – i.e. DB + web server + executor server.
If load is higher you can move them to separate boxes.
There can be more than 1 executor. So - you can setup several of them depending on your scaling requirements.
Typical large installation includes DB on separate box, web server on another box and several executor machines.
There are installations with as many as 15 executor servers for the same Azkaban cluster.
From: HTeam<EMAIL_ADDRESS>on behalf of yy1<EMAIL_ADDRESS>Reply-To: azkaban/azkaban<EMAIL_ADDRESS>Date: Friday, May 12, 2017 at 2:40 AM
To: azkaban/azkaban<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [azkaban/azkaban] azkaban job running on all the servers separately？ (#1084)
We are trying to switch to azkaban for managing our jobs, but facing issue in understanding how to use azkaban for the distributed server environment. We have different job set running on different servers and we like to have a common managing point for all of them, as per my knowledge, we execute both web and execution servers on a single server.
Please help me understand if its possible or we need to have azkaban running on all the servers separately.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/azkaban/azkaban/issues/1084, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGN0AdWvlqbZr4tPVnOuq5RghZTc-TNFks5r5CjzgaJpZM4NZEAY.

Hello,
But how we configure the job flows which execute on the separate execution servers? I mean how can we make the different jobs execute its own environment.
Thank you very much.

"We have different job set running on different servers" could you share more details on why you need to set it up this way?

azkaban current executor manager only can submit whole flow to execution server,  if we need to run different job on different executor server the only way is separate them into different flow. but next problem is azkaban  could not specify flow to run on specified server(node).   not sure if there is plan to enhance that?

"if we need to run different job on different executor server" Could you describe more details of your use case? Why is it a requirement?

Considering  some of jobs  require native resource like python/sftp/redis setup locally or because of limited  network(eg. job request external resource but only particular ip allow to access.) ,and if not all exec servers can fit  then we need to "custom node "  similar to Oozie

@huangfushun
Thanks
Have you considered using a shell job to launch these jobs remotely on a different host?
Could you point me the specific doc for this feature in Oozie?

just think of  if azkaban can have a ' plugin'  like  custom node   , then invoke  another resource negotiator(like YarnRPC )  to launch job remotly?  it works if run outside of exec server , the only thing is we need to make sure remote host is  healthy.

I see. Thanks.
You can already write jobs that communicate with a remote host.


Feature: Built in auth

Did you have any plan to implement an auth system with the starter adonis project?
I've started work on one based on Laravel's.
Not sure if you want to keep this issue open for awhile for people to see so they can help contribute.
The branch is over on my repo at
https://github.com/nehero/adonis-app/tree/feature-auth
I really want to see this framework grow :
Edit: If you have no intentions of adding an auth service to the default project, feel free to close this

Yes upcoming release will have inbuilt authentication system, here is an issue already open for same
https://github.com/adonisjs/adonis-auth/issues/1 and here is the roadmap of adonis
https://trello.com/c/wns5DzT3/28-authentication-provider

My bad, should have looked a bit harder


Run OpenVPN service as nobody

OpenVPN should not run as root user, drop privileges to nobody.
Change-Type: patch
Connects-To: #798
Changelog-entry: Run OpenVPN service as nobody
Signed-off-by: Andreas Fitzek<EMAIL_ADDRESS>---- Autogenerated Waffleboard Connection: Connects to #798

Can one of the admins verify this patch?

@resin-jenkins test this please

@resin-jenkins add to whitelist

@resin-jenkins test this please

@resin-jenkins add to whitelist

Historically the nobody user was a part of NFS, and shouldn't be used for this purpose. The reason for that is that more than one service can use this user, for the same reasons why this PR picked this user, thus lessening security. This is better than running as root, but worse than running as a dedicated user.

@agherzan done. I guess that is what you meant. :+1:
@michal-mazurek I added a openvpn user and group. (I guess)

@afitzek I was mentioning "commit log subject" not the changelog entry.  Could you please revert the change log entry and tweak the commit log subject as you did it for the changelog entry footer?

I performed the following tests:
I downloaded the RPI3 image build be jenkins, added a config.json from an application in prod. into the boot partition and provisioned the device. Logging into the device I was able to confirm that openvpn runs as openvpn user:
 959     1 openvpn  S     6508   1%   0% /usr/sbin/openvpn --daemon --writepid /var/run/openvpn/resin.pid --cd /etc/openvpn/ --config /run/openvpn/resin.conf


Fluid physics

I can't seem to work out how players can float in fluids. I've looked at examples in your code but still the player sinks to the bottom of the sea. There is some fluidDrag but it is not enough. Any ideas how to fix this?

Hi, I'm guessing you want to increase the noa.physics.fluidDensity property, or alternately decrease the player entity's mass. Whether an entity sinks or floats is down to whether it's more or less dense than the fluid it's in, and while entities have no explicit density property, you can make the player less dense by decreasing the entity's mass (or making it larger without changing the mass).

Hey thanks for the response, turns out i forgot to set the playerheight and width!


JSON key length can't be more than 16?

I found quite strange issue. I got this error in browser
net::ERR_CONTENT_LENGTH_MISMATCH 200 (OK)
In Postman I get Bad string error.
It took some time, but strangely all seems to be working when I cut one key length to 16 (because it was dateExpirationIsCountFrom). Is there any limit to JSON key length?
When I log to console all objects separately they are good, but when at once it's cut at the end (not sure why). Whole JSON length is less than 8k characters.

Hey there, this repo is for the content of the expressjs.com website, and not issues with Express itself.
On the Express repo, I found this issue with a user reporting the same type of error. Maybe that will help you track down your issue. To be clear though, 16 characters is many orders of magnitude below the limit for JSON key lengths which vary by browser (there's nothing in the JSON spec about it).


solves AoC 2023 day 08 part 02

My first pass is a brute force solution that will probably take over a day/month/wtv to complete.

The instructions and the input must form a closed loop, otherwise the problem would crash with an not found error.

very cool puzzle, I wrote a bunch of notes in the solution file


Update for openh264 2.2.0

There were no changes to API headers

I don't recognize the submitter as a member of @endlessm. Can somebody in @endlessm verify the patch? See https://phabricator.endlessm.com/w/software/build/ci-integration/#pull-requests for more details.

@dbnicholson can you please review?

Maybe @wjt could help move this along?

What is the practical need for this change – does a library that links to openh264 have a versioned dependency on this version?

No, it's a runtime thing. Various parties like ffmpeg and relevant gstreamer plugin build the version into themselves and refuse to initialize openh264 without exact version match.

OK, so we will need to rebuild the gst plugin (the only thing we have in the os itself). Thanks!
In the meantime I found https://gitlab.com/freedesktop-sdk/openh264-extension/-/merge_requests/31 and https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1419 which were helpful.


Change the font for Cyder names, etc. to a serifed font

The problem is that a name containing Imac might look like lmac, or vice versa.

Maybe we should use "Source Serif Pro" instead of "Source Sans Pro", and "Source Code Pro" instead of "Courier New"? And for font-family, serif instead of sans-serif.

Looks like this isn't as much of an issue as I first though. The characters are easily distinguished in tables, and though they look similar in forms, the l is taller than I.


feat: better flattening scopes

This includes improved support for flattening, featuring new mapRoot and absRoot options for the flattening function, as well as improving rebasing with root-relative rebasing based on a separate outBase option.
The details of the implementation are described in the function documentation comments which is output into the types as well.

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Edit User Guide to include class timings and hourly rate

Added class timings and hourly rate to edit command and command summary.

Codecov Report

Merging #29 (840f944) into master (6789392) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #29   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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 6789392...840f944. Read the comment docs.

LGTM!


Redo Redis storage do unpack records

Problem
In my naive earlier attempts to perform deduplication, I stored reddit posts grouped under the author's username as a key. This will eventually lead to an issue where a record's size grows large enough to evict a large portion of stored submissions in Redis. There's no good way to query or scan for records in Redis by value, so it doesn't make a lot of sense to use submission ID by itself as a key in Redis since that doesn't give enough context to limit a search to remain performant.
Proposed change
Change it so that the key becomes a combination of author + post ID:
user = foo, id = abc123
# becomes
key = foo/abc123

Then the deduplication logic would change from just getting a set and iterating over the members, to using Redis's SCAN command, where it tries to match on the author, like SCAN 0 MATCH foo/*

Closed by d5ba70c1be9d41010420eb2b27d1580b8d72f6eb


update to ubuntu 18.04

Hello,
could you please update the software to work with ubuntu 18.04 ?
It looks like the software is great but no longer updated
Thank you,
Roberto

At least please add requirements.txt so we can build it our-self. I tried to build but im missing ton on python libs.

closing as it seems that this is not maintained anymore.


Vb 2271 mismatch between available capacities causing overbookings

What does this pull request do?
Part 1 - Add sessionTemplateReference to ChangeVisitSlotRequestDto. Further DB updates to be done later.
What is the intent behind these changes?
Fix for VB-2271 to update session template reference when changing a reserved visit.

Sorry I think I will raise this again to main branch after the Bristol changes. Will close this PR for now.


Odin unable to find Valheim process on linux operating systems

Linux operating systems do not support process names with more than 15 characters:

https://stackoverflow.com/questions/23534263/what-is-the-maximum-allowed-limit-on-the-length-of-a-process-name
https://docs.rs/sysinfo/0.20.3/sysinfo/trait.ProcessExt.html#tymethod.name

This causes odin to not find the running valheim process and to incorrectly assume that it is not running.
get_process_by_name("valheim_server.x86_64") returns an empty array, and if you list process names and print them, the valheim server will be listed as "valheim_server.".
Solution: search only for the first 15 characters of the valheim server process name.
Proposed fix: https://github.com/mbround18/valheim-docker/pull/441

Fixed with #441


Client not stopping after client leaves

After the client clicks on the leave button, the window is closing, but the client itself is not stopping, it's still running.
@bruise-88 @ragedjavelin @RaswanthMurugan20 @hps1991 kindly sort this issue out.

UX team, note that the window should close only after you get the notification from the client session manager (not as soon as the leave button is clicked)

Actually it should close as soon as client clicks leave button, it should just wait until session manager sends removeClient event to server ( call removeClient on main thread).

Oh i see, thanks.
UX team, follow the same

Actually it should close as soon as client clicks leave button, it should just wait until session manager sends removeClient event to server ( call removeClient on main thread).


Support configuration via a JS file (in addition to JSON)

tslint.js, tslintConfig.js, could be called whatever as it would be passed to the --config option.
This allows more dynamic configuration of TSLint.

There are couple of more benefits when using JavaScript files:

it isn't so strict about commas after last element in array or property in object.
it allows commenting configuration.

Based on the documentation

If no option is specified, the config file named tslint.json is used, so long as it exists in the path.

I'd suggest that tslint.js would treated the same way. If both json and js files are present, js file could take precedence or error could be thrown (I wouldn't vote for using json file instead of js if both are present, as js conf would be newer feature and if the file is added, it probably means it should be used).

This should work now given recent changes that use require to load non-JSON configuration files

@JKillian 	sorry, how would this work? Would it allow me to have dynamic rules that are enabled/disabled depending on the file being checked? Couldn't find more documentation on this.

@gunar no, you can't quite do that (see #3447), but you can have the configuration file be a .js file which sets exports with the module.exports object.

Thank you @adidahiya, to the solution seems to be to wait for tslint and eslint to merge as eslint already has per-file rules. Thank you.


in my game for some reason it doesn't want to work

in my game for some reason it doesn't want to work
I am using these resource packs https://www.curseforge.com/minecraft/texture-packs/two-thousand-leagues-256x
https://youtu.be/5bUkW4VL8So
no error appears or anything, it just won't put :/
PS: yes, I already tried disabling the resource pack.
EliotXII here.

Do you know how to find the logs? They would be quite helpful in this case.

which one?

The one called latest.log. It will be the newest file.

latest.log

You're using forge, but this mod is only available for the Fabric or Quilt mod loader.

now I understand
in the curse this was not specified
sorry for bothering


Add debug config option to azdata extension

To enable debugging issues with azdata commands more easily
Also update extension icon to generic extension instead of Arc icon until we get an actual azdata one

Coverage decreased (-0.003%) to 40.505% when pulling 0e378917a0defad8184debf7d4a64da8129f0b86 on chgagnon/debugLogging into 100072cabde4f63f0a9bf8a89656acb89f48ef51 on main.


Repo/binary version mismatch?

I keep getting the "update binary" popup when I refresh tmux because it seems like the git check git describe --tags | sed "s/-.*//g" is 2.0.2 and the binary is 2.0.1. I tried building from brew and from source and I get the same behavior

Just published 2.0.3 fixing this! I need to sort out the release process, still doing releases manually and forgot to bump a version number 🙈

Haha, no worries, been there myself

I can confirm it working! 🎉


⚠ SceneTime has degraded performance

In a700447, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 3159 ms

Resolved: SceneTime performance has improved in 500bb94 after 9 minutes.


config: add a variable to disable checks after writing

Allow users to opt-out of the write-time checks by setting
g:syntastic_check_on_write = 0.

Allow users to opt-out of the write-time checks by setting

An option to do that exists already, it's the passive mode.  Sorry, but no.


Time, Severity, and Message should be merged after metadata in GoogleCloudLogger

I recently debugged an issue where my log messages weren't showing up as expected.  I had introduced a log message that had time metadata (how long an operation took).  Since LoggerJSON.Formatters.GoogleCloudLogger merges the metadata into the map of time, severity, and message, metadata time replaced the actual timestamp.  The same would happen for severity or message.
This should at a minimum be documented.  Ideally the time, severity, and message would be merged into the metadata.  A plus would be some way of warning that the original value had been overwritten and recording the original value.

Hello @StandardMikeBenza, this is the behaviour that is not specific to the package. Logger in the latest Elixir versions works on top of Erlang one and it supplies time as a metadata attribute to the formatted. Not sure if you can override it now or now, but closing since there is nothing we can do about it.


Decrease UI size on Windows

Hi,
Thanks for your project. I'm running on Windows with 150% scaling, and the entire cutelog interface is enlarged. Is there a way to decrease the UI size as a whole?
See screenshot, with notepad++ in the background, showing normal appearance of app menu:

Thanks

You can change this with an environment variable. Before starting cutelog, set it like this:

If you're using PowerShell: $Env:QT_AUTO_SCREEN_SCALE_FACTOR=0
If you're using cmd.exe: set QT_AUTO_SCREEN_SCALE_FACTOR=0
This should have the desired effect, but you'll probably also want to adjust font sizes in the settings of cutelog.