Build error regarding Play Framework templates in gradle 4

A Play Framework build that passed with gradle 3.5 is broken in gradle 4.0.1. I had a look at the release notes and I did not see any migration procedure regarding Play Framework. There may be a regression in gradle 4, unless I misconfigured something in my project?
Expected Behavior
The build should pass. It passes with gradle 3.5 using the ./gradlew clean build command.
Current Behavior
The same command does not work with gradle 4.0.1.
> Task :compilePlayBinaryScala
Pruning sources from previous analysis, due to incompatible CompileSetup.
[buildDirectory]/app/controllers/HomeController.java:22: error: cannot find symbol
        return ok(index.render(hello.buildHelloMessage()));
                  ^
  symbol:   variable index
  location: class HomeController
1 error

FAILURE: Build failed with an exception.

Steps to Reproduce (for bugs)
Clone this repository (which is a simple Play Framework project configured with gradle) and run ./gradlew build. It works.
Set the gradle wrapper version to 4.0.1 (in the build.gradle file), run ./gradlew wrapper to update the gradle wrapper and run ./gradlew clean build again. It fails.
Your Environment
Ubuntu 17.04.
------------------------------------------------------------
Gradle 3.5
------------------------------------------------------------

Build time:   2017-04-10 13:37:25 UTC
Revision:     b762622a185d59ce0cfc9cbc6ab5dd22469e18a6

Groovy:       2.4.10
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_131 (Oracle Corporation 25.131-b11)
OS:           Linux 4.10.0-26-generic amd64

------------------------------------------------------------
Gradle 4.0.1
------------------------------------------------------------

Build time:   2017-07-07 14:02:41 UTC
Revision:     38e5dc0f772daecca1d2681885d3d85414eb6826

Groovy:       2.4.11
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.8.0_131 (Oracle Corporation 25.131-b11)
OS:           Linux 4.10.0-26-generic amd64

Thanks to all the gradle contributors for this wonderful build tool!

I tried to reproduce the issue but couldn't. First I ran with the checked-in Wrapper (3.5) and then changed the Wrapper to 4.0.1. In both cases your project does not fail with a compilation error. Are you sure you didn't change some other file?

Hi @bmuschko. Thanks for your quick answer!
I did not change any file but I think I forgot to tell in my procedure that it is necessary to run ./gradlew clean before building again with gradle 4.
I just come to check in an empty Ubuntu Zesty Docker container and I reproduce the issue without changing any file (only if I clean before building with gradle 4).
I wish this will help you to reproduce the issue!

I followed this procedure:

Check out code
Run ./gradlew build
Update gradle/wrapper/gradle-wrapper.properties to use 4.0.1
Run ./gradlew clean
Run ./gradlew build

Unfortunately, I cannot reproduce the issue. Any chance you can provide us with a build scan? Also, what about CI? Can you set up Travis CI to see if that works for you?

You can find the build scan here. I did it in a fresh Docker Ubuntu container.
Note that I noticed it happens only whether the project was previously built in a previous gradle version (3.5 in my case). If I build with gradle 4.0.1 a fresh clone (probably without the gradle cache), I do not get this error.
Hope it helps!

Looks like an issue with the Java compiler:
Caused by: sbt.compiler.CompileFailed: (No message provided)Close stacktrace
at sbt.compiler.JavaCompiler$JavaTool0.compile(JavaCompiler.scala:72)
at sbt.compiler.JavaTool$class.apply(JavaCompiler.scala:32)
at sbt.compiler.JavaCompiler$JavaTool0.apply(JavaCompiler.scala:59)
at sbt.compiler.JavaCompiler$class.compile(JavaCompiler.scala:20)
at sbt.compiler.JavaCompiler$JavaTool0.compile(JavaCompiler.scala:59)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$1.apply$mcV$sp(AggressiveCompile.scala:123)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$1.apply(AggressiveCompile.scala:123)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileJava$1$1.apply(AggressiveCompile.scala:123)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:162)
at sbt.compiler.AggressiveCompile$$anonfun$3.compileJava$1(AggressiveCompile.scala:122)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:139)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36)
at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:31)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:39)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:38)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:66)
at sbt.inc.Incremental$.compile(Incremental.scala:38)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:153)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:201)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:183)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:174)
at com.typesafe.zinc.Compiler.compile(Compiler.scala:165)
at org.gradle.api.internal.tasks.scala.ZincScalaCompiler$Compiler.execute(ZincScalaCompiler.java:81)
at org.gradle.api.internal.tasks.scala.ZincScalaCompiler.execute(ZincScalaCompiler.java:52)
at org.gradle.api.internal.tasks.scala.ZincScalaCompiler.execute(ZincScalaCompiler.java:38)
at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkerAdapter.execute(AbstractDaemonCompiler.java:73)
at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerWorkerAdapter.execute(AbstractDaemonCompiler.java:64)
at org.gradle.workers.internal.WorkerDaemonServer.execute(WorkerDaemonServer.java:29)
at org.gradle.api.internal.tasks.compile.daemon.AbstractDaemonCompiler$CompilerDaemonServer.execute(AbstractDaemonCompiler.java:91)
at org.gradle.process.internal.worker.request.WorkerAction.run(WorkerAction.java:88)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:147)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:129)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)

I will likely ping someone in the team that is more familiar with Scala/Play projects.

Gradle 3.5, Build scan plugin 1.8

Looks like your issue already happens with 3.5. See top of the build scan.

Oh yes, sorry, you're right.
I was switching from 3.5 and 4.0.1 to reproduce the issue and it sounds like I reproduced it also with gradle 3.5 whereas I thought I was with gradle 4.0.1.
Here is the build scan of the same failure with gradle 4.0.1.
It sounds like it happens when changing the gradle version in a directory previously built with another gradle version. In the downgrade way, it is not very important, but in the upgrade way it may be annoying.
I noticed with gradle 3.5 it is the same error but gradle 4 adds the following line:

Pruning sources from previous analysis, due to incompatible CompileSetup.

We suspect that the issue is the same or related to the issue https://github.com/gradle/gradle/issues/1168.

Ok, I think I understand why.
The compile error tells that a compiled template cannot be found.

:compilePlayBinaryPlayTwirlTemplates UP-TO-DATE

The Twirl templates are not compiled because they are already up-to-date but they should not after a clean. It is the reason why the Java compiler does not find them.

Hi @big-guy. Indeed, the workaround you suggested fixes the issue.
Note that I just had to adjust it to get it compile:
tasks.withType(TwirlCompile) {
    doLast {
        fileTree(outputDirectory).files.each {
            GFileUtils.touch(it)
        }
    }
}

Thanks!

@bsautel Please be aware that GFileUtils is an internal API. You might want to write the method yourself to avoid potential future breakages.

I am going to close this issue as a duplicate of https://github.com/gradle/gradle/issues/1168.


[Bug]: Wrong labels in platform selection view

Is there an existing issue for this?

[X] I have searched the existing issues

Deploy type
OpenDataHub core version (eg. v1.6.0)
Version
2.4
Current Behavior
These are the current labels for the platform selection view

Expected Behavior

Model server cards descriptions (replace “from” with “to”): “Each model is deployed on…” “Multiple models can be deployed on…”
Sentence revision: “This platform works well for large models or models that need dedicated resources.” for Single model serving platform
Sentence revision: “This platform works well for sharing resources amongst deployed models.” For multi model serving platform

Steps To Reproduce

Have both Single model and multi model selected in your cluster
Navigate to a new project
Check the labels

Workaround (if any)
No response
What browsers are you seeing the problem on?
No response
Anything else
No response

Closing this in favor of #2178


[FEATURE REQUEST/IMPROVEMENT] Alternating Chat Bubbles

Description:
One of the features we'd like to see is to have chats (both DMs and group chats) come from alternating sides of the window based on who is sending it. As in Google Hangouts (and numerous other chat applications), a user's own chats appear on the right hand side of the window, and chats from other users appear on the left. We would highly appreciate the ability to toggle this on or off (would be great if it was a user setting), as it really improves clarity and speed when reading chats. This is especially true if you are reading back through a long conversation.
Please let us know if you would like additional description as to what we're talking about, or if this should be posted elsewhere.
Thanks!

Yes @Drangleic I was also thinking on the same. Have you checked Telegram X provideing option for toggling Bubble mode? It is really nice.
Thanks!!

Would like to see bubbles as an option. This is a must for glancing at the chat whilst on the move in the field.


not able to find auto folder in appdata folder

I'm able to open the folder c:\users\USERNAME\AppData\Local\Android\Sdk\extras\google
but after this not able to see the Auto folder.
Am I missing something or do I need to install something?

refer to https://github.com/thekirankumar/carstream-android-auto/issues/189

What does #189 have to do with this?

Sorry, but I have the same doubts with AKDara, I dont understand what #189 have to do with this?

I understood that, along with android studio we need to install android auto emulator then the required folder appears and rest of the steps can be followed.

KirGro,
The emulator is into Android Studio. This program are disposal on web.
To access this emulator you need:
1 Open Android Studio
2 Click in Configure on right down the page
3 SDK Manager
4 SDK Platform table, certified your correct system was flag/selected
5 SDK Tools table, flag/selection option "Android Auto Desktop Head Unit emulator"
All,
I can found the way to c:\users\USERNAME\AppData\Local\Android\Sdk\extras\google\auto>, but when I executed "desktop-head-unit", doens't not conclued and showing mensage: Connecting over ADB to localhost:5277... failed. Failed to start Google Automotive Link.
PS. I'm using Android Studio v.2.3.3


requirements-docs.txt installs dask-core

What happened:
Following the tutorial on how to build docs locally, I find out that it actually installs dask-core as dependency, which is fine, since it makes the build working, but it then goes in disagreement with the following statement:

You can now make edits to rst files and run make html again to update the affected pages.

Since the imported version of dask, and its changed docstrings, are not imported nor build, so new updated docstrings will not be included on the built html.
What you expected to happen:
dask-core shouldn't be installed or at least we should mention this corner case on the tutorial
Minimal Complete Verifiable Example:
cd docs
conda env create -f requirements-docs.txt -n docs-test
conda activate docs-test
conda list
# packages in environment at /home/eracle/anaconda3/envs/docs-test:
#
# Name                    Version                   Build  Channel
[...]
cytoolz                   0.10.1           py38h516909a_0    conda-forge
dask-core                 2.17.2                     py_0    conda-forge
dask-sphinx-theme         1.3.1                      py_0    conda-forge
distributed               2.17.0           py38h32f6830_0    conda-forge
[...]

change any docstring on the codebase
make html

open an html file who is including the issued docstring;
verify it didn't changed.
Anything else we need to know?:
If this is ok, I can handle this and create a PR adding few lines on the tutorial.
Environment:

Dask version: 2.16.0+32.g24ad0f0e.dirty
Python version: 3.8.2
Operating System: Ubuntu 18.04.4 LTS
Install method (conda, pip, source): conda

btw I solved removing dask-core and installing local version with:
python setup.py install --record files.txt

This is probably worth some discussion. I am not sure when we build docs relative to when we release, but I imagine it is kind of nice fail-safe to be able to edit the docs and rebuild them knowing that they will only ever relate to published versions of dask.
Maybe it'd be more conservative to change the docs-building documentation to recommend doing pip intall -e .. after installing dependencies.

I agree on being conservative and add a few lines on the docs-building documentation.
Any case I don't think it was a planned behaviour including dask-core as dependency of the docs building dependencies, also because is added through inclusion of distributed (you can check here).
I think we can stick on the easiest and conservative solution, even though I think best solution is to build local changes when the build is made locally.
We should double check if this is not a problem when new releases are made toward pipy + readthedocs.org (which is where I suppose the dask.com domain points).

Another issue just came up detailing some odd behavior. Probably worth talking about this with @dask/maintenance.

Hey @jsignell , thanks for the mention.
You can check out here dask.com points to docs.dask.com, which is built by readthedocs everytime a new commit is done on master branch, so everytime we merge.
As you pointed out, merged docstring who weren't released yet are missing on-line.
I am PR a fix, here's a pic of a local working build:

Closed by #6295


Reduce the size of Receiver

This changes the size of Receivers from 32 bytes to 16 bytes and the size of Sender from 8 bytes to 16 bytes.
The amount of reference counting going on is reduced too, which makes channel construction and destruction slightly faster.

Ah, not a bug in the actual code - it's a bug in a test.
bors r+


Add PDF-ML to print production list

Would it be possible to add 'Antenna House' to the company listing at http://www.dita-ot.org/ ?
In addition to Formatter, which is used as one of the DITA PDF renderers, we created and maintain the PDF5 DITA plugin:  https://github.com/AntennaHouse/pdf5
Thanks!
Angelo Cano

The Formatter listing was added with information on other FO processors for #36.
The linked plug-in repository suggests PDF5 has been superseded by the multilingual plug-in variant:

Because the successor [PDF-ML] has been released, we will stop development of this plug-in at the end of January, 2016.

Adding the PDF-ML variant instead.


⚠ Bofrost.be has degraded performance

In c0e51dc, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 929 ms

Resolved: Bofrost.be performance has improved in b8a35d9.


Investigate socket errors reported by wrk during tests

Describe the bug
Longevity tests https://github.com/nginxinc/nginx-gateway-fabric/pull/1113 reported a large number of read socket errors from wrk -- see https://github.com/nginxinc/nginx-gateway-fabric/blob/6e1c9d82030cfa1f5c2453c60cb26d087b43c4e5/tests/longevity/results/1.0.0/1.0.0.md#traffic
Such errors can be reproduced in a short time period (30s) if NGINX is reloaded.
It is not clear what causes the issue and if it can lead to downtime as perceived by clients.
To Reproduce

Deploy NGF with one replica
Deploy manifests from here -- https://github.com/nginxinc/nginx-gateway-fabric/tree/main/tests/longevity/manifests -- cafe.yaml, cafe-secret.yaml, gateway.yaml, cafe-routes.yaml
Edit /etc/hosts on your machine so that cafe.example.com points to the NGF (pod IP is fine, no need to use an external LB)

HTTP check:
Run :
wrk -t2 -c100 -d30s http://cafe.example.com/coffee

At the same time, run re-rollout coffee pods - that will cause a series of NGINX reloads:
kubectl rollout restart deployment/coffee

See the socket errors in the output of wrk. Example:
 Socket errors: connect 0, read 257, write 0, timeout 0

HTTPS check:
Run :
wrk -t2 -c100 -d30s  https://cafe.example.com/tea

At the same time, run re-rollout tea pods - that will cause a series of NGINX reloads:
kubectl rollout restart deployment/tea

See the socket errors in the output of wrk. Example:
  Socket errors: connect 0, read 290, write 0, timeout 0

Expected behavior
No errors
Your environment
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.3-gke.100", GitCommit:"6466b51b762a5c49ae3fb6c2c7233ffe1c96e48c", GitTreeState:"clean", BuildDate:"2023-06-23T09:27:28Z", GoVersion:"go1.20.5 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"}
wrk -v
wrk debian/4.1.0-3 [epoll] Copyright (C) 2012 Will Glozer

the machine with wrk is on the same network as Kubernetes cluster with direct access to the pods

Sockets are implied stateful and will require a reconnection from the client side if there is any interruption.  Is that correct?
Where I would expect REST client to not behave the same way / detect interruptions in the same way.

Closing since we are no longer using wrk for our NFR tests. If we see continuing connection errors, we can open a new issue.

Scratch that, we do still use wrk for the longevity tests. Reopening.

We're now using a newer version of wrk
$ wrk -v
wrk 4.2.0 [epoll] Copyright (C) 2012 Will Glozer


Wiki

Can you create a wiki that I can provide instructions on how to get your software to run on windows.

I've added a sample page and made edit access open.

Thank you very much. I have described the Windows installation under the following link:


Adopt formatter/linter commands from dead null-ls

Hi.
null-ls is similar to efmls but it got archive recently. I suggest to borrow some commands from their list of configs, see: BUILTINS
My best!

I'm not sure I understand, what do you mean by commands?

@creativenull efm-ls takes as input tools that define commands to run. null-ls does the same, but in a bit different way. Worth to use as reference.

Oh I see, well this has been the main goal of efmls-configs (adding tools that other plugins such as null-ls provides) 😅
If you don't see any tools that null-ls already provides then PRs are always.


*: Fix more clippy warnings.

Hey!  I would like to target the stable rust branch, which does not allow #![feature].  Are you able to fix the clippy warnings without relying on this?

Sure, I will send more PRs later.


Create templates to match Web Fundamentals Responsive Design Patterns

in addition to the standard index.html and basic.html templates, add templates for:

Mostly fluid
Column drop
Layout shifter
Off canvas

Once done - please file an issue with Web Fundamentals and we'll update the documentation there to use the same code/samples as you've used.

@devnook if I'm correct, you ended up implementing these. It would be interesting to review them again and see how easily they can be transitioned to Material Design for the newer layouts.

We've decided to implement responsive layout templates for the new set of components in material design lite. These will try to tackle the above use-cases but we'll probably ship with 2-3 to begin with and iterate. Let's file an upstream issue to keep track.


gio: generate a bunch of auto bindings

There seems to be more simple things that can be generated, will look into it in a bit :)

I am going to go ahead and close this one, if some specific bindings are needed in the future we can add them separately.


Splash Page

Create a splash page for when users navigate to inployd.com

Frontend page design

Sign in button
Sign up button (redirects to sign up)

This is fully implemented and the page is now dynamic (mobile friendly)


Pretrained model - Missing files

Hi Deng,
I'm trying to use the pretrained model but it seems to be missing the files of "data/AMR/amr_2.0_utils/". Could you please update the repository with these files?
Thanks
Kind regards,
Carlos

Hi Carlos,
please use sh download_artifacts.sh for getting those files. Sorry for did not mention it earlier.
Best,
Deng


Usernames can not contain numbers

This will break the lookup of user id and username in getBasicUserInfo

After further testing, usernames CAN have numbers, but they must include at least one letter


Feature/guardians recovery noblocs

🗃 Github Issue Or Explanation for this PR. (What is it supposed to do and Why is needed)
Guardians recovery mode
✅ Checklist

[ ] Github issue details are up to date for people to QA.
[xI have tested all my changes.

🕵♂ Notes for Code Reviewer
Use testingseeds, testingseed2, testingseed3 and your own account for testing.
RC 1 - alpha status, was able to go through a full recovery process - signing up guardians, setting them, requesting account recovery, recoverying account
🙈 Screenshots
For all UI changes

description 1
description 2

img1
img2

👯♀ Paired with
@github-handle or "nobody" if you did not pair.

info • Dead code • lib/screens/app/profile/profile.dart:421:17 • dead_code
info • Unused import: 'package:seeds/constants/app_colors.dart' • lib/screens/onboarding/continue_recovery.dart:7:8 • unused_import


Keep tags updated and remove unnecessary branches

Tags, not branches, should be used for immutable references.
# make new tags
git tag 1.0.3 fafc5d0
git tag 1.0.4 291de51
git push origin --tags

# delete local branches
git branch -d v1.0.1
git branch -d v1.0.2
git branch -d v1.0.3
git branch -d v1.0.4

# delete remote branches
git push origin :v1.0.1
git push origin :v1.0.2
git push origin :v1.0.3
git push origin :v1.0.4

You may also want to sign or describe releases, as shown here.

Thanks for the tip! I wasn't aware of the usefulness of tags before, but now I am.


Installing @angular/compiler-cli gives a warning with TypeScript 2.9

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)
N/A
Versions

node: v8.11.1 , npm: 5.6.0, yarn: 1.7.0, ng: n/a
Repro steps

 yarn add @angular/compiler-cli typescript

The log given by the failure

warning "@angular/compiler-cli ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS><2.9".

Desired functionality

One of the features of Angular 6.1 was TypeScript 2.8/2.9 support, but one of your dependent packages, tsickle, or at least the version of it you are on is not updated to support 2.9, and now gives warnings every time we try to install it
Mention any other details that might be useful

N/A

Found duplicate issue in https://github.com/angular/angular/issues/25141 - closing


Add resampling of elements in an array

Given an array of n elements, randomly generate n indices and create an output stream from those indices. Create n resamples of the array like  this. Fold the generated streams using the supplied fold, creating an output stream of fold results.
resample :: Array a -> Fold m a b -> SerialT m b

For reference see https://hackage.haskell.org/package/statistics-<IP_ADDRESS>/docs/Statistics-Resampling.html .

Another possible API is to just generate a stream of samples:
resample :: Array a -> SerialT m (SerialT m a)


re #3724: tablet transaction log

Created a transaction log for the datafile manager
Added dumping of the log when metadata differences are detected
Added, based on a property, the ability to auto correct either the metadata or the memory IFF the log agrees with one or the other

I'm not convinced that we should do something like this yet. It's attempting to solve the problem by overwriting the list of files for the Tablet. It's not fixing the root cause and could introduce other issues. I would feel much better if this only dumped the transaction log.
In the three places that DatafileTransactionLog is used, it's called right after the code adds to the local synchronizeddatafileSizes map.  In the case of bulk import and minor compaction, the metadata table is updated before the files are added to datafileSizes. In the case of major compaction, it happens after. In any of those cases, if #3721 is the cause, then the metadata table would be out of sync with datafileSizes and datafileSizes should contain the correct list of files.

I'm not convinced that we should do something like this yet. It's attempting to solve the problem by overwriting the list of files for the Tablet. It's not fixing the root cause and could introduce other issues. I would feel much better if this only dumped the transaction log.
In the three places that DatafileTransactionLog is used, it's called right after the code adds to the local synchronizeddatafileSizes map. In the case of bulk import and minor compaction, the metadata table is updated before the files are added to datafileSizes. In the case of major compaction, it happens after. In any of those cases, if #3721 is the cause, then the metadata table would be out of sync with datafileSizes and datafileSizes should contain the correct list of files.

I was not attempting to solve the problem but to supply a mechanism to do cleanup when this is detected.  I was expecting that "log" would be used until a snafu happens at which time the recovery value can be set as appropriate given what ever happened and then set back to "log".  It took us 16 hours to try and recover a system the last time this happened.

So, I think my initial reaction to this change was based on a misunderstanding. I thought this was creating a 3rd object in which changes were tracked, and then either updating the tablet metadata or datafileSize with the contents of the 3rd object. It's not doing that after looking further, it's either updating the tablet metadata from datafileSizes or the reverse of that.

I was not attempting to solve the problem but to supply a mechanism to do cleanup when this is detected. I was expecting that "log" would be used until a snafu happens at which time the recovery value can be set as appropriate given what ever happened and then set back to "log". It took us 16 hours to try and recover a system the last time this happened.

There is a highly unlikely edge case with this work flow. If two tablets develop inconsistencies at around the same time, but analysis reveals one needs memsync and the other needs metasync that would be tricky to handle this situation.  There is also the even more unlikely possibility that while the setting is set to memsync or metasync that a new inconsistencies comes into existence that needs to opposite of what was set to fix an existing analyzed inconsistency.

It seems like the only way to know if this is safe is to understand the underlying bug well enough to just fix the bug (which we currently think is https://github.com/apache/accumulo/issues/3721).

Eventually the bug may be found and fixed, but in the meantime tooling is needed to deal with issues that arise.  If this PR were scoped down to only logging helpful info, then there may still be a gap in tooling. We can already edit the metadata table, there is not a quick way to deal with problems in with tablets in memory data at the moment though.  Not sure of the best way to address this, the following are some possible solutions.

Add a per tablet RPC to reload a tablets files from the metadata table.
Add an operation to Accumulo reload a tablet on a tserver.  The tserver closes and immediately opens the tablet, creating a new Tablet object.  This could be a generally useful primitive to quickly resets all the tablets in memory state without balancing.
Create a balancer implementation that allows reloading individual tablets based on dynamic configuration. Similar to the above in functionality, maybe not as fast.

I'm really not sure about this. I'm uncomfortable with automatic surgery on the metadata table as an option that's even on the table, because I think it has a high chance of making things worse. It seems like the only way to know if this is safe is to understand the underlying bug well enough to just fix the bug (which we currently think is #3721). Even as something that only logs activity, isn't this redundant with the existing tablet activity logging?
I also can't help but wonder that if a replay log could fix this so easily, then wouldn't we be able to rely on the WAL? Why would we need something else that's more narrowly scoped and niche than the WAL? How can we be confident this would address the issue if we know the WAL, which has the benefits of being polished and tested over many years, has already failed to do so?
Like I said, I'm just not so sure about this direction.

The problem is that one of the WAL's that we care about is on a separate tablet most likely on a separate tserver.  So essentially this log is tracking what the tablet thinks the remote tablet should be doing.  I can only hope that #3721 is the only issue.  Hence why I am creating this mechanism.
I agree the automatic update  seems scary but it would only be done if the log agrees with one side or the other.

OK, it appears to be a concensus that nobody is comfortable with any kind of automated repair.  I will create a subset of this PR that provides only the logging portion to coincide with the metadata/memory consistency checking.  Having the information on what transactions occured makes it a lot easier to determine what happened.  Thank you for your reviews thus far everybody.

@ctubbsii I have already reduced this to simply logging.  Please re-review it when you get a chance.

@dlmarion @ctubbsii @keith-turner Are we good to merge this in?

@ivakegg  I was planning on looking at this a bit later today.  If you want to merge that seems fine with me,  I will still look at the change this afternoon.  If you do merge and I see anything then I will create a new PR and tag you for reviewing it.

I was also planning on taking another look later today. I would prefer we hold off until next week at least to give more time to review and polish. I'm particularly interested in how close the current implementation is to the outline I made in my previous comment, and where it diverges, what are the substantive differences between the rough ideas I had in my head, and how it actually is implemented. Given that #3733 has been addressed, I don't think this is particularly urgent, but I think 2.1.3 is a reasonable target, once everybody is happy with it. So, while I think we should hold off on merging it for now, I will mark it as a blocker for 2.1.3 so it doesn't get punted past the next patch release.

I was curious what this output for this would look like in the logs and wrote this IT to force a consistency check problem.  Below is what the output in the tserver log looked like.  I replaced URI prefix with VOLUME to shorten the data.
2023-09-08T16:27:40,956 [tablet.Tablet] ERROR: Data files in 1<< differ from in-memory data {VOLUME/accumulo/tables/1/default_tablet/F000003k.rf=237 1} {VOLUME/accumulo/tables/1/default_tablet/A000003j.rf=319 10, VOLUME/accumulo/tables/1/default_tablet/F000003k.rf=237 1} [startedCount:14,finishedCount:14] [startedCount:14,finishedCount:14]
2023-09-08T16:27:40,960 [tablet.DatafileManager] ERROR: Operation log: 20230908T16:27:35.940: Initial files for 1<< : []
20230908T16:27:36.054: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F0000037.rf]
20230908T16:27:36.084: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F0000038.rf]
20230908T16:27:36.151: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F0000039.rf]
20230908T16:27:36.209: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003a.rf]
20230908T16:27:36.238: Compacted [VOLUME/accumulo/tables/1/default_tablet/F0000039.rf, VOLUME/accumulo/tables/1/default_tablet/F0000038.rf, VOLUME/accumulo/tables/1/default_tablet/F0000037.rf, VOLUME/accumulo/tables/1/default_tablet/F000003a.rf] into Optional[VOLUME/accumulo/tables/1/default_tablet/A000003b.rf]
20230908T16:27:36.273: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003c.rf]
20230908T16:27:36.335: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003d.rf]
20230908T16:27:36.399: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003e.rf]
20230908T16:27:36.418: Compacted [VOLUME/accumulo/tables/1/default_tablet/F000003e.rf, VOLUME/accumulo/tables/1/default_tablet/F000003d.rf, VOLUME/accumulo/tables/1/default_tablet/F000003c.rf, VOLUME/accumulo/tables/1/default_tablet/A000003b.rf] into Optional[VOLUME/accumulo/tables/1/default_tablet/A000003f.rf]
20230908T16:27:36.459: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003g.rf]
20230908T16:27:36.521: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003h.rf]
20230908T16:27:36.586: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003i.rf]
20230908T16:27:36.604: Compacted [VOLUME/accumulo/tables/1/default_tablet/A000003f.rf, VOLUME/accumulo/tables/1/default_tablet/F000003g.rf, VOLUME/accumulo/tables/1/default_tablet/F000003i.rf, VOLUME/accumulo/tables/1/default_tablet/F000003h.rf] into Optional[VOLUME/accumulo/tables/1/default_tablet/A000003j.rf]
20230908T16:27:36.646: Flushed into Optional[VOLUME/accumulo/tables/1/default_tablet/F000003k.rf]
Final files: [VOLUME/accumulo/tables/1/default_tablet/A000003j.rf, VOLUME/accumulo/tables/1/default_tablet/F000003k.rf]

I removed the blocker on this PR as I believe the main reason for the memory inconsistency has been resolved.  Also I believe a flag needs to be added to disable this log altogether as it may be to much of a performance hit where the accumulo.metadata tablets are concerned.

Closing this PR as I believe it is not worth the overhead and maintainance given most of the issues related to the in-memory differences have been resolved.


Help with android example "Access denied finding property "net.dns1""

Describe the bug
I run the android example with flutter run.
E/libc    (29962): Access denied finding property "net.dns1"
E/libc    (29962): Access denied finding property "net.dns2"
E/libc    (29962): Access denied finding property "net.dns3"
E/libc    (29962): Access denied finding property "net.dns4"

I'm not familiar with android development.  Not sure what I'm doing wrong.

this just a warning, pls ignore it.


Missing module

[ERROR] Missing module: colorama>=0.3.9
[ERROR] Missing module: requests>=2.18.4
[ERROR] Missing module: urllib3>=1.22

Yea you have to pip install them

same problem:
sudo python3 subzone.py -d https://facebook.com -o facebook.txt
[ERROR] Missing module: colorama>=0.3.9
[ERROR] Missing module: requests>=2.18.4
[ERROR] Missing module: urllib3>=1.22
i try-->
sudo pip install requests==2.18.4
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Requirement already satisfied: requests==2.18.4 in /usr/local/lib/python2.7/dist-packages (2.18.4)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests==2.18.4) (2.6)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/lib/python2.7/dist-packages (from requests==2.18.4) (3.0.4)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests==2.18.4) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python2.7/dist-packages (from requests==2.18.4) (2019.11.28)
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
any idea?
Thanks


Enable incremental backups

This tracks enabling the incremental backup feature (currently for Exchange only) by default.
This feature is currently behind a feature flag (--exchange-incrementals) in the backup command.

[ ] https://github.com/alcionai/corso/issues/1956

I have reviewed our existing documentation and I'm nog sure there is anything more to document here. The concepts section already covers incremental backups and the commands are self-documenting.

@ryanfkeepers @vkamra I propose we close this

closing


New Child Address from HD public address gives error in testnet

The following code works with the bitcoin network but not the bitcoinTestnet network. IOW, it works with xpub but not tpub addresses.
				$key = HierarchicalKeyFactory::fromExtended($xpub, NetworkFactory::bitcoinTestnet());
				$path = ($change ? '1' : '0').'/'.$index;
				$child_key = $key->derivePath($path);
				return new Result('data',(new PayToPubKeyHashAddress($child_key->getPublicKey()->getPubKeyHash()))->getAddress());

It gives the error:

Invalid Bitcoin address: HD key magic bytes do not match network magic bytes

I noticed the constant xpub is mentioned in the code, but not the constant tpub. It seems like this could be overridden in the testnet network. I don't understand enough about the code for the magic bytes to produce a pull request. Thanks.

Posting on the wrong project, think you mean https://github.com/bit-wasp/bitcoin-php

ok I will. Close or delete. Sorry!

hmm, one thing looks off, when you call `getAddress() to to get it as a string, you'd need to pass the network there to get the address formatted correctly for testnet.
But I'm not sure about the error - are you passing a key beginning with xpub while you are using testnet? You'd need to use a tpub key in that case, which to me is the most likely cause for the error.


Dvclive 3.0 admon

Adds an admon with a link to release notes in https://dvc.org/doc/dvclive. Is it enough?

Going to merge to have some notice, but would love other ideas.


[History] Certain actions missing from ABI

EOS Rio found that for the fio.treasury contract they could not trace certain actions. And the ones they listed are not in the fio.treasury contract abi. In some contracts we use inline actions of other contracts to change values in different tables , those actions have not been added to the abi of the contract that is calling it - therefore it might not be able to trace. Maybe any actions that happens in fio.common.hpp needs to be added to the abi of the contract that included the header and is calling the action in there

Adam Androulidakis
April 13, 2020, 3:50 PM
Eric Butz, [13.04.20 11:01]
Hi @igorls, I added @serpentchain to this channel as he is looking into some of the issues surrounding our ABIs. I know you brought ABI issues up prior to mainnet and we ran out of time and did not fix them. Would you have some time to answer some questions with the team tomorrow? Later in the morning your time or afternoon looks open for us.
Igor Lins e Silva, [13.04.20 11:29]
[In reply to Eric Butz]
we fixed them already
Igor Lins e Silva, [13.04.20 11:29]
the working abis are published here https://github.com/eosrio/hyperion-history-api/tree/master/custom-abi/fio ‑
Connect your account to preview links
Igor Lins e Silva, [13.04.20 11:30]
now when the new contract version is ready you just need to make sure the actions are included
Igor Lins e Silva, [13.04.20 11:31]
fio.address
decrcounter
fio.treasury
fdtnrwdupdat
bprewdupdate
bppoolupdate

Addressed by #92


issue with setup.py

line 5 in https://github.com/eureka-research/Eureka/blob/main/setup.py needs , at the end of the line to work with pip install

I agree with you

Thanks for catching this! Fixed.


cachegen config refactor

Modification on CacheGenConfig.
No default is provided unless the default model type is fixed.

Format Mismatch. Close the PR temporarily.

bash format.sh

Test Pass. Please Review


Raise if split_out=None for groupby ops

This is deprecated in dask/dask, so lets enforce here

This is now enforced


TZInfo::DataSourceNotFound for new Rails application (Ruby 3.1.0 on Windows)

Hi am facing this issue when creating new rails application ruby, rails are installed correctly but still i am getting tzinfo error

Bundle complete! 15 Gemfile dependencies, 70 gems now installed.
Use bundle info [gemname] to see where a bundled gem is installed.
run  bundle binstubs bundler
rails  importmap:install
rails aborted!
TZInfo::DataSourceNotFound: tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install
C:/Users/nittr/desktop/Ruby/newBlog/config/environment.rb:5:in `'
Caused by:
TZInfo::DataSources::ZoneinfoDirectoryNotFound: None of the paths included in TZInfo::DataSources::ZoneinfoDataSource.search_path are valid zoneinfo directories.
C:/Users/nittr/desktop/Ruby/newBlog/config/environment.rb:5:in `'
Tasks: TOP => app:template => environment
(See full trace by running task with --trace)
rails  turbo:install stimulus:install
You must either be running with node (package.json) or importmap-rails (config/importmap.rb) to use this gem.
You must either be running with node (package.json) or importmap-rails (config/importmap.rb) to use this gem.

This is my gemfile:
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.1.0"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.0.1"

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem "sprockets-rails"

# Use sqlite3 as the database for Active Record
gem "sqlite3", "~> 1.4"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails"

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder"

# Use Redis adapter to run Action Cable in production
# gem "redis", "~> 4.0"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require:true

# Use Sass to process CSS
# gem "sassc-rails"

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

group :development, :test do
  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
  gem "debug", platforms: %i[ mri mingw x64_mingw ]
end

group :development do
  # Use console on exceptions pages [https://github.com/rails/web-console]
  gem "web-console"

  # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
  # gem "rack-mini-profiler"

  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
  # gem "spring"
end

group :test do
  # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
  gem "capybara"
  gem "selenium-webdriver"
  gem "webdrivers"
end

This is my boot file:
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)

require "bundler/setup" # Set up gems listed in the Gemfile.
require "bootsnap/setup" # Speed up boot time by caching expensive operations.

Can anyone please help me how to resolve this issue.

It looks like you are using Ruby 3.1.0 on Windows. Rails (ActiveSupport) requires the tzinfo-data gem on Windows to supply time zone data.
Normally, this line in the Gemfile would include tzinfo-data on Windows:
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

It looks like the platform matching isn't working for Ruby 3.1.0 and the gem is not being installed. If you are only running Rails on Windows or are happy to use tzinfo-data for time zone data on all platforms, then you could just remove the platforms option from the Gemfile:
gem "tzinfo-data"

Once you've done this run bundle install, which should install the tzinfo-data gem.

I've opened rubygems/rubygems#5269 for the issue with x64_mingw not matching for Ruby 3.1.0 x64 Windows builds.

Hi thanks for help. The issue is resolved and server has started successfully. Thanks again for help.


Add support for nested transactions

fsspec.transaction.Transaction() context manager should support nested transactions.
example usage:
def func1():
    fs = fsspec.filesystem('file')
    with fs.transaction:
        #write some files
        ...
        func2(fs)

def func2(fs):
    #this function does not know if the caller function already started a transaction on fs or not
    with fs.transaction:
        #write some other files
        ...

in the current implementation the transaction will complete (commit) once the with block in func2() completes

You are totally right about what the current implementation would do.
Are you advocating that all files should complete only when the last context exits, or that each file should be tied to a specific context and complete when that context exits?

I think all files should complete only when the last context exits
successfully. (Otherwise the "all or none promise" made by the outer
transaction would be violated)
(I suppose this is also how it's implemented in DB transactions but I'm not
sure)
On Fri, Jul 2, 2021, 6:07 PM Martin Durant @.***> wrote:

You are totally right about what the current implementation would do.
Are you advocating that all files should complete only when the last
context exits, or that each file should be tied to a specific context and
complete when that context exits?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/intake/filesystem_spec/issues/685#issuecomment-873068096,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABUWYBPXFFDHLVTLBIYGYLTTVXIZHANCNFSM47NOJ34A
.

That's fine, if we can explain it well in documentation. Would you like to have a go at implementing this?

Thanks. Sorry, but I wont be available for working on this.
My 2c design suggestion:

Add a counter to Transaction() class
increment it on __enter__
decrement it on __exit__ (even if __exit__ is called because of an exception)
do the action on __enter__ only on the first time its called (when counter==0 before the incrementation)
do the action on __exit__ only on the last time its called (when counter==0 after the decrementation)
optional: alter Transaction.start() and Transaction.complete() to also support nested transaction


refactor: GRPC metrics using tally and can be tagged properly

GRPC metrics are using tally, this way they can be prefixed and tagged properly.

Codecov Report

Merging #287 (077e1a3) into main (7ac2f26) will decrease coverage by 0.31%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #287      +/-   ##
==========================================
- Coverage   28.88%   28.57%   -0.32%
==========================================
  Files          51       52       +1
  Lines        5241     5298      +57
==========================================
  Hits         1514     1514
- Misses       3530     3587      +57
  Partials      197      197

Impacted Files
Coverage Δ

server/midddleware/metrics.go
0.00% <0.00%> (ø)

server/midddleware/middleware.go
0.00% <0.00%> (ø)

server/services/v1/api.go
0.00% <0.00%> (ø)

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 7ac2f26...077e1a3. Read the comment docs.


Should tl::expected be nodiscard?

I'm guessing that this is maybe controversial in the wider community, but I'm looking into adopting tl::expected and I'm not quite sure why it's not [[nodiscard]], is there a reason for this?

Mostly just that the paper isn't [[nodiscard]]. And since it's a vocabulary type I don't want to be too opinionated about it. If you want it to be nodiscard it should be a simple edit.

If you are not using the result of a function, why would you care about an error? Except with expected<void, ...> maybe.


Add details about when an expiration date is updated during autorenewal

It would be helpful to include details about when a Team's expiration date will update if the group meets the conditions for autorenewal. Proactive Team Owners might be concerned when they see a date and want to know when it will reflect the accurate expiration based on the group's activity.
I'm assuming that the date updates 30 days before expiration to align with the trigger to notify an inactive group's owners to renew. If so, will it set the new expiration to the (expiration period)+(expiration date) or (expiration period)+(notification date)?
For example, if an active group with an expiration period of 90 days has an expiration date of 12/31/2022, will it auto-renew on 12/01/2022 with a new expiration date of 03/01/2023 or 03/31/2023.
If it doesn't update 30 days before expiration, will it update on or after the expiration date?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: b41d63bc-26f4-fd50-adc4-f665c1a4cd88
Version Independent ID: 24248b2d-79a1-98a7-86dd-f6dbcf9e2ab3
Content: Team expiration and renewal in Microsoft Teams - Microsoft Teams
Content Source: Teams/team-expiration-renewal.md
Service: msteams
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

Hi @simpkinspete, thank you for your feedback.
I think you can find all the answers to your question in the following articles:
https://learn.microsoft.com/azure/active-directory/enterprise-users/groups-lifecycle
https://learn.microsoft.com/microsoft-365/solutions/microsoft-365-groups-expiration-policy
For example:

For example, if an owner or a group member does something like upload a document to SharePoint, visit a Teams channel, send an email to the group in Outlook, or view a post in Yammer, the group is automatically renewed around 35 days before the group expires and the owner does not get any renewal notifications.
From the Renew group notification email, group owners can directly access the group details page in the Access Panel. There, the users can get more information about the group such as its description, when it was last renewed, when it will expire, and also the ability to renew the group. The group details page now also includes links to the Microsoft 365 group resources, so that the group owner can conveniently view the content and activity in their group.

Hi @simpkinspete Hope all is well. Does this answer your question? Thanks.


Is there some thought for dark/light theme doesn't only by dark:

Now, not only unocss but also wind, tailwind support dark mode only with dark variant.
It means We should write more class name for supporting dark mode.
A better method for this that use color palette (refer to mui: https://mui.com/material-ui/customization/dark-mode/#main-content):
We design two color tokens, and automaticly change those tokens with compute mode changed or by user manual.
unocss has any plans to implement this?

You can write your own variant to support that:
https://github.com/unocss/unocss/blob/2180281ba36fab75b395330bf76c89f845c4e8df/packages/preset-mini/src/variants/dark.ts#L1-L22

@antfu Hi,
I mean I define two sets of colors in the configuration file. Then, at some point in time, uno automatically switches which set of colors to use.

Now I have a preliminary idea to use CSS variable, for example:

hello this

I try to use in unocss:
// index.css imported by main.ts
body{
  --bg-gray: red
}

//vite.config.ts
  Unocss({
      theme: {
          color: {
              main: 'var(--bg-gray)',
          }
      },
  })

//App.tsx

hello uno

That's not work.
However, even if it works, it is not the best implement in my mind.
In my mind the best ways to implement is that we define two sets of colors in unocss config file.
example:
//vite.config.ts
  Unocss({
      theme: {
        dark: {
            color: {
                main: '#fff',
            }
        },
        light: {
            color: {
                main: '#f1f1f1',
            }
        }
      },
  })

I only use bg-main，the uno will automatic to switch which real color would be used.

I see. I like your idea and I see the usage. However, it requires an overhaul of all the utilities and might break existing apps. I would recommend starting a new preset with this idea in mind. If you do, I am happy to list it as a community preset in the readme.
On the other hand, I am using this approach: https://twitter.com/antfu7/status/1533584342228037632

@antfu
All right. In fact, I am not familiar with the development of uno preset. But I'd like to try it in my spare time.

Another way of changing theme without adding classes:
You can use CSS variables/properties like this and change them in dark theme like this.
In this way, you can create unlimited color schemes. Want to add theme named coffee, Yes you can :)
Moreover, you can change them at runtime. You can checkout the demo here (Click on "Change Primary" button).

Now I've made a preset that supports it


pdn should error if a macro is failing to connect

Describe the bug
If a macro is short enough to fall between two pdn strips then an error should be reported (or the algorithm improved to handle it).
Expected Behavior
A PDN error rather than a PSM one.
Environment
See below

To Reproduce
ng45/bp when run with
ORFS 9d638a19b69c167b61479ec311b40b87d2107cad
OR e49038b1b3242f838daf22a52797de3137883675
(eg Jenkins OpenROAD-flow-scripts-Nightly-Public/3090)
Relevant log output
From https://jenkins.openroad.tools/job/OpenROAD-flow-scripts-Nightly-Public/3090/execution/node/842/log/

[WARNING PSM-0038] Unconnected PDN node on net VDD at location (27.485um, 322.455um), layer: metal5.
[ERROR PSM-0078] IR drop setup failed.  Analysis can't proceed.

 It would be nice to have an option to ignore a hypothetical error during the PDN stage or have it be automatically fixed with a healing strap or similar.


Move the label always to the acutal extent if the polygon/lineString is partialy outside | Dynamic labeling

At the moment I can place the labels of a polygon/lineString only at the center of the feature (or move it with an offset).
If I drag the map till the label is outside but the polygon is partialy visible, the label disappears. It would be really nice, if the label would now change its position, so that it is visible again.
If I move the map till the polygon is out of the extent, then the label should disappear. This feature could be applied also to other geometries like linestring, multilinestring and multipolygon.
This feature is similar to the labeling in QGIS where this feature is already implemented.
I've tried to sketch the problem in the following document: Dynamic_Labeling.pdf
Thanks a lot for your work and have a nice day!

You can set a geometry in the style to override the feature geometry.  You could use turf.js to calculate a clipped geometry for text labels https://codesandbox.io/s/vector-layer-forked-jb3i4?file=/main.js  (turf can return MultiPolygons with empty polygons, which breaks the OpenLayers GeoJSON readFeature method, so a loop is needed to remove them).


chore: raise alert on podfile change instead of installing pods

Description

This PR raises an alert on Podfile.lock changes instead of installing pods. This will still let those unfamiliar with Eigen know that they need to run yarn install:all without running it for them.
PR Checklist

[ ] I tested my changes on iOS / Android.
[ ] I added screenshots or videos to illustrate my changes.
[ ] I added Tests and Stories for my changes.
[ ] I added an app state migration.
[ ] I hid my changes behind a feature flag.
[ ] I have prefixed changes that need to be tested during a release QA with [NEEDS EXTERNAL QA] on the changelog.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

raise alert on podfile change instead of installing pods - mounir

Need help with something? Have a look at our docs, or get in touch with us.

True, I am think the steps triggered with the pull-lock are actually valid, I am more leaning towards doing them manually instead when switching between branches instead of needing to hit control+c after checking out and pulling


Added Windows' File Name Regex match and YouTube Channel ID

Added both the Regex to the json and testing.

Hey 👋🏻  Thanks for making a PR! :)
We already have Youtube channel ID here: https://github.com/bee-san/pyWhat/blob/674bb9a74907ff530f78b185704d3746c5059637/pywhat/Data/regex.json#L1029

And I don't think your regex works for Windows files? :)


Move away from single file mounts in java-microprofile stack

Ref https://github.com/appsody/appsody/issues/512, move java-microprofile stack away from using single file mounts due to Docker limitations.

@uberskigeek @scottkurz

Though the APPSODY_WATCH_REGEX only matches against the filename (not including dirname), seems like the variable:  APPSODY_WATCH_IGNORE_DIR   could be used to exclude target and thereby mount the whole project dir.

We're not going to enhance this stack in this way.  Closing.


Fix a a typo in the CONTRIBUTING document

Removes trailing spaces and fix a typo in the document.

Pull Request Test Coverage Report for Build 570328128

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 95.684%

Totals

Change from base Build 552525541:
0.0%

Covered Lines:
4456

Relevant Lines:
4657

💛  - Coveralls


import SQL UNION into BQL

Task should be similar to what is described here for IN with literals: https://github.com/probcomp/bayeslite/issues/263#issuecomment-149276924


ARROW-1722: [C++] Add linting script to find C++/CLI incompatibilities

This also fixes some issues that the script found

I opened https://issues.apache.org/jira/browse/ARROW-2810 -- I was surprised to find Plasma installs its generated Flatbuffers files

Codecov Report

Merging #2225 into master will increase coverage by 0.01%.
The diff coverage is 67.5%.

@@            Coverage Diff             @@
##           master    #2225      +/-   ##
==========================================
+ Coverage    84.1%   84.12%   +0.01%
==========================================
  Files         288      288
  Lines       43865    43876      +11
==========================================
+ Hits        36892    36910      +18
+ Misses       6942     6939       -3
+ Partials       31       27       -4

Impacted Files
Coverage Δ

cpp/src/arrow/python/helpers.h
90% <ø> (ø)
:arrow_up:

cpp/src/arrow/util/variant.h
86.27% <ø> (ø)
:arrow_up:

cpp/src/arrow/memory_pool.h
100% <ø> (ø)
:arrow_up:

cpp/src/arrow/public-api-test.cc
100% <ø> (ø)
:arrow_up:

cpp/src/arrow/util/thread-pool.cc
96% <ø> (ø)
:arrow_up:

cpp/src/arrow/util/thread-pool.h
92.3% <ø> (ø)
:arrow_up:

cpp/src/arrow/python/common.h
100% <100%> (ø)
:arrow_up:

cpp/src/arrow/ipc/test-common.h
93.11% <100%> (ø)
:arrow_up:

cpp/src/arrow/python/numpy-internal.h
54.23% <100%> (ø)
:arrow_up:

cpp/src/arrow/compute/kernel.h
80% <50%> (ø)
:arrow_up:

... and 14 more

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 836afac...824ef0b. Read the comment docs.


 is not showing the form in the browser when I tried to add angular2-json-schema-form framework in our existing application

Issue type
I'm submitting a (check one):
[ ] Bug report
[ ] Feature request
[ ] Regression (something that used to work, but stopped working in a newer version)
[ ] Support request
[ ] Documentation issue or request
Prerequisites
Before posting, make sure you do the following (check all):
[ ] Confirm you are using the latest versions of all necessary packages (or if not, explain why not)
[ ] Search GitHub for a similar issue or PR
[ ] If submitting a Support request, also search Stack Overflow for similar issues
Note: Please cross-post GitHub support requests to Stack Overflow, and include a link in your GitHub issue to your Stack Overflow question. We do currently respond to support requests on GitHub, but we eventually expect to stop, and will then refer all support questions exclusively to Stack Overflow.
Current behavior
I added this framework with creating new project then it worked properly, now I need to add this framework with our existing application to build dynamic forms, so I did below steps to add,
npm install --save @angular/material
npm install --save @angular/cdk
npm install --save @angular/animations
npm install<EMAIL_ADDRESS>npm install angular2-json-schema-form
added below in app.module.ts
import {JsonSchemaFormModule, NoFrameworkModule, Framework, WidgetLibraryService, FrameworkLibraryService, JsonSchemaFormService} from 'angular2-json-schema-form';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
added below in login.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.css']
})
export class LoginComponent {
title = 'Optum Navigator';
mySchema = {
"properties": {
"msid": {
"type": "string",
"required":true
},
"password": {
"type": "string",
"widget": "password",
"required":true
},
  }

};
added below in login.component.html
{{title}}

Expected behavior
it should show a login page with username and password fields, but its showing the blank page
IMPORTANT: How can we reproduce your problem?

Environment
OS name & version: windows7
Browser name & version:chrome
Angular version:"@angular/cli": "1.6.5",
Angular JSON Schema Form version(s):"angular2-json-schema-form": "^0.7.0-alpha.1",
Other relevant software or packages:

Any other relevant information

@rmayuri Did you come back a read the issue ?
Can't help you if you do not use proper Github Markup for the snippets you wrote.
Clean up the snippets, it helps everyone.
It is too much of a guesswork otherwise.

You need to do more in your app.module.ts than shown.
You need to add it to the imports with a framework such as:
imports: [ JsonSchemaFormModule.forRoot(Bootstrap4FrameworkModule) ]
On Tue, Apr 24, 2018 at 2:27 PM, catull<EMAIL_ADDRESS>wrote:

@rmayuri https://github.com/rmayuri Did you come back a read the issue ?
Can't help you if you do not use proper Github Markup for the snippets you
wrote.
Clean up the snippets, it helps everyone.
It is too much of a guesswork otherwise.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dschnelldavis/angular2-json-schema-form/issues/272#issuecomment-384033342,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AbZl-0DYcfL0FiEKr4CCVeGFq7JTYevsks5tr252gaJpZM4ThzvS
.


No module named 'aspose.words';

Using Python 3.9.19 with pyenv on Intel macOS, but the same happens with 3.10.14. Installed aspose with "pip install aspose-words".
Uninstalled and reinstalled several times, but every time i try to use the code
`import aspose.words as aw
doc = aw.Document("input.doc")
doc.save("output.pdf")`
it doesn't work -> ModuleNotFoundError: No module named 'aspose.words'; 'aspose' is not a package.
Any advice?

@Antonet99 Please try configuring https://docs.python.org/3/library/venv.html and installing Aspose.Words on that venv.

Nothing changes, always the same error -> import aspose.words as aw ModuleNotFoundError: No module named 'aspose.words'; 'aspose' is not a package

@Antonet99 It looks like you are trying to install Aspose.Words in global python instead of 3.9. I checked Python 3.9 with PyCharm and configured and installed lib correctly. I selected python 3.9 as the interpreter in the PyCharm settings, it was also set as the system interpreter in the PyCharm settings. Then, to make sure I was installing the libs correctly, I used 'pip3.9 install aspose-words' to install Aspose.Words.

@Antonet99 You can also try to test it by running the following commands:
'python3 -m pip list'
'python3.9 -m pip list'


My first hunch is that this is related to https://github.com/dart-lang/sdk/issues/38135. Something to look at after the weekend.
How do we reproduce this issue? Or is it flaky, and don't we have a repro?

The magic line

FFI NO-FP : JIT-STACKTRACEEVERY-67-ReleaseX64 - KBC-CMP-DebugIA32: !DIVERGENCE! 1.31:1333198416 (-6 vs 0)

tells you all you need to know ;-) (see go/dartfuzz). For your convenience, I reprod the fuzz.dart file.
Just run

dart --stacktrace_every=67 fuzz.dart

on release x64 build.

fuzz.dart.txt

It doesn't appear that inlining was a problem in #38135 (see https://dart-review.googlesource.com/c/sdk/+/115014).

The root cause is actually unrelated to the FFI.
The problem is that any instruction which can call or throw needs a deopt-id in JIT, and we're not generating a deopt-id for CheckNull in unoptimized code.


DEV: Add setting for group support

Added a site setting so that only admins and any specified groups can
use the needs-love plugin.

I'm not sure if this belongs to the DEV tag as there is a feature being added here.

Thank you. Oh I did update the original commit, but I forgot to update the PR with the feature prefix.


Permission system improvement

I would like if there is a way to make a group has a faster cooldown for a command as the parent group.
For example: Group Default can use /day all 700 seconds and group VIP which has  Default as parent group should be able to use /day faster like all 300 seconds.
I think there is no way to do this at the moment, if there is please correct me

Same problem with me on my 2 servers.....and it had not been done now...
Gonna make the deafault use/v with 7200s cooltime while the vips can ues it with 3600s cooltime
that makes me mad...
So this is a BUG or someone had solve that?

Maybe add priority number for every group as an option 1,  this would make stuff like cooldown much more customizable.

This priority feature would prioritize Cooldown, prefixes, and chat color. Which gives more control of what color users should have based of priority numbers

Im currently working on a Plugin which brings a new permission system based on weights.

This has already been added - group priorities.

Well check the date of the thread. It wasn't added back then.

Yeah... but it's added now... so shouldn't this be closed?

Well yes but i didn't even know its still open.


add transfer.test.ts

⚠ base not master. Towards #3624

Note to reviewer: recommend viewing only commit b6b1a7cf0acb73a6ec026258496666eca1af5fe7. The only thing missing is the relocation of the file.


Use OPM image from Brew

This ensure the image exist even for a pre-release version of OCP (such as 4.18 at the moment). The respective EnterpriseContractPolicy allows it: https://gitlab.cee.redhat.com/releng/konflux-release-data/-/blob/main/config/common/product/EnterpriseContractPolicy/fbc-standard.yaml
Related Slack threads:
serverless-productizes
forum-fbc-support

/approve
/lgtm


Added a new Js Project - Movie Seat Booking

Fixed #581 issue
Closes: #581
Describe the changes you've made
Added a new js project - movie seat booking
Describe if there is any unusual behaviour of your code(Write NA if there isn't)
NA
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x] New and existing unit tests pass locally with my changes.

Screenshot

hello @ridsuteri @Alik-Kumar-Ghosh @Vishal-raj-1 please review my pull request, it'll be my first PR under GSSOC'21

hello @ridsuteri @Vishal-raj-1  @Alik-Kumar-Ghosh  please review my pull request, it'll be my first PR under GSSOC'21

@ridsuteri created a new pull request. Sorry, I'm not well versed with Github. Can you please look into it.


Update README.md

Sets correct latest release (there is no 44)
Clarifies that uses is a job by prefixing it with a list item dash

@j-mendez

Changes look good to me, @arbourd thank you for the PR🙌.


Build fixes for rocm-from-source

The hcc-lc repository no longer works with the testing branch; HCC-Native-GCN-ISA's default.xml does not have the entry for LLVM-AMDGPU-Assembler-Extra specified which causes docker-compose run --rm rocm-from-src to fail during build.
The default cmake version retrieved from APT is too old to work with LLVM with the master branch so I also added code build a newer version from scratch.

@BKP
I hesitate to merge this change in, because the 'testing' branch should be more stable than 'master'.  I'm going to confirm.
@tstellarAMD
Will HCC-Native-GCN-ISA's testing branch be fixed relatively soon?  Should our docker containers skip building the testing branch?

@tstellarAMD
Also, what is the minimum version of cmake to build LLVM toolchain now?

I need to update the testing branch, to point to track our amd-common branch.  Version 3.4.3 is the minimum required for CMake.

Thanks for the quick response; will the testing branch update happen this week or later?  I'll merge this change depending on your answer.

I'll try to do it this week.

@tstellarAMD
Thanks for the update. I'll close this PR.
@BKP
I'm still interested in your cmake changes (i think 3.6.1 is the latest).  Could you make a new PR that only has the cmake update, and then make sure to target the /develop branch instead of /master.  New code should go into /develop; that will keep my history straight.


build(deps): bump @open-amt-cloud-toolkit/wsman-messages from 5.6.4 t…

…o 5.6.5
PR Checklist

[ ] Unit Tests have been added for new changes
[ ] API tests have been updated if applicable
[ ] All commented code has been removed
[ ] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. open-amt-cloud-toolkit/repo#365 )

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

GitHub release
v2.22.4

Your semantic-release bot :package::rocket:


data: add support for Logitech G413 keyboard

I visited a friend with a G413 (basically a G513 without RGB), and checked the USB-ID. I can't tell you if it works, so I don't know if this should even be merged, just wanted to note it.

Is there any way you can get him to try?

Is there any way you can get him to try?

Maybe, not this or next week, but probably sometime during the holidays.

Did some testing, this is what I found:

recognized 8 buttons, but I didn't tested them
recognized one rgb LED for the backlight (actually no RBG on this keyboard), which I was able to turn off and on
LED breathing mode didn't seem to work, even though that is possible with the Logitech software
brightness kinda worked, somehow 255 was pretty dim compared to the full brightness in the Logitech software

Would merge (after #931).

I have a G413 keyboard, I can help with the tests.
After compiling from the source today, I've managed to turn the backlight off (worked only with sudo, not sure if this is the expected behaviour):
[raphael@rphmain libratbag]$ ratbagctl list
cheering-viscacha:   Logitech G413 Silver Mechanical Gaming Keyboard
hooting-chinchilla:  Logitech G703
[raphael@rphmain libratbag]$ sudo ratbagctl cheering-viscacha led 0 set mode off

Problem is, I can't turn the backlight on:
[raphael@rphmain libratbag]$ sudo ratbagctl cheering-viscacha led 0 set brightness 255
[raphael@rphmain libratbag]$ sudo ratbagctl cheering-viscacha led 0 set mode on
[raphael@rphmain libratbag]$ sudo ratbagctl cheering-viscacha led 0 get
LED: 0, depth: rgb, mode: on, color: 040000

The backlight is still off.
My device file:
[Device]
Name=Logitech G413
DeviceMatch=usb:046d:c33a
LedTypes=switches
Driver=hidpp20

Dimmer keyboard may be because "mode brightness" is independent (and stacks?) with "FN-F7 brightness"
https://github.com/MatMoul/g810-led/issues/215#issuecomment-624586111

Hi, happy to help test this further if it helps?

Problem is, I can't turn the backlight on:

#040000 is probably not too bright :)
Dim lighting I'll assume being fixable how @mirh mentioned

Thank you!


Add FBB and FWB

Add Foreign Black Bordered and Foreign White Bordered sets.
https://github.com/mtgjson/mtgjson/issues/439

Not sure what this really means...

Each printing of Revised and 4th Edition in a foreign language was technically a different set. Same for Italian Legends. I think it's fine to treat them as the same set, but the foreign text at least needs to be added. (For example, Legends cards don't have their Italian translation in the foreignText field.)

This is indeed important since the price difference from 4th FWB and FBB is huge and make sense to have it as 2 different sets IMO.

Update: SF just released FBB at https://scryfall.com/sets/fbb?order=set
Waiting on FWB to close ticket, but I will build FBB in the next few days or so and get it up (This will include a rebuild of AllCards/AllSets too. Will be an increment in version)

Will be added on 4.0.3 (next build)


When selecting the widget to be added to our dashboard, the configure option is disabled.

Expected Behavior
When selecting the widget to be added to our dashboard, the configure option is enabled.
Actual Behavior
When selecting the widget to be added to our dashboard, the configure option is disabled.
Steps to Reproduce

Reproducible Demo
N/A
Environment

Version: 4.0.0
Platform:
Browser:
OS:

Keywords
gadget,configure,option,disabled

@domalbergo can you provide a screenshot? I find it strange that the configure option would be disabled

Of course!

Thanks @domalbergo. What is the version that you installed?

Version: 4.0.0

Yes, I have. This does not resolve the issue.
Dom Albergo
Director, Quality Assurance
LinkedIn | X | Facebook | Instagram
On Mon, Sep 23, 2024 at 1:30 PM Mark @.***> wrote:

@domalbergo https://github.com/domalbergo is it possible to delete the
Jira gadget and reinstall it?
—
Reply to this email directly, view it on GitHub
https://github.com/remarkablemark/jira-dashboard-gadget-issue-formula/issues/400#issuecomment-2368922379,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKFTR2RP7RMERMYFZA2P6SLZYBF3FAVCNFSM6AAAAABONXUVI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRYHEZDEMZXHE
.
You are receiving this because you were mentioned.Message ID:
<remarkablemark/jira-dashboard-gadget-issue-formula/issues/400/2368922379@
github.com>

Thanks, I was able to reproduce this in a new Jira workspace. I'm going to revert #302 and release:

https://github.com/remarkablemark/jira-dashboard-gadget-issue-formula/pull/405#issuecomment-2369246005

On Atlassian Marketplace, version 4.1.0 still isn't working so I disabled v4 and re-enabled 2.3.0

After some troubleshooting, I believe I identified the source of the error:

The bug has been fixed in:

https://github.com/remarkablemark/jira-dashboard-gadget-issue-formula/pull/411#issuecomment-2369614601

Please update the Jira app to 4.3.0


how to get correct model type?

my original model is a .bin file, then i use the below code to convert the model format
model = AutoModelForCausalLM.from_pretrained("path/to/llama_7b", torch_dtype=torch.float16,device_map='auto' )
model.save_pretrained('path/to/exllama',safe_serialization=True, max_shard_size="200GB")
but when i run  test_benchmark_inference.py , i meet mistake

the model didn't have qzeros/scales
how can i deal with it, could you help me?

The model needs to be quantized with GPTQ-for-LLaMA or AutoGPTQ.  Alternatively, AutoGPTQ has an example of how to produce a quantized model.

Thank you! I successfully ran it.
However, when I ran the test_inference.py script, I noticed that the generation speed is only 25 tokens per second.
Is this due to the GPU or do I need to set other arguments?
model: llama30b
gpu: 3090

Check your torch install.

@lx0126z : I'm not sure what you mean by "only" 25 tokens/second. That's a lot for a 30B model, and only a little less than I'm getting on my 3090-Ti.
I do believe the 3090 should be able to get much closer to the 4090's 40+ tokens/second, since it has the bandwidth it needs, but it's also a different hardware architecture so it probably needs a bunch more tuning specific to the 3090 to make it happen.


Moves ValueWithSerializer back into public API

It had become part of commons-internal which kind of defeats the purpose.
Also made FirebaseEncoder/FirebaseDecoder an interface in the public API. Useful for writing custom Serializers that have custom behaviour on Firebase

It had become part of commons-internal which kind of defeats the purpose.

I'm going to need more of an explanation, is it to fix this issue https://github.com/GitLiveApp/firebase-kotlin-sdk/issues/590 ?

No I actually ran into it myself. The ValueWithSerializer class was originally in the regular commons library and allows encoding a value when dealing with File paths. But it's no longer accessible so I moved it back. Though I'm not entirely sure if this was introduced by Splendo or GitLive. Technically you can achieve the same behavior with a custom SerializerModule though, this does add some convenience

allows encoding a value when dealing with File paths

Could you give a code example of what you mean? A search of ValueWithSerializer in the README doesn't return any results.

@Daeda88 Does this somehow relate to #604?

Dropping in favour of #607


[FLINK-2140][gelly] Allowed access to the number of vertices in the GSA functions

Similar to the vertex-centric approach, this PR enables users to access the total number of vertices from within the gather, sum and/or apply functions of a GSA iteration.

If no objections, I'd like to merge this one within the next week. There is a direction issue for GSA(FLINK-2141) that will actually touch the same files.

+1, looks good!


How do you get "acr_values" inside IProfileService implementation?

A lot of online documentation and help material suggest generating a claim inside GetAuthenticateInfoAsync. But GetAuthenticateInfoAsync isn't available either in IS4, or am I missing something?

Thank you @brockallen. This worked like a charm. :)

Hi Aneequrrehman,
Can you please explain the complete implementation , as I have same issue

In case anybody else gets stuck on this, following a possible approach to access all acr_values in your custom IProfileService class:
public class ... : IProfileService
{
   ...
   public virtual async Task GetProfileDataAsync(ProfileDataRequestContext context) {

       // Grab acr_values from Raw context
       var acr_values = new Dictionary<string, string>();

       var reqParamsDict = context.ValidatedRequest.Raw.ToDictionary();
       if (reqParamsDict.ContainsKey("acr_values"))
       {
           var raw = reqParamsDict["acr_values"].Split(' ', StringSplitOptions.RemoveEmptyEntries).ToList();
           acr_values = raw.Select(item => item.Split(':', 2, StringSplitOptions.RemoveEmptyEntries)).ToDictionary(s => s[0], s => s[1]);
       }
       ...
   }
   ...
}

And the custom extension to easily turn the NameValueCollection returned by context.ValidatedRequest.Raw into a Dictionary.
 public static class SomeRandomExtensions
{
    public static IDictionary<string,string> ToDictionary(this NameValueCollection col)
    {
        return col.AllKeys.ToDictionary(x => x, x => col[x]);
    }
}

Warning: The above code/approach is an example implementation approach which has not been tested and should therefore not be used in any production setup (IS4, version 2.3.2)


[Question] Is the Nuitka executable multi-threaded?

I tried ps M $pid | wc -l on my macOS,
seems like Nuitka binary file uses real multi thread.
Is it because it translates Python code directly into C/C++ code? Is there a limit of using multiple threads(e.g. max thread numbers)?
Thanks :3

The C compilation uses multiple processes, and threads to monitor these processes. The Python compilation phase currently cannot use multiple processes, mostly because caching is not implemented yet. Once caching is in place, it will be possible to compile modules in parallel on the Python level, with only some sequence points for dependencies, but unfortunately we are not there.
The number of processes it uses for C compilation can be controlled by options found in --help output.


Define a summary and description for the rpm package built by CPack

Right now the RPM reports the following generic text for its Summary and Description:
Summary     : The integrated Rule-Oriented Data System
[...]
Description : DESCRIPTION
            : ===========
            :
            : This is an installer created using CPack (https://cmake.org). No additional installation instructions provided.

These should be specified to provide more information about this specific rule engine.

@trel Maybe this should be moved to the irods/irods repo and apply to all packages we provide.

That sounds correct.   Transferring...


fix bug with disable openmp

refer to https://github.com/Microsoft/LightGBM/pull/1780#issuecomment-433641541


Adding Card Title before tabs causes a white line across header

I'm trying to create a card with tabs. I wanted to put a title on it, to signify what the tabs will hold, but it changes the layout and adds a white line across the card header. Here's my code:

Tab Title

                  Tab 1

                      Tab 2

I should note that if I remove the title line, the card looks as intended.

That's totally a question for AdminLTE itself and not Laravel-AdminLTE 😃 but try this markup

Tab Title

                  Tab 1

                      Tab 2

I thought about that after I submitted. Your markup worked. Thank you very much.

I thought about that after I submitted.

👍 I would help you on the AdminLTE repo too, I will also add a demo markup like this to the AdminLTE demo.


Invalid vehicle for current session, AuthError

Please check Services, Known Bug / Issues and Troubleshooting over here first: https://github.com/fuatakgun/kia_uvo/blob/master/README.md
Region and Brand of car
Kia Telluride 2020, USA
Version of the integration
2.3.1
Describe the bug
I'm still getting the above error from the hyundai_kia_api, when trying to run any of the services. Unlike before, the entities appear to be ok and are no longer becoming unavailable. Reloading the integration fixes things for one service call (any service, update, start or stop climate) but the error comes back after one service call, and needs the integration to be reloaded again.
The log below is after having tried a stop command that failed, then an update command that also failed, and then a start climate command, which also failed.
Debug logs if an error occurred
Logger: hyundai_kia_connect_api.KiaUvoAPIUSA
Source: /usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py:76
First occurred: 07:58:48 (8 occurrences)
Last logged: 08:28:35

hyundai_kia_connect_api - error: unknown error response {"status":{"statusCode":1,"errorType":1,"errorCode":1005,"errorMessage":"Invalid vehicle for current session"}}
hyundai_kia_connect_api - error: unknown error response {"status":{"statusCode":1,"errorType":1,"errorCode":9001,"errorMessage":"Incorrect request payload format"})

This error originated from a custom integration.

Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/kia_uvo/coordinator.py:198
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 08:15:07 (4 occurrences)
Last logged: 08:21:01

websocket_api script: Error executing script. Unexpected error for call_service at pos 1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 35, in request_with_active_session_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 75, in request_with_logging_wrapper
    raise AuthError
hyundai_kia_connect_api.KiaUvoAPIUSA.AuthError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/kia_uvo/services.py", line 75, in async_handle_stop_climate
    await coordinator.async_stop_climate(vehicle_id)
  File "/config/custom_components/kia_uvo/coordinator.py", line 198, in async_stop_climate
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 106, in stop_climate
    return self.api.stop_climate(self.token, self.get_vehicle(vehicle_id))
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 500, in stop_climate
    response = self.get_request_with_logging_and_active_session(
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 50, in request_with_active_session_wrapper
    response = func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 77, in request_with_logging_wrapper
    raise RequestException
requests.exceptions.RequestException

This error originated from a custom integration.

Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/kia_uvo/coordinator.py:191
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 08:28:35 (1 occurrences)
Last logged: 08:28:35

websocket_api script: Error executing script. Unexpected error for call_service at pos 1:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/kia_uvo/services.py", line 70, in async_handle_start_climate
    await coordinator.async_start_climate(vehicle_id, climate_request_options)
  File "/config/custom_components/kia_uvo/coordinator.py", line 191, in async_start_climate
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 103, in start_climate
    return self.api.start_climate(self.token, self.get_vehicle(vehicle_id), options)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 493, in start_climate
    response = self.post_request_with_logging_and_active_session(
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 35, in request_with_active_session_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 77, in request_with_logging_wrapper
    raise RequestException
requests.exceptions.RequestException

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/kia_uvo/coordinator.py:191
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 08:28:35 (1 occurrences)
Last logged: 08:28:35

[547166414560] Error handling message: Unknown error (unknown_error) from <IP_ADDRESS> (Mozilla/5.0 (Linux; Android 13; Pixel 7 Build/TQ1A.221205.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/108.0.5359.128 Mobile Safari/537.36 Home Assistant/2022.12.0-3026 (Android 13; Pixel 7))
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 646, in handle_execute_script
    await script_obj.async_run(msg.get("variables"), context=context)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1524, in async_run
    await asyncio.shield(run.async_run())
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 409, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 453, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 476, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1745, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1782, in _execute_service
    await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
  File "/config/custom_components/kia_uvo/services.py", line 70, in async_handle_start_climate
    await coordinator.async_start_climate(vehicle_id, climate_request_options)
  File "/config/custom_components/kia_uvo/coordinator.py", line 191, in async_start_climate
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 103, in start_climate
    return self.api.start_climate(self.token, self.get_vehicle(vehicle_id), options)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 493, in start_climate
    response = self.post_request_with_logging_and_active_session(
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 35, in request_with_active_session_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 77, in request_with_logging_wrapper
    raise RequestException
requests.exceptions.RequestException

To Reproduce
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context

I had the same issue for about 30 minutes (all of my sensors were unavailable as well) and a force refresh didn't work either. Waited 10 minutes and tried again, and then it suddenly loaded. Maybe Kia's API was just having issues?

Hmm, I'm not sure that's it for me, the Kia app was working normally. It's also been happening for the past 2 days, I just didn't have a chance to look into it given the holidays.

@nprez83  are you able to enable debug logs? I think I have an idea of what is happening. In particular in the debug logs looking for a line that states:
got invalid session, attempting to repair and resend

I have made some rather large changes to KIA USA. Could you go into HACS and redownload and select version "master" and let me know if 1 it works and 2 if this issue is resolved?  I wouldn't doubt it if I have some mistakes in it.

Seems to be working great so far. Nice job! Have run several start, stop, and force_update commands without issues. The only thing different I'm noticing between now and the 1.8 version is that the sensors don't seem to update to the latest cached data after the command completes, but I can easily fix that by running the update command after running the other commands.

Interesting to see.  Today for KIA USA we call force update and then automatically call the cached update.  I wonder if the cached call is too fast.  In other regions we actually parse the forced update data, this is new in 2.x where as all regions in 1.X did force call followed by cached and only looked at cached.
Could you do me a favor and with debug enabled call a forced update and look for the line that says got response followed by some details. I want to see if the format and data of this matches a cached call. If so we can parse it upfront and solve this efficiently.

Might have spoken too soon. All the entities just went unavailable, with the error below.
This error originated from a custom integration.

Logger: custom_components.kia_uvo.coordinator
Source: custom_components/kia_uvo/coordinator.py:159
Integration: Hyundai / Kia Connect (documentation, issues)
First occurred: 13:18:47 (2 occurrences)
Last logged: 14:18:51

Unexpected error fetching kia_uvo data: 'dict' object has no attribute 'id'
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
    self.data = await self._async_update_data()
  File "/config/custom_components/kia_uvo/coordinator.py", line 102, in _async_update_data
    await self.async_check_and_refresh_token()
  File "/config/custom_components/kia_uvo/coordinator.py", line 159, in async_check_and_refresh_token
    await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/VehicleManager.py", line 98, in check_and_refresh_token
    self.vehicles = self.api.refresh_vehicles(self.token, self.vehicles)
  File "/usr/local/lib/python3.10/site-packages/hyundai_kia_connect_api/KiaUvoAPIUSA.py", line 228, in refresh_vehicles
    if vehicle.id == entry["vehicleIdentifier"]:
AttributeError: 'dict' object has no attribute 'id'

To confirm do you have one car in the app or multiple?

Please download the latest from "master" and try again.   As a note the token in kia usa is invalidated when the app is used which is one of the reasons this can happen.  So we attempt to catch that and relogin.   Unfortunately some of the vehicle data also changes when that happens so working on handling that.
More logging has been added too so if you get the above again please go into the full logs to grab what happened right before it.

To confirm do you have one car in the app or multiple?

Only one. I may have to wait till tomorrow to try again, but I'll report back.

Alright, I was able to install it and it all seems ok for now. Ran update, start, and stop commands without issues. I also logged into the native at after the start command to kick the tires and it seemed to handle it well. Will see what happens overnight and will report back.

Thought I'd report back that all seems well with this version (2.3.2), no more disconnect/unavailable issues and all services working well. I just upgraded to 2.3.3, excited to no longer have to specify device for service calls. Thanks as always for the hard work.

Great news! Thanks for the support.


basic auth: optimize code and improve the exception/response message

Commit Message: basic auth: optimize code and improve the exception/response message
Additional Description:
Risk Level: minor.
Testing: unit.
Docs Changes: n/a.
Release Notes: n/a.

cc @zhaohuabing could you take a first pass when you have free time? Thanks.


Use requiredCommands for goimports and golint

should TM_GOIMPORTS and TM_GOLINT be added to the readme as well? See #18.

I think so. I updated the readme to include these environment variables.

Looks good, thank you.


Should adding metalinter disable default checks flycheck runs?

By default in Go mode, flycheck supports several checkers by default:

go-gofmt
go-golint
go-vet
go-build or go-test
go-errcheck
go-unconvert
go-megacheck

see http://www.flycheck.org/en/latest/languages.html#go
Of these, gometalinter runs runs golint, go vet, errcheck, unconvert, and megacheck by default.
Should flycheck-gometalinter remove the duplicates from flycheck-checkers when it adds gometalinter? megacheck in particular is quite CPU intensive.

Adding something like this should do it:
(setq flycheck-checkers (remove 'go-gofmt (remove 'go-golint (remove 'go-vet (remove 'go-errcheck (remove 'go-megacheck (remove 'go-unconvert flycheck-checkers)))))))

@ddgenome I added flycheck-gometalinter to the begining of flycheck-checkers (https://github.com/favadi/flycheck-gometalinter/blob/c90ea1aba80ddfdf603c9ba731be302400fd6ba2/flycheck-gometalinter.el#L119) and as we don't define next-checkers, those builtin checkers should be disabled already.

Closing as it works as expected.