text:
undefined symbol: crc32

After installing the Hermann gem on a clean Ubuntu LTS box, I get the following error when using Hermann from a simple producer test:
ruby: symbol lookup error: /home/HOME/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/hermann-0.24.1.dev/ext/hermann/hermann_lib.so: undefined symbol: crc32

Upon inspecting the hermann_lib.so file, I see no references to zlib (which should contain the crc32 symbol):
$ ldd /home/HOME/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/hermann-0.24.1.0/ext/hermann/hermann_lib.so
        linux-vdso.so.1 =>  (0x00007ffe71775000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd7bb514000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd7bb14f000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd7bb96f000)

The only references to crc32 in this project are in the source code of librdkafka, which correctly includes zlib as a dependency:
$ ldd /home/HOME/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/hermann-0.24.1.0/ext/hermann/tmp/x86_64-linux-gnu/ports/librdkafka/0.8.6/librdkafka-0.8.6/src/librdkafka.so.1
        linux-vdso.so.1 =>  (0x00007fff3f353000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f01fb45a000)
        libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f01fb240000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f01fb037000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f01fac72000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f01fb8b2000)

I cannot replicate this problem on a my development Mac. Can someone help me pinpointing where the missing reference to crc32 may originate? Am I missing a dependency? Or did something go wrong in my build process (nothing seems to be wrong)?

@aliekens do you have a full stacktrace? I don't think I've ever seen that before; 100% of my development is on Linux so I'm somewhat surprised that you're seeing an error.
One interesting thing that I do see is that zlib is coming from /usr/local/lib instead of /usr/lib64 which is where I would expect it to be.

Bumping this thread, another question which migh tbe useful to answer is if LTS means 14.04 in this case?

Try:
export LD_PRELOAD=/usr/lib64/libz.so
before run the ruby process.

authors: aliekens evanchaoli rtyler

repo: lookout/hermann


text:
leafy-runtime-metrics should support instrumenting the JRuby and Rack runtimes

I'd like to be able to provide visibility "by default" into the performance and runtime characteristics of the JRuby runtime tiself.
A couple of top-level metrics which would be useful, but I'm not certain how attainable they are at run time. The metrics of type historgram we should probably report on a minute (60s) basis:
JRuby runtime

(gauge) objects allocated
If it were possible to provide some type-based metrics, that would also be very useful. In essence, a gauge which reports the number of Ruby strings currently allocated, the number of Symbols, Arrays, Hashes and misc. Objects that have been allocated
(gauge) threads executing
(gauge) threads sleeping
(timer) time spend garbage collecting
(gauge) garbage collection

Rack runtime

(gauge) errored requests (5xx status codes)
(gauge) successful request (non 5xx)

I'm not sure if this list is comprehensive or possible, but let's start figuring it out.

Not exactly sure how far we want to go here but I would suggest the following:

breakdown connections by X00, so buckets for 200, 300, 400 and 500 (5XX is good but a significant spike in 404s is usually a problem too)
if possible the GC time as incremental vs non incremental, or a count of 'stop the world' (STW) gcs would be helpful
memory usage by type (eden, perm, tenure?)

Those have all helped me a great deal before.

the intrumented middleware https://github.com/lookout/leafy/tree/master/leafy-rack#instrumented-middleware has bucket for a given list of response codes +  a counter of active request and response timer.
maybe it is worth "extending" the underlying class to allow response status range to bucket and add an alternative having the X00 buckets

first I would like to reuse: https://github.com/dropwizard/metrics/tree/master/metrics-jvm/src/main/java/com/codahale/metrics/jvm
a quick look into the code shows that it covers quite a bit of what is requested here: memory, GC, java-threads
JRuby also has some MBeans:
https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/management/MethodCacheMBean.java
https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/management/ConfigMBean.java
https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/management/ParserStatsMBean.java
https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/management/RuntimeMBean.java
to put those data into some guages and counter looks straight forward.
for jruby object allocation: making this Interfacehttps://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/Ruby.java#L5079  public would allow to replace the ObjectSpacer with one which produces JMX data on object allocation. not sure about the performance impact of doing so.
for ruby threads is part of the jruby runtime - ruby threads are either java Threads or Futures. java.

https response instrumentation using 2xx, 3xx, etc buckets:
https://github.com/lookout/leafy/pull/38
ruby threads gauges: https://github.com/lookout/leafy/pull/40
jvm metrics from dropwizards: https://github.com/lookout/leafy/pull/39
please comment on metrics itself and how they are registered (see the spec in #40)

source: gharchive/issue

authors: mkristian polynomial rtyler

repo: lookout/leafy

license: mit

license_type: permissive

license_source: bigquery


text:
Consider multi-threaded testnet

Running the whole testnet within a single OS process will expose race conditions to the Rust compiler. Is it doable?

Yes, but this is a bit different than a testnet. This is how the historian tests work. They're fast and deterministic. Feels quite a bit more valuable than a traditional testnet.

repo: loomprotocol/silk

license_source: github-api


text:
Grunt plugin?

Great tool, thanks :+1:
Are there any grunt plugins for this?

Nope, not yet. :)
Shouldn't take long to put one together... Feel free to go ahead if you need it quickly. :bowtie:

Yes, it's pretty easy. I've created it here, would you mind if I publish it to npm, or you will create one yourself later?
There's already a package grunt-electron-builder but it's totally different and it doesn't work for me at all.

Yes, it's pretty easy. I've created it here, would you mind if I publish it to npm, or you will create one yourself later?

No sure - go ahead. If you want to maintain it in future it sounds awesome to me.

There's already a package grunt-electron-builder but it's totally different and it doesn't work for me at all.

Maybe we want to quickly chat with the person? This looks like a horrible name collision here. And maybe we can work around that somehow without having kind of same samed packages on npm.
What would be you preferred name btw?
Thanks. :)

When I've found that grunt-electron-builder, I thought, it was for your project. That would be the best name for it. But I'm not sure about their plans. That project has 0 stars, 0 forks and was last updated 3 months ago, the author might have lost interest in it. I think yes, it's better to write them and ask to rename it.

When I've found that grunt-electron-builder, I thought, it was for your project. That would be the best name for it. But I'm not sure about their plans. That project has 0 stars, 0 forks and was last updated 3 months ago, the author might have lost interest in it. I think yes, it's better to write them and ask to rename it.

Jap, exactly... :) Let's check that first. Thanks for jumping in.

@antelle
any news here. I'm closing this one for now - but feel free to reopen. :)

Hey @stefanjudis, JFI, since there is no response from the author of grunt-electron-builder, I've published grunt-electron-builder-wrapper

You waited 18h? That's not that long. ;)
Ja but sure - go ahead. If you want to add grunt-electron-builder-wrapper to the readme here please feel free to add via PR.
I can also have a look it at it if you wish - when it's up and running. :)

Yep, but i haven't time to wait, so published it with another name.  Thanks for you quick response and possible help, i really appreciate it.

Yep, but i haven't time to wait, so published it with another name.

Just to keep quality of npm packages high in the future. You're aware of the fact the you can install any git repo with npm?
Usually there is no need of publishing anything that is not ready yet ( e.g. your package is lacking a readme ) ;)
But anyways - sure. Wif you have troubles let me know. :)

So now we have two unsupported grunt plugins?  😞
This issue is still open since Feb.19 https://github.com/havenchyk/grunt-electron-builder-wrapper/issues/6

I'll take a look, @antelle thanks for pushing

@havenchyk  thank you!
You should just remove .init() and replace callback with a promise.

authors: antelle havenchyk stefanjudis

repo: loopline-systems/electron-builder


text:
Hyprshade install config no found ?

How can i fix this, when i exec hyprshade install and its show me error : Config File not found.

Os : Endeavor OS
Kernel : 6.6.7-arch1-1

hyprshade install requires a config file; see https://github.com/loqusion/hyprshade#scheduling.

authors: Sytxx loqusion

repo: loqusion/hyprshade

license: MIT


text:
Add normalize vector

@ajpmaclean : Please review.

Thanks

source: gharchive/pull-request

repo: lorensen/VTKExamples


text:
Groups names are not much meaningful

Describe the solution you'd like
Right now, groups are by default named "default", unless they are named groups. This is not so much meaningful. It would be better if groups were named something like "Group x" with a progressive x starting from 1.

After experimenting a bit with the library, it turn out that starting the group names at 1 may not be the best solution. Starting at 0 would be better, so you have a way to distinguish between a "real" group (opened with the parenthesis) and the whole regular expression, which is also represented as a group, and should then be recognizable.
This way, you could have the "real" groups starting from 1 and not from 2.

repo: lorenzofelletti/pyregex


text:
🛑 services is down

In cdf8e4d, services (https://services.k8s.it/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: services is back up in 9f504c0.

repo: lorenzogirardi/status


text:
Problem with multiple EF data contexts

I am using EF 4.3.1 with EF.Extended 1.0.0.43. In my project I have two distinct EF data contexts.
dataContextA has Person and Animal { id, name}
dataContextB has Food
When I am trying to do
dataContextA.Animals.Update(x=>x.Id = 1, new Animal { name = "kitty" };
I get an error saying "Could not find the conceptual model type for Food". Here's the stack trace:
{System.ArgumentException: Could not find the conceptual model type for 'food'.
at System.Data.Metadata.Edm.MetadataWorkspace.GetEdmSpaceType(StructuralType objectSpaceType)
at EntityFramework.Mapping.MappingResolver.CreateEntitySetMappings(MetadataWorkspace metadataWorkspace)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at EntityFramework.Mapping.MappingResolver.GetEntitySet[TEntity](ObjectContext objectContext)
at EntityFramework.Mapping.ReflectionMappingProvider.CreateEntityMap[TEntity](ObjectQuery query)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at EntityFramework.Mapping.MappingResolver.GetEntityMap[TEntity](ObjectQuery query)
at EntityFramework.Extensions.BatchExtensions.Update[TEntity](ObjectSet1 source, IQueryable1 query, Expression`1 updateExpression)

No updates?

authors: mr-kawaii tomerpeled


text:
Need to add slide specific text content to image in slider

Can anyone help find me a simple fix for adding unique text per slide in lory js? My sliders only have images but I would like to add some text specific to each image in the slider found here: https://studiesinsilver.com/historical/mckellen-infallible-camera.html
Thanks for the help

@nstanard can you help me out? Happy to pay for 1:1 if you can find a quick fix for me... Let me know

@njrfoto You have a slight issue with your site right now - unrelated to what you are asking me:

To help you with your question:

You're currently using  tags as your "slide" items. You need to nest those images in HTML containers ( like a ) and then put your text positioned on top of your image using css.

This is a website I built a few years back: https://www.lovelyskin.com/skin-specialists-omaha/acne

Notice how I used   and  HTML elements to render "slides" that have images and text.

I'm going to close this now since it's a support issue. Feel free to open a stack overflow question though.

authors: njrfoto nstanard

repo: loryjs/lory


text:
List items may not be preceded by more than three spaces of indentation

See https://spec.commonmark.org/0.30/#example-312

The corresponding unit test is testfiles/CommonMark_0.30/lists/012.test:
%   ---RESULT--- "example": 312,
%
%

%
a

%
b

%
c

%
d
%   - e

%

%
%   ---\RESULT---

<<<
- _a_
 - _b_
  - _c_
   - _d_
    - _e_
>>>
documentBegin
ulBeginTight
ulItem
emphasis: a
ulItemEnd
ulItem
emphasis: b
ulItemEnd
ulItem
emphasis: c
ulItemEnd
ulItem
emphasis: d
emphasis: e
ulItemEnd
ulEndTight
documentEnd

Here is the result of running git checkout commonmark; cd tests; ./test.sh "testfiles/CommonMark_0.30/lists/012.test":
Testfile testfiles/CommonMark_0.30/lists/012.test
  Format templates/plain/
    Template templates/plain/input.tex.m4
      Command pdftex   --shell-escape                  --interaction=nonstopmode  test.tex
*** test-expected.log	2022-12-22 11:47:38.309695169 +0100
--- test-actual.log	2022-12-22 11:47:44.619639547 +0100
***************
*** 11,17 ****
--- 11,22 ----
  ulItemEnd
  ulItem
  emphasis: d
+ interblockSeparator
+ ulBeginTight
+ ulItem
  emphasis: e
  ulItemEnd
  ulEndTight
+ ulItemEnd
+ ulEndTight
  documentEnd

The issue seems related to the PEG patterns for parsing lists, which handle indents in lists using the rules for Gruber's Markdown rather than CommonMark.

authors: Witiko lostenderman

repo: lostenderman/markdown


text:
What can I do with body options?

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
hi, cool tool.
do you have an example for the body options somewhere?
What can I do with it ?
Can I get return values there e.g. from a healthcheck ?
Thanks for your answer and a happy new year
🐻 Uptime-Kuma Version
Version: 1.11.1
💻 Operating System and Arch
Ubuntu
🌐 Browser
Edge Version 95.0.1020.53 (Offizielles Build) (64-Bit)
🐋 Docker Version
Kubernetes Runtme
🟩 NodeJS Version
No response

Body options are for sending additional data with the request, which may be required for some tests, particularly APIs. For example if you were using an RPC based API, you might need to set a body request, that describes the method being queried.
There is keyword matching functionality under the "HTTP(s) - Keyword" test, that allows you to search for a specific word or phrase from a response. For example a JSON like the example below:
{
    "result": "success"
}```

You could have a keyword of "success" for the test to match, this would be addition to setting the "accepted status codes" option as 200-299.

@jamesmacwhite when testing HTTP(s) - Keyword match with a POST request I have the following post BODY options setup.  This isn't an API call, just a regular POST request.
{     "name": "test",     "email": "test@test.com",     "attention": "Technical",     "message": "test" }
The curl command works fine.  This doesn't though, not really sure why.  Any ideas?

What is the HTTP response and the value you used in the keyword field?

Actually it looks like the POST requests is sent over as json instead of as an actual post request.
{"name":"test","email":"test@test.com","attention":"Technical","message":"test","g-recaptcha-response":"test"}
Compared to:
name=test&email=test%40test.com&attention=Technical&message=test&g-recaptcha-response=test

Can this be closed?

repo: louislam/uptime-kuma


text:
SQLITE_IOERR: disk I/O error on update to 1.23.4

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

Description
Hello
I'v upgrade uptime-kuma 1.23.3 to 1.23.4 and when my pod starting I have this errors logs
👟 Reproduction steps
Upgrade 1.23.3 to 1.23.4
👀 Expected behavior
Uptime-kuma starting
😓 Actual Behavior
Uptime-kuma won't start
🐻 Uptime-Kuma Version
1.23.4
💻 Operating System and Arch
unknown
🌐 Browser
Google Chrome Version 119.0.6045.123 (Build officiel) (64 bits)
🐋 Docker Version
No response
🟩 NodeJS Version
No response
📝 Relevant log output
==> Performing startup jobs and maintenance tasks
==> Starting application with user 0 group 0
Welcome to Uptime Kuma
Your Node.js version: 18.18.2
2023-11-16T09:34:03Z [SERVER] INFO: Welcome to Uptime Kuma
2023-11-16T09:34:03Z [SERVER] INFO: Node Env: production
2023-11-16T09:34:03Z [SERVER] INFO: Inside Container: true
2023-11-16T09:34:03Z [SERVER] INFO: Importing Node libraries
2023-11-16T09:34:03Z [SERVER] INFO: Importing 3rd-party libraries
2023-11-16T09:34:06Z [SERVER] INFO: Creating express and socket.io instance
2023-11-16T09:34:06Z [SERVER] INFO: Server Type: HTTP
2023-11-16T09:34:06Z [SERVER] INFO: Importing this project modules
2023-11-16T09:34:06Z [NOTIFICATION] INFO: Prepare Notification Providers
2023-11-16T09:34:06Z [SERVER] INFO: Version: 1.23.4
2023-11-16T09:34:06Z [DB] INFO: Data Dir: ./data/
2023-11-16T09:34:06Z [SERVER] INFO: Connecting to the Database
2023-11-16T09:34:07Z [DB] INFO: SQLite config:
[ { journal_mode: 'wal' } ]
[ { cache_size: -12000 } ]
2023-11-16T09:34:07Z [DB] INFO: SQLite Version: 3.41.1
2023-11-16T09:34:07Z [SERVER] INFO: Connected
2023-11-16T09:34:07Z [DB] INFO: Your database version: 10
2023-11-16T09:34:07Z [DB] INFO: Latest database version: 10
2023-11-16T09:34:07Z [DB] INFO: Database patch not needed
2023-11-16T09:34:07Z [DB] INFO: Database Patch 2.0 Process
2023-11-16T09:34:07Z [DB] INFO: patch-fix-kafka-producer-booleans.sql is not patched
2023-11-16T09:34:07Z [DB] INFO: patch-fix-kafka-producer-booleans.sql is patching
2023-11-16T09:34:07Z [DB] INFO: Closing the database
2023-11-16T09:34:09Z [DB] INFO: SQLite closed
[Error: UPDATE monitor SET kafka_producer_allow_auto_topic_creation = monitor.kafka_producer_allow_auto_topic_creation_old
    WHERE monitor.kafka_producer_allow_auto_topic_creation_old IS NOT NULL - SQLITE_IOERR: disk I/O error] {
  errno: 10,
  code: 'SQLITE_IOERR'
}
2023-11-16T09:34:09Z [DB] ERROR: Start Uptime-Kuma failed due to issue patching the database
2023-11-16T09:34:09Z [DB] ERROR: Please submit the bug report if you still encounter the problem after restart: https://github.com/louislam/uptime-kuma/issues

Please keep using 1.23.3 first, I think the migration script is still having some issue.

1.23.5 should be fixed this issue.


text:
Generate Database without launching the server

⚠ Please verify that this question has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Is there a way to generate the database/migrations without launching the server? I'm hoping to follow this flow:

Generate Database
Due custom stuff to database
Launch server

I'm not as used to javascript as I am other languages like python so I'm running into some difficulty figuring out how to just create the database. Any help would be appreciated!
📝 Error Message(s) or Log
No response
🐻 Uptime-Kuma Version
1.23.13
💻 Operating System and Arch
Docker
🌐 Browser
Firefox
🖥 Deployment Environment

Runtime:
Database:
Filesystem used to store the database on:
number of monitors:

I think this is an XY-Problem.
=> What are you trying to do in the first place?
Reaching into the database is the most brittle way to configure us that I can think of.
You are inherently making yourself tied to a minor version and cannot expect us to respect semver for internal behaviour (such as db layout).

[!TIP]
In case you are looking for an API, please have a look at BigBoot/AutoKuma (cli or docker automation) or uptime-kuma-api
An official REST-API is coming, but is a few releases off still. See #118 for further details

The why is simple: I want to be able to bootstrap a bunch of images at once without having to manually configure them. I'm okay with tying myself to a minor version for the initial launch.

Here's a simple use case. I would like to set the username and password for the inital admin user programmatically. The "npm run reset-password" script only works if the database is already configured.

Create Database
Set password using built in script
Continue launching server

This use case requires no direct database changes or access, and simply uses the scripts provided to ensure the first admin users are created before opening connections up to anyone.

you can generate the intial databas via
export DOCKER_ID=`docker run --rm -d -v ./uptime-kuma:/app/data louislam/uptime-kuma:1 | tail -1`
sleep 60 # higher than nessesary, can be tuned
docker stop $DOCKER_ID

authors: CommanderStorm tedivm


text:
Reading HiGHS solution from stdout to fix #5

As detailled in the issue, it seems providing an FS API stream (/dev/stderr or /dev/stdout) or even a real file to the HiGHS method whichs writes the solution ultimately leads to an error in the FS API (error number 33, too many file descriptors used).
The workaround implemented here is to not provide any stream or file to HiGHS, in which case it outputs the results directly to stdout.
While the expected behaviour should be the same than if the FS API stream /dev/stdout was provided, it is not: there are no errors related to the FS API anymore.
--
With this change, the issue reported disappears, and even 10 000 consecutive executions of high.solve() are fine.
Fixes #5

I'm publishing this as v0.3.0 on npm https://www.npmjs.com/package/highs

repo: lovasoa/highs-js


text:
ld: library not found for -lcrypto

https://github.com/lovebing/react-native-baidu-map/issues/290#issue-510776630

ios： ld: library not found for -lcrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"react": "16.9.0",
"react-native": "0.61.1",
"react-native-baidu-map": "^1.0.19",

一样的问题

把spec里相应的依赖删了看看

把spec里相应的依赖删了看看

无效

wo我把这里的相关依赖删除了只保留了它

或许还要引入这写依赖包

我也是遇到了
怎么解决啊，试了好多方法了

我是重新npm install he pod install 后就不报错了

已解决，解决方案: 在图片位置，添加"${PODS_ROOT}/BaiduMapKit/BaiduMapKit/thirdlibs"

@lenglengiOS 感谢，解决问题了

authors: 349989153 boonook droidsde lenglengiOS lovebing musesfish quietautumn yqyily

repo: lovebing/react-native-baidu-map


text:
unable to install sharp to latest node:12 docker container

I'm having problems installing sharp in a clean node:12 container.
docker run --rm -it node:12 npm i sharp

> sharp@0.23.0 install /node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
prebuild-install WARN install libvips-cpp.so.42: cannot open shared object file: No such file or directory
make: Entering directory '/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
../src/common.cc:25:22: fatal error: vips/vips8: No such file or directory
 #include <vips/vips8>
                      ^
compilation terminated.
sharp.target.mk:135: recipe for target 'Release/obj.target/sharp/src/common.o' failed
make: *** [Release/obj.target/sharp/src/common.o] Error 1
make: Leaving directory '/node_modules/sharp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:209:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 5.0.0-29-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/sharp
gyp ERR! node -v v12.10.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.23.0 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.23.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-23T18_08_09_973Z-debug.log

The issue is quite unfamiliar to me and i havent find the cause yet. Im posting early hoping somebody can point me in the right direction.

I'm getting this issue too when trying to push to heroku.

I'm getting the same issue.

Also seeing this attempting to install sharp@0.22.1 in a Google Cloud Function running Node 8:
info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
prebuild-install
WARN install libvips-cpp.so.42: cannot open shared object file: No such file or directory
../src/common.cc:25:10: fatal error: vips/vips8: No such file or directory
 #include <vips/vips8>
^~~~~~~~~~~~
compilation terminated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.15.0-1044-gcp
gyp ERR! command \"/usr/bin/node\" \"/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /workspace/node_modules/sharp
gyp ERR! node -v v8.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.22.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sharp@0.22.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

We've been running on this specific version of Sharp / Node / GCF for awhile now without any issues, it just began today.

Guys, please review the documentation and use a libvips compatible container: https://github.com/TailorBrands/docker-libvips

Get the same issue without installing it on docker

I have same issue, without docker.

for Ubuntu users: apt install libvips-dev fixes the issue for us.

There have been no changes to sharp or the prebuilt binaries since 29th July.
I've received about 30 emails and notifications about this problem within the last hour so would expect this to relate to a (transient) dependency that has been published within the last couple of hours.

Why would you close this without at least attempting to provide some guidance? You can see there's MANY people having this issue.

Whatever is causing this problem, it looks like it's affecting pretty much every native node module that provides prebuilt binaries
https://github.com/mapbox/node-pre-gyp/issues/477
https://github.com/mapbox/node-sqlite3/issues/1222
@imkane This issue is not closed, I am actively working on investigating it right now.

Sorry, my mistake! I misread the referenced issue statues. Good luck!

Is there any way to work around this for now?

So far I've tried installing libvips-dev (https://github.com/lovell/sharp/issues/1882#issuecomment-534241405) and glib2.0-dev (https://github.com/lovell/sharp/issues/1148#issuecomment-370688930).
FROM node:10
...
RUN apt-get update && apt-get install -y glib2.0-dev libvips-dev
...
RUN npm --build-from-source install

and the result is still:
> sharp@0.21.3 install /usr/src/app/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.0/libvips-8.7.0-linux-x64.tar.gz
make: Entering directory '/usr/src/app/node_modules/sharp/build'
  TOUCH Release/obj.target/libvips-cpp.stamp
  CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../src/common.cc:25:0:
/usr/include/vips/vips8:35:25: fatal error: glib-object.h: No such file or directory
 #include <glib-object.h>
                         ^
compilation terminated.
make: *** [Release/obj.target/sharp/src/common.o] Error 1
sharp.target.mk:128: recipe for target 'Release/obj.target/sharp/src/common.o' failed
make: Leaving directory '/usr/src/app/node_modules/sharp/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.19.43-microsoft-standard
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/src/app/node_modules/sharp
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

This one did help so far:
...
RUN apt-get update && apt-get install -y libvips-dev --no-install-recommends
...

Just ran:
apt-get update && apt-get install -y libvips-dev --no-install-recommends

and then
npm install sharp

Still got the same error.

This one did help so far:
...
RUN apt-get update && apt-get install -y libvips-dev --no-install-recommends
...

Not for us :(

Strange. libvips-dev on Docker with Node 12.10.0 image fixed it up for me.

My current line of inquiry is that this relates to a recent change in one of the dependencies used to unpack tar files. For example, the minipass dependency, which is a dependency of tar was published an hour ago.

Out of desparation I tried Yarn and I'm surprised to report that it works for me.
I installed on Debian Buster from these instructions and when I ran yarn it installed all of my modules without any problems. For what it's worth, I can confirm these things don't work (for me):

changing Node version (node 10 and 12 both broken)
using npm install --sharp-cxx11=1
installing libvips, libvips-dev, or removing both
turning it off and back on again

Of course, using Yarn is just a temporary workaround, but it might help if you're in a pinch.
@lovell Thanks so much for your work on this module!

Yes it worked on Docker with Node 12.10.0 image with libvips-dev.

It looks like commit https://github.com/isaacs/minipass/commit/40e1d612d3d58e415362b1ebb97df8b69da5374f has collided with https://github.com/mafintosh/end-of-stream/issues/11
Pinning minipass to v2.7.0 should workaround this for now.

Follow up on this issue here:
https://github.com/isaacs/minipass/issues/9

I have same issue, but with NPM. How can i fix this?

same issue on mac os mojave

I have fixed our CI build by adding following to the package.json:
"dependencies": {
  "minipass": "2.7.0",
  "sharp": "^0.23.0"
}

It's silly because our app does not depend on minipass.

On Mac OS Mojave I removed .npm/_libvips/libvips-8.7.0-darwin-x64.tar.gz and reinstalled. No luck.

I have fixed our CI build by adding following to the package.json:
"dependencies": {
  "minipass": "2.7.0",
  "sharp": "^0.23.0"
}

It's silly because our app does not depend on minipass.

This also worked for me.

https://github.com/lovell/sharp/issues/1882#issuecomment-534266128 <-- this worked for me! Thanks so much, @lovell 🙏

I have the same problem, it was because my network I couldn't download libvips-8.8.1-win32-x64.tar.gz success, So I have to manual download it and put it on %appdata%/npm-cache/_libvips.

I'm using lerna with npm. For those who are using npm and not yarn.
Add minipass as a dependency or dev-dependency depending on where your issues lie.
"dependencies": {
  "minipass": "2.7.0",
}

For me this affects:

angular-cli/angular-compiler
grpc
sharp
lerna (@lerna/add)

I tried using this in my package.json with webpack, but the problem persists

"dependencies": {
"minipass": "2.7.0",
"sharp": "^0.23.0"
}

Adding
  "resolutions": {
    "minipass": "2.7.0"
  }

as @lovell suggested worked for me!

Adding
  "resolutions": {
    "minipass": "2.7.0"
  }

as @lovell suggested worked for me!

This works, but the same error when I install expo-cli, and I could not apply this patch.

I have fixed our CI build by adding following to the package.json:
"dependencies": {
  "minipass": "2.7.0",
  "sharp": "^0.23.0"
}

It's silly because our app does not depend on minipass.

This also fixed the installation problem for us

@lovell minipass does not work in my webpack project, I am using favicons which depends on Sharp.

This is what the console prints, i using Heroku
-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NODE_ENV=production
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false

-----> Installing binaries
       engines.node (package.json):  10.x
       engines.npm (package.json):   unspecified (use default)

       Resolving node version 10.x...
       Downloading and installing node 10.16.3...
       Using default npm version: 6.9.0

-----> Restoring cache
       - node_modules

-----> Installing dependencies
       Installing node modules (package.json)

       > sharp@0.22.1 install /tmp/build_729ee095c08666d6b22b28d278a7b552/node_modules/favicons/node_modules/sharp
       > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

       info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz
       make: Entering directory '/tmp/build_729ee095c08666d6b22b28d278a7b552/node_modules/favicons/node_modules/sharp/build'
         TOUCH Release/obj.target/libvips-cpp.stamp
         CXX(target) Release/obj.target/sharp/src/common.o
       ../src/common.cc:25:10: fatal error: vips/vips8: No such file or directory
        #include <vips/vips8>
                 ^~~~~~~~~~~~
       compilation terminated.
       sharp.target.mk:128: recipe for target 'Release/obj.target/sharp/src/common.o' failed
       make: *** [Release/obj.target/sharp/src/common.o] Error 1
       make: Leaving directory '/tmp/build_729ee095c08666d6b22b28d278a7b552/node_modules/favicons/node_modules/sharp/build'
       gyp ERR! build error
       gyp ERR! stack Error: `make` failed with exit code: 2
       gyp ERR! stack     at ChildProcess.onExit (/tmp/build_729ee095c08666d6b22b28d278a7b552/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
       gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
       gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
       gyp ERR! System Linux 4.4.0-1048-aws
       gyp ERR! command "/tmp/build_729ee095c08666d6b22b28d278a7b552/.heroku/node/bin/node" "/tmp/build_729ee095c08666d6b22b28d278a7b552/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
       gyp ERR! cwd /tmp/build_729ee095c08666d6b22b28d278a7b552/node_modules/favicons/node_modules/sharp
       gyp ERR! node -v v10.16.3
       gyp ERR! node-gyp -v v3.8.0
       gyp ERR! not ok
       npm ERR! code ELIFECYCLE
       npm ERR! errno 1
       npm ERR! sharp@0.22.1 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
       npm ERR! Exit status 1
       npm ERR!
       npm ERR! Failed at the sharp@0.22.1 install script.
       npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

       npm ERR! A complete log of this run can be found in:
       npm ERR!     /tmp/npmcache.J8tES/_logs/2019-09-24T03_48_38_001Z-debug.log
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       If you're stuck, please submit a ticket so we can help:
       https://help.heroku.com/

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed

Encountering this issue with turtle-cli. Will attempt the suggested solution and report back

I have fixed our CI build by adding following to the package.json:
"dependencies": {
  "minipass": "2.7.0",
  "sharp": "^0.23.0"
}

It's silly because our app does not depend on minipass.

This workaround fixed the issue for us as well

expo-cli does not work even with minipass added into dependencies.

@lovell minipass already works, I did not see that they omit '^' in the version, and now my application compile correctly

添加minipass可以正常编译了

This issue is fixed for me with minipass@^2.8.5 (forced via resolutions in package.json)

it works again for me too, even without adding minipass.  thnx for investigating

> sharp@0.23.0 install /node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.8.1/libvips-8.8.1-linux-x64.tar.gz
npm WARN saveError ENOENT: no such file or directory, open '/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

+ sharp@0.23.0
added 71 packages from 102 contributors and audited 164 packages in 6.931s
found 0 vulnerabilities

There was a breaking change in v2.8.2 of the upstream minipass dependency that has now been reverted in its v2.8.5 release.
If you work at a for-profit organisation that relies on sharp, and I can tell there are a lot of you based on the sheer volume of emails and notifications I've received about this problem over the last 15 hours, please consider donating to the libvips OpenCollective at https://opencollective.com/libvips to say thank you and help with its continued support.

I've removed the resolution for minipass and can confirm it works. Thank you @lovell

I used yarn and npm i on my Gatsby project, and got the same issue.

authors: 8shaks ChrisCates Dave-Lindberg DavidDudson JandenMa RefersToTheLostYouth Shane325 Workito adamlacombe auctifera-josed christianbundy dlecan edcolyer emplums evallgar gate8team harrisrobin harryhazza77 hfukada hypernova7 imkane jbdutton liudonghua123 lovell midgethoen prescindivel rrohan92 sidiliu tihuan timothyallan toxuin xlanor

repo: lovell/sharp


text:
The step operation is error when the SW bp is set in a J instruction.

Hi Guys：
I use the Ibex core running a simple test C code.
I set a SW bp before a “jump” instruction,  when the cpu fetched the SW bp instruction, the cpu is halted.
But after that, i use the “step" cmd in telnet,  the PC in CPU is wrong, it's not the correct PC which the JUMP instruction expected , the dpc has been changed.
When I use the HW bp， the dpc has‘t been changed.
So, i think this is a bug
please see the following figure.

@GregAC Could u help me checking this issue？ Thanks

I think this is an issue with Ibex's EBREAK handling, it's setting the depc for the instruction following the EBREAK not the EBREAK itself.
From what I can tell from the waveform you've supplied, Ibex is first fetching the instruction immediately following the jal 0x30000090, which is the instruction at 0x300006c2 (fetches are aligned so it fetches at 0x300006c0). The instruction at that address is a 4-byte EBREAK (0x00100073) which is split across 2 instruction fetches as it's unaligned.
Ibex executes that EBREAK giving you depc = 0x300006c6 which is the address of the instruction after the EBREAK where it should produce depc = 0x300006c2
From a brief look at the RTL this should work correctly and uses the same mechanism as normal exceptions (and indeed it is tested in the verification environment) so there may be something more complex going on that causes it to break. If you could provide a full .vcd of the failure that would be useful in debugging it.

I would guess that enter_debug_mode is set when the core goes to FLUSH as a result of the EBREAK. That causes the core to go to DBG_TAKEN_IF rather than DBG_TAKEN_ID hence it captures the wrong PC.
What debug module are you using? and did you definitely clear the HW breakpoint before setting the SW breakpoint?

@tomroberts-lowrisc
Thanks for your response.
tomroberts-lowrisc:  I would guess that enter_debug_mode is set when the core goes to FLUSH as a result of the EBREAK. That causes the core to go to DBG_TAKEN_IF rather than DBG_TAKEN_ID hence it captures the wrong PC.
apolloJason:  yes, please see the following figure. The SW bp has changed the jal instruction to c.ebreak. So the CPU enter debug_mode and goes to FLUSH, the controller FSM state is DBG_TAKEN_ID, the debug_csr_save is active. But the current PC has been changed in if_stage. The debug_csr_save signal and changed PC caused the wrong dpc in csr register.
tomroberts-lowrisc: What debug module are you using? and did you definitely clear the HW breakpoint before setting the SW breakpoint?
apolloJason: 1. I use the pulp riscv-gdb module, cloned from github.
2. I didn't set any HW bp, just use a SW bp.
3. I think the cpu matched a HW bp function is corrected，i have finished a test, just set a single HW bp in the jal instruction, the same PC.
4. When I set the SW bp，there is not any HW bp in the CPU trigger.

@tomroberts-lowrisc
I set the SW pc in 0x300006c2 ，the J instruction.
That's a while(1){}; test in the C function.

@GregAC @tomroberts-lowrisc
Hi :
the cv32e40p has the same bug. They has fixed the bug for storeing the next instruction PC.
Could you double check again?

From the latest wave you've given Ibex is going into DBG_TAKEN_IF as enter_debug_mode is asserted.
An EBREAK doesn't assert enter_debug_mode so there's something else going on here as well as the EBREAK instruction. Either the debug module has requested to enter debug mode, single stepping is active or there's a hardware breakpoint too.
As I said above a full .vcd would be helpful in debugging (this could be large so gzip it or use .fst which is the GTKWave file format, I think it has a .vcd to .fst conventor available as part of GTKWave).

Single stepping is active, which causes the entry to debug mode. I'm not really sure what the core is supposed to do here (single stepping over an EBREAK instruction), it's probably doing the correct thing and stepping to the "next" instruction.
The debugger should replace the EBREAK with the real instruction before it releases the core to step. I attempted to reproduce this locally but I don't hit this behavior (I get the correct instruction replaced as expected). You might want to try updating your gdb and OpenOCD versions?

Ah had missed the debug_single_step_o signal the bottom there.
From the debug spec's description of single stepping:

If the instruction does not complete due to an exception, the hart will immediately enter Debug Mode before executing the trap handler, with appropriate exception registers set.

EBREAK causes an breakpoint exception (if dcsr.ebreak[m|s|u] isn't set). So EBREAK isn't failing to complete due to an exception, it completes which causes the exception. So I'd argue when single-stepping over an EBREAK you should get a dpc of the next instruction to execute which is the first instruction of the exception handler.
If dcsr.ebreak[m|s|u] are set then I'd argue you'd effectively ignore the single step and enter debug mode as normal for an EBREAK when dcsr.ebreak[m|s|u] are set (executing the instruction enters debug mode, at which point single stepping would take over but you don't single step in debug mode).

Yeah I think that makes sense.
Looking at the issue raised by @apollojason on cv32e40p, they have changed it such that the EBREAK is prioritized here on debug entry rather than the step (thus capturing the ID stage PC rather than the IF stage). We should probably do the same - though only in the ebreakm/u case as you noted.

Hi @apollojason can you try again with the linked fix - if it fixes the problem, we can close this issue

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

thank you for explaining it so fully.
I got sick recently, so i didn't give u a response. Tomorrow, i can get the new version code,try again.
thanks!

@tomroberts-lowrisc @GregAC
Hi :
I have try again with the latest version ibex CPU RTL. It is working correctly.
thank u very much!

authors: GregAC apollojason tomroberts-lowrisc

repo: lowRISC/ibex


text:
Make ibex_tracer Verilator-compatible

It should be possible to use a coding style for the tracer which works in Verilator, making this helpful tool available there as well.

This is work in progress (I actually have the branch ready just need some style-nit fixes before raising a PR). I have used #262 as my starting point for this. Should I wait until #262 is merged and then open a pull-request?

Feel free to open a PR right away. This allows us to start with the review right away, and you can then rebase before merging.

The tracer is now Verilator compatible. This has been added starting with lowRISC/ibex#360. I am thus closing this issue now.

authors: imphil raulbehl vogelpi


text:
[otbn] end-to-end tests for P-256 ECC

In order to capture issues when refactoring the P-256 lib on OTBN we need to provide end-to-end tests for:

[x] curve point test (currently exists, but gives wrong results)
[x] scalar multiplication
[x] ECDSA sign
[x] ECDSA verify

Start with RSA encode/decode-style self-contained assembly test.

estimate 4
remaining 2020-11-30 1
remaining 2020-12-10 0

We do now have (auto-converted) tests for these algorithms in our tree, closing.

We do now have (auto-converted) tests for these algorithms in our tree, closing.

authors: felixmiller imphil

repo: lowRISC/opentitan


text:
[otbn] Decide on alert interface

At the moment, we have 3 alerts (DMEM ECC; IMEM ECC; Something Else). Other IP blocks seem to have standardised on (Low Priority; High Priority). Decide whether to follow suit.
OT-wide discussion at https://github.com/lowRISC/opentitan/issues/3767

estimate 2

I think Michael/Tim are going to show a proposal for handling the 4 alert priorities in tomorrow's Silicon meeting, not sure if this will influence your thinking directly but definitely take a look tomorrow.

To figure out what other blocks are doing, I looked at the alerts defined by each. You can get a rough list of these blocks with
git grep -l alert 'hw/ip/*/*.hjson' | grep -v alert

Here's the list:
| Block       | Alerts                                      |
|-------------+---------------------------------------------|
| aes         | 2: ctrl_err_update, ctrl_err_storage        |
| entropy_src | 1: es_alert_count_met                       |
| keymgr      | 2: fault_err, operation_err                 |
| lc_ctrl     | 2: lc_programming_failure, lc_state_failure |
| otp         | 2: otp_macro_failure, otp_check_failure     |

Other than entropy_src, which only has one alert, the others all have 2, which are split by what caused the alert (rather than by severity).
I'm not sure that will work so well for OTBN: it's a processor, so there are lots of possible things that can go wrong! Are we happy to define just 2 or 3 classes of alert and bucket things up statically, or do we need some sort of configurability for what event triggers what alert?

@imphil, @GregAC: What do you think?

Looking at the proposed guidance at https://github.com/lowRISC/opentitan/issues/3767#issuecomment-725625551, it looks to me that we want two alerts, a recoverable and a non-recoverable one. Additionally, we need two alert cause registers, as we'll very likely have more than one reason to trigger both a recoverable and a non-recoverable alert.
We should be able to go ahead with the Hjson/spec change on this to get the wire connections in place.
We can also start with a table of alert causes that includes the current places where we have mentioned in the spec "this will cause an alert" to start the discussion on specific alert causes and how they should be grouped.
@msfschaffner

Is that roughly what you were planning to present to the silicon meeting?
Is there thinking on standardized naming for the recoverable/non-recoverable alert and the associated alert cause registers?

That sounds sensible. Does OTBN actually have any recoverable errors?

Depending on hardening there may be the possibility of correcting single bit flips with ECC. This could be a recoverable alert. Though this does raise the question of whether OTBN would need to pause after such a recoverable alert to be given the go-ahead or it just continues onwards and software on Ibex just decides if it wants to throw away the result for instance.

The non-recoverable alerts are sticky "until the next reset". I understand this as "until the next full chip reset".
In the bucket of recoverable alerts I'd put all things which can be recovered from by resetting/restarting OTBN alone, i.e. in the next software execution. Things which might well be a programming error, such as reading beyond the end of the call/loop stack, accessing invalid memory regions, etc.

Do basic errors even need to trigger alerts? I was thinking for those it would simply halt OTBN, software on Ibex will see OTBN is done, read the status and see the error without raising an alert.

Right, well may I suggest the following as an initial spec?

ECC errors on memories and register files are evidence of badness happening. Put them in one bucket.
All other errors might have been caused by a programming screw-up. Put them in the other bucket.

In the future, we might decide that some errors should move buckets, have no buckets, or even have configurable buckets(!), but we can probably punt on that for now.
Does that sound like a reasonable start?

@imphil: We had to strip down the content we presented this week as it would have been too much together with the update on life cycle. We'll go over the alert guidance in the next silicon meeting. But in essence, what we're proposing is described in the comment you linked, so if you stick to that model I think you should be on the right track.
Regarding the naming: we have not formalized a naming convention for those two buckets yet, but we can discuss that. It could ease auditing and severity mapping in the alert handler (i.e., the SW programmable alert classification).
To @GregAC's point: no I don't think basic errors should trigger alerts. They should just trigger an IRQ in my view.
For example, you could choose to just report a normal error when a correctable ECC error has occurred. However, when an uncorrectable ECC error occurred, you could send out a recoverable alert.
Unrecoverable alerts should be really critical in the sense that they brick the IP. For instance, if you have a redundantly encoded FSM somewhere, and that FSM is glitched into an invalid state, the FSM should stay there and an unrecoverable alert should be signaled. In case of Ibex or OTBN, such an alert could for instance be triggered by CFI mechanisms.

FYI
@tjaychen
@weicaiyang
@cindychip

@msfschaffner
are we sure we want to consider ECC errors recoverable..? I honestly think for something like otbn (especially the regfile) that should be a fairly serious error.

yeah we can also step up the severity of ECC errors in this case (I just meant to give an example). would it make sense to standardize how ECC errors are to be treated system-wide?
we have several other places where ECC errors can occur.
for instance, in OTP, correctable ECC errors in the OTP macro are reported as "normal" errors via an IRQ, whereas uncorrectable ECC errors are unrecoverable and send out an unrecoverable alert.

i actually think ECC (for better or worse) probably needs to be separated into two categories..
The NVM case like you mentioned probably need to treat the 1-bit error case like business as usual.
Whereas volatile memory / flops I think can reasonably treat them as a fatal error.
I accidentally made the mistake of attempting to convert flash into the latter category recently, and that probably would have been a terrible  idea.

Yeah that sounds good to me. How do we want to proceed with SRAM? Treat it the same way as registers or rather like NVM?

my opinion is treat it like reg.
I think the size we're looking at is not big enough to require redundancy..and i'm personally not too worried about cosmic rays flipping a bit that leads to the device resetting (so let's hope no one ever puts this into a vehicle or something...)
I think it's worth running it by Nuvoton to see if they are comfortable with this.

ok so to summarize, the ECC guidance would become:

on regs and SRAM, treat both correctable and uncorrectable errors as fatal, unrecoverable alerts.
on NVM (OTP, FLASH), signal correctable errors as "normal" errors via IRQs, and uncorrectable errors as fatal, unrecoverable alerts.

WDYT?

yes that looks good to me.
On Thu, Nov 19, 2020 at 7:18 PM Michael Schaffner notifications@github.com
wrote:

ok so to summarize, the ECC guidance would become:

on regs and SRAM, treat both correctable and uncorrectable errors
as fatal, unrecoverable alerts.
on NVM (OTP, FLASH), signal correctable errors as "normal" errors
via IRQs, and uncorrectable errors as fatal, unrecoverable alerts.

WDYT?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lowRISC/opentitan/issues/4208#issuecomment-730819168,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2RSUN57NA2FGXZHGNCHTSQXNYRANCNFSM4TXHWAIA
.

authors: GregAC cdgori imphil msfschaffner rswarbrick tjaychen


text:
Nexys A7 board for opentitan

Hi
Is it possible to use Nexys A7 board instead of Nexys video as target fpga for the opentitan on FPGA?
If yes, could you please hint the procedures to do it.
Thanks a lot.

Hi @nicolast0604, thanks for your interest in OpenTitan.
The A7 board isn't currently usable in OpenTitan, as the earl grey toplevel design is much too large. You'll need to produce a toplevel which removes some functionality, reduces memories, etc.
The top_earlgrey example is a starting point for such an approach, but you'll see quickly that the tooling around that is rather fragile at the moment.
We intend to improve the tooling to make it easier to produce customized toplevels for smaller FPGA boards, initial work is available at #5636 and #5782. It will take a couple more weeks before we have the bandwidth to push this work over the finish line, however.
So for now, I'd suggest you start with top_englishbreakfast and try to reduce it until it first onto the A7 board. Doing so will require a bit of experience with FPGA board bringup, so if you haven't done that before I'd recommend going with a Nexys Video board instead.

I believe this question has been addressed. Feel free to reopen if that is not the case.

authors: imphil msfschaffner nicolast0604


text:
[OTBN.H.KEY_SIDELOAD] Key Sideload Design Verification

estimate 8
remaining 2021-13-12 16

Scope of this task has expanded, so remaining estimate has increased.

Done in #9709.

authors: GregAC rswarbrick


text:
[sw] Build googletest using meson

Vendoring googletest introduced a dependency on CMake, which has caused
issues, including #1484.
This commit removes the dependency on CMake by adding build rules for
googletest directly in meson.
This commit also reverts b94e3f8964ccea0a73811537a4c783fedec5270c, as
CMake should no longer be needed.

The Meson rules used have come from https://github.com/mesonbuild/gtest/blob/1.10.0/googletest/meson.build and https://github.com/mesonbuild/gtest/blob/1.10.0/googlemock/meson.build which are MIT licensed.

This works for me, thanks for sorting it out.

authors: GregAC lenary


text:
[cherry-pick] #23012: fix provisioning orchistrator

This fixes the provisioning orchestrator script and the CP/FT host binary build rules that was triggering errors at run time.
Signed-off-by: Tim Trippel ttrippel@google.com
(cherry picked from commit 2db5df6c7cf9a466c19e743d164f6174655e67ec)

CI failures are not related.


text:
[provisioning]: allow the owner to specify perso success condition

Certain SKUs require personalization success validation which extends beyond confirming that the ROM_EXT in slot B has started.
Let's allow the user to specify a string which when issued on the chip console indicates perso success.
This will require longer timeouts after post perso reboot.
Tested the following:

when onwer string is not provided . success and failure due UDS cert problems are reported as before
when owner string is provided . failure due UDS cert problems is still reported . success when fw string is detected is reported . in case fw string is not detected timeout results in an error

a suggested way to provision SKU specific perso success condition. Once agreed upon will modify SKUs to provide the expected anchor strings.


text:
[otp_ctrl] Reverse LC counter/state positions in memory map

In principle, this is not strictly necessary, since the life cycle
controller already sequences the counter update first, before repeating
the programming request with the updated life cycle state.
However, by reversing the positions of the life cycle state and counter
within the memory map we can make this a bit more secure since that
ensures that the counter words will always be touched first - no matter
the sequencing within the life cycle controller.
Signed-off-by: Michael Schaffner msf@opentitan.org

This addresses #5942.
Note that this is already in squashed form, and contains autogenerated content (@tjaychen it appears that some autogen'ed flash files have not been checked in before, is that correct?).


text:
[dif] Implement function dif_csrng_stop

This PR only contains:

Implementation of the dif_csrng_stop function
Application of the dif_csrng_stop on the sca module

@doreis-lowrisc Can you rebase this onto the latest master? I'd like the CI tests to run again and then I'll merge it. Thanks!

@doreis-lowrisc Can you rebase this onto the latest master? I'd like the CI tests to run again and then I'll merge it. Thanks!

Done!

authors: doreis-lowrisc mundaym


text:
Update flyway.conf.j2

add comment lines, and update few value

@lxpause hi,
I don't see the benefit of having documentation inside the generated configuration file as:

they are already available in the default/mail.yml / README.md files
there is an online documentation available.

The generated configuration file also omit some parameters if there is no matching value. You will end with a configuration filled with documentation for missing parameters.

authors: lrk lxpause

repo: lrk/ansible-role-flyway


text:
Extend jhi-button to use it in file-upload-exercise

Checklist

[ ] I tested all changes and all related features with different users (student, tutor, instructor, admin) on the test server https://artemistest.ase.in.tum.de.
[ ] Server: I added multiple integration tests (Spring) related to the features
[ ] Server: I added @PreAuthorize and check the course groups for all new REST Calls (security)
[ ] Server: I implemented the changes with a good performance and prevented too many database calls
[ ] Server: I documented the Java code using JavaDoc style.
[ ] Client: I added multiple integration tests (Jest) related to the features
[ ] Client: I added authorities to all new routes and check the course groups for displaying navigation elements (links, buttons)
[ ] Client: I documented the TypeScript code using JSDoc style.
[ ] Client: I added multiple screenshots/screencasts of my UI changes
[ ] Client: I translated all the newly inserted strings into German and English

Motivation and Context

We want to use jhi-button in more places. This PR aims to extend jhi-button functionality and find a way to replace btn-group with flex styling to be able to use it, e.g. on Course Administration Page
Description

Steps for Testing

Log in to Artemis
Navigate to Course Administration
...

Screenshots

@maxr96 what is the status of this PR? Seems to be outdated and has a lot of conflicting files now. Should we close this for now and reopen it when more progress is made?

There is no progress since some time, so I close this. Feel free to reopen this PR when more progress is made...


text:
Exam Mode: Update exam mode tooltip for test exams

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines and ensured that the layout is responsive.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Motivation and Context
The tooltip for the exam mode within the exam update component currently descripes, that test exams could be conducted multiple times by the students.
As this feature is not yet implemented, the tooltip has to be updated.
Description
The textual description for the tooltip has been updated to highlight, that students can start the test exam at any time within the working window, but are not able to conduct a test exam multiple times
Steps for Testing

Prerequisites:

1 Instructor

Log in to Artemis
Navigate to Course Administration
Create an Exam
Hover over the tooltip for the Exam Mode Selection and make shure, that the text for the tooltip is displayed accordingly.

Review Progress
Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Screenshots

Codecov Report
Base: 75.62% // Head: 75.62% // No change to project coverage :thumbsup:

Coverage data is based on head (d41e8f4) compared to base (b62b511).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5874   +/-   ##
========================================
  Coverage    75.62%   75.62%
========================================
  Files         1109     1109
  Lines        43780    43780
  Branches      8269     8269
========================================
  Hits         33109    33109
  Misses        5556     5556
  Partials      5115     5115

Flag
Coverage Δ

client
75.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

authors: codecov-commenter mallgaier


text:
Development: Add test exam creation/deletion e2e tests

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Motivation and Context

Currently only the main exam mode is tested. The test exam mode is not covered by any E2E tests.
Description

This PR adds the first E2E tests for test exams. For now the creation and deletion of test exams are tested.
Based on this PR there will be several more PRs that will add managing, paticipation etc. E2E tests for the test exam mode.
Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Exam Mode Test

[ ] Test

Codecov Report

Merging #6060 (3835c06) into develop (02eeddd) will increase coverage by 3.99%.
The diff coverage is n/a.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #6060      +/-   ##
=============================================
+ Coverage      76.09%   80.08%   +3.99%
- Complexity         0    12688   +12688
=============================================
  Files           1159     2192    +1033
  Lines          45790    86856   +41066
  Branches        8584    12982    +4398
=============================================
+ Hits           34842    69559   +34717
- Misses          5669     9599    +3930
- Partials        5279     7698    +2419

Impacted Files
Coverage Δ

...idebar/conversation-selection-sidebar.component.ts
88.31% <0.00%> (-0.65%)
:arrow_down:

...e/tum/in/www1/artemis/domain/scores/TeamScore.java
66.66% <0.00%> (ø)

...tum/in/www1/artemis/service/SubmissionService.java
85.48% <0.00%> (ø)

...ervice/compass/umlmodel/classdiagram/UMLClass.java
90.27% <0.00%> (ø)

...tum/in/www1/artemis/repository/UserRepository.java
92.20% <0.00%> (ø)

.../in/www1/artemis/web/rest/TextClusterResource.java
92.00% <0.00%> (ø)

...artemis/service/scheduled/UserScheduleService.java
82.92% <0.00%> (ø)

...ain/java/de/tum/in/www1/artemis/domain/Result.java
90.58% <0.00%> (ø)

...1/artemis/web/rest/errors/ExceptionTranslator.java
72.34% <0.00%> (ø)

...mis/service/metis/conversation/ChannelService.java
90.54% <0.00%> (ø)

... and 1024 more

Flag
Coverage Δ

client
76.08% <ø> (-0.01%)
:arrow_down:

server
84.54% <ø> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02eeddd...3835c06. Read the comment docs.

authors: TheZoker codecov-commenter


text:
Quiz exercises: Fix quiz question points validation

Checklist
General

[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines and ensured that the layout is responsive.
[x] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Motivation and Context

When an instructor set the question point to 99999999999, the save button was enabled. After clicking the save button, there was Bad Request Error:

This error should be prevented by disabling the save button if the points are in invalid range.
Description

According to the existing implementation in multiple-choice-question-edit.component.html, drag-and-drop-question-edit.component.html, and short-answer-question-edit.component.html, the max points of each question should be 9999. Therefore, the condition to check if points are greater than 9999 is added to quiz-exercise-validation.directive.ts
Steps for Testing

Prerequisites:

1 Instructor
1 Course

Log in to Artemis
Navigate to Course Administration
Select the Course
Navigate to Exercises
Click + Create Quiz Button
Input Quiz Title
Add any type of question
Input Question Title
Verify that the Save Button is enabled and no Invalid Input sign
Modify the Points to 99999999999
Verify that the Save Button is disabled and there is Invalid Input sign

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Class/File
Branch
Line

quiz-exercise-validation.directive.ts
91.01%
97.54%

Screenshots

Codecov Report

Merging #6225 (0c602de) into develop (aa7a5c7) will increase coverage by 0.00%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #6225   +/-   ##
==========================================
  Coverage      80.29%   80.29%
  Complexity     12834    12834
==========================================
  Files           2273     2273
  Lines          88163    88163
  Branches       13060    13060
==========================================
+ Hits           70792    70793    +1
  Misses          9653     9653
+ Partials        7718     7717    -1

Impacted Files
Coverage Δ

.../quiz/manage/quiz-exercise-validation.directive.ts
65.33% <0.00%> (ø)

...idebar/conversation-selection-sidebar.component.ts
89.33% <0.00%> (+0.66%)
:arrow_up:

Flag
Coverage Δ

client
76.45% <0.00%> (+<0.01%)
:arrow_up:

server
84.58% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa7a5c7...0c602de. Read the comment docs.

Since we use 9999 in many places, should we make this to one common constant?

Constant is created.

authors: codecov-commenter rriyaldhi


text:
Development: Allow all filenames in programming exercise templates

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[ ] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[x] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[x] I strictly followed the server coding and design guidelines.
[x] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[x] I documented the Java code using JavaDoc style.

Changes affecting Programming Exercises

[ ] High priority: I tested all changes and their related features with all corresponding user types on a test server configured with the integrated lifecycle setup (LocalVC and LocalCI).
[ ] I tested all changes and their related features with all corresponding user types on a test server configured with Gitlab and Jenkins.

Motivation and Context

Programming exercise templates cannot include files without file extensions (Makefile) and .gitignore/.gitattributes without the use of a workaround. Directories with dots in their name (.config/) are not possible at all. The workaround requires the template author to use an alternative name which is replaced with the required name from a set of predefined translations (Makefile.file => Makefile).
This makes the authoring of programming exercise templates error-prone and more difficult than necessary.
Description

.gitignore and .gitattributes are removed from gradle's default excludes.
The ResourceLoaderService is modified to remove directories from the results. This is what all use-cases expect.
The ant pattern meaning to represent all files is adjusted to not include a dot.
Steps for Testing

Prerequisites:

1 Instructor
1 Course

Log in to Artemis
Navigate to Course Administration of the Course
Create a new Programming Exercise
Select C for the programming language
Select GCC for the project type
Fill out the remaining fields
Save the exercise
Clone the exercise repository
The repository should contain the .gitignore, .gitattributes and Makefile files

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[ ] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Server

Class/File
Line Coverage
Confirmation (assert/expect)

FileService.java
89%
✅

ResourceLoaderService.java
89%
✅

Administrators who made use of the filename translations in template overrides could experience issues. However, this translation behavior was never mentioned in the documentation. How should we handle this?

Administrators who made use of the filename translations in template overrides could experience issues. However, this translation behavior was never mentioned in the documentation. How should we handle this?

It is only possible since release 7.0.1 (#8380) to override such files. Before that only files in templates/jenkins/** could be overridden in the filesystem.
Since this feature does not exist for long, I don’t assume this feature to be widely used (if at all). I think breaking this without backwards compatibility is therefore fine.

Thank you for your tests. Looks like my approach for filtering out directories does not work if the resources are loaded from a Jar. I will look for a solution.

The following server tests are failing please take a look at them
* ProgrammingExerciseScheduleServiceTest cancelIndividualSchedulesOnRemovingIndividualDueDate()

org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked:
scheduleService.scheduleParticipationTask(
    ProgrammingExerciseStudentParticipation{id=99, repositoryUri='http://some.test.url/scm/SHORTAF81FE7C0ACF50444D0A1BB0A8F968B6F213TSTEXC/shortaf81fe7c0acf50444d0a1bb0a8f968b6f213tstexc-programmingexercisescheduleservicestudent3.git', buildPlanId='SHORTAF81FE7C0ACF50444D0A1BB0A8F968B6F213TSTEXC-PROGRAMMINGEXERCISESCHEDULESERVICESTUDENT3', initializationState='INITIALIZED', initializationDate='2024-06-05T17:10:07.177012Z', individualDueDate=2024-06-05T17:10:07.836970454Z[Etc/UTC]', presentationScore=null},
    DUE,
    <any>
);
-> at de.tum.in.www1.artemis.service.scheduled.ScheduleService.scheduleParticipationTask(ScheduleService.java:105)

(219 more lines...)

* ProgrammingExerciseScheduleServiceTest scheduleIndividualDueDateBetweenDueDateAndBuildAndTestDate()

org.mockito.exceptions.verification.TooManyActualInvocations: org.mockito.exceptions.verification.TooManyActualInvocations:
gitLabService.setRepositoryPermissionsToReadOnly(
    http://some.test.url/scm/SHORT665EE1CD02187043790BAE90B1148A072A2DTSTEXC/short665ee1cd02187043790bae90b1148a072a2dtstexc-programmingexercisescheduleservicestudent3.git,
    "SHORT665EE1CD02187043790BAE90B1148A072A2DTSTEXC",
    [User{login='programmingexercisescheduleservicestudent3', firstName='programmingexercisescheduleservicestudent3First', lastName='programmingexercisescheduleservicestudent3Last', email='programmingexercisescheduleservicestudent3@test.de', imageUrl='null', activated='true', langKey='en', activationKey='null'}]
);
Wanted 1 time:
-> at de.tum.in.www1.artemis.service.connectors.gitlab.GitLabService.setRepositoryPermissionsToReadOnly(GitLabService.java:467)
(69 more lines...

These tests seem flaky. They rely on single digit second time delays which could fail under high loads.
They are not relevant to this PR. I reran the tests without changes and they are fine now.

I can not change the programming language to C, it only shows Java and Empty. Am I doing something wrong?

@edkaya Test Server 5 uses GitlabCI which is only supported by these 2 templates.
The Java template has the git files but no extension-less files you could check for.

authors: b-fein edkaya magaupp


text:
Add support for sorting with the file metadata change time (ctime)

Add a sorting option for sorting files based on when file metadata last changed / inode change in linux. e.g. when a file was last moved or renamed on disk instead of when file contents changed
This corresponds to the -c option in GNU ls

With almost the same effort support for -u for sorting by access time could be implemented. Perhaps the issue title could be changed to include that cas as well?

authors: eras kamenchunathan

repo: lsd-rs/lsd


text:
add_route with masquerading gets cleared

Hello and thank you for your work!
The documentation at point
...Allow machines on the LAN to access the control interface of a cable and/or DSL modem attached to the router?
states:
Create the file /etc/network/balance/routes/01.modem_route.pl containing the following:
$B->add_route('192.168.1.1/32'=>'eth2',1);
Unfortunately doing this add rules for both ip route and iptables before iptables initialization, so rules are cleared out with the result of working routing but broken firewall rules.
This also applies to local routes.
I've managed to circumvent the problem by manually run a script on post-run.
I think it could be great to move both ip route and iptables initialization just after pre-run as it could solve all these problems imo. What do you think?
Have a nice day,
Eduard Roccatello

Please forgive my ignorance, but would not installation of iptables-persistent resolve this problem?
I experienced a similar situation where load_balance.pl failed to start on boot. (For some unknown reason, Debian was being difficult that day). Which resulted in the entire network being down and the host running load_balance.pl unreachable. By installing iptables_persistent, this prevented the situation from occurring.

authors: anoduck mastershadow

repo: lstein/Net-ISP-Balance


text:
🛑 Mirror-爬 is down

In aa89619, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 928 ms

Resolved: Mirror-鱼露 is back up in bbc8ff7.


text:
🛑 Mirror-爬 is down

In 5d5c1fc, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 1023 ms

Resolved: Mirror-鱼露 is back up in 01caaf5.


text:
🛑 Mirror-爬 is down

In 0af2dd8, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 2732 ms

Resolved: Mirror-鱼露 is back up in 475293e.


text:
🛑 Mirror-爬 is down

In 541b580, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 699 ms

Resolved: Mirror-鱼露 is back up in 0063e43.


text:
🛑 Mirror-爬 is down

In 705a4fa, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 991 ms

Resolved: Mirror-鱼露 is back up in f3450e3.


text:
🛑 Mirror-爬 is down

In 16403c4, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 676 ms

Resolved: Mirror-鱼露 is back up in cf236b3.


text:
🛑 Mirror-木生 is down

In d8d80ab, Mirror-木生 (https://t.lsy223622.com/ncov-xidian-times) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mirror-爬 is back up in 7abfc6c.


text:
🛑 Mirror-没有女朋友跨年的群傻逼 is down

In c2195ec, Mirror-没有女朋友跨年的群傻逼 (https://x.ksfu.top/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Mirror-木生 is back up in 51fe2cd.


text:
🛑 Mirror-爬 is down

In e41c925, Mirror-爬 (https://ncov.zhouym.tech/) was down:

HTTP code: 404
Response time: 926 ms

Resolved: Mirror-鱼露 is back up in b1e2c56.


text:
lua-stdlib.github.io/normalize does not exist

(yet)

indeed... early days!
You can run make with LDoc installed to see the half baked docs in the mean time :-)

tada!
https://lua-stdlib.github.io/normalize

authors: gvvaughan heptal

repo: lua-stdlib/normalize


text:
SVG Images Not Showing

I am trying to load some SVG images but I am not having any luck with Xamarin Forms for iOS / Android.
I'm simply calling:  _Image.Source = SvgImageSource.FromFile("jack.svg");
I've tried putting the svg file in multiple places.  What is the correct location?  In the drawable folder or the root of the Android app?

Looks like this could be because the SVG file is not compatible with SkiaSharp.
I tried another svg file produced from inkscape and did not have any trouble loading.
The svg files that give me trouble were exported from Adobe Illustrator using an SVG plugin.
I will see if our designer can use a different program to output the svg.

Yes, the SVG parser is quite simple right now, here's the class that is used: https://github.com/mono/SkiaSharp/blob/master/source/SkiaSharp.Svg/SkiaSharp.Svg/SKSvg.cs

authors: brepetti daniel-luberda

repo: luberda-molinet/FFImageLoading


text:
[Feature Enhancement] Webpage Thumbnail

Hello..
Firstly, THANK YOU for an awesome extension.  This has been one of the main issues I haven't given up Opera; the Opera Speed Dial is built-in and is great.  Yours handles this functionality greatly!
My feature request would be a thumbnail creation of the website instead of the title.  Prior versions of Opera had this functionality and it was removed in the around the v5x update chain.  This allows you to "see" the web page without having to visit the page.  Great for when you're searching for a certain website within a folder of multiple pages, and know what the page looks like better than its name.
Thank you again.

Thank you for the note! I'm glad you're enjoying using Toolbar Dial. It was because of my interest in changing from Opera to Firefox that I created it!
For the thumbnail request, I know that Vivaldi still uses thumbnails, and I have been considering  adding this feature. I'll put it on my list to implement in a future update!

I spent some time looking into this, and there doesn't seem to be a user-friendly and privacy-friendly way to do it.
Firefox and Chrome do offer a way to capture a thumbnail of a webpage, but it actually requires opening a tab to create a thumbnail. So for every bookmark a tab would have to be opened to capture a URL.
Also, that would require use of the "<all_urls>" permission by Toolbar Dial, and that is the most powerful permission an extension can request. It gives an extension the ability to execute a script within any tab -- even one in the background. I don't want to require any permissions other than bookmarks and storage. When I created Toolbar Dial, my mantra from the beginning was to be privacy conscious and never ask for more permissions than necessary to load bookmarks and store settings.
There is another way it could be done, using a third-party API to generate the thumbnail and send it back to the browser, but that would require sharing the URL with the third-party API, and I don't feel comfortable doing that. That would then expose every bookmark you have to a third party service, and that doesn't seem like a very friendly thing for an extension to do.
Considering that, I'm going to close this request. I'll revisit in the future if I come across any technique that would allow this to be done in a privacy-friendly manner.

authors: JaySMa lucaseverett

repo: lucaseverett/toolbar-dial


text:
Configure CI

I set up dependabot (to automatically update dependencies), cargo deny (to check dependencies for vulnerabilities and license compatibility), formatting, tests and clippy checks.
Also I fixed discovered warnings (all changes was done only to silence warnings), applied formatting to make CI pass.
Note: I had to upgrade eframe to avoid security issue in nix crate (detected by cargo deny). Also in new version light or dark mode detected from the system, so I fixed colors a little to make it look nice in both modes.

Thanks! I'm not used to github actions, so this helps a bunch.

You are welcome!

authors: Shatur lucaspoffo

repo: lucaspoffo/renet


text:
Firefox and Safari

Icon Request

Icon name: Firefox and Safari (like Chrome which is already there)
Use case: Downloads for different browsers (say, of an extension)

Hey @jakajancar,
I'm afraid brand icons are deprecated: #670
We suggest that you use https://simpleicons.org/  for brand icons.

authors: jakajancar karsa-mistmere

repo: lucide-icons/lucide

license: ISC


text:
Add cross icon

Closes #37

@ericfennis Yes thanks, I updated it to be the A variant now

@ericfennis Yes thanks, I updated it to be the A variant now


text:
todo : f_tokenbond embedding to pairwise init (default to one single chain for starters if not passed in)

I added also comments related to the line 2 and 8 of alg 20

@engelberger should be taken care of already, thanks for starting on it Felipe!

authors: engelberger lucidrains


text:
changed python requirements to >=3.10

currently python>=3.8 is defined as requirement, but the code fails as the following feature support was added in python 3.10
https://peps.python.org/pep-0604/
example code that requires 3.10 can be found in alphafold3_pytorch/tensor_typing.pytensor_typing.py
IntType = int | np.int32 | np.int64

oh good catch! could you import future annotations instead? you can look at other files near the top

should be ok with https://github.com/lucidrains/alphafold3-pytorch/commit/020513675d171a494ca688b9a81caaa1895fabf9

should be ok with 0205136

cool, that's indeed better :)

authors: YoelShoshan lucidrains


text:
bandwidth params not work!

I want to imrove the audio quality by setting bandwidth params like encodec, but when i set bandwidth param of EncodecWrapper, it doesn't work, my code is bellow:
audio, codes, _ = codec(raw_audio, return_encoded=True, bandwidth=12.0)

It seems that the bandwidth params in some fun has been setted as a constant value 6.
Because i want to synthesis singing voice, so the quality of audio is very important to me.
How can i to set the params to improve the audio quality, anyone can help me, thanks!

ahh i see, so are you training the coarse transformer then?

@wotulong want to see if 1.2.29 does it?

you can pass in the bandwidth when initting EncodecWrapper

authors: lucidrains wotulong

repo: lucidrains/audiolm-pytorch


text:
Loss turned NaN when custom training

Hi , I met theloss nan issue too, and I added torch.autograd.set_detect_anomaly(True) then  got RuntimeError: Function 'MulBackward0' returned nan values in its 1th output. . The gigagan-python of mine is 0.2.20, how can I fix this issue, please!

I have set vision_aided_divergence_loss_weight=0. and still got wrong like below, please help me if you are convenient, thanks!

I have set vision_aided_divergence_loss_weight=0. and still got wrong like below, please help me if you are convenient, thanks!

I have this problem too. Do you solve it?

I have set vision_aided_divergence_loss_weight=0. and still got wrong like below, please help me if you are convenient, thanks!

I have this problem too. Do you solve it?

I have given up that repository.

authors: Lil-Air yasohasakii

repo: lucidrains/gigagan-pytorch


text:
Can't run MeshTransformer.generate(return_codes = True)

MeshTransformer.generate(return_codes = True) fails for me. No need to rush for the weekend.

oh what kind of error do you see? i can put in one last fix before i head out with doggo

hmm, it runs for me
i'll address this Monday if you are hitting some edge case

I captured some logs.
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3612/3612 [03:03<00:00, 19.66it/s]
Traceback (most recent call last):
  File "C:\Users\ernes\scoop\apps\python310\current\lib\site-packages\einops\einops.py", line 523, in reduce
    return _apply_recipe(
  File "C:\Users\ernes\scoop\apps\python310\current\lib\site-packages\einops\einops.py", line 234, in _apply_recipe
    init_shapes, axes_reordering, reduced_axes, added_axes, final_shapes, n_axes_w_added = _reconstruct_from_shape(
  File "C:\Users\ernes\scoop\apps\python310\current\lib\site-packages\einops\einops.py", line 187, in _reconstruct_from_shape_uncached
    raise EinopsError(f"Shape mismatch, can't divide axis of length {length} in chunks of {known_product}")
einops.EinopsError: Shape mismatch, can't divide axis of length 3611 in chunks of 3

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\meshgpt-pytorch\inference.py", line 61, in <module>
    continuous_coors = transformer.autoencoder.decode_from_codes_to_faces(codes)
  File "<@beartype(meshgpt_pytorch.meshgpt_pytorch.MeshAutoencoder.decode_from_codes_to_faces) at 0x198ba48d1b0>", line 53, in decode_from_codes_to_faces
  File "C:\Users\ernes\scoop\apps\python310\current\lib\site-packages\torch\utils\_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "F:\meshgpt-pytorch\meshgpt_pytorch\meshgpt_pytorch.py", line 685, in decode_from_codes_to_faces
    face_mask = reduce(codes != self.pad_id, 'b (nf nv q) -> b nf', 'all', nv = 3, q = self.num_quantizers)
  File "C:\Users\ernes\scoop\apps\python310\current\lib\site-packages\einops\einops.py", line 533, in reduce
    raise EinopsError(message + "\n {}".format(e))
einops.EinopsError:  Error while processing all-reduction pattern "b (nf nv q) -> b nf".
 Input tensor shape: torch.Size([1, 3611]). Additional info: {'nv': 3, 'q': 1}.
 Shape mismatch, can't divide axis of length 3611 in chunks of 3

are you on the most recent version?

I'm on a older version, there's another report the transformer broke, but take the weekend off, take care.

I fixed it, the python pip needed a newer version of pooled attention

@fire oh nice, which package was it?

One of your attention ones

@fire not very specific lol

I’ll check when I’m at a computer

not a big deal, was just curious
glad it fixed itself!

'gateloop-transformer>=0.1.5', was a few versions behind.

@fire ohh got it, that is actually not attention, but a new emerging technique (transformer is a misnomer)

authors: fire lucidrains

repo: lucidrains/meshgpt-pytorch


text:
Error accesing solr with kerber

Hi,
We had created a external table accesing solr with kerberos active with this script
CREATE EXTERNAL TABLE job_solr (gms STRING, cliente STRING, job STRING,job_descripcion STRING)
STORED BY 'com.lucidworks.hadoop.hive.LWStorageHandler'
LOCATION '/apps/hive/warehouse/datos/jobs_solr'
TBLPROPERTIES('solr.zkhost' = 'xxxxxxxx:2181/solr',
'solr.collection' = 'MSSearch1',
'solr.query' = ':',
'lww.jaas.file' = '/app/lucicworks/hive-solr/hive_solr_jaas.conf',
'lww.jaas.appname' = 'Client');
When we try to access the table from hive raise an error as it was not able to authenticate with kerberos
org.apache.hive.service.cli.HiveSQLException: java.io.IOException: shaded.org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://xxxxxxxxxxxxxxx:8983/solr/MSSearch1_shard1_replica2: Expected mime type application/octet-stream but got text/html.

Error 401 Authentication required

HTTP ERROR 401
Problem accessing /solr/M..
What could be the problem?
Regards

@jalongar  I think the query should be something like:'solr.query' = '*:*', (looks like a typo).
Please try to add the kerberos properties at the hive shell level.
hive> add jar /path/to/lucidworks-hive-serde.jar;
hive> set lww.jaas.file=/opt/mapr/conf/mapr.login.conf;
hive> set 'lww.jaas.appname' = 'Client';

Hi Cesar,
When I tried to execute from hive shell the command set lww.jaas.file='.... ' raise an exception:
Error: Error while processing statement: Cannot modify lww.jaas.file at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)
Regards

authors: acesar jalongar

repo: lucidworks/hive-solr


text:
🛑 Nextcloud is down

In 53fba56, Nextcloud (https://nextcloud.kerl.io) was down:

HTTP code: 502
Response time: 18586 ms

Resolved: Nextcloud is back up in a869089 after 3 minutes.

repo: lucienkerl/status


text:
Modify the current display

I modified the display with a new font using pyfiglet.

There are conflicts with the merge request....

repo: luciiegal/todolist


text:
Vault - Chat#getPlayerInfoInteger - Returns always the default value

the method Chat#getPlayerInfoInteger from Vault does always return the default value with LuckPerms.

Can you show me the code you're using?

MyPlugin.getChat().getPlayerInfoInteger(player, "myplugin.daily", 0);

Is player online?

offline

You cannot use Vault for offline player lookups. Use the native API.

So I need to use the API instead of using Vault to make the plugin useable for multiple permission plugins?

Yes, as I just said, you cannot use Vault for offline player lookups.
The Vault Permission API is not written in a way which allows for i/o in the background. When it was written, it was the norm that permission plugins would store all of their data in memory.
For offline players, I have to perform i/o in order to retrieve data. The majority of plugins which use Vault do so on the main thread (since the majority of permission plugins are not thread safe). Put those two things together and you have a problem.
I cannot block the main thread with i/o calls, or your server will pause for a few seconds every time a plugin performs a Vault operation.

Actually I'm wrong, sorry. I'm using it while the player is online.
Few seconds after the player logged in.

That's how I want to use it atm:

Thanks, that fixed it.

authors: Sir-Will lucko

repo: lucko/LuckPerms


text:
how to synchronize bungee cord permissions on luckperms?

how to synchronize bungeecord permissions on luckperms?

Read
https://github.com/lucko/LuckPerms/wiki/FAQ#where-do-i-install-luckperms
https://github.com/lucko/LuckPerms/wiki/FAQ#can-i-just-install-luckperms-on-bungeecord
and maybe https://github.com/lucko/LuckPerms/wiki/FAQ#how-do-i-get-permissions-to-sync-across-multiple-servers and https://github.com/lucko/LuckPerms/wiki/Network-Installation

Just connect to the same database and use /lpb sync and /lp sync

/lp networksync to synchronize the whole network, but with bungee messages configured you don't even have to, as it will be synchronized automagically ;)

Will this work between the permissions within the bungeecord config.yml and luckperms?

You can enable the following option in the config.yml of LuckPerms-Bungee, to apply permissions and groups from the BungeeCord-config:
https://github.com/lucko/LuckPerms/blob/master/bungee/src/main/resources/config.yml#L160

authors: Andre601 JaoPedronull MWFIAE ToxicMushroom


text:
fix(nested): support nested directory routes

support nested directory routes

:tada: This PR is included in version 1.5.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

repo: ludicrousxyz/light


text:
RN 57 support with Babel Preset...

Hi,
First, love this.
Second, looks like upgrading to RN 57 broke this.  I found adding the required preset "module:metro-react-native-babel-preset" made the config variables return as undefined.
I don't have a solution here, but curious if others have found this, and if there is a solution out there.
Thank you!
Dave

Have the same after upgrade to 0.57

Have the same problem in RN 0.57.5.

same in RN 0.57.8， need to check this source code to find out why return undefined , or config = {}

It seems fine for Android builds, only my iOS builds seem to be missing config data.

Still an issue it seems....

(For Android, please can someone test this for iOS)
Fixed it by doing the following:
In the Android src folder, open the file "MainApplication.java" and do the following...
Add the following at the top:
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
In the "getPackages" function, add the following as part of the ArrayList:
new ReactNativeConfigPackage()

Does anybody manage to solve an issue with iOS and React-Native 0.57?

I ended up getting iOS to work again (we'd upgraded RN versions when the problem began) by manually going through the linking process.  YMMV though.

This worked! https://github.com/luggit/react-native-config/issues/322#issuecomment-452813041
Going to close the issue, as I think its solved. Feel free to re-open if you disagree.  :)

authors: Marcsimm TingAli andreyslyusar dbarner1 ivanzhang ryands skrywus

repo: luggit/react-native-config