text:
[Linter panic] cpython\Lib\test\test_ssl.py

Ruff Version
https://github.com/charliermarsh/ruff/tree/be6e00ef6e5efea68a8a1a0093611b26142b753d
Command(Powershell)
cargo run -p ruff_cli -- check --select=ALL --fix --no-cache --isolated .\test_ssl.py

Terminal Content
warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`.
warning: `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. Ignoring `multi-line-summary-second-line`.
warning: Linting panicked test_ssl.py: This indicates a bug in `ruff`. If you could open an issue at:

https://github.com/charliermarsh/ruff/issues/new?title=%5BLinter%20panic%5D

with the relevant file contents, the `pyproject.toml` settings, and the following stack trace, we'd be very appreciative!

panicked at 'assertion failed: start.raw <= end.raw', C:\Users\fish\.cargo\git\checkouts\parser-aad50aa3362d3a85\2af9805\ruff_text_size\src\range.rs:48:9
Backtrace:    0: std::backtrace_rs::backtrace::dbghelp::trace
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
   1: std::backtrace_rs::backtrace::trace_unsynchronized
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2: std::backtrace::Backtrace::create
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\backtrace.rs:332
   3: std::backtrace::Backtrace::force_capture
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\backtrace.rs:314
   4: ruff_cli::panic::catch_unwind::closure$0<ruff_cli::commands::run::lint_path::closure_env$0,enum2$<core::result::Result<ruff_cli::diagnostics::Diagnostics,anyhow::Error> > >
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\panic.rs:31
   5: alloc::boxed::impl$47::call
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\alloc\src\boxed.rs:2001
   6: std::panicking::rust_panic_with_hook
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:696
   7: std::panicking::begin_panic_handler::closure$0
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:581
   8: std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure_env$0,never$>
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\sys_common\backtrace.rs:150
   9: std::panicking::begin_panic_handler
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:579
  10: core::panicking::panic_fmt
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\core\src\panicking.rs:64
  11: core::panicking::panic
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\core\src\panicking.rs:114
  12: ruff_text_size::range::TextRange::new
             at C:\Users\fish\.cargo\git\checkouts\parser-aad50aa3362d3a85\2af9805\ruff_text_size\src\range.rs:48
  13: ruff::autofix::apply_fixes<core::iter::adapters::peekable::Peekable<core::iter::adapters::filter::Filter<core::slice::iter::Iter<ruff_diagnostics::diagnostic::Diagnostic>,ruff::autofix::fix_file::closure_env$0> > >
             at C:\Users\fish\source\ruff\crates\ruff\src\autofix\mod.rs:66
  14: ruff::autofix::fix_file
             at C:\Users\fish\source\ruff\crates\ruff\src\autofix\mod.rs:25
  15: ruff::linter::lint_fix
             at C:\Users\fish\source\ruff\crates\ruff\src\linter.rs:456
  16: ruff_cli::diagnostics::lint_path
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\diagnostics.rs:155
  17: ruff_cli::commands::run::lint_path::closure$0
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\commands\run.rs:164
  18: std::panicking::try::do_call<ruff_cli::commands::run::lint_path::closure_env$0,enum2$<core::result::Result<ruff_cli::diagnostics::Diagnostics,anyhow::Error> > >
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\std\src\panicking.rs:487
  19: std::panicking::try::do_catch<core::panic::unwind_safe::AssertUnwindSafe<rayon_core::job::impl$9::call::closure_env$0<tuple$<usize,usize>,rayon_core::registry::impl$6::in_worker_cold::closure$0::closure_env$0<rayon_core::join::join_context::closure_env$0<
  20: std::panicking::try<enum2$<core::result::Result<ruff_cli::diagnostics::Diagnostics,anyhow::Error> >,ruff_cli::commands::run::lint_path::closure_env$0>
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\std\src\panicking.rs:451
  21: std::panic::catch_unwind<ruff_cli::commands::run::lint_path::closure_env$0,enum2$<core::result::Result<ruff_cli::diagnostics::Diagnostics,anyhow::Error> > >
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\std\src\panic.rs:140
  22: ruff_cli::panic::catch_unwind<ruff_cli::commands::run::lint_path::closure_env$0,enum2$<core::result::Result<ruff_cli::diagnostics::Diagnostics,anyhow::Error> > >
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\panic.rs:40
  23: ruff_cli::commands::run::lint_path
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\commands\run.rs:163
  24: ruff_cli::commands::run::run::closure$0
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\commands\run.rs:91
  25: core::ops::function::impls::impl$1::call_mut<tuple$<ref$<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > > >,ruff_cli::commands::run::run::closure_env$0>
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\core\src\ops\function.rs:274
  26: core::iter::adapters::map::map_fold::closure$0<ref$<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ruff_cli::diagnostics::Diagnostics,ruff_cli::diagnostics::Diagnostics,ref$<ruff_cli::commands::run::run::closure_env$0>,ref$
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\core\src\iter\adapters\map.rs:84
  27: core::iter::traits::iterator::Iterator::fold<core::slice::iter::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ruff_cli::diagnostics::Diagnostics,core::iter::adapters::map::map_fold::closure_env$0<ref$<enum2$<core::res
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\core\src\iter\traits\iterator.rs:2477
  28: core::iter::adapters::map::impl$2::fold<ruff_cli::diagnostics::Diagnostics,core::slice::iter::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ref$<ruff_cli::commands::run::run::closure_env$0>,ruff_cli::diagnostics::Diag
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\core\src\iter\adapters\map.rs:124
  29: rayon::iter::reduce::impl$5::consume_iter<ruff_cli::commands::run::run::closure_env$1,ruff_cli::diagnostics::Diagnostics,core::iter::adapters::map::Map<core::slice::iter::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\reduce.rs:105
  30: rayon::iter::map::impl$8::consume_iter<ref$<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ruff_cli::diagnostics::Diagnostics,rayon::iter::reduce::ReduceFolder<ruff_cli::commands::run::run::closure_env$1,ruff_cli::diagnosti
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\map.rs:248
  31: rayon::iter::plumbing::Producer::fold_with<rayon::slice::IterProducer<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,rayon::iter::map::MapFolder<rayon::iter::reduce::ReduceFolder<ruff_cli::commands::run::run::closure_env$1,
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\plumbing\mod.rs:110
  32: rayon::iter::plumbing::bridge_producer_consumer::helper<rayon::slice::IterProducer<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,rayon::iter::map::MapConsumer<rayon::iter::reduce::ReduceConsumer<ruff_cli::commands::run::ru
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\plumbing\mod.rs:438
  33: rayon::iter::plumbing::bridge_producer_consumer<rayon::slice::IterProducer<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,rayon::iter::map::MapConsumer<rayon::iter::reduce::ReduceConsumer<ruff_cli::commands::run::run::closu
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\plumbing\mod.rs:397
  34: rayon::iter::plumbing::bridge::impl$0::callback<rayon::iter::map::MapConsumer<rayon::iter::reduce::ReduceConsumer<ruff_cli::commands::run::run::closure_env$1,ruff_cli::diagnostics::Diagnostics (*)()>,ruff_cli::commands::run::run::closure_env$0>,ref$<enum2
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\plumbing\mod.rs:373
  35: rayon::slice::impl$6::with_producer<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > >,rayon::iter::plumbing::bridge::Callback<rayon::iter::map::MapConsumer<rayon::iter::reduce::ReduceConsumer<ruff_cli::commands::run::run::closur
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\slice\mod.rs:732
  36: rayon::iter::plumbing::bridge<rayon::slice::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,rayon::iter::map::MapConsumer<rayon::iter::reduce::ReduceConsumer<ruff_cli::commands::run::run::closure_env$1,ruff_cli::diagnos
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\plumbing\mod.rs:357
  37: rayon::slice::impl$5::drive_unindexed<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > >,rayon::iter::map::MapConsumer<rayon::iter::reduce::ReduceConsumer<ruff_cli::commands::run::run::closure_env$1,ruff_cli::diagnostics::Diagnos
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\slice\mod.rs:708
  38: rayon::iter::map::impl$2::drive_unindexed<rayon::slice::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ruff_cli::commands::run::run::closure_env$0,ruff_cli::diagnostics::Diagnostics,rayon::iter::reduce::ReduceConsumer<
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\map.rs:49
  39: rayon::iter::reduce::reduce<rayon::iter::map::Map<rayon::slice::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ruff_cli::commands::run::run::closure_env$0>,ruff_cli::commands::run::run::closure_env$1,ruff_cli::diagnost
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\reduce.rs:15
  40: rayon::iter::ParallelIterator::reduce<rayon::iter::map::Map<rayon::slice::Iter<enum2$<core::result::Result<ignore::walk::DirEntry,enum2$<ignore::Error> > > >,ruff_cli::commands::run::run::closure_env$0>,ruff_cli::commands::run::run::closure_env$1,ruff_cli
             at C:\Users\fish\.cargo\registry\src\github.com-1ecc6299db9ec823\rayon-1.7.0\src\iter\mod.rs:991
  41: ruff_cli::commands::run::run
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\commands\run.rs:79
  42: ruff_cli::check
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\lib.rs:300
  43: ruff_cli::run
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\lib.rs:119
  44: ruff::main
             at C:\Users\fish\source\ruff\crates\ruff_cli\src\bin\ruff.rs:48
  45: core::ops::function::FnOnce::call_once<std::process::ExitCode (*)(),tuple$<> >
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\core\src\ops\function.rs:250
  46: std::sys_common::backtrace::__rust_begin_short_backtrace<std::process::ExitCode (*)(),std::process::ExitCode>
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\std\src\sys_common\backtrace.rs:134
  47: std::rt::lang_start::closure$0<std::process::ExitCode>
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\std\src\rt.rs:166
  48: core::ops::function::impls::impl$2::call_once
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\core\src\ops\function.rs:287
  49: std::panicking::try::do_call
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:487
  50: std::panicking::try
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:451
  51: std::panic::catch_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panic.rs:140
  52: std::rt::lang_start_internal::closure$2
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\rt.rs:148
  53: std::panicking::try::do_call
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:487
  54: std::panicking::try
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panicking.rs:451
  55: std::panic::catch_unwind
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\panic.rs:140
  56: std::rt::lang_start_internal
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc/library\std\src\rt.rs:148
  57: std::rt::lang_start<std::process::ExitCode>
             at /rustc/84c898d65adf2f39a5a98507f1fe0ce10a2b8dbc\library\std\src\rt.rs:165
  58: main
  59: invoke_main
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  60: __scrt_common_main_seh
             at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  61: BaseThreadInitThunk
  62: RtlUserThreadStart

Python File
Source https://github.com/python/cpython/tree/167072938342981b96d06d739cd97185207b64dd
Please change the file extension from txt to py
test_ssl.txt
Ruff settings
Nothing

Closing in favor of #4374, the root causes are the same.

authors: FishAlchemist charliermarsh

repo: charliermarsh/ruff


text:
Snippest for - how to change/update the chart data

It took me something like 3 hours(started to work on it at 22:00 and finished at 01:30). My problem was that I need to pull/change data from an http request. I tried all the combination I can think of but managed to scrape something:
axios({
          'method': 'get',
          'url': API_ADDRESS
        }).then(response => {
          let items = []

          response.data.data.forEach(item => {
            // item['unumber'] is 1,489.49
            items.push(parseFloat(item['unumber'].replace(",", "")))
          })

           // This is a line chat.
          document.querySelector('.ct-chart').__chartist__.update({'series': [items]})
        })

Now, I did not see any cookbook or snippets, and the documentation about it is pretty dimmed on how to update so... if there's any place I can add it I'll create a P.

Hello @RoySegall 👋
Chartist has recently been updated to version 1.0 with some new exciting changes like ESM and TypeScript support. The migration guide can be found right here.
Please let me know if the question is still relevant to you so we can further look into it!

source: gharchive/issue

authors: Arantiryo RoySegall

repo: chartist-js/chartist

license: mit

license_type: permissive

license_source: bigquery


text:
Ordinal Scale

An ordinal scale would be a useful feature. I think d3 already has this?

The ordinal type allows for rank order (1st, 2nd, 3rd, etc.) by which data can be sorted, but still does not allow for relative degree of difference between them. Examples include, on one hand, dichotomous data with dichotomous (or dichotomized) values such as 'sick' vs. 'healthy' when measuring health, 'guilty' vs. 'innocent' when making judgments in courts, 'wrong/false' vs. 'right/true' when measuring truth value, and, on the other hand, non-dichotomous data consisting of a spectrum of values, such as 'completely agree', 'mostly agree', 'mostly disagree', 'completely disagree' when measuring opinion.

My current use case is plotting financial data which should only accept Monday through Friday as valid x-scale values. Saturdays and Sundays should not effect the x-scale. Currently however a line will be drawn between Friday and Monday of two-day length compensation for the 'missing' data on Saturday and Sunday.
Thoughts?

I can think of a bunch of ways to do this. From my understanding, the ordinal scale is very similar to our category scale (the default x scale). With some finessing the options, this will work on a Y axis.
I'll see if I can think of a nice way to do this without having to build a brand new scale.

I believe this is now resolved. I checked with v3.0.0-beta.3 and labels can be specified on the axis, rather than in the data object itself. https://jsfiddle.net/ka28u7Lz/

authors: AlexeiDarmin etimberg

license: MIT

license_source: github-api


text:
Elaborate example of backgroundColor gradients function

Documentation Is:

[ ] Missing or needed
[ ] Confusing
[x] Not Sure?

Please Explain in Detail...
It took me quite some time to figure out how to use gradients for just the first and last item in a bar chart.
At last I found out how to do it, the answer was in the documentation, doh!
If you'd like I can add it in a pull request as documentation, it's for chart.js v3.
Great work btw!
Your Proposal for Changes
Add some extra documentation
Example

There are two samples in v3

Radial gradient https://www.chartjs.org/samples/master/advanced/radial-gradient.html
linear gradient https://www.chartjs.org/samples/master/advanced/line-gradient.html

Do those help at all?

Well, they do show gradients, that's for sure.
I did read about the background and hoverBackground functions, so that definately helped.
But it wasn't very clear that I can use different gradients for, for example, the first and the last item, but not the rest.
Like [gradient1, red, red, red, gradient2].
So most examples show me I can use one gradient but not that I can use multiple different gradients.
So basically, I have an example I'm willing to create an html page for, if you're interested.

:thinking:

@leeoniya submitted #8383 for that :)

Ah, cool @kurkle! Thanks for the quick responses!

authors: etimberg kurkle leeoniya weirdall


text:
Update 01-Chart-Configuration.md

Fix an anchor link.

Thanks @trantorLiu

source: gharchive/pull-request

authors: etimberg trantorLiu


text:
API调用短识库时出现重大问题了！把 assistant 的提示也出来了

不知有人遇到这个问题没  ，或者说是不是我没配置到位呢。

还有 返回的 docs字段有可设置 或 改某段字段，去除吗

repo: chatchat-space/Langchain-Chatchat


text:
[BUG] Error: Failed to load GPTQ-for-LLaMa. No module named 'llama'

问题描述 / Problem Description
使用model_worker加载Qwen-14B-Chat-Int4时出现错误
复现问题的步骤 / Steps to Reproduce

将server_config.py中的FSCHAT_MODEL_WORKERS设置如下：

FSCHAT_MODEL_WORKERS = {
    "Qwen-14B-Chat-Int4": {
        "infer_turbo": False,
        "gptq_wbits": 4,
        "gptq_groupsize": 128,
        "gptq_act_order": True,
    }
}

从源码编译安装GPTQ-For-Llama
运行python startup.py -a
出现报错Error: Failed to load GPTQ-for-LLaMa. No module named 'llama'

预期的结果 / Expected Result
模型应该成功加载
实际结果 / Actual Result
错误输出如下：
2023-10-17 11:34:10 | INFO | root | 正在启动服务：
2023-10-17 11:34:10 | INFO | root | 如需查看 llm_api 日志，请前往 /path/to/langchain-Chatchat/logs
Loading GPTQ quantized model...
Error: Failed to load GPTQ-for-LLaMa. No module named 'llama'
See https://github.com/lm-sys/FastChat/blob/main/docs/gptq.md
2023-10-17 11:34:15 | ERROR | stderr | INFO:     Started server process [304114]
2023-10-17 11:34:15 | ERROR | stderr | INFO:     Waiting for application startup.
2023-10-17 11:34:15 | ERROR | stderr | INFO:     Application startup complete.
2023-10-17 11:34:15 | ERROR | stderr | INFO:     Uvicorn running on http://127.0.0.1:20000

记录到的log输出如下：
2023-10-17 11:51:27 | ERROR | stderr | INFO:     Started server process [308895]
2023-10-17 11:51:27 | ERROR | stderr | INFO:     Waiting for application startup.
2023-10-17 11:51:27 | ERROR | stderr | INFO:     Application startup complete.
2023-10-17 11:51:27 | ERROR | stderr | INFO:     Uvicorn running on http://127.0.0.1:20000 (Press CTRL+C to quit)

环境信息 / Environment Information

langchain-ChatChat 版本/commit 号：commit 9163dda
是否使用 Docker 部署（是/否）：否
使用的模型（ChatGLM2-6B / Qwen-7B 等）：Qwen-14B-Chat-Int4
使用的 Embedding 模型（moka-ai/m3e-base 等）：piccolo-large-zh
使用的向量库类型 (faiss / milvus / pg_vector 等)： faiss
操作系统及版本 / Operating system and version: Ubuntu23.04
Python 版本 / Python version: python3.11.4
其他相关环境信息 / Other relevant environment information: cuda12.2, pytorch2.0.1+cu121

直接运行Qwen int4就行了，不用做任何配置文件修改，在model_config中直接写大模型文件位置即可

authors: Orion-zhen zRzRzRzRzRzRzR


text:
[BUG] 正常对话出现 RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read)

问题描述 / Problem Description
在服务器上部署的Xinfernece成功，加载的是离线模型glm4，路径啥的都没有问题，webui也能正确显示，但是对话报错。

环境信息 / Environment Information

langchain-chatchat版本/commit 号：0.3.0
是否使用 Docker 部署（是/否）：否
使用的模型（ChatGLM2-6B / Qwen-7B 等）：GLM4-chat
使用的 Embedding 模型（moka-ai/m3e-base 等）：bge-large-zh-v1.5
操作系统及版本 / Operating system and version:  ubantu
Python 版本 / Python version:  py3.10.13

问题描述 / Problem Description 在服务器上部署的Xinfernece成功，加载的是离线模型glm4，路径啥的都没有问题，webui也能正确显示，但是对话报错。

环境信息 / Environment Information

langchain-chatchat版本/commit 号：0.3.0
是否使用 Docker 部署（是/否）：否
使用的模型（ChatGLM2-6B / Qwen-7B 等）：GLM4-chat
使用的 Embedding 模型（moka-ai/m3e-base 等）：bge-large-zh-v1.5
操作系统及版本 / Operating system and version:  ubantu
Python 版本 / Python version:  py3.10.13

已经解决了

0.3.1 版已经发布，优化了配置方式，修改配置项无需重启服务器，可以更新尝试。

遇到了相同的问题，一直报错，2024-07-15 10:47:24,260 xinference.api.restful_api 12342 ERROR    Chat completion stream got an error: [address=0.0.0.0:46663, pid=14317] GenerationMixin._get_logits_warper() missing 1 required positional argument: 'device'

问题描述 / Problem Description 在服务器上部署的Xinfernece成功，加载的是离线模型glm4，路径啥的都没有问题，webui也能正确显示，但是对话报错。

环境信息 / Environment Information

langchain-chatchat版本/commit 号：0.3.0
是否使用 Docker 部署（是/否）：否
使用的模型（ChatGLM2-6B / Qwen-7B 等）：GLM4-chat
使用的 Embedding 模型（moka-ai/m3e-base 等）：bge-large-zh-v1.5
操作系统及版本 / Operating system and version:  ubantu
Python 版本 / Python version:  py3.10.13

已经解决了

老哥，怎么解决的呀？

遇到了相同的问题，一直报错，2024-07-15 10：47：24,260 xinference.api.restful_api 12342 错误 聊天完成流出现错误：[address=0.0.0.0：46663， pid=14317] GenerationMixin._get_logits_warper（） 缺少 1 个必需的位置参数：“device”

请问这个问题解决了吗

换了模型
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: vectors @.>
发送时间: 2024年7月20日 23:36
收件人: chatchat-space/Langchain-Chatchat @.>
抄送: Modas Li @.>, Comment @.>
主题: Re: [chatchat-space/Langchain-Chatchat] [BUG] 正常对话出现 RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read) (Issue #4486)
遇到了相同的问题，一直报错，2024-07-15 10：47：24,260 xinference.api.restful_api 12342 错误 聊天完成流出现错误：[address=0.0.0.0：46663， pid=14317] GenerationMixin._get_logits_warper（） 缺少 1 个必需的位置参数：“device”
请问这个问题解决了吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


text:
doc: update linux install script domain

serve the Linux installation script from memorable domain
https://get.chatwoot.app/linux/install.sh

Fixes https://github.com/chatwoot/product/issues/379

@pranavrajs any idea why netlify build is broken?

@vishnu-narayanan Please see the error.

@pranavrajs Thank you for the review. FIxed the URL and netlify builds are now successful.

authors: pranavrajs vishnu-narayanan

repo: chatwoot/docs


text:
[Snyk] Security upgrade jsonwebtoken from 8.5.1 to 9.0.0

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `yarn` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

package.json
yarn.lock

Vulnerabilities that will be fixed
With an upgrade:

Severity
Priority Score (*)
Issue
Breaking Change
Exploit Maturity

671/1000  Why? Recently disclosed, Has a fix available, CVSS 7.7
Improper Input Validation SNYK-JS-JSONWEBTOKEN-3180020
Yes
No Known Exploit

611/1000  Why? Recently disclosed, Has a fix available, CVSS 6.5
Improper Authentication SNYK-JS-JSONWEBTOKEN-3180022
Yes
No Known Exploit

611/1000  Why? Recently disclosed, Has a fix available, CVSS 6.5
Improper Restriction of Security Token Assignment SNYK-JS-JSONWEBTOKEN-3180024
Yes
No Known Exploit

526/1000  Why? Recently disclosed, Has a fix available, CVSS 4.8
Use of a Broken or Risky Cryptographic Algorithm SNYK-JS-JSONWEBTOKEN-3180026
Yes
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.
Check the changes in this PR to ensure they won't cause issues with your project.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings
📚 Read more about Snyk's upgrade and patch logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Use of a Broken or Risky Cryptographic Algorithm

Resolved by dependabot: https://github.com/chaynHQ/ysm-backend/pull/61

authors: chaynteam kyleecodes

repo: chaynHQ/ysm-backend


text:
Increase minimum Go version to 1.22

1.22 is the minimum version required by a couple of dependencies.

Might it make sense to squash the latest commit with the first one (with the Go version bump)? It'll ensure we can bisect the repo going forward

LGTM
Would it be possible to add more information about the dependencies that require 1.22 in the commit message?

LGTM
Would it be possible to add more information about the dependencies that require 1.22 in the commit message?

I don't really know. I just see dependabot failing with a diff that indicates that 1.22 is required.

It looks like k8s.io/api is one of these dependencies:

https://github.com/kubernetes/api/commit/b374e580f9e2820e0870f45715ab92e2916f0664
https://github.com/kubernetes/kubelet/commit/8ce7a49ca85885ce6ce6f26ef206be17979d8623

@rst0git Added k8s.io/api to the commit message.
@snprajwal squashed

authors: adrianreber rst0git snprajwal


text:
Leading and trailing whitespace of target input not removed

Leading and trailing whitespace of target input not removed
Bug Description
For the free text input of the "target" input field, trailing or leading whitespace is not removed. This leads to error messages in subsequent steps.
Expected behavior
Remove any trailing or leading whitespace of the target input
Steps to Reproduce
Enter the target input with a trailing (e.g. "8.8.8.8 ") or leading ( e.g. " 8.8.8.8") whitespace and select a corresponding query type.
Local Configurations
N/A
Logs
N/A
Possible Solution
Use the https://docs.python.org/3/library/stdtypes.html#str.strip function to remove trailing and leading whitespace of the target input field.
Environment
Server
N/A
Client
N/A
Smartphone Details (if applicable)
N/A

Thanks for finding this - it will be fixed in the next release.

authors: checktheroads chriselsen

repo: checktheroads/hyperglass


text:
rsyslog default configuration generated incorrectly on Amazon Linux

Cookbook version
6.0.4
Chef-client version
12.22.5
Platform Details
Amazon Linux release 2 (2017.12) LTS Release Candidate
Scenario:
Using the rsyslog cookbook in default trim on Amazon linux fails to provide a valid configuration.
Steps to Reproduce:
Include the rsyslog cookbook via recipe in a wrapper cookbook. eg. include_recipe 'rsyslog'
Expected Result:
rsyslog installs cleanly with a working configuration
Actual Result:
amazon-ebs: [2018-07-03T23:44:15+00:00] INFO: template[/etc/rsyslog.conf] sending run action to execute[validate_config] (delayed)
amazon-ebs: [2018-07-03T23:44:15+00:00] INFO: Processing execute[validate_config] action run (rsyslog::default line 40)
amazon-ebs:
amazon-ebs: ================================================================================
amazon-ebs: Error executing action `run` on resource 'execute[validate_config]'
amazon-ebs: ================================================================================
amazon-ebs:
amazon-ebs: Mixlib::ShellOut::ShellCommandFailed
amazon-ebs: ------------------------------------
amazon-ebs: Expected process to exit with [0], but received '1'
amazon-ebs: ---- Begin output of rsyslogd -N 1 -f /etc/rsyslog.conf ----
amazon-ebs: STDOUT:
amazon-ebs: STDERR: rsyslogd: version 8.24.0, config validation run (level 1), master config /etc/rsyslog.conf
amazon-ebs: rsyslogd: error during parsing file /etc/rsyslog.d/50-default.conf, on or before line 8: warnings occured in file '/etc/rsyslog.d/50-default.conf' around line 8 [v8.24.0 try http://www.rsyslog.com/e/2207 ]                                           [0/1989]
amazon-ebs: ---- End output of rsyslogd -N 1 -f /etc/rsyslog.conf ----
amazon-ebs: Ran rsyslogd -N 1 -f /etc/rsyslog.conf returned 1
amazon-ebs:
amazon-ebs: Resource Declaration:
amazon-ebs: ---------------------
amazon-ebs: # In /tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/rsyslog/recipes/default.rb
amazon-ebs:
amazon-ebs:  40: execute 'validate_config' do
amazon-ebs:  41:   command "rsyslogd -N 1 -f #{node['rsyslog']['config_prefix']}/rsyslog.conf"
amazon-ebs:  42:   action  :nothing
amazon-ebs:  43: end
amazon-ebs:  44:
amazon-ebs:
amazon-ebs: Compiled Resource:
amazon-ebs: ------------------
amazon-ebs: # Declared in /tmp/packer-chef-solo/local-mode-cache/cache/cookbooks/rsyslog/recipes/default.rb:40:in `from_file'
amazon-ebs:
amazon-ebs: execute("validate_config") do
amazon-ebs:   action [:nothing]
amazon-ebs:   retries 0
amazon-ebs:   retry_delay 2
amazon-ebs:   default_guard_interpreter :execute
amazon-ebs:   command "rsyslogd -N 1 -f /etc/rsyslog.conf"
amazon-ebs:   backup 5
amazon-ebs:   returns 0
amazon-ebs:   user nil
amazon-ebs:   declared_type :execute
amazon-ebs:   cookbook_name "rsyslog"
amazon-ebs:   recipe_name "default"
amazon-ebs: end
amazon-ebs:
amazon-ebs: System Info:
amazon-ebs: ------------
amazon-ebs: chef_version=12.22.5
amazon-ebs: platform=amazon
amazon-ebs: platform_version=2
amazon-ebs: ruby=ruby 2.3.6p384 (2017-12-14 revision 61254) [x86_64-linux]
amazon-ebs: program_name=chef-solo worker: ppid=11910;start=23:39:40;
amazon-ebs: executable=/opt/chef/bin/chef-solo
amazon-ebs:
amazon-ebs: [2018-07-03T23:44:16+00:00] INFO: template[/etc/rsyslog.conf] sending restart action to service[rsyslog] (delayed)
amazon-ebs: [2018-07-03T23:44:16+00:00] INFO: Processing service[rsyslog] action restart (rsyslog::default line 94)
amazon-ebs: [2018-07-03T23:44:16+00:00] INFO: service[rsyslog] restarted
amazon-ebs: [2018-07-03T23:44:16+00:00] ERROR: Running exception handlers
amazon-ebs: [2018-07-03T23:44:16+00:00] ERROR: Exception handlers complete
amazon-ebs: [2018-07-03T23:44:16+00:00] FATAL: Stacktrace dumped to /tmp/packer-chef-solo/local-mode-cache/cache/chef-stacktrace.out
amazon-ebs: [2018-07-03T23:44:16+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
amazon-ebs: [2018-07-03T23:44:16+00:00] ERROR: execute[validate_config] (rsyslog::default line 40) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
amazon-ebs: ---- Begin output of rsyslogd -N 1 -f /etc/rsyslog.conf ----
amazon-ebs: STDOUT:
amazon-ebs: STDERR: rsyslogd: version 8.24.0, config validation run (level 1), master config /etc/rsyslog.conf
amazon-ebs: rsyslogd: error during parsing file /etc/rsyslog.d/50-default.conf, on or before line 8: warnings occured in file '/etc/rsyslog.d/50-default.conf' around line 8 [v8.24.0 try http://www.rsyslog.com/e/2207 ]
amazon-ebs: ---- End output of rsyslogd -N 1 -f /etc/rsyslog.conf ----
amazon-ebs: Ran rsyslogd -N 1 -f /etc/rsyslog.conf returned 1
amazon-ebs: [2018-07-03T23:44:16+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

There appears to be an incorrect assumption in the default attributes, which looks for RHEL family distros lesser than version 6 and generates a configuration for older versions of rsyslog.
# rsyslog 3/4 do not support the new :omusrmsg:* format and need * instead
if node['platform_family'] == 'rhel' && node['platform_version'].to_i < 6
  default['rsyslog']['default_facility_logs']['*.emerg'] = '*'
end

This breaks because Amazon Linux does report as being in the RHEL platform_family and platform_version 2, however provides rsyslog version 8.24.0.
[root@xxx:~]$ cat /etc/system-release
Amazon Linux release 2 (2017.12) LTS Release Candidate

[root@xxx:~]$ ohai platform platform_family platform_version
[
  "amazon"
]
[
  "rhel"
]
[
  "2"
]

[root@xxx:~]$ rpm -qi rsyslog
Name        : rsyslog
Version     : 8.24.0
Release     : 12.amzn2
Architecture: x86_64
Install Date: Wed 10 Jan 2018 02:10:56 AM UTC
Group       : System Environment/Daemons
Size        : 1982902
License     : (GPLv3+ and ASL 2.0)
Signature   : RSA/SHA256, Tue 14 Nov 2017 08:49:16 PM UTC, Key ID 11cf1f95c87f5b1a
Source RPM  : rsyslog-8.24.0-12.amzn2.src.rpm
Build Date  : Thu 19 Oct 2017 05:40:42 PM UTC
Build Host  : build.amazon.com
Relocations : (not relocatable)
Packager    : Amazon Linux
Vendor      : Amazon Linux
URL         : http://www.rsyslog.com/

The most correct solution would be to check directly for the version of rsyslog available rather than using indirect and imprecise distro checks.

repo: chef-cookbooks/rsyslog


text:
Deprecate windows_zipfile in favor of archive_file

Chef Infra Client now has archive_file built in as of Chef 15.0. We should deprecate windows_zipfile in favor of archive_file with a warning that windows_zipfile will be removed in the future.

#617 is closed. Please close this issue.

authors: btm shindemahendra

repo: chef-cookbooks/windows


text:
We need a coherent port list for Automate

Signed-off-by: Sean Horn sean_horn@opscode.com
:nut_and_bolt: Description: What code changed, and why?
For firewalling purposes, let's list the necessary ports for different purposes external to Automate
:chains: Related Resources
:+1: Definition of Done
:athletic_shoe: How to Build and Test the Change
:white_check_mark: Checklist
All PRs must tick these:

[X] I have read the CONTRIBUTING document.
[X] All commits signed-off for the Developer Certification of Origin.

With occasional exceptions, all PRs from Progress employees must tick these:

[X] Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
[X] Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
[X] Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
[X] Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
[X] Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

[ ] Tests added/updated? (all new code needs new tests). Docs, no tests
[X] Docs added/updated? (all customer-facing changes)

This build didn't fail from my changes. I have just changed documentation.

repo: chef/automate


text:
Adding es-gateway url

:nut_and_bolt: Description: What code changed, and why?
When es-gateway port is passed, the url should consider http protocol rather than https.

:chains: Related Resources
https://chefio.atlassian.net/browse/CHEF-4290
:+1: Definition of Done
Now license usage will work as expected
:athletic_shoe: How to Build and Test the Change
rebuild components/automate-cli/
chef-automate license complianceResourceRunCount -p 10144 -s 2023-07-31 -e 2023-07-31

:white_check_mark: Checklist
All PRs must tick these:

[X] I have read the CONTRIBUTING document.
[X] All commits signed-off for the Developer Certification of Origin.

With occasional exceptions, all PRs from Progress employees must tick these:

[X] Is the code clear? (complicated code or lots of comments--subdivide and use well-named methods, meaningful variable names, etc.)
[X] Consistency checked? (user notifications, user prompts, visual patterns, code patterns, variable names)
[X] Repeated code blocks eliminated? (adapt and reuse existing components, blocks, functions, etc.)
[X] Spelling, grammar, typos checked? (at a minimum use make spell in any component directory)
[X] Code well-formatted? (indents, line breaks, etc. improve rather than hinder readability)

All PRs from Progress employees should tick these if appropriate:

[X] Tests added/updated? (all new code needs new tests)
[X] Docs added/updated? (all customer-facing changes)

Please add a note next to any checkbox above if you are NOT ticking it.
:camera: Screenshots, if applicable

@YashviJain01  please attach the demo video

@YashviJain01 please attach the demo video

Added the screenshot.


text:
NAT Gateway configuration..

I understand that one can configure instance in AWS with chef and make it into a NAT instance but is there a possibility of deploying a "NAT Gateway" with chef directly as it is provided by AWS within a VPC!

There is already a pull request for this: https://github.com/chef/chef-provisioning-aws/pull/434
;)

repo: chef/chef-provisioning-aws


text:
chef-server-ctl fails on user-create command

root@ITDEVCHEF:/home/itops# chef-server-ctl user-create
/opt/opscode/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `require': cannot load such file -- chef/knife/ec_base (LoadError)
        from /opt/opscode/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
        from /opt/opscode/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:39:in `require'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/knife-ec-backup-2.0.6/lib/chef/knife/ec_backup.rb:2:in `<top (required)>'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife/core/subcommand_loader.rb:100:in `load'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife/core/subcommand_loader.rb:100:in `block in load_commands'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife/core/subcommand_loader.rb:100:in `each'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife/core/subcommand_loader.rb:100:in `load_commands'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife/core/subcommand_loader.rb:110:in `load_command'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife/core/subcommand_loader.rb:124:in `command_class_from'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife.rb:153:in `subcommand_class_from'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/knife.rb:214:in `run'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/application/knife.rb:148:in `run'
        from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/bin/knife:25:in `<top (required)>'
        from /opt/opscode/embedded/bin/knife:23:in `load'
        from /opt/opscode/embedded/bin/knife:23:in `<main>'

Using latest Chef server on Ubuntu 14.04.
Is there a way to ensure the integrity of all the files associated with the install?

Well, since I got no answer I just backed up the data, deleted everything and reinstalled. Hard to belief chef is so fragile with these things, and the installer ought to be smarter about cleaning up things as well.

repo: chef/chef-server


text:
Purge symlinks before (re)loading erlang projects

Fixes an issue where dvm load could corrupt the omnibus-managed
sys.config with a bad one created by relx.
@chef/lob

:+1:

authors: danielsdeleo marcparadise


text:
Fix to allow LW resources to be used with HW providers

This should fix sethvargo-cookbooks/swap#22
Here's what was happening:
The cookbooks creates a Resource using the LWRP base. This dynamically
creates a class. We used to create this class with the name
Chef::Resource::SomeResourceName. In 12.4, this change to something like
"LWRP resource some_resource_name from cookbook CookbookName". When
searching for a provider, it couldn't be found because it wasn't explicitly
set, as it would have been if it was a LW provider, and it wasn't found
in Chef::Provider, because Chef::Provider had a provider SomeResourceName
instead of "LWRP resource some_resource_name from cookbook CookbookName".
cc @jkeiser @sethvargo @chef/client-maintainers

Just one comment, and :+1:.  Thanks!!!

:shipit:

seems reasonable :+1:

class.name is the name of the class, while to_s may be overridden by people to change what shows up when you print it (our lwrp classes do this even when they don't have a name).

:+1:

:+1:

authors: danielsdeleo jdmundrawala jkeiser ksubrama smurawski thommay

repo: chef/chef


text:
Chef 15: Add --session-timeout bootstrap option for both ssh & winrm

Signed-off-by: Vivek Singh vivek.singh@msystechnologies.com

Description

Added bootstrap option --session-timeout.
Added --winrm-session-timeout to deprecations.
Default --session-timeout value is 60 secs(same was added for --winrm-session-timeout).
Modified existing specs related to old --winrm-session-timeout key and add specs for --session-timeout.

Related Issue
https://github.com/chef/chef/issues/8491
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] All commits have been signed-off for the Developer Certificate of Origin.

Session timeout on train-core side:

There is no need to add session timeout related configuration in train-core side. this option is already available as operation_timeout & connection_timeout (https://github.com/inspec/train/blob/827b73a66ae10b7c54de9fef9a228862f425bb43/lib/train/transports/ssh.rb#L154) for winrm & ssh respectively.

By default connection_timeout value is 15 secs (https://github.com/inspec/train/blob/827b73a66ae10b7c54de9fef9a228862f425bb43/lib/train/transports/ssh.rb#L55) but previously we passed --winrm-session-timeout 60 secs so now it passed for ssh as well.

Okay @mp Will update and revert you back accordingly thanks

@marcparadise & @tas50 required changes have been made. Could you please review and let's know further if any issue/concern thanks!

This looks good, but I don't want to leave the time unit conversion - and possible problems that might come out of it - unaddressed.
@btm suggested adding a validation check that gives a warning if the session-timeout value is less than 30 seconds.
It's a safe bet that someone putting in a low value is thinking in terms of minutes and not seconds, and this way if someone habitually uses --winrm-session-timeout 1 we'll at least have given them a hint as to the cause of any issues.

authors: marcparadise vsingh-msys


text:
VPC does not require a subnet to be specified

As mentioned in #344, AWS accounts created after 2013-12-04 don't support "EC2 Classic" and just use VPC. These accounts have a default subnet created so you don't have to specify one. We should

find a different way to determine we are on VPC for #vpc_mode?
ensure we raise an reasonable error (ourselves if the API doesn't) if VPC is the only supported platform, there is no default subnet, and the user has not passed a subnet.
if vpc_mode? is true, we have a default subnet, but the user has not passed a subnet_id, populate subnet_id (so the solution in #344 can tell if auto-assign-ip is enable for that subnet).

Hello @btm ,
This is very nice idea to use default vpc and subnet and find out auto-assing-ip intelligently for bootstrapping.
We have below findings in-terms of use cases. Please have look and share your thoughts -
1 . If account only supports EC2-VPC platform then existing knife-ec2 creates VM's in default VPC and Subnet.
2 . Consider if account supports both platform i.e EC2-VPC and EC2-CLASSIC.
For this case we should have flag like --select-aws-platform vpc(i.e default)  or classic it will give choice to user to select platform.
2.1 --select-aws-platform VPC
a. For this case by default VM will gets created in default VPC and Subnet. Validate does account supports VPC platform? and find default VPC id and Subnet id to create VM.
b. if --subnet-id specified then we will find corresponding VPC id and create VM in same.
Note- By default, for both cases check auto-assign-public-ip is enabled.
c. If default VPC is deleted and no --subnet-id specified. In this case raise an error.
2.2 --select-aws-platform classic
The VM will gets created in AWS Classic network.
Could you please comment on this.
Thank You.

@btm , please let us know your views on this.

@NimishaS I suppose over time the number of people who still have classic accounts will decrease and new people will just have vpc with a default subnet and be less confused, but I'm a little surprised more people don't need a --aws-platform flag.

@btm,
If the account supports only EC2-VPC platform then existing knife-ec2 creates VMs by using default VPC and Subnet.
We don't have EC2 classic account so we can't create the node on EC2 classic.
Can you please explain what needs to be fixed in this issue?

2013-12-04 was a long time ago. Let's figure that everyone who has support for EC2 classic has figured this out, and everyone else will already have a default subnet with their VPC based EC2 account.

authors: NimishaS btm harikesh-kolekar siddheshwar-more


text:
update vagrant-linode versions

#109 was updated in January 2015.  It was a few releases behind the latest vagrant-linode version.
Ubuntu 14.04 EOL's in less than 1 year.  Switch to Ubuntu 18.04 LTS for Linode acceptance testing.

Update the version of vagrant-linode used
Update the version of Ubuntu used in vagrant-linode acceptance tests

@displague If you want to sign this off for the DCO I can merge it

Thanks @displague

repo: chef/vagrant-omnibus


text:
Can't handle FontFamily

I have a custom Font setup and I tried to pass in the font style through textStyle. If I do that then no text gets rendered. Is there any workaround that? Thanks!

Hi, I just published a new version of this module with this issue fixed. Please use the new version 1.0.4.
The problem was when font family is changed to any other than the default font, the onLayout event became unable to calculate the correct text size. I added a hidden Text component to do the calculation. And now it should work well with custom fonts.
Though I'm still not sure about why this happens because it's fine with another module of mine [react-native-lahk-marquee-label-vertical](https://github.com/cheng-kang/react-native-lahk-marquee-label-vertical).
It would be great if anyone figures out why and shares it here.

Thanks for updating this! It's accepting custom fonts very well.
One thing that I wish to request is, right now if you change the text, the thing kinda goes all wild. From my understanding, I think you should clear out the x-position when the text props change. I think the texts are going wild because the Text length is different. Because right now, the texts are changing while the text is scrolling, and since the text length is different, your onLayout logic to calculate the text size is not working as intended. Keep up the good work :)!

Just to make it clear, by “right now if you change the text”, do you mean change the text dynamically?
I will take a look at that.

Yes. Thank you!

I've just tested it out and the animation is great! One thing that I would like to propose just one more is, I think there should be a logic to handle the component to not re-render itself if the text prop is the same. I have a timer on my component that's using the marquee component. Since the timer is updating itself on state and triggers the higher-order component to re-render as well, I think marquee is also being forced to re-render? Thought react would be smart enough to handle this on its own.
Regardless, I notice that when the timer is active, the marquee is being reset every tick (when the timer value increases), whereas it's animation is working as intended when the timer is paused. I believe if you just check on shouldComponentUpdate to see if the text has changed or not to determine if the component should update, it would be excellent! Thanks again for your effort, it's very much appreciated :)

bump :) did you try to figure this out?

Sorry, been busy writing my dissertation lately. I will be free from this Friday and will look at it ASAP. 😄

authors: cheng-kang lykfe


text:
🛑 tt is down

In c7e3786, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3084 ms

Resolved: tt is back up in f25d969.

repo: chenhaonanniubi/upptime


text:
🛑 tt is down

In 2248d7d, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3028 ms

Resolved: tt is back up in 04a5dfc after 34 minutes.


text:
🛑 tt is down

In 75c39c4, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3701 ms

Resolved: tt is back up in 7202269 after 10 minutes.


text:
🛑 tt is down

In 03e34c1, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 6850 ms

Resolved: tt is back up in b5eb28c.


text:
🛑 tt is down

In c667383, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 3335 ms

Resolved: tt is back up in 255c79d after 21 minutes.


text:
🛑 tt is down

In b574659, tt (https://telebot-app-serverless-i7z8-chenhaonanniubi.vercel.app/checkhealth) was down:

HTTP code: 500
Response time: 2621 ms

Resolved: tt is back up in 20bc868 after 19 minutes.


text:
fix invalid escape

Simplifies the earlier PR to only add the escape sequence

any timeline as to when this could be merged to main?

sorry about the wait. should be good now.


text:
楼主，请问数据画了两遍的问题怎么解决

demo中也有这个问题，数据画了两遍

额，已经解决了。demo中[array addObjectsFromArray:array];   这句话将构造好的数据又添加了一遍，导致数据数量乘2。去掉就好了。


text:
The extension name ".mjs" is better for dist/native-modules

The current extension '.js' does not work on cherow@1.6.8
Code
Dependencies:
yarn add esm --dev

The test.mjs
import * as cherow from 'cherow/dist/es2015/cherow'
// or native-modules
// or 2017

cli
node -r esm ./test.mjs

output:
Error: Cannot load ES module from .mjs: file: ......../cherow.js

I manually change the extension '.mjs', problem solved.
so,,, the '.mjs' is better for dist/native-modules

👍

I'll submit a first pass of some improvements on our current build system, and include a script that simply copies the .js files from these folders to .mjs. Having both will ensure that @achun's use case works, as well as prevent breaking changes for people using different import methods.

and See this https://jspm.io/
Load npm packages in modern browsers with the native browser ES module loader

authors: KFlash achun fkleuver

repo: cherow/cherow

license: isc


text:
Todo

[ ]  Finish destructuring (adjust bitmasks)

[ ]  Add support for revisited template (stage 3)

[x]  Reduce code size with 15 - 20%

[x]   Finish error tracking

[x] Tweak the performance

Work in progress  The entire parser are re-developed to catch up with latest ECMAScript specs.

Closing. See #38


text:
License

Hi, what is the license for this code? MIT License would be great. Thanks!

Thanks! I really forgot to add the license. MIT License is great and I will add it later. You can freely use the code as you want.

authors: cherubicXN lpasselin

repo: cherubicXN/hawp


text:
Let a team organizer create players

See this mockup: https://trello.com/c/wXa0dJqb/23-mockups-version-1
As I type the names of the players in my group, those should be persisted as Player records by hitting an endpoint via AJAX request. So if I'm Rob, I can put Cheshire and Zion on my team.

It would be nice to prepopulate the player name fields for a team organizer after they've already saved one team comp. So when Rob goes to organize another map for his group, we fill out Cheshire, Zion, Siege, etc. because those were the last players he used in a previous comp.
We can get this list of previously used players for a given user by looking at the user's most recently created Composition record. From that Composition, we find all the PlayerSelections, then we get the Player records off those.
We could possibly make this connection more explicit by adding a creator_id field to the players table. So if Rob puts Cheshire in a comp, the players table might have user_id pointing at Cheshire's user if she ever signs into the app herself, and creator_id pointing at Rob.

We can get this list of previously used players for a given user by looking at the user's most recently created Composition record. From that Composition, we find all the PlayerSelections, then we get the Player records off those.

@cheshire137 👍 since we talked about this in tonight's games, I just saw this note and think this is great, especially for v1.

This was done with #57, #61, #79.


text:
Sweet!

Sweet module. Thank you, I'm using it!
You might prefer
#loading-bar-spinner .spinner-icon { border-radius: 50%; }
for ease of maintenance.

Yep, probably right.  Thanks! :+1:

authors: chieffancypants syndicatedshannon

repo: chieffancypants/angular-loading-bar


text:
Role cannot create

Role cannot create by code.
but insert direct in database it okay.
You have some config on it.
ServiceImpl
@Override
public Role create(Role role) {
// TODO Auto-generated method stub
return roleRepository.save(role);
}

Hi @ahheaSK . What error do you get when you try to insert a new role programmatically? If you can paste the stacktrace that would be great

I create own function more it call creat entity.
It work monal when I create then it return it correctly what that I expect.
But It seems in database insert it have only one record. But I input
directly in posgres UI it work.
On Wed, 27 Mar 2024, 12:06 pm Chijioke Ibekwe, @.***>
wrote:

Hi @ahheaSK https://github.com/ahheaSK . What error do you get when you
try to insert a new role programmatically? If you can paste the stacktrace
that would be great
—
Reply to this email directly, view it on GitHub
https://github.com/chijioke-ibekwe/spring-security-jwt/issues/2#issuecomment-2021943396,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBMZZC4ZQTDEXWVHD4TH333Y2JHXFAVCNFSM6AAAAABFI6NBD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRRHE2DGMZZGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

@ahheaSK I'm guessing the issue is from the role name which is supposed to be an enum and uses the RoleNameConverter. Change the type of the name attribute on the role entity from RoleName enum to String. You would also need to go to line 23 on the Mapper class and change this:
authorities.add(new SimpleGrantedAuthority(r.getName().getValue()));
to this:
authorities.add(new SimpleGrantedAuthority(r.getName()));

authors: ahheaSK chijioke-ibekwe

repo: chijioke-ibekwe/spring-security-jwt


text:
glog 日志打印过多

在gohangout中，使用glog的默认级别，info日志文件中出现大量如下日志。

建议修改日志级别，将无关日志不要打印。

谢谢。刚刚看到，明儿去处理
---原始邮件---
发件人: "Ots Wang"<notifications@github.com>
发送时间: 2020年3月27日(周五) 下午2:04
收件人: "childe/healer"<healer@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [childe/healer] glog 日志打印过多 (#13)
在gohangout中，使用glog的默认级别，info日志文件中出现大量如下日志。
建议修改日志级别，将无关日志不要打印。
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

这个是刷新 Kafka 集群的 Meta 信息时打印的, 默认5分钟打印一条日志, 我个人觉得还可以吧, 暂时还是放在 Info 级别吧.

repo: childe/healer


text:
Added query to the latest release3

Added query

select * from job details where criminal_records = "felony" is retrieving proper results. this change is valid

authors: harjothkaur saichetanveeragandham

repo: chintakjoshi/TWA-OSS


text:
Add caliptra-rtl 1.1 submodule.

Please review each commit independently.
Move hw-latest/{fpga,verilated} to hw/
Also, move hw-latest/caliptra-rtl to hw/latest/rtl.
This is in preparation of moving the current caliptra-rtl submodule from hw/latest/rtl to hw/1.0/rtl, and replacing hw/latest/rtl with the 1.1 caliptra-rtl branch. The fpga/ and verilated/ code is the same for both 1.0 and 1.1, so it didn't make sense to keep identical copies in the hw/latest/ and hw/1.0 directories.
Split caliptra-registers into caliptra-registers-latest.
This is in preparation for a future caliptra-registers-1.0 crate.
Create caliptra-rtl 1.0 submodule, update latest to 1.1
Everything still builds against 1.0 by default.

Pushes to my branch don't seem to update the PR; smell like some sort of internal github glitch. Opening https://github.com/chipsalliance/caliptra-sw/pull/1365 in place of this PR.

repo: chipsalliance/caliptra-sw


text:
Add support for UIMenuControllerArrowDefault

This will allow for giving iOS control over what direction to show the UIMenuController, considering it's location on the screen.
From https://developer.apple.com/documentation/uikit/uimenucontroller/1622821-arrowdirection:

The default behavior (UIMenuControllerArrowDefault) is to point up or down at the object of focus based on its location on the screen.

looks good. @eliperkins is it ready to be merged?

@chirag04 yup! Thanks for the quick response.

do you all think this is a breaking change? For the most part i think it's not but idk.

@chirag04 I think it's some what of a breaking change, because the behavior will be different (not always pointing down, since iOS will decide the behavior).

yeah, i was kindof conflicted there which is why i asked. I will bump major version then.


text:
Adding 3 more popular packages

I have used these 3 in my recent projects, so here they are!
Sorry I saw 'Contributions Guideline' last second, reject PR & feedback me & I'll make it right next time!!

Yes, just send me a new PR for the following packages:
https://github.com/fideloper/TrustedProxy
https://github.com/andersao/l5-repository
Don't send me a PR for https://github.com/ollieread/multiauth as it does not support Laravel >=5.2

authors: UltraWalker chiraggude

repo: chiraggude/awesome-laravel


text:
Copy EUI64/Application key functionality doesn't work

https://github.com/chirpstack/chirpstack/assets/795984/efd3c0fa-16bb-464f-919a-749739290ba2
I'm using image: chirpstack/chirpstack:4.
Tested in the latest Chrome and Safari, MacOS Ventura 13.4

Strange, it works for me using the latest version (v4.4.1). Could you try to reproduce using the latest version?
chirpstack/chirpstack:4 means any version from v4.0.0 - v4.4.1. You can use :4.4.1 to explicitly set the version. Then also make sure you re-create the container.

How do you access Chirpstack? With HTTP or HTTPS?
I can reproduce your issue if I access my instance with HTTP but when I use HTTPS it works.
This is also what a quick web search for this issue shows, there are a lot of reports for various web apps...

Ah, then it might be a "security feature" of the browser. With localhost (which might be treated as an exception) I do not experience this issue over HTTP. But my test-server is using HTTPS and I also was not able to reproduce.
Actually, I believe getting an approximate location using the browser geolocation API is also blocked when using HTTP.
I think this issue then should be changed to:
Show error when access to clipboard API is not allowed due to restrictions.

Ya that's what I found, localhost is also treated as safe, some mention that there is some command line option for Chrome and other browser to deactivate that check and other sources talk about possible workarounds but also mention that those workarounds might not be forever...

I don't want to go into browser specifics, but I think showing a warning or error with at least a hit should be helpful. It looks like now for the user it looked like the copy to clipboard worked, which is not true.

Ya its ok, I just wanted to provide additional context...
Actually the state-of-the-art-way has this "limitation" and that's it.
A message would be fine so...

authors: Alex9779 brocaar virtyaluk

repo: chirpstack/chirpstack


text:
Question mark key returns different dictionary for keypress event than other keys

For most keypress events like arrow keys, the letter 'a', numbers, etc...:
mytextbox.on('keypress', function (ch, key) {
  debug(key);
});

I get:
{ sequence: '\u001b0c', name: 'right', ctrl: false, meta: false, shift: false, code: '0C', full: 'right }

When I hit the question mark, I get:
{ ch: '?', full: '?' }

Any idea why the question mark doesn't return the proper dictionary?

Some additional testing shows that other keys like / * - `+ .   also return the different dictionary.

Even stranger, the 'enter' key returns two 'proper' dictionaries.  One with the name 'enter' and the other with the name 'return'.

repo: chjj/blessed


text:
RFM - wfilecheck

I DON'T Want To Become The Maintainer

[x] I have followed the Package Triage Process and I do NOT want to become maintainer of the package;
[x] There is no existing open maintainer request for this package;

Checklist

[x] Issue title starts with 'RFM - '

Existing Package Details
Package URL: https://chocolatey.org/packages/wfilecheck
Package source URL: https://github.com/dtgm/chocolatey-packages/tree/master/automatic/wfilecheck/
Date the maintainer was contacted (in YYYY-MM-DD): 2021-12-13
How the maintainer was contacted: Email

I'll take this issue.
Already ready to be pushed.


text:
RFP - intellifile

Checklist

[X] The package I am requesting does not already exist on https://community.chocolatey.org/packages;
[X] There is no open issue for this package;
[x] The issue title starts with 'RFP - ';
[X] The download URL is public and not locked behind a paywall / login;

Package Details
Software project URL :  https://github.com/mihaimoga/IntelliFile
Direct download URL for the software / installer : https://github.com/mihaimoga/IntelliFile/releases/tag/v1.33
Software summary / short description: IntelliFile is an alternative Windows version to the famous Total Commander

Direct download URL for the software / installer: https://github.com/mihaimoga/IntelliFile/releases/download/v1.33/IntelliFileSetup.msi

You need to update the description above with that file name, not in a comment.

Package added
Install: https://community.chocolatey.org/packages/intellifile
Portable: https://community.chocolatey.org/packages/intellifile.portable

Package approved

authors: Aurocosh mstick99 pauby


text:
Error in propagation of Increasing and Decreasing global constraints when in negative context

The increasing and decreasing global constraints are not working properly when used in negative context, in implication and reification. A false value in the bv associated with it does not propagate a false value in the constraint.
I noticed that with the following constraint: increasing(x,y,z) -> p. The constraint is not satisfied in the resulting solution, with"increasing" being true while p being false.
I reduced it to just enforcing ~increasing(x,y,z) (reifying increasing(x,y,z) and then enforcing the bv to false), but it is still satisfied in the solution given.

Related to https://github.com/chocoteam/choco-solver/issues/1090

I think this is related to an error in choco-solver.
https://github.com/chocoteam/choco-solver/issues/1093

That should be fixed in the next release of choco-solver (java).

authors: Dimosts cprudhom

repo: chocoteam/pychoco


text:
Add gat pIC50 output

Fixes #257
Adds correct kwargs for schnet inference to be in right units.

Codecov Report

Merging #332 (b501964) into main (b61415d) will decrease coverage by 5.63%.
The diff coverage is 83.33%.

authors: codecov-commenter hmacdope

repo: choderalab/asapdiscovery


text:
Update training.py

add _add_tags method
Description
This adds additional tags to the wandb logger, including modelforge version and dataset/potential name as well as the properties present in the loss function.
Note: this should have been added with the last PR, but something seemed to have gone wrong during refactoring.
Status

[ ] Ready to go

Codecov Report
Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 83.48%. Comparing base (19a5c24) to head (cde505c).
Report is 36 commits behind head on main.

Additional details and impacted files

authors: codecov-commenter wiederm

repo: choderalab/modelforge


text:
Add support for FEPMapper-specified atom mappings / chemical transformations

We may want to allow the user to start with an FEPMapper-specified atom mapping for chemical transformations.

I propose we make this high priority for reproducibility and testing of different atom mappings.

We have the option to either - define the atom map a priori or use MCSS keywords to generate a whole bunch of atom maps so I think this is done/

authors: brycestx hannahbrucemacdonald jchodera

repo: choderalab/perses


text:
支持Google cloud 部署吗

支持Google cloud 部署吗 ？！ 同题！

@long0419  你指的是Compute Engine 还是 Kubernetes Engine

Kubernetes Engine  ， K8s 在Google Cloud 上是最能体现效率的 。 如果能支持一键安装 。 会好很多  ，昨天尝试了下 ， 很多问题 。

现有主流平台我大致选择了fabric8 和 你们平台 ， fabric8 中文支持不好  ， 但是你们这个感觉还不成熟 。

@long0419 有任何问题和建议都可以在我们的论坛上提 http://forum.choerodon.io/ ，我们会及时解决和反馈的 🤝

@long0419 非常感谢你的反馈，我们这边这几天测试了一下，现在还不能支撑AWS的 Kubernetes Engine，如你所说有很多的问题，我们已经记录下来，并在后续的版本中更新支持。

authors: ganshanshan long0419 vinkdong

repo: choerodon/choerodon


text:
Fixes wrong path for Roboto in the filesystem

Fonts are available under fonts/roboto/Roboto-*, whereas
SCSS references to them always as Roboto. Filesystem is
case-sensitive, therefore this patch makes SCSS use the
correct path to the file by lowercasing the variable used.
This is to resolve #41

As this one is a big problem for OpenStack Horizon project, would be very nice to have it merged and tagged as soon as verified as working. Thanks

Thx and sorry for the delay. Merged and released as @0.7.1

authors: choffmeister mkowalski

repo: choffmeister/roboto-fontface-bower


text:
how to check card type from decrypted details

hi
Actually , in my side encryption and decryption of card details or track1 and track2 details is correct.
but after decryption process i am unable to find out which card is swiped . So please give me the resolution for that how i am verify card type from decrypted track1 or track2 details.

This project only deals with the keying for the DUKPT algorithm. I can't comment on your implementation due to lack of knowledge of your product and code as a whole.

authors: Tusshark chokepoint

repo: chokepoint/DUKPT


text:
Apply a setting to remove the bottom spacing half from H4–H6 headings

Currently there is this setting: $apply-heading-margins in Core -> Base -> Headings but there should be another one e.g. $apply-smaller-margin-for-lowest-headings to remove the bottom spacing half: @extend %bottom-spacing-half; from the h4–h6 headings in case you want to use the base bottom spacing instead: @extend %bottom-spacing; because you cannot override this setting using @extend %bottom-spacing; in your project layer e.g.
@include headings(4, 6, true) {
  @extend %bottom-spacing;
}

Fixed in #169 PR.

repo: chris-pearce/scally


text:
Fix #32 - Allow icons in table mode to work

Allow configured icons to work in table mode.

Ah, I just saw this comment. I did follow the readme, I'll update and fix it then.
I tried setting table = { "VPN" = true } but that didn't work so I assumed it's not possible. I didn't know I shouldn't use quotes.


text:
[Bug]: Cannot bind to e.g. "w"

Bug Description
In vim I am using CamelCaseMotion and bind those to e.g. "w" when I want camelcase motion and leave w as it is by default. This also works with delete/change, so when my Cursor is at the start of "CamelCase" and I want to change it to "PascalCase" I can do "cwPascal" to do that. However when I try this in neovim either with CamelCaseMotion.vim or your plugin, when I type "c" it basically does the same thing as "s", it deletes the character I am on and puts me into insert mode right away.
Reproduction & Sample Text
before: CamelCase
----------^--------------
after: PascalamelCase
expected: PascalCase
neovim version
v0.10.0-dev

Special Settings
No response
Make sure you have done the following

[X] In case I have an issue with using the motions in operater-pending mode (cw, de, …), I read the notes on operator-pending mode in the README.
[X] I have updated to the latest version of the plugin.

However when I try this in neovim either with CamelCaseMotion.vim or your plugin, when I type "c" it basically does the same thing as "s", it deletes the character I am on and puts me into insert mode right away.

Well, that appears to be an issue with your nvim config? Sounds like you either have something mapped to c in your config, or some other plugin interfering. Either way, that does not appear to be related to this plugin.
I'd ask in a more general forum, e.g. the nvim subreddit or discourse about it, since this is only for issues related specifically caused by this plugin.

kk, will do

repo: chrisgrieser/nvim-spider


text:
side-by-side images in the restructuredtext by sphinx-python

I want to have two images side by side.
Would you please give me an example about what the text should be like in the restructured text and in the conf.py?

Heya, was there not enough information in the documentation?
its basically just
.. subfigure:: A|B

   .. image:: imageA.png

   .. image:: imageB.png

@chrisjsewell
Thanks a lot.
I did as you suggested, the images are rendered as follows:

But I would like to have the following layout:

So what should I do on the subfigure?

If you want the figures side-by-side, remove the | character from the layout. The pipe is used as a sort of line break.
.. subfigure:: AB

   .. image:: imageA.png

   .. image:: imageB.png

authors: Ailsa90 chrisjsewell comkieffer

repo: chrisjsewell/sphinx-subfigure


text:
Update xfce4-terminal templates

Updated templates to new themes format which replaces old terminalrc color schemes. (Issue #255)
Added light template.
Themes should be placed in ~/.local/share/xfce4/terminal/colorschemes/.

Merged in https://github.com/auduchinok/base16-builder along with other pull requests.
I'm going to maintain this project for some time, so this pull request can be closed.

authors: auduchinok lada-gagina


text:
The gleam can used in prod?

Hello chrislusf. The gleam can be used in prod? Is the current version stable？Thanks!

there could be bugs.

authors: chrislusf crichtan

repo: chrislusf/gleam


text:
Updated link

This page has moved.

Coverage remained the same at 47.772% when pulling 32f667508cbb5cb4cf277f1a1fc5c9e860e5fd68 on simonw:patch-1 into d670d7301be837faa2a72bd6471989eaf5c86f42 on chrismattmann:master.

thanks @simonw !

Test failure was just a Black formatting issue.

authors: chrismattmann coveralls simonw

repo: chrismattmann/tika-python


text:
TLD with hyphen in URL validation

The library doesn't validate an URL as such: http://web-test:3000/
AFAIK it's a well formed URI and web-test seems to be a well formed FQDN, checked it agains't some other validation libraries and it worked.
@edit:
Investigated further and I found that it specially ignores localhost from this validation. Is this correct? Some people use (sometimes not by choice), single component domains, like when using Docker.

The require_tld option is what you're after:
> validator.isURL('http://web-host:3000/');
false
> validator.isURL('http://web-host:3000/', {require_tld: false});
true

There's a few other options to control URL validation. From the README:

isURL(str [, options]) - check if the string is an URL. options is an object which defaults to { protocols: ['http','https','ftp'], require_tld: true, require_protocol: false, require_valid_protocol: true, allow_underscores: false, host_whitelist: false, host_blacklist: false, allow_trailing_dot: false, allow_protocol_relative_urls: false }

authors: chriso greenboxal


text:
RG353V Crashes when sleeping while the preview video is playing

Before submitting your issue or feature request.  DO NOT REQUEST ASSISTANTS FOR PRELOADED IMAGES.  I do not support or condone the use of preloaded ArkOS images.  Preloaded meaning images that come with copyrighted roms preincluded.  Look for support from the creator or supplier of those preloaded images, not from here!  If a ticket is submitted for assistance for such images or if there's an indiciation that a preloaded image is what the support request is for, the issue ticket will be closed with no further response.

This is not the Stock OS that comes with your device, AmberElec, JelOS, or UnOfficialOS.  ArkOS is a different distribution from those systems and will have differing features.  The only somewhat similarity is that they both use EmulationStation as a frontend.  Even with that, the versions of EmulationStation that's used in between ArkOS and these other distributions is different with different capabilities.  If there are features you prefer with the other available distributions, just use those distributions instead.  The choice is yours.

Have you reviewed the Frequently Asked Questions section available for your supported device in the wiki?

If your issue is related to being able to run certain emulators or ports, have you reviewed the Emulators and Ports section available at https://github.com/christianhaitian/arkos/wiki/ArkOS-Emulators-and-Ports-information for needed bios files and supported rom extensions?

Have you reviewed the known issues section available at https://github.com/christianhaitian/arkos/wiki/Known-issues ?

Describe the Issue (If applicable)
When pressing the power button during a preview video playing (when howering over a game) the sound keeps playing for a few seconds after the screen turns off. When you turn the screen on again one of two things happens. Either emustation restarts or you get back to the screen but the screen is frozen (with the audio glitching out). Only way to fix it is to press power button again and turn it back on again.
How can the issue be reproduced? (If applicable)
Power saver modes were disabled, using a high quality SD card, the same glitch is replicated on any theme I used (which displayed a preview video). The only way the glitch doesn't happen is if you turn off the screen while howering a game BEFORE it starts playing the preview video. This glitch only occurs when you go to sleep mode while the video is playing. It happens in deep sleep and light sleep mode.
What device are you using?
RG353vs
What version of ArkOS are you on?
09212023
Anything else you'd like to include that may help to review this issue or feature request?

It's not a crash, it's a workaround for a long standing issue for emulationstation in which when preview videos are running and you put the system to sleep, when you wake the device it hard locks.  Restarting emulationstation on wake works around the issue.

authors: MoTem christianhaitian

repo: christianhaitian/arkos


text:
Could not find proper libLLVM

repro:

install gem using branch llvm-3.6
clean install llvm via brew
properly handle paths:

export PATH=/usr/local/opt/llvm/bin:$PATH
export CPLUS_INCLUDE_PATH=$(llvm-config --includedir):$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=$(llvm-config --libdir):$LD_LIBRARY_PATH

make sure:

echo $LD_LIBRARY_PATH => /usr/local/Cellar/llvm/3.6.2/lib:

call RCGTK::CG::LLVM, gets:

LoadError: Could not open library 'LLVM-3.6': dlopen(LLVM-3.6, 5): image not found.
Could not open library 'libLLVM-3.6.dylib': dlopen(libLLVM-3.6.dylib, 5): image not found
	from /Users/nami/.rvm/gems/ruby-2.3.1@asm-ruby/gems/ffi-1.9.14/lib/ffi/library.rb:147:in `block in ffi_lib'

Now I'm now sure where's the problem

BTW, seems it's finding libLLVM-3.6.dylib, but there's only libLLVM.dylib in /usr/local/Cellar/llvm/3.6.2/lib/

I guess it's related with this: https://github.com/oracle/node-oracledb/issues/231

repo: chriswailes/RCGTK

license: NCSA


text:
[Bug]: chromadb-client: ModuleNotFoundError

What happened?
As e.g. https://docs.trychroma.com/guides#using-the-python-http-only-client suggests, after pip install chromadb-client I should be able to import chromadb to create a client.
But when I do that, I get errors that many modules are missing, e.g. httpx, starlette, tokenizers, ...
Not sure if I'm missing something obvious?
Versions
chromadb-client                          0.5.4.dev0
python 3.12 and FROM python:3.12.3-bookworm
archlinux and docker
Relevant log output
Traceback (most recent call last):
  File "/app/app.py", line 1, in <module>
    import chromadb
  File "/usr/local/lib/python3.12/site-packages/chromadb/__init__.py", line 5, in <module>
    from chromadb.api.async_client import AsyncClient as AsyncClientCreator
  File "/usr/local/lib/python3.12/site-packages/chromadb/api/async_client.py", line 1, in <module>
    import httpx
ModuleNotFoundError: No module named 'httpx'

@curious-broccoli, thanks for reporting this. We've recently switched from requests library to httpx and this change may not have been propagated to the http client (I'll check). As far as the other libs go, I'll test them and take appropriate action to remedy the situation. Do you need the async client if not I'd suggest you revert to an earlier version e.g. 0.5.0.

authors: curious-broccoli tazarov

repo: chroma-core/chroma


text:
[Install issue]: Authentication token not applied when using docker

What happened?
Trying to run ChromaDB on an EC2 instance using docker:
docker run -d -p 8000:8000 \
  -e CHROMA_SERVER_AUTH_CREDENTIALS_PROVIDER="chromadb.auth.token.TokenConfigServerAuthCredentialsProvider" \
  -e CHROMA_SERVER_AUTH_PROVIDER="chromadb.auth.token.TokenAuthServerProvider" \
  -e CHROMA_SERVER_AUTH_CREDENTIALS="mytoken" \
  -e CHROMA_AUTH_TOKEN_TRANSPORT_HEADER="X_CHROMA_TOKEN" \
  -v /home/ec2-user/chroma-storage/:/chroma/chroma/ chromadb/chroma

For some reason I can still access everything without providing a token.
Versions
Chroma v0.5.4
Relevant log output
docker logs b965fb1f2e95
Starting 'uvicorn chromadb.app:app' with args: --workers 1 --host 0.0.0.0 --port 8000 --proxy-headers --log-config chromadb/log_config.yml --timeout-keep-alive 30
INFO:     [17-07-2024 09:01:13] Set chroma_server_nofile to 65535
INFO:     [17-07-2024 09:01:13] Anonymized telemetry enabled. See                     https://docs.trychroma.com/telemetry for more information.
DEBUG:    [17-07-2024 09:01:13] Starting component System
DEBUG:    [17-07-2024 09:01:13] Starting component OpenTelemetryClient
DEBUG:    [17-07-2024 09:01:13] Starting component SqliteDB
DEBUG:    [17-07-2024 09:01:13] Starting component QuotaEnforcer
DEBUG:    [17-07-2024 09:01:13] Starting component Posthog
DEBUG:    [17-07-2024 09:01:13] Starting component LocalSegmentManager
DEBUG:    [17-07-2024 09:01:13] Starting component SegmentAPI
INFO:     [17-07-2024 09:01:13] Started server process [1]
INFO:     [17-07-2024 09:01:13] Waiting for application startup.
INFO:     [17-07-2024 09:01:13] Application startup complete.

I would expected something like this:
...
DEBUG:    [03-10-2023 12:18:12] Server Auth Provider: chromadb.auth.token.TokenAuthServerProvider
DEBUG:    [03-10-2023 12:18:12] Registering provider: basic
DEBUG:    [03-10-2023 12:18:12] Registering provider: basic
DEBUG:    [03-10-2023 12:18:12] Registering provider: htpasswd_file
DEBUG:    [03-10-2023 12:18:12] Registering provider: token_config
DEBUG:    [03-10-2023 12:18:12] Registering provider: token
DEBUG:    [03-10-2023 12:18:12] Registering provider: token
DEBUG:    [03-10-2023 12:18:12] Starting component TokenConfigServerAuthCredentialsProvider
DEBUG:    [03-10-2023 12:18:12] Starting component TokenAuthServerProvider
...

@chrislemke, we've refactored the auth so config vars have changed. Have a look here:

Official docs - https://docs.trychroma.com/deployment/auth#static-api-token-authentication
Cookbook - https://cookbook.chromadb.dev/security/auth/#__tabbed_2_2

Great! Thanks @tazarov! No idea how I could miss that! Thanks a lot!

authors: chrislemke tazarov


text:
evaluate quote problem

$evaluation = $page->evaluate(
'(() => {
element1.setAttribute("name", 'I need to have a quote " in here');
the ' quote is not working so I end up with:
element1.setAttribute("name", "I need to have a quote " in here");
But of course that doesn't work.
Any tips advice?

Hi @woodsbox
That's not working because the single quotes you are using in the javascript code are conflicting with the outter quotes you use in php.
FYI that's a general php question not related to the project and you could find your answer by googling: https://stackoverflow.com/a/7999163/1278479
No offense just saying because issues here should be dedicated to project related issues and you have a lot of places you can find good support for this kind of php related question and time we would spend here answering this kind of question is time that wont be used for the project itself

Hi @gsouf well I of course already tried:
element1.setAttribute("name", "I need to have a quote " in here");
That is also not working the output on the page will be:
<input name="I need to have a quote " in here"

element1.setAttribute("name", "I need to have a quote \\" in here");

Thats what I would expect but that doesn't work the evaluation is not executed in that case.

If you want to try this is the code:
$evaluation = $page->evaluate( '(() => {         var form = document.createElement("form");         document.body.appendChild(form);         form.method = "POST";         form.action = "index.php";         form.enctype = "text/plain";         var element1 = document.createElement("INPUT");         element1.setAttribute("name", "I need to have a quote \\\" in here");         form.appendChild(element1);         //form.submit();     })()'  );

When you have this javascript code: element1.setAttribute("name", "I need to have a quote \\\" in here");
If you translate it to a php string it becomes:
$js = 'element1.setAttribute("name", "I need to have a quote \\\\\\" in here");'

authors: gsouf woodsbox

repo: chrome-php/headless-chromium-php


text:
Delete consteval constructors

This is sad. But they break compilation.
They are a constructor so they should let you construct stuff with them.
struct S { consteval S(int); };
S(1);

This works fine cuz we're calling the constructor directly. But if there's any indirection in between, the constructor becomes unusable as you now have a reference, but still remains callable even though you're now in a runtime context. And this just produces a compiler error.
One consequence is that it's impossible to construct the above S from a function that takes a variable number of arguments. Varargs are implemented as templated types, and you can specified constructible_from<S, Ts> for each Ts but you receive a Ts&& and now when you call S::S() with that reference, the compiler generates an error.
See https://sunny.garden/@blinkygal/110557258312870357 for more sadness about this.
It was really nice to compile-time convert from (signed) 1 to u32 but it just breaks in completely surprising and difficult ways to understand for a user. Better to not work at all I think.

Avoid consteval in C++20.
Here's a more coherent explanation of the deficiencies of consteval in C++20. We'll look at it from the perspective of constructors, where it's more obvious, but the same applies to any function.
tl;dr consteval does not participate in overload resolution, consteval is not visible to SFINAE, and consteval. So it breaks templated code and your users will have to work around it.
Setup
Here's a type, it can be constructed in a constant expression from an int or a float. At runtime it can not be constructed from int. To show varargs, it also has a constructor from int, float.
struct S {
    // Compile-time or run-time.
    constexpr S(int, float) {}
    constexpr S(float) {}

    // Compile-time only.
    consteval S(int) {}
};

What works
We can construct S from an int literal, which is known at compile time. We can also construct it from a constexpr variable.
auto v1 = S(1);
constexpr auto c =1;
auto v2 = S(c);

We can receive S by value in a non-constexpr function and pass an int literal to construct the argument.
void take_s(S) {}

void f() {
    take_s(1);
}

What works in one compiler
We can construct S from a constexpr template function, in clang anyway. In MSVC this is a compiler error error C7595: 'S::S': call to immediate function is not a constant expression inside each of the make_s1 and make_s2 functions. In GCC this is compiler error error: 'i' is not a constant expression inside each function.
template <class T>
constexpr S make_s1(T i) { return S(i); }
template <class T>
constexpr S make_s2(T&& i) { return S(std::forward<T>(i)); }

void f() {
  auto v1 = make_s1(1);
  auto v2 = make_s2(1);
}

What does not work
If your constexpr function has a path that calls a non-constexpr function (in fact soon all paths can be non-constexpr and will be accepted), and you forward your template type, things break.
void take_s(S s) {}

template <class T>
constexpr void make_s1(T i) { if (i < 10) take_s(i); }
template <class T>
constexpr void make_s2(T&& i) { if (i < 10) take_s(std::forward<T>(i)); }

void f() {
  // error: call to immediate function 'make_s1<int>' is not a constant expression
  make_s1(1);
  // error: call to immediate function 'make_s2<int>' is not a constant expression
  make_s2(1);
}

In clang, at least the error is at the caller of make_s1 and make_s2, whereas in MSVC it ends up inside the body of those functions.
There's no way to ask if S is constructible in a runtime context. The type_traits library only answers about compile time (constant evaluation). So there's no way to interact with the caller in SFINAE and have them choose a different path. There is only compile error.
This gets much more obvious when you want to write generic code. Here's a class that's templated on T.
template <class T>
struct Holder {
  Holder(T u) { T{u}; }
};

This works because we're receiving T by value.
void f() {
    Holder<S>(1);
}

But we may want to receive parameters that are convertible_to the template type T without converting them yet, rather than receiving them by value. This is a pretty common idiom in C++ due to the lack of trivial relocation. Now this fails to compile, because the construction of S as moved into the Holder constructor.
template <class T>
struct Holder {
  template <std::convertible_to<T> U>
  Holder(U&& u) {
    // error: call to consteval function 'S::S' is not a constant expression
    T{std::forward<T>(u)};
  }
};

void f() {
    Holder<S>(1);
}

And again, there's no way for f() to determine that it can't construct Holder in this way. There's no way for Holder to provide a different constructor overload for runtime instead of compile time.
Thus my very modern and clever type S with its use of consteval can not integrate into any code that contains non-constexpr functions. And not because S isn't usable in a runtime context, but because the language is not expressive enough to expose the consteval requirement in a dynamic way, or to provide alternate paths. We could use std::is_constant_evaluated() to use a run-time constructor if we could tell that something is runtime-constructible but not compile-time-constructible.
Not that I am wishing for yet even more constructible type traits. The situation with constant evaluation in C++ is... complicated. I'd take procedural macros instead any day. I kind of just want consteval to be something you can overload on with non-constexpr (but not with constexpr), so that you can provide a compile-time path and a run-time path. But then I'd want to = delete the runtime one sometimes and there'd still be no way to see that in type_traits.
I am going to stop using consteval for now.

Here's the specific code that works without consteval:
TEST(Successors, Example) {
  auto powers_of_10 = sus::iter::Successors<u16>::with(
      sus::some(1_u16), [](const u16& n) { return n.checked_mul(10_u16); });
  sus::check(
      sus::move(powers_of_10).collect<Vec<u16>>() ==
      sus::Vec<u16>::with_values(1_u16, 10_u16, 100_u16, 1000_u16, 10000_u16));
}

And here's what I want it to look like, using consteval constructors to reject invalid values at compile time:
TEST(Successors, Example) {
  auto powers_of_10 = sus::iter::Successors<u16>::with(
      sus::some(1), [](const u16& n) { return n.checked_mul(10); });
  sus::check(
      sus::move(powers_of_10).collect<Vec<u16>>() ==
      sus::Vec<u16>::with_values(1, 10, 100, 1000, 10000));
}

Unfortunately some() holds an int&& and its constexpr operator Option<i16>() fails to compile constructing the i16 from the int&&.
And Vec<u16> takes variadic args Ts&&... which are convertible_to<u16> except they are not when the function runs and it fails to compile.

repo: chromium/subspace


text:
Turn off HHS warning banner for MyCarePlanner

Default to off.

Added an env variable name REACT_APP_HHS_BANNER in the .env file. Changing this value to true will enable the HHS warning banner on the app and changing it to false will disable the HHS warning banner.

just a quick comment on the HHS warning banner in version 2.2.0.  I set REACT_APP_HHS_BANNER="false" as an environment variable on the command line, but it appears that a value of false still means that the banner should show, as it's showing in that case:

also the progress bar is still displaying on top, as you can see in the screenshot.
Setting REACT_APP_HHS_BANNER="true" continues to disable the banner.
Not a blocker as we can still turn it off, I just wanted to bring this to your attention.  FYI

authors: kbertodatti mattStorer

repo: chronic-care/mcc-project


text:
Cursor in pre-filled negative amount field is confusing

Having the remaining amount needed to balance a transaction show up is a nice touch, but it's actually kind of confusing to us. The "grey" is so subtly different from the actual value color it isn't always apparent unless I squint what element is a preview value and what is actually filled in.
This makes it super confusing what is happening when you add a second transaction with a blank amount. Now it isn't really obvious that both are blank.
Also when taping into the field, the cursor is displayed in the center of the input which is in the center of the preview amount. That's really confusing, and I kept trying to move the cursor or select the text that was there.

The preview amount needs more visual distinction, maybe more color contrast or maybe some other treatment (e.g. not drawing the input field box?).
Focusing on the input field should completely remove the preview amount from the background. Since a new input line gets added anyway, the unbalanced/preview amount should probably move to the empty transaction not the one being currently edited. Then if the amount box isn't focused it can be moved to where the implied amount it would actually be applied.

Yeah, I've noticed that as well, especially in dark mode. I use the default Material You colors, but I guess they weren't necessarily meant for text. Moving the preview amount when the box is focused is a good idea.

authors: alerque chvp

repo: chvp/NanoLedger


text:
🛑 91家纺 is down

In 3b22644, 91家纺 (https://www.91jf.com/) was down:

HTTP code: 403
Response time: 1399 ms

Resolved: 找家纺网 is back up in 22fba9b after .

repo: chwang-team/status-hao


text:
🛑 Crossker is down

In 1df8c7f, Crossker (https://crossker.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 衣联 is back up in f195928 after .


text:
🛑 91家纺 is down

In 7ba75ea, 91家纺 (https://www.91jf.com/) was down:

HTTP code: 403
Response time: 1241 ms

Resolved: 找家纺网 is back up in 3e1364b after .


text:
Add plugins with ng2-ckeditor

Hi,
Is it possible to add some plugins to ng2-ckeditor like an image/file uploader ? Because is not possible with default ng2-ckeditor.
An example =>

Thanks !

Look at: https://github.com/chymz/ng2-ckeditor/issues/96
Add a button to toolbar and implement your own logic. It's not difficult.

[``]( @ #url)

authors: Romgua kzimny sakshiarora11


text:
Feature/async icon fingerprinting

This project uses semver, please check the scope of this pr:

[ ] #none# - documentation fixes and/or test additions
[ ] #patch# - backwards-compatible bug fix
[x] #minor# - adding functionality in a backwards-compatible manner
[ ] #major# - incompatible API change

CHANGELOG

Resolve icon assets async

Changes Unknown when pulling 2c2c09c6067e3d553d7f411658242fcc8507ccb7 on srowhani:feature/async-icon-fingerprinting into ** on ciena-frost:master**.

Changes Unknown when pulling 01647a5fb46caa370d74351dabec438a5adb8f10 on srowhani:feature/async-icon-fingerprinting into ** on ciena-frost:master**.

Changes Unknown when pulling 01647a5fb46caa370d74351dabec438a5adb8f10 on srowhani:feature/async-icon-fingerprinting into ** on ciena-frost:master**.

Approved - really nice improvement, well done!

Changes Unknown when pulling ba5440b37e970774d254e78a172e783ae603cbb3 on srowhani:feature/async-icon-fingerprinting into ** on ciena-frost:master**.

Changes Unknown when pulling ba5440b37e970774d254e78a172e783ae603cbb3 on srowhani:feature/async-icon-fingerprinting into ** on ciena-frost:master**.

authors: coveralls sglanzer srowhani

repo: ciena-frost/ember-frost-core


text:
Add location addresses data from Finland 🇫🇮

The PR:

Added location address data from Finland #144.
Added corresponding tests.

PR passed all the tests in my local.
Data is taken from faker-js.

Assertion failed: vector subscript out of range in Finland test

authors: cieslarmichal joshhn

repo: cieslarmichal/faker-cxx


text:
CLI: cilium encrypt command

We should provide a new Cilium subcommand, cilium encrypt status, flush to interact with IPSec's state in the kernel when it is enabled. cilium encrypt status would display information on the current status of the IPSec configuration while cilium encrypt flush would flush all XFRM state (ip xfrm state flush and ip xfrm policy flush).
See https://github.com/cilium/cilium/tree/master/cilium/cmd for the code of existing subcommands (the filenames match the commands).

As a first take cilium status could report any errors found in the xfrm MIB counters. Also reporting keyIDs in use would be useful something like,
cilium encrypt status
  Keys: 1/1
  Packets: 5555 rcvd / 6666 sent
  Errors: None

As a first take cilium status could report any errors found in the xfrm MIB counters. Also reporting keyIDs in use would be useful something like,
cilium encrypt status
  Keys: 1/1
  Packets: 5555 rcvd / 6666 sent
  Errors: None

@pchaigno Could you assign it to me please?

@pchaigno Could you assign it to me please?

One more request, report the IP selected for local ipsec address: https://github.com/cilium/cilium/pull/15048/files/653cd5bddf3f3cee7e4dddd80010ff1d495dce04..11fab3cf008399c1b2da3f0057b7fc0680db6ed3#diff-14a5efc51ce7ea3959385022d4800b355c766c60e8b7ba0e6052afced05ddbf0

@elfadel I've unassigned you. Please comment here if you're still working on this.

@pchaigno can you help me on how to query IPSec configurations, Also I am thinking to take up this issue in extension to my gsoc proposal as it revolves mostly around improvements in cli.

Also I am thinking to take up this issue in extension to my gsoc proposal as it revolves mostly around improvements in cli.

I would advise against that unless it's clear that the original project idea will take less than 175 hours. It's better to have a strong proposal with a small scope than lacking the time to prepare a proposal with a large scope.

A little help on how to get the above information ? or do I need to extract the required data from dump of ip -s xfrm state

The netlink library we use, vishvananda/netlink, should already provide that information. Please check https://pkg.go.dev/github.com/vishvananda/netlink.

Hi @pchaigno. I just realized but I think that these are doable under 175hours but I will reconsider. For now, I just added references to this issue in my draft proposal. Can you provide some reviews on my draft proposal? Thank you.

Hi @pchaigno, Could you assign it to me, pls?

We had a call with @h3llix who is looking into this issue as part of his GSoC project. The first version for this CLI will include status and flush subcommands, with a slightly simplified status subcommand compared to above. It will only display information pertaining to IPsec in its first version.
cilium encrypt status
  Encryption: ipsec
  NodeEncryption: disabled
  Keys in use: 2
  Max. sequence number: 0xffffbd4f/0xffffffff
  Errors: 12
    XfrmInStateProtoError 12

Notes:

The NodeEncryption status can be skipped for now if we can't retrieve it through the API. Once https://github.com/cilium/cilium/issues/13913 is addressed, we can add it easily.
Keys in Use would give the number of IPsec keys currently in use on the host. That is, the number of different keys in ip xfrm state. It should be >1 only during key rotations.
Max. sequence number would give the maximum anti-replay output sequence number on the node. That is, the number for oseq in ip xfrm state. Key rotation resets that number. It should happen well before that number reaches its max. value or all traffic will be dropped for the corresponding node-to-node connection.
Errors would count the total number of errors in /proc/net/xfrm_stat and display the breakdown if any are non-zero. We may need to rework this field later on since what really matters is whether counters are increasing. A static total count is probably good enough for a first version though.

It will only display information pertaining to IPsec in its first version.

This makes sense to me. For future reference, if we ever want to add support for Wireguard as well, the plumbing done for the WireGuard section in cilium debuginfo could easily be reused for cilium encrypt status:
https://github.com/cilium/cilium/blob/a12f4e4ba457df43495348c7baf2fdb57ce4ae93/pkg/wireguard/agent/agent.go#L466-L469

@pchaigno I need help with testing the PR. For development I added xfrm states on my local machine but I was unable able to test it with cilium.

@h3llix Let's discuss it on Slack; it will be easier to troubleshoot. Can you open a thread with the specific issues you hit?

authors: elfadel gandro h3llix joestringer jrfastab pchaigno trvll

repo: cilium/cilium