微调进行批量预测并计算 BLEU 和 ROUGE 分数时候报错

Reminder

[X] I have read the README and searched the existing issues.

System Info
8 ascend910A
Reproduction
#!/bin/bash
NPROC_PER_NODE=8
NNODES=1
RANK=0
ASCEND_RT_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 torchrun
--nproc_per_node $NPROC_PER_NODE
--nnodes $NNODES
--node_rank $RANK
src/train.py examples/train_full/llama3_full_predict.yaml
Expected behavior
执行代码，报错信息如下：
6/19/2024 14:51:37 - INFO - llmtuner.model.utils.attention - Using torch SDPA for faster training and inference.
06/19/2024 14:51:37 - INFO - llmtuner.model.adapter - Adapter is not found at evaluation, load the base model.
06/19/2024 14:51:37 - INFO - llmtuner.model.loader - all params:<PHONE_NUMBER>
Detected kernel version 4.19.36, which is below the recommended minimum of 5.5.0; this can cause the process to hang. It is recommended to upgrade the kernel to the minimum version or higher.
[INFO|trainer.py:3719] 2024-06-19 14:51:37,823 >> ***** Running Prediction *****
[INFO|trainer.py:3721] 2024-06-19 14:51:37,823 >>   Num examples = 100
[INFO|trainer.py:3724] 2024-06-19 14:51:37,823 >>   Batch size = 2
/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/logits_process.py:1591: UserWarning: AutoNonVariableTypeMode is deprecated and will be removed in 1.10 release. For kernel implementations please use AutoDispatchBelowADInplaceOrView instead, If you are looking for a user facing API to enable running your inference-only workload, please use c10::InferenceMode. Using AutoDispatchBelowADInplaceOrView in user code is under risk of producing silent wrong result in some edge cases. See Note [AutoDispatchBelowAutograd] for more details. (Triggered internally at torch_npu/csrc/aten/common/TensorFactories.cpp:74.)
scores_processed = torch.where(scores != scores, 0.0, scores)
[W VariableFallbackKernel.cpp:51] Warning: CAUTION: The operator 'aten::isin.Tensor_Tensor_out' is not currently supported on the NPU backend and will fall back to run on the CPU. This may have performance implications. (function npu_cpu_fallback)
E39999: Inner Error!
E39999: 2024-06-19-14:51:39.102.508  An exception occurred during AICPU execution, stream_id:6, task_id:3419, errcode:21008, msg:inner error[FUNC:ProcessAicpuErrorInfo][FILE:device_error_proc.cc][LINE:730]
TraceBack (most recent call last):
Kernel task happen error, retCode=0x2a, [aicpu exception].[FUNC:PreCheckTaskErr][FILE:task_info.cc][LINE:1754]
Aicpu kernel execute failed, device_id=0, stream_id=6, task_id=3419, errorCode=2a.[FUNC:PrintAicpuErrorInfo][FILE:task_info.cc][LINE:1557]
Aicpu kernel execute failed, device_id=0, stream_id=6, task_id=3419, fault op_name=[FUNC:GetError][FILE:stream.cc][LINE:1519]
rtStreamSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
synchronize stream failed, runtime result = 507018[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
DEVICE[0] PID[2574707]:
EXCEPTION TASK:
Exception info:TGID=2905989, model id=65535, stream id=6, stream phase=SCHEDULE, task id=3419, task type=aicpu kernel, recently received task id=3419, recently send task id=3418, task phase=RUN
Message info[0]:aicpu=0,slot_id=0,report_mailbox_flag=0x5a5a5a5a,state=0x5210
Other info[0]:time=2024-06-19-14:51:38.824.566, function=proc_aicpu_task_done, line=970, error code=0x2a
Traceback (most recent call last):
File "/home/HwHiAiUser/.conda/envs/lla/bin/llamafactory-cli", line 8, in
sys.exit(main())
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/llmtuner/cli.py", line 65, in main
run_exp()
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/llmtuner/train/tuner.py", line 33, in run_exp
run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/llmtuner/train/sft/workflow.py", line 91, in run_sft
predict_results = trainer.predict(dataset, metric_key_prefix="predict", **gen_kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 244, in predict
return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer.py", line 3648, in predict
output = eval_loop(
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer.py", line 3757, in evaluation_loop
loss, logits, labels = self.prediction_step(model, inputs, prediction_loss_only, ignore_keys=ignore_keys)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/llmtuner/train/sft/trainer.py", line 79, in prediction_step
loss, generated_tokens, _ = super().prediction_step(  # ignore the returned labels (may be truncated)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 310, in prediction_step
generated_tokens = self.model.generate(**generation_inputs, **gen_kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/utils.py", line 1758, in generate
result = self._sample(
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/utils.py", line 2455, in _sample
unfinished_sequences = unfinished_sequences & ~stopping_criteria(input_ids, scores)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/stopping_criteria.py", line 507, in call
is_done = is_done | criteria(input_ids, scores, **kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/stopping_criteria.py", line 498, in call
is_done = torch.isin(input_ids[:, -1], self.eos_token_id)
RuntimeError: ACL stream synchronize failed, error code:507018
Others
No response

八卡一起使用的，其中一个设备的报错信息为：DEVICE[0] PID[44207]:
EXCEPTION TASK:
Exception info:TGID=1134286, model id=65535, stream id=21, stream phase=SCHEDULE, task id=3377, task type=aicpu kernel, recently received task id=3377, recently send task id=3376, task phase=RUN
Message info[0]:aicpu=0,slot_id=0,report_mailbox_flag=0x5a5a5a5a,state=0x5210
Other info[0]:time=2024-06-19-23:19:23.004.854, function=proc_aicpu_task_done, line=970, error code=0x2a
Traceback (most recent call last):
File "/home/ma-user/work/LLaMA-Factory/src/train.py", line 28, in
main()
File "/home/ma-user/work/LLaMA-Factory/src/train.py", line 19, in main
run_exp()
File "/home/ma-user/work/LLaMA-Factory/src/llamafactory/train/tuner.py", line 47, in run_exp
run_sft(model_args, data_args, training_args, finetuning_args, generating_args, callbacks)
File "/home/ma-user/work/LLaMA-Factory/src/llamafactory/train/sft/workflow.py", line 106, in run_sft
predict_results = trainer.predict(dataset, metric_key_prefix="predict", **gen_kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 244, in predict
return super().predict(test_dataset, ignore_keys=ignore_keys, metric_key_prefix=metric_key_prefix)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer.py", line 3648, in predict
output = eval_loop(
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer.py", line 3757, in evaluation_loop
loss, logits, labels = self.prediction_step(model, inputs, prediction_loss_only, ignore_keys=ignore_keys)
File "/home/ma-user/work/LLaMA-Factory/src/llamafactory/train/sft/trainer.py", line 104, in prediction_step
loss, generated_tokens, _ = super().prediction_step(  # ignore the returned labels (may be truncated)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/trainer_seq2seq.py", line 310, in prediction_step
generated_tokens = self.model.generate(**generation_inputs, **gen_kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/utils.py", line 1758, in generate
result = self._sample(
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/utils.py", line 2455, in _sample
unfinished_sequences = unfinished_sequences & ~stopping_criteria(input_ids, scores)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/stopping_criteria.py", line 507, in call
is_done = is_done | criteria(input_ids, scores, **kwargs)
File "/home/HwHiAiUser/.conda/envs/lla/lib/python3.10/site-packages/transformers/generation/stopping_criteria.py", line 498, in call
is_done = torch.isin(input_ids[:, -1], self.eos_token_id)
RuntimeError: ACL stream synchronize failed, error code:507018
[rank0]:[W NPUStream.cpp:382] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.379.268  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeUsedDevices)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.381.140  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.430.256  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.431.988  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.433.674  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.435.393  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.437.077  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.438.768  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)
[rank0]:[W NPUStream.cpp:365] Warning: NPU warning, error code is 507018[Error]:
[Error]: The aicpu execution is abnormal.
Rectify the fault based on the error information in the ascend log.
EH9999: Inner Error!
rtDeviceSynchronize execute failed, reason=[aicpu exception][FUNC:FuncErrorReason][FILE:error_message_manage.cc][LINE:53]
EH9999: 2024-06-19-23:19:23.440.475  wait for compute device to finish failed, runtime result = 507018.[FUNC:ReportCallError][FILE:log_inner.cpp][LINE:161]
TraceBack (most recent call last):
(function npuSynchronizeDevice)

设置下 do_sample:false 试试

设置下 do_sample:false 试试

您提供的这个方案确实解决了问题，但我还是想知道一下这个问题报错的原因是因为什么呢？

设置下 do_sample:false 试试

您提供的这个方案确实解决了问题，但我还是想知道一下这个问题报错的原因是因为什么呢？

猜测是随机采样有些线程不安全的操作，NPU线程同步失败


Migrated some code that synthesizes tfc.SendToHost and tfc.RecvFromHost from tfop builtin to graph op inst.

The remaining migration there will need to wait for shapes array attr to land.

@swift-ci please test tensorflow

Thanks for the review!


Kubernetes Ingress and CRD | Log info

Do you want to request a feature or report a bug?

Feature
What did you expect to see?
I want to see a log info on creation,changes,deletions of every objects handled by traefik in KubernetesCRD and KubernetesIngress (like Ingress, IngressRoute, TraefikService, TLSOptions, TLSStore, etc.) for debugging purpose.

Hello @melck and thanks for your interest in Traefik.
Logging every single events would be too verbose even in debug mode. When Traefik receives an event from Kubernetes (from an observed resource),  it will trigger the build of a dynamic configuration based on these new data. If you want to debug, your best bet is to look for the Configuration received from provider log message.


doc: result data model documentation

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (master@37e125b). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   81.17%
  Complexity        ?      648
=========================================
  Files             ?      120
  Lines             ?     1663
  Branches          ?       98
=========================================
  Hits              ?     1350
  Misses            ?      248
  Partials          ?       65

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


Move getPreDefinedConfiguration() method to 'src\client\logging_global.ts'

In #11897 we've added getPreDefinedConfiguration() to src/client/logging/logger.ts.  The function deals with global state so it belongs in _global.ts.  However, we had ran into trouble when we moved it to _global.ts.  (Adding import '../client/logging/_global'; to src/test/testLogger.ts, to force creating the global logger, caused the aliases in src/client/logging/index.ts to all be undefined when imported anywhere else under src/client.)
We need to figure out how to get it to work.

I expect this will require that we use an initializeGlobalLoggers() function rather than depending on import side effects.

Closing as stale.


Use nadir azimuth angle from l1a

Changes L1_calibration.artifact_correction to use nadir_az from L1a. Should not be merged until https://github.com/innosat-mats/level1a/pull/57 is deployed and https://github.com/innosat-mats/MATS-L1-processing/pull/150 is ready to be deployed.
There are also quite a few white space changes. I hope you can look past them.

I removed the pix_deg function, since it wasn't used here, but maybe  that was a bad idea? Where is it better suited? Here or in MATS utilities? @donal-mur @OleMartinChristensen

It is only used by the nadir geolocation function in mats-utils.
It was originally in mats-utility functions, in my opinion it should be relocated in this repository.
I think that it's also used for the limb tangent point calculations ? @donal-mur

It is used a lot by me in sitting altitudes.  All the altitude lines i  the images use it.

No strong opnion on where it is but dont like when my code breaks. I have many different files

I've re-added `pix_deg_ here. Does it look ok to you now, @Kernl67 ?


win module reportback image

the win module is showing a random reportback image, but it isn't from that campaign.
it should be a random reportback image from the campaign that was hot

  $parameters = array(
    'campaigns' => $vars['nid'],
    'status' => 'promoted',
    'count' => '1',
    'random' => true,
  );
  $random_image = ReportbackItem::find($parameters)[0];
  if (isset($random_image)) {
    $promoted_image = $random_image->media['uri'];
  }

from the win module preprocess, don't see anything wrong at a glance. Maybe campaigns should be campaign, or the vars[nid] should be encased in an array?

apparently 'campaigns' is supposed to be nid
shamelessly inserting suggestion we need another documentation day

hehe :book:

on http://staging.beta.dosomething.org/campaigns/hunt-day-2-trash-scavenger-hunt?source=node/1165 which would show the win module I get the following error

yeah theres no promoted report backs
http://staging.beta.dosomething.org/node/1286/rb/reviewed?status=2&flagged_reason=All&promoted_reason=All
Ill add a safety check but on prod I dont think we will really ever have this


Replace DEBUG_PRINTF/DEBUG_PRINTF_TS by Arduino logging functions

The DEBUG_PRINTF/DEBUG_PRINTF_TS macros only allow switching debug messages on/off using the define _BWS_DEBUG_MODE_ in BresserWeatherSensorTTNCfg.h.
With the Arduino logging functions from https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-log.h, the debug level can be set in a fine-grained, standardized way from the Arduino IDE (Tools->Core Debug Level: "<NONE|ERROR|WARN|INFO|DEBUG|VERBOSE>")

The purpose of cEventLog is to implement the actual debug printing in callback functions using RegisterListener().
This is not implemented entirely consistent; some Serial.print() function calls are still left in MCCI_Arduino_LoRaWAN_Library/src/lib/arduino_lorawan_cEventLog.cpp.
This should be changed as follows:
bool
Arduino_LoRaWAN::cEventLog::processSingleEvent()
    {
    if (this->m_head == this->m_tail)
        {
        return false;
        }

    auto const pEvent = &this->m_queue[this->m_head];

    //Serial.print(osticks2ms(pEvent->time));
    //Serial.print(" ms:");
    pEvent->pCallBack(pEvent);
    //Serial.println();

    if (++m_head == sizeof(m_queue) / sizeof(m_queue[0]))
        {
        m_head = 0;
        }

    return true;
    }

N.B.: With Arduino logging functions (such as log_i()) a timestamp is included in the output per default.

Implemented in https://github.com/matthias-bs/BresserWeatherSensorTTN/commit/1fe5a658da5996bc4e6a319a43d03b4fd8148d93


Use correct react native packager require statements

Using react-native-webpack-server, it turns out that, because react native internal modules are set as 'externals' in the webpack config, there ends up being two instances of RCTDeviceEventEmitter: one created by the react native packager, and one created by webpack via require('react-native/Libraries/Device/RCTDeviceEventEmitter'). This results in "FBLogin*" events not being received by the proper RCTDeviceEventEmitter so FBLogin callbacks onLogin, onLogout, etc. weren't being called.
Reverting back to the react-native-style require statements fixes the problem since there's now only one RCTDeviceEventEmitter instance.

Thanks for fixing these, Elliott! :+1:


possible bug in similarity_hpi

Currently:
similarity_hpi <- function(graph, v1, v2, ...){
  deg <- igraph::degree(graph)

  score <- igraph::cocitation(graph, v = v2)
  score <- score[, v2]
  score <- score / outer(deg[v1], deg[v2], pmax)
  score
}

Proposed change (v1 not v2)
similarity_hpi <- function(graph, v1, v2, ...){
  deg <- igraph::degree(graph)

  score <- igraph::cocitation(graph, v = v1)
  score <- score[, v2]
  score <- score / outer(deg[v1], deg[v2], pmax)
  score
}

Hi @InesdeSantiago,
They function you refer to is not part of this repo. Is there is an issue with galanisl/LinkPrediction, please provide an MRE and the lines of code.
I'm closing this for now.

Sorry, I posted in the wrong repo by mistake


Strings server may not be serving latest strings

According to the "Help translate" page, the translation strings are almost "live" by loading the translation strings files on the fly. But, the translation strings files may not be latest.
For example, the string "pick random 0 to %limit" was translated and approved 4 days ago for Japanese. The translation does not appear for Japanese, but it appears for Swedish (Sweden).

The editor refuses to use strings where the syntax of the strings has been messed up:

I think in your case it is the %1 that messing things up.

Thank you and sorry for that. That was messed.

No worries! We should document how to diagnose these.


Kafka Kerberos and AuthZ

This PR-

Migrates all scripts and configuration (except metrics configuration) from mesosphere/kafka image to the operator as ConfigMaps.
Adds support for KDC Kerberos. The operator now accepts the name of a k8s secret as  a parameter which should contain the keytabs (base64 encoded). The KDC server host, port, realm can be configured. The primary of Kafka and livenessProbe client can also be configured.
Adds support for enabling Kafka AuthZ and Super Users
Adds Kerberos and Kafka ACL support to the health check (livenessProbe)
Changes the readinessProbe from script based netcat port check to a k8s tcp probe.

This PR will be updated by @rishabh96b to add the relevant documentation for Kerberos and AuthZ.


Add token validator

@MajkelKorczak While tokens are usually a 40 character hex string, it is not a technical requirement, https://gitlab.com/gitlab-org/gitter/webapp/blob/1ef4749ec07cf4ea45310beb0f3a6baca77a20cf/modules/persistence/lib/schemas/oauth-access-token-schema.js#L8)
It would be better to just print a warning about it not fitting the normal 40 character hex string format and may not be valid instead of not allowing things to continue.

I enchanced and fixed the validation. Here you are.

Thanks @MajkelKorczak 💯
Shipped in<EMAIL_ADDRESS>🚀


If redis bind to more than one IP，redis can't be stoped.

If i set $redis_bind_address param to '<IP_ADDRESS> <IP_ADDRESS>', i can't stop redis using command 'service redis_6379 stop'.
REDIS_PORT="<%= @redis_port %>"
REDIS_BIND_ADDRESS="<%= @redis_bind_address ? @redis_bind_address : '<IP_ADDRESS>' %>"

EXEC=<%= scope.lookupvar('redis::redis_bin_dir') %>/bin/redis-server
CLIEXEC="<%= scope.lookupvar('redis::redis_bin_dir') %>/bin/redis-cli -h $REDIS_BIND_ADDRESS -p $REDIS_PORT <%= @redis_password ? '-a ' + @redis_password : '' %>"

this code snippet is part of redis_init.erb. if redis bind to more than one IP, CLIEXEC will be a error command like '-h <IP_ADDRESS> <IP_ADDRESS>'. i change this comannd to '-h <IP_ADDRESS> -h <IP_ADDRESS>' manual, then stop redis service successfully.

Archiving this repo and closing all open issues and pull requests. Please fork and maintain any changes in another repo. Sorry for the inconvenience.


slow reporting of metrics

Our datanodes use quite a lot of time to report the metrics:
et2448@ilp-aot-elk04 ~]$ time curl localhost:9202/_prometheus/metrics -o /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 23.1M  100 23.1M    0     0  1099k      0  0:00:21  0:00:21 --:--:-- 5270k

real    0m21.530s
user    0m0.010s
sys     0m0.021s
[et2448@ilp-aot-elk04 ~]$

can something be done to speed this up? They have a fair amount of indexes though.

That is 21 seconds?
Which version of plugin?
There are couple of calls done internally and they are done in sequential order - the second call is initiated only after the first one is finished, etc... we could speed things up by running all calls in parallel, but that could put more load on the server and it might not help much if one of the calls take 90% of total time. This might be the case of getting stats for all indices.
I would say we need to check how long individual calls take and then optimise the most expensive one. May be you can try to turn on slow search log (set threshold to 10 sec) and see if it caches the indices stats request (although I am not sure if slow search log catches also admin APIs). This will help us identify the call the we need to optimise first (I will check if we can filter out some data from indices stats response, this could help).

@sastorsl can you fill in the details?


Add Datatables to project

@Fabian-Sommer Please have a look whether or not you are able to remove the container-fluid from datatables

Seems like Datatables is currently on the brink of going full bootstrap 4. We live with the currently implementation for now


Multiple HTML components cause the second HTML component to jump to the end of the content.

description
When using two HTML components together it causes the second one to become unusable. No errors or warnings in our audit.
Repro steps:

set schema to have two HTML components e.g

{
          type: "string",
          label: "Blog Post Body2",
          name: "body2",
          ui: {
            component: "html",
          },
        },
        {
          type: 'string',
          label: 'Body',
          name: 'body',
          isBody: true,
          ui: {
            component: 'html'
          }
        },

Launch tina and attempt to edit second HTML which causes it to drop to the bottom of the component, regardless of where you choose to type.

One more case where I found the same issue occurs - nested content. Here's an example schema
{
      label: "Blog Posts",
      name: "post",
      path: "content/post",
      fields: [
        {
          type: "string",
          label: "Title",
          name: "title",
        },
        {
          type: "string",
          label: "Blog Post Body",
          name: "body",
          isBody: true,
          ui: {
            component: "html",
          },
        },
        {
          type: "object",
          label: "Nested obj",
          name: "nested",
          fields: [
            {
              type: "string",
              label: "Blog Post Body2",
              name: "body2",
              isBody: true,
              ui: {
                component: "html",
              },
            },
          ],
        },
      ],
    },

Making a comment so it won't close.


adding pdb and pdb watcher for controller itself

adding pdb and pdb watcher for controller itself

fixes #14


DeprecationWarning: The punycode module is deprecated

(node:2941255) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:5:10
    at NativeModule.compileForInternalLoader (node:internal/bootstrap/loaders:312:7)
    at NativeModule.compileForPublicLoader (node:internal/bootstrap/loaders:252:10)
    at loadNativeModule (node:internal/modules/cjs/helpers:49:9)
    at Function.Module._load (node:internal/modules/cjs/loader:804:15)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/apps/Adachi-BOT/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)

# npm list whatwg-url
<EMAIL_ADDRESS>/opt/apps/Adachi-BOT
└─┬<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └──<EMAIL_ADDRESS>
https://github.com/jsdom/whatwg-url/pull/191
https://github.com/node-fetch/node-fetch/commit/0959ca9739850bbd24e0721cc1296e7a0aa5c2bd#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L63
@larsgw Will you support node-fetch 3.x (or newer)?

Will you support node-fetch 3.x (or newer)?

node-fetch 3 introduces a lot of breaking changes, the most problematic one being that the package has been [converted to an ES module[(https://github.com/node-fetch/node-fetch/blob/main/docs/v3-UPGRADE-GUIDE.md#converted-to-es-module) which makes it impossible to import synchronously.

But in this case there's not much of a choice, I will see if I can figure something out.

the package has been converted to an ES module which makes it impossible to import synchronously

This project can also be turned into ESM :)

I know :) However, I think that a lot of situations in which a synchronous version of fetch is required or useful, will not allow asynchronous import() or import ... from statements.
I see two workarounds:

Forking node-fetch. That might cause compatibility problems if both sync-fetch and non-forked node-fetch are used and though I am not sure.
In worker.js it's fine to use import() since it is asynchronous anyway. It's imported in index.js to provide basic implementations of Request, Response, Headers, and FetchError (so I only have to implement the sync part, not input parsing etc.). I could copy the parts of these implementations that I need, but that is effectively also a fork, and the sync-fetch implementation might become incompatible with the node-fetch implementation used in worker.js.

@larsgw You can fork node-fetch 2.x and update whatwg-url, then everything be fine

That might cause compatibility problems if both sync-fetch and non-forked node-fetch are used and though I am not sure

I don't think so, use @larsgw/node-fetch in your module and node-fetch outside the module so it won't cause problems

I think I will close this issue in favor of #32 since it is basically about the same thing.

If you are using windows and still getting this warning after updating to node version 21.1.0 then you need to update the npm itself. type 'npm install -g npm@latest' in cmd and that probably fix your issue. It worked for me.


Number of results

I've build the project without issues on my Linux and Windows machine, kudos again for the effort! Just to continue on my #1 riff - how about a number of results argument? I would probably just leave the default at "1", but in any case it would be good to let the user decide how many connections they want to see.

The latest version now has a parameter to limit the amount of results. Thanks for the suggestion :)


[Feature Request] Show open Apps embedded in the Taskbar Icons

I am mostly frustrated by the space the taskbar needs when I have several applications open. Nine to ten apps and the taskbar takes the whole screen.

It would be awesome, if the open apps would not show as an extra space taking tab-like icon but instead be embedded in the taskbar (fast startup) icons and, if there is no related icon in the fast startups, simply show a fitting icon the same size like the other icons.
Mainly I'd love a behaviour like the current MacOs taskbar (showing open apps with a dot symbol).

Thanks for the report! I believe this is a duplicate of #52, which is planned but not yet completed.

I see, thank you for the answer!
Might there be a way to contribute to this issue myself? I do not have much experience in working on a git project but I do study computer science and I do have some basic coding skills in java, c and python as well as some first git experience. I'd love to see this feature progress so if I might be of help, I'd love to!
Best regards,
Josephine

Von: Sam Johnson @.***>
Gesendet: Sonntag, 11. April 2021, 02:56
An: cairoshell/cairoshell
Cc: Light89; Author
Betreff: Re: [cairoshell/cairoshell] [Feature Request] Show open Apps embedded in the Taskbar Icons (#546)
Thanks for the report! I believe this is a duplicate of #52https://github.com/cairoshell/cairoshell/issues/52, which is planned but not yet completed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/cairoshell/cairoshell/issues/546#issuecomment-817225425, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGT3FOU27NJVKKNIPDCGUSDTIDXVBANCNFSM4ZYZXDDA.

We welcome contributions! If you'd like to work on this, I am putting some of my notes in #52.

That would be wonderful, yes please!

From: Sam Johnson @.>
Sent: Sunday, April 11, 2021 5:18:25 AM
To: cairoshell/cairoshell @.>
Cc: Light89 @.>; Author @.>
Subject: Re: [cairoshell/cairoshell] [Feature Request] Show open Apps embedded in the Taskbar Icons (#546)
We welcome contributions! If you'd like to work on this, I am putting some of my notes in #52https://github.com/cairoshell/cairoshell/issues/52.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/cairoshell/cairoshell/issues/546#issuecomment-817240232, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGT3FOSJNY5SM32UCRIS2PDTIEIIDANCNFSM4ZYZXDDA.


Resolved log_reader.h documentation mistake

In accordance with issue #878, I have rectified  log_reader.h Line 27.

@pwnall @cmumford Could you kindly look into this? It's a reasonably consequential error in the documentation.


Documentation has html char entities

Azure.Comos library documentation(https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.transactionalbatch?view=azure-dotnet) has issues like below.
List<PatchOperation> patchOperations = new List<PatchOperation>();

Everything in the file looks correct. It might be an issue with the docs website.

Closing as the code is correctly rendered


Noob configuration guidance please

I found your plugin but am struggling (I think) to configure it correctly.
Installed (successfully?)
fluent-gem install fluentd-plugin-rss

Fetching: fluent-plugin-rss-0.0.1.gem (100%)
Successfully installed fluent-plugin-rss-0.0.1
Parsing documentation for fluent-plugin-rss-0.0.1
Installing ri documentation for fluent-plugin-rss-0.0.1
Done installing documentation for fluent-plugin-rss after 0 seconds
1 gem installed

fluent-gem list

*** LOCAL GEMS ***
...
fluent-plugin-rss (0.0.1)
...

Configured (unclear)
Currently have both rss.conf and fluent-plugin-rss.conf
The 'type' property was not referenced but I think it should be 'rss'? Looking at your source (not a Ruby developer), it appears the 'tag' is to identify the emitted data so could be anything. I've tried various permutations of this:
<source>
  type rss
  tag cnn
  url http://rss.cnn.com/rss/cnn_latest.rss
  attrs date, title
</source>

Reviewing your code, it appears the RSS feed must contain a 'date' element. And I suspected this was the problem with the 1st feed that I tried which contained no 'date'. I extracted the RSS parsing and enumeration from your plugin (below). I've tried 2 other feeds that both use 'pubDate' (http://lorem-rss.herokuapp.com/feed; http://rss.cnn.com/rss/cnn_latest.rss) and these both work; they're 'put' and I assume would be emitted too.
#!/usr/bin/env ruby
require 'rss'

@tag = 'test'
@current_time = Time.new(2016,6,15,0,0,0, "+09:00").utc
@url = 'http://rss.cnn.com/rss/cnn_latest.rss'

next_current_time = @current_time

rss = RSS::Parser.parse(@url)

rss.items.each do |item|
    time = Time.parse item.date.to_s
    if time > @current_time
        puts "#{@tag} --- #{Time.parse(item.date.to_s)} --- #{item.title}"
        next_current_time = time if time > next_current_time
    end
end

I see no evident output :-(
So I'm doing something wrong. Any help would be appreciated.

Thank you for reporting!
When the date attribute does not exist, this plugins seems to fail to set the time attribute of the record.
I have plan to fix it and some known problems in this month.

Thank you for your reply!
Does my config file look accurate?
<source>
  type rss
  tag cnn
  url http://rss.cnn.com/rss/cnn_latest.rss
  attrs date, title
</source>

Should it be named "rss.conf" or "fluent-plugin-rss.conf" or does it not matter?

@harukasan  any chance to get  a beta release of the changes? I am trying to fix a couple of issues but want to know if there is anything else there.


Fixed duplicated code and typo in the ops/tabs

Removed some doubled ifs
Fixed multiple typos: content -> header
Added JS for hiding the tab header when only one tab is present

Still not really happy about the tab hiding, but it does indeed do what's intended :).
Same thing for wrapping whole templates in the if @sb[:active_tab] thing.
Does work.

cc @martinpovolny @dclarizio @epwinchell

@skateman can you verify if this PR also fixes: https://github.com/ManageIQ/manageiq/issues/3103
i tried it locally and seems like it fixes the issue but can you verify.

@h-kataria yes :smile:

Fixes #3103


Encode torrent video on the fly

Hi,
First, congratz for your module ! It's very powerfull !
But, i can't encode video file from torrent to re-stream encoded video ....
I use torrent-stream. I download the video file in torrent and i want to encode into flv format to read it with my browser.
My line:
ffmpeg(file.createReadStream(range)).outputFormat('flv').outputOptions(['-ar 44100']).pipe(response);
I send it to http server. Without FFMPEG, i can view the video in my browser (but only when it's correctly encoded ...)
The error:
Error: Output stream closed
events.js:85
throw er; // Unhandled 'error' event
^
Error: Output stream closed
at null._onTimeout (/..../fluent-ffmpeg/lib/processor.js:481:25)
at Timer.listOnTimeout (timers.js:119:15)
Have you an hack for this ?
Thx a lot man.

Hi,
See this FAQ entry :)

Thanks for tout fait response :)If i understand, i juste need to add the options:
command.outputOption('-movflags frag_keyframe+faststart')
Thanks for your help, i trying this later :)
-------- Message d'origine --------
De : Nicolas Joyard<EMAIL_ADDRESS>Date : 18/02/2016  09:02  (GMT+01:00)
À : fluent-ffmpeg/node-fluent-ffmpeg<EMAIL_ADDRESS>Cc : Coco<EMAIL_ADDRESS>Objet : Re: [node-fluent-ffmpeg] Encode torrent video on the fly (#499)
Hi,
See this FAQ entry :)
—
Reply to this email directly or view it on GitHub.

I don't know of a way to bypass the 2 requests. And you cannot control what every client in the world will do. You just have to ensure your app is resilient, that is it can still continue working properly even when this error occured.


cmd/vet: go vet incorrectly romalformed struct tags

The latest version of go vet (go 1.4.1 with latest tools repo commit golang/tools@913f41fc5f1b7afd8f7c66c011c1ad368fa23fb8) is incorrectly reporting malformed struct tags when one of the tag values contains spaces.
Here is a minimal set of steps to reproduce the issue:
$ mkdir $GOPATH/src/govetissue
$ cd $GOPATH/src/govetissue
$ cat > main.go  <<END
package main

type foo struct {
    A int \`short:"V" description:"Test description"\`
}

func main() {
}
END
$ go vet

Output:

/home/davec/mygo/src/govetissue/main.go:4: struct field tag short:"V" description:"Test description" not compatible with reflect.StructTag.Get: bad syntax for struct tag value
exit status 1

Removing the space inside the quoted value for the description (i.e. TestDescription) does not report the error, but clearly that is not the intended behavior.
I've reproduced this issue with Windows, Linux, and OpenBSD.

This is https://github.com/golang/go/issues/9500#issuecomment-70218780.
At least two fixes are being reviewed.


[CodeRefactor]Remove useless code for Segment V2

see #6454

@yangzhg please reivew this pr when you have time,


Fix Reponse subpalette icon

Work-around for this VIPM issue:
vipm-io/vipm-desktop-issues#6

thanks @jimkring I'll give this a shot in the next couple of days.


Lua file handle leak for  sys.io.Process()

The lua target for sys.io.Process() has a file handle leak
 haxe -v
Haxe Compiler 3.4.7 - (C)2005-2017 Haxe Foundation

 class Main {
  static public function main():Void {
    do {
        var curl = new sys.io.Process("ls");
        var exitCode = curl.exitCode();
        var out = curl.stdout.readAll().toString();
        trace("Out -" + out);
        var err = curl.stderr.readAll().toString();
        trace("Err -" + err);
        trace("returned " + exitCode);
        curl.close();
      Sys.sleep(1);
    }
    while (true);
  }
}

The generated sys.io.ProcessInput.prototype does not have a 'close' as does the
sys.io.ProcessOutput.prototype = _hx_a(
  'close', function(self)
    self.b:close();
  end
  ,'__class__',  sys.io.ProcessOutput
)

Sorry this was meant for the haxe code.


⚠ SceneTime has degraded performance

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

HTTP code: 200
Response time: 9744 ms

Resolved: SceneTime performance has improved in 30bbb69 after 6 minutes.


eLife paper archive dead

The metadata for eLife has a few peers available however the content archive appears to be dead. Does anyone have a copy of dat://07e82e6ea1ab7e7c3d4872f035b2320e8aefe26ba35033b983f4b2e033d07d44 we can put up to seed a bit?

$ dat clone dat://07e82e6ea1ab7e7c3d4872f035b2320e8aefe26ba35033b983f4b2e033d07d44 eLife
dat v13.11.4
Cloning: 52337 files (6.3 GB)

3 connections | Download 0 B/s Upload 0 B/s

Downloading updates...
[==----------------------------------------] 6.14%

looks like someone came online in the last 24h. whoever it may be please come back! :pray:

The place the old content was hosted got accidentally wiped by the hosting company...
Rik will try to get another copy back up soon. I do have it on the server, so you should be able to get that content (34% downloaded there). But not sure why you're not connecting there...

@bencevans I have the original data and also have some code locally for regenerating the data source with the latest papers. It's ironic that this whole system should be more reliable than the normal web once it's properly set up, but it is currently in a state that doesn't reach that potential (largely because I had to stop working on everything due to illness).
It's encouraging to see continued interest in ScienceFair so I will start working my way through the issues to get everything moving again. Thanks for taking the time to check out the project and make thoughtful issue reports @bencevans :)

@joehand interesting. I had problems connecting when trying to transfer a dataset using Dat with someone the other day. My side definitely and most likely the other person on a home/consumer internet connection/routers. However using WebTorrent worked find. Led me to wonder if WebTorrent can do the NAT hole-punching but not Dat. Maybe WebTorrent uses TURN relays. Only ideas at the moment, would need a lot more time to investigate.
@blahah that's great news! If there's something I can help with I'm in the IRC channel. This seemed like a really interesting project to get stuck in with learning the ins and outs of the Dat ecosystem. I'm particularly interested in getting the arXiv available too (CS/ML background here). Hope you've regained your health bar! :sparkles:


EF 1.0 bug during generate the sql script

Hi EF Team,
This below code is my code.
_userRepository.Table.FirstOrDefault(p => p.JobPostId == postId & p.UserId == userId);
The EF generate this output sql from sql profiler.
exec sp_executesql N'SELECT TOP(1) [p].[Id], [p].[CreatedOnUtc], [p].[JobPostId], [p].[Pitch], [p].[Status], [p].[UserId]
FROM [JobPostUser] AS [p]
WHERE (([p].[JobPostId] = @__postId_0) & ([p].[UserId] = @__userId_1)) = 1',N'@__postId_0 int,@__userId_1 int',@__postId_0=12,@__userId_1=1
Looks like the issue is with '&' and at the end = 1
VS 2015 Update 3
EF 1.0

Shouldn't this be:
_userRepository.Table.FirstOrDefault(p => p.JobPostId == postId && p.UserId == userId);

Note the &&

You use the & binary operator in your query...
_userRepository.Table.FirstOrDefault(p => p.JobPostId == postId & p.UserId == userId);

You probably meant:
_userRepository.Table.FirstOrDefault(p => p.JobPostId == postId && p.UserId == userId);

It is work on RC2 after upgrade to 1.0 this break my site.

Maybe it did (Although I expect it still failed), but that doesn't mean your syntax was correct either, do you know the difference between '&' and '&&' in terms of what they do? As we mentioned above, from your code sample you should be using '&&'.
See these:
https://msdn.microsoft.com/en-us/library/sbf85k1c.aspx
https://msdn.microsoft.com/en-gb/library/ms176122.aspx

@XcoderTeam in RC2 we didn't know how to translate & and | operators to SQL, so it was all translated on the client - that's why it worked

dupe of #5930


Governance. Search. Empty page results.

Description
There is no empty state for search results.
Expected results:
https://www.figma.com/design/ylvl7Ox25UuZj73Rn85DK7/OpenGov?node-id=1416-109245&t=2wL5dXZHyjmOXltf-4

Actual results:

https://github.com/novasamatech/nova-spektr/commit/15e9983f0fc09faaf428e770a8df3679aa55ffc2

Status verification: ✅


Documentation for integrated_time still specifies discontinued axis keyword argument

General information:

emcee version: 3.0.2
platform: MacOS X
installation method (pip/conda/source/other?): pip

Problem description:
The docstring for the integrated_time function still mentions the argument 'axis', which does not seem to be implemented anymore. It would be great if the axis argument could be specified, to avoid having to swap axes before passing to this function.
See lines 47 onwards in autocorr.py
    """Estimate the integrated autocorrelation time of a time series.

    This estimate uses the iterative procedure described on page 16 of
    `Sokal's notes <http://www.stat.unc.edu/faculty/cji/Sokal.pdf>`_ to
    determine a reasonable window size.

    Args:
        x: The time series. If multidimensional, set the time axis using the
            ``axis`` keyword argument and the function will be computed for
            every other axis.

I just ran into this myself. I was poking around in the hope of possibly open a PR but I realised that I don't understand the autocorrelation well enough to implement something myself. I'm happy to just remove any reference to the axis argument. I don't mind looping over dimensions and walkers myself.
On a related note, though, I noticed that integrated_time seems to expect the time series in a different order to the default chain layout. Specifically, line 85 of autocorr.py unpacks the dimensions as
    n_t, n_w, n_d = x.shape

Assuming n_t, n_w and n_d are the numbers of steps, walkers and dimensions, respectively, then the default chain structure I get is (n_w, n_t, n_d). I think this is the axis-swapping that @ljschumacher referred to above.

The order is actually correct if you use the (preferred) get_chain method instead of the chain property. In the back end, the chain is stored as n_t, n_w, n_d as expected, but the chain property has the "wrong" shape for backwards compatibility:
https://github.com/dfm/emcee/blob/f0489d74250e2034d76c3a812b9afae74c9ca191/src/emcee/ensemble.py#L489
I did at one point try re-implementing the axis feature, but ran into some bookkeeping issues that I don't totally remember... I'd be happy to review a PR that implements this feature, but perhaps in the meantime I should just fix that docstring :D


[Feature Request] Support style attribute

Adding support for style attribute will be very helpful (Specially for email template developers)

@opuu you can add style and/or any attribute you want by editin your regex.
example:
 (class|className|style)=(({(`|))|(['\"`]))(.*?)(\\2|(\\4)})


DeepLab

Semantic Image Segmentation with DeepLab in TensorFlow 2018 Google blog post
https://tfhub.dev/tensorflow/deeplabv3/1

Seems it was always Tensorflow but later became Keras as well.


Original mmd_tools has a preference setting for shared toon texture location and base texture folder, yet CATS doesn't have that setting!

This will result in texture problems when importing PMX models that used shared toon textures.
Hope you can add back a preference setting for the build-in mmd_tools.


Admin: remember last sort order on tables

consider using (local storage)

PR: #1691

It looks like the sort preference for only the most recently interacted with table is retained. If table A is sorted, the sort preference is retained however as soon as another, different table, is sorted, any sort preference for table A is lost.
To reproduce:

Navigate to the default Administrator view
Create enough projects so that a table view is rendered
Sort one of the columns such that the sort order is different from the default order
Navigate away and back to Projects without sorting any other tables - sort preference is retained
Navigate to one of the subjects within a project
Sort by any column that changes the default order
Navigate back to the table of all projects - sort preference has been lost

PR: #1730


Slack recipe depends on the project being present

Hi,
I'm deploying the project from a server that contains only the deploy.php file, with the vendor folder. It does not have the entire project with its .git folder there, because it's not needed in our setup.
However, in that case, the slack recipe fails, because it reads data using git (like branch, user, revision and so on). I'm fine with not having that information in the slack message (just "deployed to stage xyz" is fine).
Could you make that information gathering optional somehow? Thanks!

Will try to do it, for now you can use Slack API directly.

Furthermore, shouldn't this run remotely? Right now the printed revision is based on the branch that is checked out locally. There's no guarantee that this is always the branch you're deploying remotely.

@hslatman i'm agree.


mpfi: fix download URL

Motivation for this change
The file_nr value was wrong, so it was downloading version 1.5.3 instead of 1.5.4.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 120614 run on x86_64-linux 1

2 packages failed to build:

sage (sagemath)
sageWithDoc

4 packages built:

giac
giac-with-xcas
mpfi
sollya

@collares @omasanori @timokau any idea whether fixing the version bump is expected to break Sage? (or is it just an unrelated dependency failure?)

It looks like sage is currently failing to build on master too.

sage build logs:

master: sage-master-log.txt
this PR: sage-mpfi-log.txt

Indeed, Sage is broken on master (probably due to the FLINT upgrade that happened a week ago). #116365 will unbreak it; Sage 9.3 ships with mpfi 1.5.2, but I don't think upgrading to 1.5.4 will be a big problem. If it is we can deal with it on the Sage side.

Wait, no, I am wrong: 4 tests fail on master, while a whole bunch of tests fail in the above log. If it's possible to wait a bit, landing #116365 first would save Sage a small headache.

@eduardosm You are seeing a lot more Sage test failures on master than Hydra is https://nix-cache.s3.amazonaws.com/log/apk58ww8bgsfcixmz9jdns2zf9lc2vz4-sage-tests-9.2.drv. Do you have any guesses as to why? It looks like either PARI or cypari2 is misbehaving on your machine.

I get lots of AttributeError: 'cypari2.gen.Gen' object has no attribute 'bnf_get_fu' when building locally, but I have no idea why. I'll run nixpkgs-review on https://github.com/NixOS/nixpkgs/pull/116365.

Ah, I see, Sage's cypari2 was pinned to 2.1.1. Reverting that should be fine.

I'll test on top of https://github.com/NixOS/nixpkgs/pull/116365 and report back.

I bought the argument that «Sage on master is so broken, a bump to RC is an improvement». @collares it looks like you are currently the one with the best understanding of what is going on on the Sage side…

@7c6f434c Thanks for merging! I opened #120648 for the cypari2 conflict, and after that Sage should be working on master again, so the tests for this PR should be reliable.

After applying https://github.com/NixOS/nixpkgs/pull/116365 and https://github.com/NixOS/nixpkgs/pull/120648, this PR will build fine.

@eduardosm Many thanks for testing!

Thanks for fixing this @eduardosm. The nixpkgs-update bot makes the file_nr disclaimer easier to miss. We could opt-out for this package, but there is very little harm done either way.


PROPOSAL

Hi @nandorojo !
Thanks for this first draft package.
Would it be possible to work together to provide a solution that store files into expo-filesystem instead of AsyncStorage (ie. seems too slow) or sqlite (ie. seems not really adapted to this kind of storing thing)?
Also, do you think this is extendable to old fashion firebase or not at all?

Hey! Thanks for the issue.

This solution does use SQLite instead of AsyncStorage. As I mentioned in your other issue, the file using AsyncStorage is deprecated and not going to be used. It all comes down to the polyfill file, which uses expo-sqlite (see the last line). The in-memory localStorage is only meant to trick firestore into thinking we’re using it; it isn’t actually required for persisting the data. Expo SQLite does that for us :)

As for Firebase DB, possibly, although I’ve never used it before. Do you know how their persistence works? I’m biased since I think Firestore is much better 😇 If Firebase DB persistence relies on SQLite/indexeddb, then this package might work...

Thanks for your responses!
I hope I will have a chance someday to use it, maybe soon, it seems a good solution then!
👍

Sounds good, let me know if you get the chance to!
If you decide to use Firestore, you can also check out my querying library: https://github.com/nandorojo/swr-firestore


Is there anyway to send payload or message in react version?

I am trying to use "Quick Reply" button outside of the rasa widget react component.
In order to do this, I think I have to send payload with socket but I can't find a function or handler which I can get socket or send payload, or even emit with socket.
So please add a props which return a function that can send payload using socket emit.

Hi, there is already a method exposed to the ref that you pass to the component, attach a ref to the Widget and you should see it in yourRef.current.sendMessage. It takes the payload as the first parameter and an optional text to display as the second parameter.

I want to send payload like when I click quick reply button.
For example chatbot shows a message with quick reply button: 'yes' or 'no' then you can click it in chat widget page.
But I want to trigger this event out of this widget so when I click a button out of this widget, this quick reply button can be clicked.
Is there any way to send payload for quick reply directly by using this ref?

If you know the payload that you want to send, yes you can use the method to send your payload

Can I send payload with above sendMessage function?
Can I pass payload path and quick reply button title to this function?

Can you share the whole component ? Maybe try to reproduce the missing ref in a codesandbox ? Thank you


check if /var/lib/routinator directory exists before starting routinator-init

On a newly installed system, the debian/routinator-init script fails because /var/lib/routinator does not exist:
rpki01:/root# routinator-init
Fatal: failed to create cache directory /var/lib/routinator/rpki-cache: Permission denied (os error 13)
rpki01:/root#

this pull requests tests to ensure that the /var/lib/routinator directory exists, and if it doesn't, then it creates it + changes ownership.

Thanks @nickhilliard.
Before applying your patch I'd like to see if I can understand what is going on.
Which operating system and version are you using?
I ask because we have automated tests for several flavours of Debian and Ubuntu which install the package and during installation it creates the directory that is missing in your case, e.g. from this test run:
Setting up routinator (0.9.0~dev-1xenial) ...
Adding system user `routinator' (UID 107) ...
Adding new group `routinator' (GID 112) ...
Adding new user `routinator' (UID 107) with group `routinator' ...
Creating home directory `/var/lib/routinator/' ...
routinator.service is a disabled or a static unit, not starting it.

Following that the tests successfully invoke the routinator-init script, e.g. from here:
INIT ROUTINATOR:
Created local repository directory /var/lib/routinator/rpki-cache
Installed 5 TALs in /var/lib/routinator/tals
+ echo -e '\nROUTINATOR DATA DIR AFTER INIT:'

ROUTINATOR DATA DIR AFTER INIT:
+ sg lxd -c 'lxc exec testcon -- ls -la /var/lib/routinator'
total 16
drwxr-xr-x  4 routinator routinator 4096 Jan  6 12:46 .
drwxr-xr-x 28 root       root       4096 Jan  6 12:46 ..
drwxr-xr-x  2 routinator routinator 4096 Jan  6 12:46 rpki-cache
drwxr-xr-x  2 routinator routinator 4096 Jan  6 12:46 tals

So I'm wondering what is different on your system? Do you see anything different in our tests compared to the commands that were executed on your system? You can see the commands issued by the test here.
Thanks,
Ximon

Thanks @nickhilliard.
Before applying your patch I'd like to see if I can understand what is going on.
Which operating system and version are you using?
I ask because we have automated tests for several flavours of Debian and Ubuntu which install the package and during installation it creates the directory that is missing in your case, e.g. from this test run:
Setting up routinator (0.9.0~dev-1xenial) ...
Adding system user `routinator' (UID 107) ...
Adding new group `routinator' (GID 112) ...
Adding new user `routinator' (UID 107) with group `routinator' ...
Creating home directory `/var/lib/routinator/' ...
routinator.service is a disabled or a static unit, not starting it.

Following that the tests successfully invoke the routinator-init script, e.g. from here:
INIT ROUTINATOR:
Created local repository directory /var/lib/routinator/rpki-cache
Installed 5 TALs in /var/lib/routinator/tals
+ echo -e '\nROUTINATOR DATA DIR AFTER INIT:'

ROUTINATOR DATA DIR AFTER INIT:
+ sg lxd -c 'lxc exec testcon -- ls -la /var/lib/routinator'
total 16
drwxr-xr-x  4 routinator routinator 4096 Jan  6 12:46 .
drwxr-xr-x 28 root       root       4096 Jan  6 12:46 ..
drwxr-xr-x  2 routinator routinator 4096 Jan  6 12:46 rpki-cache
drwxr-xr-x  2 routinator routinator 4096 Jan  6 12:46 tals

So I'm wondering what is different on your system? Do you see anything different in our tests compared to the commands that were executed on your system? You can see the commands issued by the test here.
Thanks,
Ximon

ok, so the routinator user already exists on my system with a different home directory (excuse for brazen lie: am an end-user), which means that it's not recreating that user, which means that /var/lib/routinator doesn't exist.  So not a bug on the default system.  Sorry for the noise.

ok, so the routinator user already exists on my system with a different home directory (excuse for brazen lie: am an end-user), which means that it's not recreating that user, which means that /var/lib/routinator doesn't exist.  So not a bug on the default system.  Sorry for the noise.

No problem @nickhilliard, please don’t hesitate to contact us again if needed.

No problem @nickhilliard, please don’t hesitate to contact us again if needed.


Pulumi Inline Automation API process exits immediately when hitting ctrl+c

What happened?
I have a C# pulumi project that creates cloud infrastructure. I'm using the Pulumi InlineProgram automation API to do that.
When hitting CTRL+C the pulumi automation process exits immediately instead of waiting for the provided cancellation token to be canceled. This means Pulumi exits without saving the state correctly and this creates issues when retrying in a later moment. Example issue:
Pulumi up output on VirtualMachineId xxx Message: " Note that pulumi refresh will need to be run interactively to clear pending CREATE operations."
Whenever the app receives SIGTERM my state is broken and I need to interact manually. That's okay when I use the pulumi CLI but not when I use the Automation API.
Expected Behavior
Pulumi child process stays alive until the CancellationToken is cancelled.
Steps to reproduce
Example of the up function:

var token = new CancellationTokenSource().Token;

await stack.UpAsync(new UpOptions
{
    OnStandardError = error => Logger.Warning("Pulumi up error on VirtualMachineId {VirtualMachineId} Error: {Error}", vm.Id, error),
    OnStandardOutput = msg => Logger.Debug("Pulumi up output on VirtualMachineId {VirtualMachineId} Message: {Message}", vm.Id, msg)
}, token);

Then hit CTRL+C during the up command
Output of pulumi about
CLI
Version      3.60.0
Go Version   go1.20.2
Go Compiler  gc
Host
OS       darwin
Version  13.2.1
Arch     arm64
Backend
Name           pulumi.com
URL            xxx
User           xxx
Organizations  xxx, xxx
Pulumi locates its logs in xxx by default
warning: Failed to read project: no Pulumi.yaml project file found (searching upwards from xxx). If you have not created a project yet, use pulumi new to do so: no project file found
warning: Failed to get information about the current stack: no Pulumi.yaml project file found (searching upwards from /Users/klaus). If you have not created a project yet, use pulumi new to do so: no project file found
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Thanks for opening the issue @klyse. Definitely worth considering, but it's unclear to me if UpAsync (and similar methods) should automatically handle CTRL+C or whether your program should handle it. In the meantime, you can workaround by handling it yourself, for example: https://stackoverflow.com/a/13899429

Thanks for the prompt response! I think if you provide an option to forward a cancellation token, the pulumi child process should not get affected by CTRL+C. This creates unexpected dynamics like the one mentioned by me above.
I tried your solution already:
using Application.CloudRendering.CloudProviders;
using Pulumi.Automation;
using Serilog;

Console.WriteLine("Hello, World!");

Log.Logger = new LoggerConfiguration()
    .WriteTo.Console()
    .CreateLogger();

var exitEvent = new ManualResetEvent(false);

Console.CancelKeyPress += (sender, eventArgs) =>
{
    eventArgs.Cancel = true;
    exitEvent.Set();
};

var x = AzureStack.VmStack();

var stackArgs = new InlineProgramArgs("d", "asdf1", x);

var stack = await LocalWorkspace.CreateOrSelectStackAsync(stackArgs);

var cts = new CancellationTokenSource();
var ct = cts.Token;
try
{
    try
    {
        await stack.CancelAsync(ct);
    }
    catch (Exception e)
    {
        Log.Warning("cannot cancel");
    }

    await stack.RefreshAsync(cancellationToken: ct);
    Log.Information("up");
    await stack.UpAsync(new UpOptions
    {
        Debug = true,
        OnStandardError = error => Log.Warning("Pulumi up: {Error}", error),
        OnStandardOutput = msg => Log.Information("Pulumi up: {Message}", msg)
    }, cancellationToken: ct);
    Log.Information("finish");
}
catch (Exception e)
{
    Log.Error(e, "Error");
}

exitEvent.WaitOne();

Log.Information("bye");

Log.CloseAndFlush();

Unfortunately it seems the process still exits. Here are the logs:
...
+  azure-native:compute:VirtualMachine vm creating (0s) error: grpc: the client connection is closing
 +  azure-native:compute:VirtualMachine vm **creating failed** error: grpc: the client connection is closing
 +  pulumi:pulumi:Stack d-asdf1 creating (9s) error: update failed
 +  pulumi:pulumi:Stack d-asdf1 **creating failed (0.60s)** 1 error; 18 debugs

...

  azure-native:compute:VirtualMachine (vm):
    error: grpc: the client connection is closing

...

stderr:

   at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsyncInner(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, EventLogFile eventLogFile, CancellationToken cancellationToken)
   at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsync(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)
   at Pulumi.Automation.Workspace.RunStackCommandAsync(String stackName, IList`1 args, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)
   at Pulumi.Automation.WorkspaceStack.RunCommandAsync(IList`1 args, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)
   at Pulumi.Automation.WorkspaceStack.UpAsync(UpOptions options, CancellationToken cancellationToken)
   at Pulumi.Automation.WorkspaceStack.UpAsync(UpOptions options, CancellationToken cancellationToken)
   at Program.<Main>$(String[] args) in /Users/xxx/ConsoleApp1/Program.cs:line 45
...

Hi @justinvp, I was wondering if you where able to reproduce this?

Some notes as I looked into this:
Automation API currently shells out to the CLI under the covers. On macOS/Linux, when CTRL+C is pressed, a SIGINT signal is sent to the entire process group; the parent process (automation API program) and its children (Pulumi CLI process).
What we likely need to do is run the child CLI process in its own process group, so that when the parent gets SIGINT from CTRL+C the children don't also get it, and allow canceling the cancellation token to send SIGINT to the children. Unfortunately, it doesn't look like .NET has a built-in way to support this via Process.Start (see https://github.com/dotnet/runtime/issues/44944), although, we don't call Process.Start directly, we use https://github.com/Tyrrrz/CliWrap. It looks like some improved support for sending SIGINT to child processes when a cancellation token is canceled was recently added: https://github.com/Tyrrrz/CliWrap/issues/47. So that handles sending to children. But it still doesn't address the problem of child processes receiving SIGINT. We likely need to do something custom when launching processes so that they don't get the parent's SIGINT when CTRL+C is pressed. This is how PowerShell worked around it on Unix: https://github.com/PowerShell/PowerShell/pull/3901 (and some more info in the issue: https://github.com/PowerShell/PowerShell/issues/2321).

Thanks for the explanation @justinvp! I understand the problem much better now and fear, there is no "easy" workaround until a fix is available?
Maybe we can avoid that the pulumi state gets corrupted and needs manual input somehow on process exit? (Talking about this message: Note that pulumi refresh will need to be run interactively to clear pending CREATE operations )

Update: since my app is running in a docker container I changed the docker termination signal to SIGHUP this does not influence pulumi. Then in my C# app I'm listening to SIGHUP to initiate the graceful stop:
var lifetime = hostBuilder.Services.GetRequiredService<IHostApplicationLifetime>();
using var posixSignalRegistration = PosixSignalRegistration.Create(StopSignal, signal =>
{
	signal.Cancel = true;
	Log.Warning("Received posix {Signal}, stopping application", signal.Signal);
	lifetime.StopApplication();
});

It's not perfect, but a workaround ;)


Add support for italic text rendering

Added support for italic text rendering. I looked at how bold text rendering was done, and did italics the same way.
Example:

Never realized italics could be displayed in the terminal. Thanks for adding support for it!


Parsing input

So far we're almost done with the "dumping" process - building Yaml structures or turning POJOs into YAML.
Now, we need to start thinking of the opposite process, 'loading',  which will start with parsing an input - String, InputStrean, File or whatever else, into Yaml

@SherifWaly @salikjan  Do you have any ideas about how we could parse an input String as YamlMapping? First step would be validation - I'm thinking of finite automatas. What do you think?

@amihaiemil Do you want to map each state to be as a key and its value is a pair of 2 states (one for the 0 edge and one for the 1 edge) ?

@amihaiemil I dealt with finite automatas a long time ago. At first it seems ok. May at some point using Stack would be ok too.

@SherifWaly I'm not sure I understand your question :D (you're talking about the example automata in the wikipedia asticle?)
Nevertheless, I was thinking to use an automata only for validation (maybe in the process we could also extract the keys and values?). But basically, I was thinking to build an automata that describes the YAML format and see if it accepts the input or not. cc: @salikjan

@salikjan  You said

At first it seems ok. May at some point using Stack would be ok too.

What would you do with a Stack? :D

@amihaiemil Could you give an example for a string that we want to validate :D ?

@SherifWaly Well, you want to validate that a given input is a valid Yaml, no? Let's say you have a file, containing a Yaml - before trying to parse it, you want to make sure it's valid.  So.

read the file's contents
validate (using an automata)
parse into YamlMapping or YamlSequence

Simply put, an automata represents the "grammar", a set of rules that the input has to respect. So after we read the file, we check if that automata accepts the input - an accepted input respects the rules, thus is valid. Makes sense? :D

@amihaiemil Yes I think it makes sense now :D
So we should have a certain pattern which would be used to validate the input using finite automata?

@SherifWaly

we should have a certain pattern which would be used to validate the input using finite automata

Well, the automata itself represents the "pattern". It contains all the rules that need to be respected. It's quite an abstract concept, I know, but try to follow the example from wiki. The rules are simple:

start at S0 (where the "Start" arrow) points
follow one arrow at a time. Every time you followed an arrow, write down the digit on it.
you can only stop at a "finish" node, which is a node that is double circled. In this example, you start and can only stop at S0

As the description says:
An example of a deterministic finite automaton that accepts only binary numbers
that are multiples of 3. The state S0 is both the start state and an accept state.

In other words, no matter what paths you took, and how many times you did that, you will end up with a sequence of 1s and 0s that is a binary number multiple of 3 (e.g. 101 which is 3 or 100001 which is 33)
Let me know if it's clear now :D

@amihaiemil Yes, It's clear I was only asking about the function that could lead to a "finish" node.
For the example you said we will end at a finish node if we have a binary number multiple of 3.
In Yaml we will need a new function to apply finite automate on.
Let me know if I still understand something incorrectly :D

@SherifWaly There will have to be a function that takes the input, one character (or group of characters) at a time, and tries to see if, from the current state, there are any arrows that match it.
Example with the automata from wiki; we want to see if the string "123" is valid so:
First: the input is 123 (current char is 1)
We start at S0, which has an arrow with "1" going out - so far, it's ok
Next: we saw the first char is ok, now the next char is 2
We are at S1, but there is no arrow going out with "2" on it, so the flow stops, the automata doesn't accept the input, thus we say the input is not valid.
The same idea would apply with Yaml: take the first char, see where the arrow leads, the the next char, see where other arrow leaves.  There are 2 possibilities:

the flow stops because there are no arrows to follow (as exemplified above)
the flow stops because the input is finished. In this case, we see what node we are on - if it's a "finish" node, the input is valid; if it's not a finish node, the input is not valid

@amihaiemil Yes I have understood now :D


Add two new functionality: get files from PR, add comment to PR/issue

Couple of things:

This should be part of the Issues API, not Repo API.
Please squash commits.
Please document the new functionality it README.md
Please write unit tests.

Thanks!

Closed in error; reopening.

Hi @haubc. Are you still intersted in updating this PR?

Closing this as we did not receive any further feedback, there are conflicts and there is already some funcitonality at https://github.com/github-tools/github/blob/11e74f598638ea8fb4af5967a7b56943aa5d1aa9/lib/Repository.js#L118


Is it possible to use Fixie in netcoreapp1.1?

I'm trying to make Fixie work in a netcoreapp1.1 project. First, I followed experimental branch samples code and tried to add net45 framework in addition to netcoreapp1.1 but it makes my other dependencies (that do not support net45) fail during restore. I also tried to add net45 to imports of netcoreapp1.1 but it doesn't seem to work. Did I miss something or it's just not supported so far?

I wish I had a better answer, but Fixie can't be used against netcoreapp yet.  The history is complicated:
As described on the https://github.com/fixie/fixie/issues/145#issuecomment-243970436 the experimental 2.0.0-alpha-0001 release only works when your projects target the regular framework (like net45) and not the cross-platform netcoreapp1.1.  I understand that may be confusing, since the experimental branch is doing exactly that!
After the 2.0.0-alpha-0001 release, I made a lot of progress in that branch towards cross-compiling against netstandard/netcoreapp. The biggest obstacle to that support, though, involved some extremely regrettable changes to the build script and the ability to realistically work in the solution in Visual Studio at all. (dotnet test's ability to find my exe required that even my own self-test projects refer to Fixie as a NuGet package rather than just referencing the projects in the solution, so imagine how hard it would be to make a change and see it work within that solution.) As I was about to get into making that situation workable, Microsoft announced that they were completely gutting dotnet test in both how it works and what it can do (it appears even the xUnit team is abandoning it as permanently broken by design), while also introducing a Visual Studio 2017 dependency (which hasn't RTM'd yet).
Alas, those changes were so disruptive that they invalidate further work within that experimental branch, and I'll have to try again as VS2017 and the new dotnet test model solidifies. All of the useful aspects of the experimental branch now live in the develop branch, but the actual .NET Core support along that branch is in a holding pattern for the dust to settle for real this time.
I'm closing this issue in favor of #155 where that future progress can be tracked.

Thanks for the answer! I will be the first one to test VS2017 support.
Ironically I was motivated to try Fixie after reading your article but I guess I'll have to wait for a while.

I have said this before and I say it again. I really hope that this project makes it to .Net Core as it is the smoothest testing framework ever. Keep up the excellent work

Agree. Fixie + Autofixture = the best testing experience ever. I've been doing it wrong for so many years... And to make Fixie more mainstream we have to create a stable, maintainable Resharper plugin.

Thanks for the vote of confidence! When VS2017 comes out in the next few weeks, I'll pick this up again. My main development branch includes a lot of the necessary changes to support cross-compiling (there are a few places I'll need to add a #if for instance), and folks are even having some success using version 1.x with the VS2017 RCs, when targeting the regular framework, so we have reason to believe it will go a lot smoother this time around.

Any news on this?

Right now, I'm bringing the solution up to speed with VS2017's project file formats (targeting the regular framework as a first step).  My biggest obstacle comes with nuget packaging under the new tooling.  "dotnet pack", in general, wants people to put only one dll in any package, and I'm first seeing if I can avoid that like the plague. I want to continue to support the "Just install Fixie and go" approach that's worked to date, unlike the "Install X, and install Y, but not the wrong version of Y, and maybe sometimes Z" scenario that other tools are doing as a result of the "one dll per package" pressure. After much searching, I've found one bit of evidence that it's still possible to build a package from a nuspec file (which gives you more control over what all gets included in a package): https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target#packing-using-a-nuspec  I'm making progress using those command line arguments, but some of the error messages I'm getting along the way are extra confusing and almost comical :)

Am I the only one who feels like the problem with Fixie at the moment is more fundamental? At the moment it really feels like one-man side project and we're not really moving forward.  If we want to make Fixie more popular (Resharper plugin?), we need to build a community of core contributors. I believe there're people around who're happy to get their hand dirty but they don't know how to start. My suggestion: create a pull-request with VS2017 support implementation where other people could contribute ideas and code.

Why don't you just use NuGet with a nuspec file to pack Fixie? Then you have all the options to pack it any way that you like :)

I would avoid nuspec as much as possible - it gets quite confusing when you can set things in your project file vs. not. I try to use dotnet pack as far as I can, the tooling is just so much nicer for it. @plioi while I think that might be a noble goal - I don't think that's actually a better end-user experience. If you want to have a "catch-all" package, you can create that directly. That's what the .NET team does for example with referencing netcoreapp.
I don't know of an OSS project that has regretted splitting packages out. It's much nicer to understand dependencies etc. when you do that.
So Fixie might depend on Fixie.Core and Fixie.TestDriven etc. if you wanted.

Ah, I hadn't thought of it like that.  That makes sense.  My goal is, as you're getting at, a simple installation scenario. I'm a little bugged by the idea of implementation details (like a common library used by all runners) being exposed as a whole public package, but if a catch-all package is all people really need to think about installing, yay.

@seesharper NuGet 4 is in a weird state, which makes nuspecs harder to work with. Using NuGet.exe, even the latest version, gets tripped up when the csproj in question is the new compact format. You can indicate a nuspec using "dotnet pack .... /p:NuspecFile..." which I do think I have working at last, but to Jimmy's point, I should probably just embrace the New World.

Let's take the discussion here: https://github.com/fixie/fixie/issues/155 The first item on the to-do list is marked Up for Grabs.


Help to Create Databse and Its schema to a server (JAVA GRAPH API)

Hello,
I am starting a project and I want to create a new database with custom schema (new class of Vertex and Edge only ) using a remote server. (for my test : localhost )
Before to create the database  , I want to test if it exists but It seems I have to use OServerAdmin to test it ::
       ODB exception factory.exists : Cannot check the existance of a database in a remote server.
       Please use the console or the OServerAdmin class.

So once I had my OServerAdmin, and I checked the Database didn't exist, I create it with
serverAdmin.createDatabase("Test,"graph","plocal");
and I create the schema with the follwing function as described in the  Issue #2815
my code ::
private void createVertexType(final String p_Name,final HashMap<String, OType> p_Attributs) throws RuntimeException{
final OrientGraph aOrientGraph = new OrientGraph(graphURL);
	aOrientGraph.executeOutsideTx(new OCallable<Object, OrientBaseGraph>() {
		@Override
		public Object call(OrientBaseGraph iArgument) {
			OrientVertexType vertex = (OrientVertexType) aOrientGraph.createVertexType(p_Name).setClusterSelection("default");
			Iterator<String> keySetIterator = p_Attributs.keySet().iterator();
			while(keySetIterator.hasNext()){
				String key = keySetIterator.next();
				vertex.createProperty(key, p_Attributs.get(key));
			}

			return null;

		}
	});

	aOrientGraph.shutdown();
}

private void createEdgeType(final String p_Name) throws RuntimeException{
	final OrientGraph aOrientGraph = new OrientGraph(graphURL);

	aOrientGraph.executeOutsideTx(new OCallable<Object, OrientBaseGraph>() {
		@Override
		public Object call(OrientBaseGraph iArgument) {
			aOrientGraph.createEdgeType(p_Name).setClusterSelection("default");
			return null;

		}
	});

	aOrientGraph.shutdown();

}

After this step, if I use ServerAdmin.existsDatabase()  I have a error network like if the server is frozen :
GRAVE: Cannot open database with url <IP_ADDRESS>:2480/localhost:2480
com.orientechnologies.common.io.OIOException: Cannot open a connection to remote server: <IP_ADDRESS>:2480/localhost:2480
at com.orientechnologies.orient.client.remote.OStorageRemote.getAvailableNetwork(OStorageRemote.java:2136)
at com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1859)
at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:222)
at com.orientechnologies.orient.client.remote.OStorageRemoteThread.open(OStorageRemoteThread.java:89)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:252)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getDatabase(OrientGraphFactory.java:132)
at com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.drop(OrientGraphFactory.java:59)
at com.myorpheo.logs.orientdb.OrientDBConnection.dropDatabase(OrientDBConnection.java:282)
at com.myorpheo.logs.orientdb.OrientDB.dropDataBase(OrientDB.java:291)
at com.myorpheo.logs.orientdb.MYGUI.dropDataBase(MYGUI.java:241)
at com.myorpheo.logs.orientdb.MYGUI$5.actionPerformed(MYGUI.java:126)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6516)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6281)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4872)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:720)
at java.awt.EventQueue$4.run(EventQueue.java:718)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: com.orientechnologies.common.io.OIOException: Error on connecting to <IP_ADDRESS>:2480/localhost:2480
at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:255)
at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:80)
at com.orientechnologies.orient.client.remote.ORemoteConnectionManager$1.createNewResource(ORemoteConnectionManager.java:77)
at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:94)
at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.acquire(ORemoteConnectionManager.java:101)
at com.orientechnologies.orient.client.remote.OStorageRemote.getAvailableNetwork(OStorageRemote.java:2123)
... 46 more
Caused by: com.orientechnologies.orient.enterprise.channel.binary.ONetworkProtocolException: Cannot read protocol version from remote server /<IP_ADDRESS>:2480: java.net.SocketTimeoutException: Read timed out
at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.(OChannelBinaryAsynchClient.java:99)
at com.orientechnologies.orient.client.remote.ORemoteConnectionManager.createNetworkConnection(ORemoteConnectionManager.java:242)
On the console server I can see ::
2016-02-23 13:46:39:458 INFO  {db=Test} Created database 'Test' of type 'plocal' [ONetworkProtocolBinary]
2016-02-23 13:46:57:535 SEVER Request not supported. Code: -1 [ONetworkProtocolBinary]
2016-02-23 13:46:57:537 SEVER Received unread response from /<IP_ADDRESS>:63286 probably corrupted data from the network connection. Cleared dirty data in the buffer (4 bytes): [├┐├┐├┐├┐] [OChannelBinary
Server]
2016-02-23 13:53:15:960 INFO  {db=Test4} Created database 'Test4' of type 'plocal' [ONetworkProtocolBinary]
2016-02-23 15:10:30:463 INFO  {db=Test} Created database 'Test' of type 'plocal' [ONetworkProtocolBinary]
2016-02-23 15:14:42:268 INFO  {db=Test1} Created database 'Test1' of type 'plocal' [ONetworkProtocolBinary]
2016-02-23 15:15:19:230 SEVER Request not supported. Code: -1 [ONetworkProtocolBinary]
2016-02-23 15:15:19:230 SEVER Received unread response from /<IP_ADDRESS>:54557 probably corrupted data from the network connection. Cleared dirty data in the buffer (4 bytes): [├┐├┐├┐├┐] [OChannelBinary
Server]
2016-02-23 15:18:04:236 INFO  {db=Test2} Created database 'Test2' of type 'plocal' [ONetworkProtocolBinary]
2016-02-23 15:18:45:266 SEVER Request not supported. Code: -1 [ONetworkProtocolBinary]
2016-02-23 15:18:45:266 SEVER Received unread response from /<IP_ADDRESS>:54859 probably corrupted data from the network connection. Cleared dirty data in the buffer (4 bytes): [├┐├┐├┐├┐] [OChannelBinary
Server]
2016-02-23 15:19:37:748 WARNI ->0:0:0:0:0:0:0:1: Command not found: GET.sqlProfiler/Test2 [ONetworkProtocolHttpDb]
2016-02-23 15:19:40:015 SEVER Internal server error:
com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing query at position #8: Error on parsing command at position #0: Error on parsing query
Query:  _studio WHERE user.name = '{{username}}' AND type = 'GraphConfig'
-------------^
--> com.orientechnologies.orient.core.exception.OCommandExecutionException: Class '_STUDIO' was not found in current database [ONetworkProtocolHttpDb]
2016-02-23 15:34:09:463 INFO  {db=Test5} Created database 'Test5' of type 'plocal' [ONetworkProtocolBinary]
where is the mistake ?

hi @stfanbrg
do you have a test case to reproduce this issue?

Hi, @maggiolo00
I have  a Graphic interface and I can reproduce this issue. In my graphic interface I can select the name of the database, click on connection button. The connection will create the data base with the schema  if it is not exist. I can delete the database also.

I expect it was you ask .

hi @stfanbrg
are you using studio meanwhile?

I use Orientdb-graph  2.1.6 and  orientdb server 2.1.6

@maggiolo00
with Version: Mars Release (4.5.0)

How do you create a database?
For drop you should also use the OServerAdmin API

Exists Drop and create worked .
So, it is only after the creation of the schema ::
oServerAdmin.createDatabase(p_BdName,"Graph","plocal"); ok
createSchema() --> ok I can see on the base wit the Studio with my schema
but after this step,  oServerAdmin failed to deal with the server .
if I do
oServerAdmin.close();
oServerAdmin = null;
oServerAdmin = new OServerAdmin(url);
oServerAdmin.connect(p_UserName, p_UserPassword);
the communication is ok. So i think I forgot to do something with my oServerAdmin before or after the schema creation ...

@maggiolo00
may be it is normal because the schema change and my oServerAdmin is not updated with the new contents and I have to delete it and re-intantiate it.

hi @stfanbrg i think there is an issue on session handling with OServerAdmin.
I've tested against the 2.2.0-beta and worked.

Could you give me more details about Session  handling  (rules )?

this page http://orientdb.com/docs/2.0/orientdb.wiki/Server-Management-Java.html do no reference about sesssion .

hi @stfanbrg  i think it is not your issue.
When you connect as ServerAdmin you get a session id that can be used to do admin task as create drop database.
Then you connect with OrientGraphFactory and get another session id associated with the user that you typed.
I think when you make the second OServerAdmin request it gets the wrong sessionid from the ThreadLocal.
BTW here there is an explanation on Multithreading
http://orientdb.com/docs/2.1/Java-Multi-Threading.html
@tglman WDTY about this exception?

I think the problem is due the usage in the same thread of
OrientGraphFactory
and
OServerAdmin

@maggiolo00
So, if I understand, I have to manage my factory (for create the schema)  and my ServerAdmin in two differents thread. right ?

@stfanbrg
If you can make this test, you should not see that exception.
Do you get that exception on server right?

Seems that the client is trying to open a connection to 2480
That is strange. The binary port is 2424

@maggiolo00
port number 2424 vs 2480 : I missed this information ... so I didn't use the port number may be i should.
the exception is throw by my OServerAdmin object in my code and  the server shows in the console a problem of network.
I will try to understand multi-threading and i will inform you of the result.

@stfanbrg
if you do not specity it the dafault is used(2424)
2480 is the default for http
What seems strange is this url in the exception
<IP_ADDRESS>:2480/localhost:2480

scince yesterday i removed the port number from the URL of the factory. I didn't check if the mistake :: Cannot open database with url <IP_ADDRESS>:2480/localhost:2480 is always presents, but the issue about OserverAdmin yes .


bump framework

$subject

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6530691274
Status: success


still problem 1094

Hello, i have still that same problem like in ticket 1094.
My version grafana 10.2.3, zabbix 6.2.9. Plugin 4.3.1.
When i choose time range i see problem with historical problems. Change option "show" don't change anything.

@ekorre-it I don't really understand the issue to be honest. It looks like that the time range does work when you enable it on the right hand column it only shows dates from 2024.01.11. Can you give more details please?

I want to see only problem active. When I choose time range I see actual and resolved problem

I made update zabbix to 6.4.10 and it's still the same

@ekorre-it in your screenshot there is no severity selected? Did you miss that?

That isn't problem with severity. That is only problem with status I wan't to see only in status = problem.
When I check the box "use time range" I see problem and resolved.

ok, this is not a bug but a feature request. You can order the table to show the problems first as a workaround.

I check on the Grafana in version 9.3.2 and problem are still

When i chose time range is a new data : value

value:1 is active problem

Hi all,
I have the same problem: when "Use time range" is selected it shows history instead of only problems (show field). I want to filter only last 24h problems.
@zoltanbedi I don't agree with you. It's not a feature request. It's a bug!
Having "Use time range" selected, if I select "Problems" in "Show", why is showing the resolved? If I want to see problems and resolved, I think the right option should be "History".

Hi all, I have the same problem: when "Use time range" is selected it shows history instead of only problems (show field). I want to filter only last 24h problems.

ok, this is not a bug but a feature request. You can order the table to show the problems first as a workaround.

@zoltanbedi I don't agree with you. It's not a feature request. It's a bug! Having "Use time range" selected, if I select "Problems" in "Show", why is showing the resolved? If I want to see problems and resolved, I think the right option should be "History".

@zbroinx did this work before?

@zbroinx did this work before?

No. Never worked correctly.

Any update on this?
Thanks.