vfs: intermittent test failure

I saw this in the travis logs in the non -race test.
Not sure whether it is related to your recent changes or not @B4dM4n ?
2018/02/19 20:14:53 NOTICE: Config file "/notfound" not found - using defaults
2018/02/19 20:14:53 ERROR : : error listing: directory not found
2018/02/19 20:14:53 ERROR : : error listing: directory not found
2018/02/19 20:14:53 ERROR : : error listing: directory not found
2018/02/19 20:14:53 ERROR : : error listing: directory not found
2018/02/19 20:14:53 ERROR : dir/: Can only open directories read only
2018/02/19 20:14:53 ERROR : dir/: Dir.Mkdir failed to create directory: mkdir /tmp/rclone784685176/dir/file1: not a directory
2018/02/19 20:14:53 ERROR : dir/: Dir.Remove not empty
2018/02/19 20:14:53 ERROR : dir/not found: Dir.Rename error: file does not exist
2018/02/19 20:14:53 ERROR : dir/file1: Can't figure out how to open with flags: 0x3
2018/02/19 20:14:53 ERROR : dir/file1: ReadFileHandle.Read error: Bad file descriptor
2018/02/19 20:14:53 ERROR : Error traversing cache "/home/travis/.cache/rclone/vfs/local/tmp/rclone784685176": lstat /home/travis/.cache/rclone/vfs/local/tmp/rclone784685176/file1: no such file or directory
2018/02/19 20:14:53 ERROR : Error traversing cache "/home/travis/.cache/rclone/vfs/local/tmp/rclone784685176": open /home/travis/.cache/rclone/vfs/local/tmp/rclone784685176: no such file or directory
2018/02/19 20:14:53 ERROR : open-test-file: File.openRW failed: open for read write: cache open file failed: open /home/travis/.cache/rclone/vfs/local/tmp/rclone784685176/open-test-file: no such file or directory
--- FAIL: TestRWFileHandleOpenTests (0.00s)
	run.go:169: Remote "Local file system at /tmp/rclone784685176", Local "Local file system at /tmp/rclone695535479", Modify Window "1ns"
	Error Trace:	read_write_test.go:474
			read_write_test.go:528
	Error:      	Received unexpected error:
	            	open /home/travis/.cache/rclone/vfs/local/tmp/rclone784685176/open-test-file: no such file or directory
	            	cache open file failed
	            	github.com/ncw/rclone/vfs.(*RWFileHandle).openPending
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write.go:156
	            	github.com/ncw/rclone/vfs.newRWFileHandle
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write.go:75
	            	github.com/ncw/rclone/vfs.(*File).openRW
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:328
	            	github.com/ncw/rclone/vfs.(*File).Open
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:448
	            	github.com/ncw/rclone/vfs.(*VFS).OpenFile
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/vfs.go:411
	            	github.com/ncw/rclone/vfs.testRWFileHandleOpenTest
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:473
	            	github.com/ncw/rclone/vfs.TestRWFileHandleOpenTests
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:528
	            	testing.tRunner
	            		/home/travis/.gimme/versions/go1.8.6.linux.amd64/src/testing/testing.go:657
	            	runtime.goexit
	            		/home/travis/.gimme/versions/go1.8.6.linux.amd64/src/runtime/asm_amd64.s:2197
	            	open for read write
	            	github.com/ncw/rclone/vfs.(*File).openRW
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:330
	            	github.com/ncw/rclone/vfs.(*File).Open
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:448
	            	github.com/ncw/rclone/vfs.(*VFS).OpenFile
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/vfs.go:411
	            	github.com/ncw/rclone/vfs.testRWFileHandleOpenTest
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:473
	            	github.com/ncw/rclone/vfs.TestRWFileHandleOpenTests
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:528
	            	testing.tRunner
	            		/home/travis/.gimme/versions/go1.8.6.linux.amd64/src/testing/testing.go:657
	            	runtime.goexit
	            		/home/travis/.gimme/versions/go1.8.6.linux.amd64/src/runtime/asm_amd64.s:2197
	Test:       	TestRWFileHandleOpenTests
	Messages:   	os.O_RDONLY
2018/02/19 20:14:53 ERROR : file1: WriteFileHandle: Read: Can't read and write to file without --vfs-cache-mode >= minimal
2018/02/19 20:14:53 ERROR : file1: WriteFileHandle: ReadAt: Can't read and write to file without --vfs-cache-mode >= minimal
2018/02/19 20:14:53 ERROR : file1: WriteFileHandle: Truncate: Can't change size without --vfs-cache-mode >= writes
2018/02/19 20:14:53 ERROR : file1: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes
2018/02/19 20:14:53 ERROR : file1: WriteFileHandle.Write: can't seek in file without --vfs-cache-mode >= writes
2018/02/19 20:14:53 ERROR : file1: WriteFileHandle.Write: error: Bad file descriptor
FAIL
FAIL	github.com/ncw/rclone/vfs	0.085s

Not sure if this error is caused by my changes.
I found a logic error in truncate handling (which existed before my changes), but I'm not sure this is the cause, as the error message on my pc is different.
-		if fh.flags&os.O_CREATE != 0 && fh.file.exists() {
+		if fh.flags&os.O_CREATE == 0 && fh.file.exists() {
			// create and empty file if it exists on the source
			cacheFileOpenFlags |= os.O_CREATE
		}

In the case of truncating, this check will create the empty cache file if a remote object exists.
PS: the link you provided does not lead to a failed job
Besides the error, do you think it is time to drop test support for go1.6? go1.10 was released a few days ago and the option to create subtests would be really nice. It is hard to figure out the real test case in the huge openTests table and I'm not sure which one failed. Using subtests we could name the cases or at least number them.

Lately some AppVeyor builds are failing randomly during the cmount test:

1889
1884
1881

I did not have the time too look into them, but in 2 of the 3 there is a file missing.
@ncw Did your reported error appear again on Travis?
I try to create a fix for it and for #2079 this weekend.

I found a logic error in truncate handling (which existed before my changes)

I have fixed that in f57e92b9a5666052e887e87ce0e4bf78a87f1bdd also a really stupid bug on windows here c3d0f68923ce03402be668f1958cb67f97b8aad9

PS: the link you provided does not lead to a failed job

Oh, I re-did the build which overwrite the log I think.

Did your reported error appear again on Travis?

Here is a possibly related one
I spent some time writing more tests, and I can't replicate that bug - it is most annoying!
2018/02/26 12:31:40 NOTICE: Config file "/notfound" not found - using defaults
2018/02/26 12:31:40 ERROR : : error listing: directory not found
2018/02/26 12:31:40 ERROR : : error listing: directory not found
2018/02/26 12:31:40 ERROR : : error listing: directory not found
2018/02/26 12:31:40 ERROR : : error listing: directory not found
2018/02/26 12:31:40 ERROR : dir/: Can only open directories read only
2018/02/26 12:31:40 ERROR : dir/: Dir.Mkdir failed to create directory: mkdir /tmp/rclone188319816/dir/file1: not a directory
2018/02/26 12:31:40 ERROR : dir/: Dir.Remove not empty
2018/02/26 12:31:40 ERROR : dir/not found: Dir.Rename error: file does not exist
2018/02/26 12:31:40 ERROR : dir/file1: Can't figure out how to open with flags: 0x3
2018/02/26 12:31:40 ERROR : dir/file1: ReadFileHandle.Read error: Bad file descriptor
2018/02/26 12:31:40 ERROR : file1: File.openRW failed: open for read write: cache open file failed: open /home/travis/.cache/rclone/vfs/local/tmp/rclone188319816/file1: no such file or directory
--- FAIL: TestRWFileHandleReleaseWrite (0.00s)
	run.go:169: Remote "Local file system at /tmp/rclone188319816", Local "Local file system at /tmp/rclone831501575", Modify Window "1ns"
	Error Trace:	read_write_test.go:43
			read_write_test.go:441
	Error:      	Received unexpected error:
	            	open /home/travis/.cache/rclone/vfs/local/tmp/rclone188319816/file1: no such file or directory
	            	cache open file failed
	            	github.com/ncw/rclone/vfs.(*RWFileHandle).openPending
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write.go:156
	            	github.com/ncw/rclone/vfs.newRWFileHandle
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write.go:75
	            	github.com/ncw/rclone/vfs.(*File).openRW
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:328
	            	github.com/ncw/rclone/vfs.(*File).Open
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:448
	            	github.com/ncw/rclone/vfs.(*VFS).OpenFile
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/vfs.go:411
	            	github.com/ncw/rclone/vfs.rwHandleCreateWriteOnly
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:42
	            	github.com/ncw/rclone/vfs.TestRWFileHandleReleaseWrite
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:441
	            	testing.tRunner
	            		/home/travis/.gimme/versions/go1.10.linux.amd64/src/testing/testing.go:777
	            	runtime.goexit
	            		/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/asm_amd64.s:2361
	            	open for read write
	            	github.com/ncw/rclone/vfs.(*File).openRW
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:330
	            	github.com/ncw/rclone/vfs.(*File).Open
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/file.go:448
	            	github.com/ncw/rclone/vfs.(*VFS).OpenFile
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/vfs.go:411
	            	github.com/ncw/rclone/vfs.rwHandleCreateWriteOnly
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:42
	            	github.com/ncw/rclone/vfs.TestRWFileHandleReleaseWrite
	            		/home/travis/gopath/src/github.com/ncw/rclone/vfs/read_write_test.go:441
	            	testing.tRunner
	            		/home/travis/.gimme/versions/go1.10.linux.amd64/src/testing/testing.go:777
	            	runtime.goexit
	            		/home/travis/.gimme/versions/go1.10.linux.amd64/src/runtime/asm_amd64.s:2361
	Test:       	TestRWFileHandleReleaseWrite


gRPC: hang on first request when using GrpcStorageOptions.setAttemptDirectPath(true) and GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS=true

Affected version(s): 2.14.0+
There is a noticeable hang (several seconds) for the first request from the client when using directPath XDS. After the initial hang it doesn't seem to be an issue.

Minimized Repro (using com.google.cloud:google-cloud-storage:2.17.2)
package x;

import com.google.cloud.storage.Blob;
import com.google.cloud.storage.BlobId;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageOptions;
import com.google.common.base.Stopwatch;

final class Main {
  public static void main(String[] args)
      throws Exception {
    try (Storage s = StorageOptions.grpc().setAttemptDirectPath(true).build().getService()) {
      BlobId id = BlobId.fromGsUtilUri(args[0]);
      doGet(s, id);
      doGet(s, id);
      doGet(s, id);
    }
  }

  private static void doGet(Storage s, BlobId id) {
    Stopwatch sw = Stopwatch.createStarted();
    Blob blob = s.get(id);
    Stopwatch stop = sw.stop();
    System.out.println("Fetching object metadata took " + stop);
  }
}

Results
Fetching object metadata took 10.36 s
Fetching object metadata took 43.23 ms
Fetching object metadata took 36.63 ms

Fixed in grpc 1.54.0


Build fails

Hi, this is certainly something to do with my system but the following happens when I try to either run or build the project with dotnet tools:
C:\Code\csproj-convert [master ≡]>  dotnet run analyze c:\Code\Some\Some.sln C:\Code\Some\packages\
C:\Users\Alex\.nuget\packages\fsharp.net.sdk\1.0.5\build\FSharp.NET.Core.Sdk.targets(170,9): error MSB6006: "dotnet.exe" exited with code -2147450749. [C:\Code\csproj-convert\csproj-convert.fsproj]

The build failed. Please fix the build errors and run again.

also
C:\Code\csproj-convert [master ≡]> dotnet build
Microsoft (R) Build Engine version <IP_ADDRESS>579 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 37.41 ms for C:\Code\csproj-convert\csproj-convert.fsproj.
C:\Users\Alex\.nuget\packages\fsharp.net.sdk\1.0.5\build\FSharp.NET.Core.Sdk.targets(170,9): error MSB6006: "dotnet.exe" exited with code -2147450749. [C:\Code\csproj-convert\csproj-convert.fsproj]

Build FAILED.

C:\Users\Alex\.nuget\packages\fsharp.net.sdk\1.0.5\build\FSharp.NET.Core.Sdk.targets(170,9): error MSB6006: "dotnet.exe" exited with code -2147450749. [C:\Code\csproj-convert\csproj-convert.fsproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.95

I have the latest dotnet SDK installed.
Do you have any ideas on how to troubleshoot this? As you can see the error output i just insanely helpful.

I also ran into a build error, which I was able to resolve after I ran dotnet build -v d.  It provided enough debug details to fix the issue.

was unable to get this to build even after playing w/versions.
pretty old codebase obv- by default it complained it needed a newer dotnet to build (have both 5.0 and 6.0 runtimes and sdks installed).
tried to adjust some of the packagereferences in fsproj to use newer versions, but no success.


Custom Tab webview in Android sdk

Hi, When I try to click allow button in permission screen of car, which i have logged in for agreeing to privacy policy nothing happening .
Here the below code i have used to initiate the authorization
CLIENT_ID = getString(R.string.client_id);
REDIRECT_URI = "sc" + getString(R.string.client_id) + "://" + getString(R.string.smartcar_auth_host);
Log.d("initSmartCar", REDIRECT_URI);
SCOPE = new String[]{"required:read_vehicle_info", "read_vin", "read_vehicle_info", "read_location", "read_engine_oil", "read_battery", "read_charge", "read_fuel", "control_security", "read_odometer", "read_tires", "read_charge"};
//SCOPE = new String[]{"required:read_vehicle_info"};
smartcarAuth = new SmartcarAuth(
CLIENT_ID,
REDIRECT_URI,
SCOPE,
false,
new SmartcarCallback() {
@Override
public void handleResponse(final SmartcarResponse smartcarResponse) {
                    if (smartcarResponse != null) {
                        presenter.onVehicleInfoRequested(smartcarResponse.getCode());
                        Log.d("MainActivity", smartcarResponse.getCode());
                        Log.d("MainActivity", smartcarResponse.getError());
                        Log.d("MainActivity", smartcarResponse.getState());
                        Log.d("MainActivity", smartcarResponse.getErrorDescription());
                    } else {
                        Log.d("AuthorizationFlow", "Response is null");
                    }
                }
            });
    smartcarAuth.addClickHandler(this, start);

Hi, When I try to click allow button in permission screen of car, which i have logged in for agreeing to privacy policy nothing happening . Here the below code i have used to initiate the authorization
CLIENT_ID = getString(R.string.client_id); REDIRECT_URI = "sc" + getString(R.string.client_id) + "://" + getString(R.string.smartcar_auth_host); Log.d("initSmartCar", REDIRECT_URI); SCOPE = new String[]{"required:read_vehicle_info", "read_vin", "read_vehicle_info", "read_location", "read_engine_oil", "read_battery", "read_charge", "read_fuel", "control_security", "read_odometer", "read_tires", "read_charge"}; //SCOPE = new String[]{"required:read_vehicle_info"}; smartcarAuth = new SmartcarAuth( CLIENT_ID, REDIRECT_URI, SCOPE, false, new SmartcarCallback() { @OverRide public void handleResponse(final SmartcarResponse smartcarResponse) {
                    if (smartcarResponse != null) {
                        presenter.onVehicleInfoRequested(smartcarResponse.getCode());
                        Log.d("MainActivity", smartcarResponse.getCode());
                        Log.d("MainActivity", smartcarResponse.getError());
                        Log.d("MainActivity", smartcarResponse.getState());
                        Log.d("MainActivity", smartcarResponse.getErrorDescription());
                    } else {
                        Log.d("AuthorizationFlow", "Response is null");
                    }
                }
            });
    smartcarAuth.addClickHandler(this, start);

This is the screen where i am not able to move further


Table Text Tagging

This Pull Request:

Integrates a function for tagging paragraphs in the azure response that exist in a table with the correct block type.
This is done using the uniqueness of the paragraph and table cell span.
Integrates tests for the function to assign text block type.
Updates the DAL version to the relevant tag with the updated block types.
Integrates tests for the assumptions around the relationship between tables and paragraphs.

lgtm! one question around tests: as you're essentially recreating a part of an azure output, what are the benefits and drawbacks of doing this rather than using an Azure JSON as your fixture?

The thought from me was that - yes I could have taken a real azure response and identified the relevant text blocks that should have been tagged etc. But then that just felt like it would mean duplicating the code that we are currently testing so I decided not to go down that route and to explicitly form a fake azure response with set / known data fields.
Strong opinions loosely held however!


Add example package showing direct use of PackageVariant

This package will be used by the UI team to develop and test the PackageVariant viewer code.
It also serves as an example of one use of PackageVariant, directly, rather than via PackageVariantSet.

/lgtm

/lgtm


[styles] Fix imports in type declaration files

[x] I have followed (at least) the PR section of the contributing guide.

Changed the use of the @material-ui/styles alias to relative imports in the declaration files, this fixes broken type inference in VSCode

Does it solve https://spectrum.chat/material-ui/help/is-it-possible-for-makestyles-to-have-intellisense-in-vs-code~545ecc9e-932f-41b9-bf6e-770232277c44?

Yes, but to not take full credit see: https://github.com/mui-org/material-ui/pull/15366

A typescript update is needed, but when I update it i get linting errors

The build fail is interesting. Could it be linked to an issue between the definitions of /packages/material-ui/src/styles/withStyles.d.ts and /packages/material-ui-styles/src/withStyles/withStyles.d.ts.
Do we even need to have two different definitions?

This looks very promising but I think @oliviertassinari is correct here. We should just re-export the types from @material-ui/styles/withStyles in @material-ui/core/styles/withStyles. This applies to every function in @material-ui/core/styles that is just an adapter to @material-ui/styles.

@oliviertassinari @eps1lon There is a surprisingly high amount of errors when trying to get yarn typescript to pass, how any PR is passing is amazing.

@merceyz The build fail is interesting. Could it be linked to an issue between the definitions of /packages/material-ui/src/styles/withStyles.d.ts and /packages/material-ui-styles/src/withStyles/withStyles.d.ts?

Correct, that is one of the errors. There are more.

Do we even need to have two different definitions?

Should be possible to just re-export them

yarn typescript is passing now, unsure where to get the types for the JSS example

Everything is passing, how should I proceed?

Does it solve https://spectrum.chat/material-ui/help/is-it-possible-for-makestyles-to-have-intellisense-in-vs-code~545ecc9e-932f-41b9-bf6e-770232277c44?

@oliviertassinari To be clear: it works outside of this repo, this PR makes it work in the docs folder

Everything is passing, how should I proceed? Probably need to split this PR

@merceyz Thank you! This change is too important and technical for me to handle. @eps1lon will lead the next steps.

I have tried the changes locally. It looks great.

makeStyles also provides a default theme now, meaning this is valid in both JavaScript and TypeScript
import { makeStyles } from '@material-ui/core/styles';

const useStyles = makeStyles(theme => ({
  root: {
    padding: theme.spacing(2, 2, 0),
  },
}));

This works now, autocomplete shows up correctly at all locations.
const useStyles = makeStyles({
  root: (props: Props) => ({
    color: props.color,
    flexWrap: 'wrap',
  }),
  root1: {
    color: (props: Props) => props.color,
    flexWrap: (props: Props) => 'wrap',
  },
  root2: {
    content: () => new Date().getDay().toString(),
    flexWrap: () => 'wrap',
  },
  root3: {
    color: 'red',
    flexWrap: 'wrap',
  },
});

Miss-clicked approve

It is still not clear to me what change required the TS version bump

It's required to be able to not use createStyles

@eps1lon Will do


ipam/aws/eni: attempting to overallocate IP and ENI

Bug report
After upgrading to v1.10.0-rc1, I noticed the following in the logs of the cilium-operator-aws:
{
   "error":"operation error EC2: AssignPrivateIpAddresses, https response error StatusCode: 400, RequestID: f6257018-ac17-4e4c-8278-bb6d7349bd9d, api error PrivateIpAddressLimitExceeded: Number of private addresses will exceed limit.",
   "instanceID":"i-04d6bf44302171424",
   "ipsToAllocate":2,
   "level":"warning",
   "msg":"Unable to assign additional IPs to interface, will create new interface",
   "name":"ip-10-16-35-166.eu-west-1.compute.internal",
   "selectedInterface":"eni-062290b11cfc63e75",
   "subsys":"ipam"
}
{
   "addresses":4,
   "instanceID":"i-04d6bf44302171424",
   "level":"info",
   "msg":"No more IPs available, creating new ENI",
   "name":"ip-10-16-35-166.eu-west-1.compute.internal",
   "securityGroupIDs":[
      "sg-015d0f34fbe13438e"
   ],
   "subnetID":"subnet-0c284330b997f75c2",
   "subsys":"ipam"
}
{
   "addresses":4,
   "eniID":"eni-009191aca186b3cef",
   "instanceID":"i-04d6bf44302171424",
   "level":"info",
   "msg":"Created new ENI",
   "name":"ip-10-16-35-166.eu-west-1.compute.internal",
   "securityGroupIDs":[
      "sg-015d0f34fbe13438e"
   ],
   "subnetID":"subnet-0c284330b997f75c2",
   "subsys":"ipam"
}
{
   "instanceID":"i-04d6bf44302171424",
   "level":"warning",
   "msg":"Unable to create interface on instance: unable to attach ENI at index 3: operation error EC2: AttachNetworkInterface, https response error StatusCode: 400, RequestID: 78315ba4-e7db-43a9-88d4-774e9f085646, api error AttachmentLimitExceeded: Interface count 4 exceeds the limit for t3a.medium",
   "name":"ip-10-16-35-166.eu-west-1.compute.internal",
   "subsys":"ipam"
}

At first sight it seems to attempt overallocating both IP addresses on an ENI and ENI attachment on an instances.
General Information

Cilium version: v1.10.0-rc1
Kernel version: 5.4.0
Orchestration system version in use: EKS 1.19.6

How to reproduce the issue
Use v1.10.0-rc1 with AWS ENI IPAM enabled

After some digging, it seems related to the pointer de-referencing in lieu of DeepCopy() done through: https://github.com/cilium/cilium/commit/623dcd3581b6a48994d5e1e28b720b1c0525b6df
I was able to test it out locally by reverting the DeepCopy() and it sorted the issue out, not sure this is something we would like to have back though (according to this comment) :thinking:
cc @aanm & @christarazi

I believe this is a duplicate of #15877 which was fixed after rc1 was cut.

absolutely, my bad :facepalm: it is also likely that I have performed my manual tests from master which already included the fix.. closing this! many thanks :bow:


Fix gateway config for schema registry SSL connection

We noticed that the the gateway config for ssl authentication was never used. According to the docs of https://github.com/tulios/mappersmith#http the configuration must be nested with an HTTP key.
After the changes we were able to successfully authenticated to our ssl protected schema registry.
It would be great if the fix can be released soon, because it is a major blocker for us right now.
Fixes #107

Thanks for the fix! This is now out in v3.0.1.


SD card interface issue

i followed the above link
steps:

mbed OS v5.4.1
SD driver from https://github.com/ARMmbed/sd-driver/
placed the driver in filesystem
Compiled expample1.cpp (is provied)mbed compile -t ARM -m XXXX
No files are writing/reading in SD card

@akrnvm reproduced on more targets as XXX is referenced above via -m ?

@akrnvm -  yep, exact board details & way how you connected the SD-card is vital information.

Hi,
using Filesystem object i'm able to communicate with SD card.
fopen () and fread() commands are not working, f_open,f_write are working.
Not Working Code:
Ref: https://developer.mbed.org/cookbook/SD-Card-File-System
#include "mbed.h"
#include "SDFileSystem.h"
SDBlockDevice sd(MOSI, MISO, SCLK, PJ1);
FATFileSystem fs("sd", &sd);
int main() {
mkdir("/sd/mydir", 0777);
FILE *fp = fopen("/sd/mydir/sdtest.txt", "w");
if(fp == NULL) {
    error("Could not open file for write\n");
}
fprintf(fp, "Hello fun SD Card World!");
fclose(fp);

}
Working Code:
SDBlockDevice sd(MOSI, MISO, SCLK, PJ1);
FATFileSystem fs("sd", &sd);
int main() {
FATFS FatFs;
FIL pFilePtr;
f_mount(&FatFs, " ",1);
f_open(&pFilePtr, "0:/URC/CONFIG/WebResponse1.txt", FA_WRITE  FA_OPEN_ALWAYS);
f_write(&pFilePtr, "test2", 5, &uiValue);
f_close(&pFilePtr);
}

Hi @akrnvm, you are not going crazy, that code should work. I'll see if I can reproduce this.
Is this on the LPC1768?

Is this on the LPC1768?
No,its our own board with 16KB RAM.
could you please explain the logical drive "sd" and "0:" difference ?, why can't its open with "sd/URC/CONFIG/WebResponse1.txt" .

hi,
could you please tell, is it possible to execute SD block device application on 16KB RAM device?
my code is working with Keil but its Fail in IAR.
is IAR required more RAM ?

my code is working with Keil but its Fail in IAR.

What's the failure? Does not fit in the RAM region? using debug and even release profile?

@akrnvm - Not sure if this issue still exists, all test in SD repo are successful with IAR 7.8 and higher versions and latest mbed-os version. Please re-open if required.


border-b-* overriden by border-opacity-*

Describe the bug
If a border-b-* class (e.g. border-b-4) precedes a border-opacity-* class (e.g. border-opacity-20), the former is removed from the list.
To Reproduce
On any element:

The rendered element:

Expected behavior
I expect the rendered element to maintain non-competing classes, like so:

Note: this can be fixed by doing something like:

But still, I suspect the current behavior is not intended.
Runtime

Elixir version: 1.15.4
Erlang version: 25
OS: macOS Ventura 13.2.1
Tails version: 0.1.7

I've added a test for this, but am unable to reproduce it in the latest main. It looks like we have made some fixes that have not been released, I'll cut a release and you can try that :)

0.1.8 has been released.

@zachdaniel thanks for shipping that release! Unfortunately, this is still occurring on 0.1.8:
<div class={Tails.classes(["border-b-4 border-opacity-20"])}

results in:

Hmm…could you write a test that reproduces this in the repo?
On Tue, Nov 21 2023 at 2:26 PM, Trevor Hinesley < @.*** > wrote:

@zachdaniel ( https://github.com/zachdaniel ) thanks for shipping that
release! Unfortunately, this is still occurring on 0.1.8 :
results in:

—
Reply to this email directly, view it on GitHub (
https://github.com/zachdaniel/tails/issues/13#issuecomment-1821550305 ) ,
or unsubscribe (
https://github.com/notifications/unsubscribe-auth/ABLVBYZCVTX6LRPCUYXCAQDYFT553AVCNFSM6AAAAAA7TG7PJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGU2TAMZQGU
).
You are receiving this because you were mentioned. Message ID: <zachdaniel/tails/issues/13/1821550305
@ github. com>

Here's the failing test, both of these refute statements fail: https://github.com/TrevorHinesley/tails/commit/dc640e89041b65e72cf9f04dff7c48d209bc847c

Thanks for the test, I believe the issue should be resolved now :)

Thanks a bunch!

Do you want to cut a release for that?


Update the command line  "help" listing, please! :)

When I run the revised address command it works like a charm but the "--help" still does not add "-a" to the options list?
wlink flash -a 0x08000000 ./CH32V203C8T6-Blinking.hex
03:54:06 [INFO] WCH-Link v2.8 (WCH-LinkE-CH32V305)
03:54:06 [INFO] Attached chip: CH32V20x(0x20310510)
03:54:06 [INFO] Read ./CH32V203C8T6-Blinking.hex as IntelHex format
03:54:06 [INFO] Flashing 7212 bytes to 0x08000000
03:54:07 [INFO] Flash done
03:54:07 [INFO] Now reset...
03:54:08 [INFO] Resume executing...
Suggested Revised "wlink Help" message follows:
Invocation: db@wks-32:~/Desktop$ wlink help
WCH-Link flash tool for CH32V faimily MCUs
Usage: wlink [OPTIONS] [COMMAND]
Commands:
dump Dump memory region
regs Dump registers
erase Erase flash
flash Program the flash
write-reg Force set register
write-mem Force write a memory word
halt Halts the MCU
resume Resumes the MCU
reset Reset the MCU
status Debug, check status
help Print this message or the help of the given subcommand(s)
Options:
-d, --device Optional device index to operate on
-v, --verbose... Turn debugging information on
--detach Detach chip after operation
-h, --help Print help
-V, --version Print version
-a Load Address Example: wlink flash -a 0x08000000 ./file.hex ****************************<<<

Sorry I am a novice using this tool, but when I tried it yesterday, I found:
C:\Users\kurte>wlink flash --help
Program the flash

Usage: wlink flash [OPTIONS] <PATH>

Arguments:
  <PATH>  Path to the binary file to flash

Options:
  -a, --address <ADDRESS>  Address in u32 [default: 134217728]
      --detach             Detach chip after operation
  -h, --help               Print help

C:\Users\kurte>

This tool uses clap to handle commands. So it's a multi-level subcommand style.


[added] Introduce onAfterClose callback prop

Fixes #708 .
Since the onRequestClose won't be executed when isOpen changes outside of the controller scope, I think it's reasonable to give a single handler to general closing.
This would allow for some more centralised solutions like:
const modalProps = {
  onAfterOpen: disableBodyScroll,
  onAfterClose: enableBodyScroll,
}

whereas today you have to do:
const modalProps = {
  onAfterOpen: disableBodyScroll,
  onRequestClose:  enableBodyScroll
}

closeModal () {
  this.setState({ isOpen: false })
  enableBodyScroll();
}

Changes proposed:

Introduce onAfterClose callback prop

Upgrade Path (for changed or removed APIs):
Acceptance Checklist:

[x] The commit message follows the guidelines in CONTRIBUTING.md.
[x] Documentation (README.md) and examples have been updated as needed.
[x] If this is a code change, a spec testing the functionality has been added.
[x] If the commit message has [changed] or [removed], there is an upgrade path above.

Hi @fernandofleury. Thanks for implementing this. Good job!

@diasbruno I've updated as you requested

Released version 3.8.1.

Is there any reason why this isn't anywhere in the docs?
http://reactcommunity.org/react-modal/?q=#installation


"Petrăchioaia", "Măineasca", "Surlari" and "Vânători" are listed in the drop-down menu

Description:
"Petrăchioaia", "Măineasca", "Surlari" and "Vânători" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Petrăchioaia" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Petrăchioaia, ILFOV (Petrăchioaia)" and "Comuna Petrăchioaia, ILFOV".

Step 3
Type "Măineasca" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Măineasca, ILFOV (Petrăchioaia)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Surlari" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Surlari, ILFOV (Petrăchioaia)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Type "Vânători" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Vânători, ILFOV (Petrăchioaia)".


Show number of open PRs

It would be nice to see the number of open PRs as well as the number of issues, so that we can focus on closing PRs before moving on to resolving issues.

It seems like the issues number is actually issues + PRs 🤔.

I think the easiest way to do so is to do increments and decrements on a database value for open and close actions on the pull_request event type. That does feel icky tho

It seems like the issues number is actually issues + PRs 🤔.

 :O

There's actually two fields in the webhook payloads: open_issues and open_issues_count. But in the payloads I've stored locally these show the same count, so I don't know if there is any useful difference.
Currently the open_issues field is used.

Yeah, they always have the same value.

I think the easiest way to do so is to do increments and decrements on a database value for open and close actions on the pull_request event type. That does feel icky tho

IMO too icky.

So then what we'd have to do is to have a PR counter in the database and subtract the PR count from the issue count sent to the view 😛

IMO too icky.

Yeah. Firebase does have a decent API for doing that sort of stuff though: https://github.com/Creuna-Oslo/Dashboard/blob/e38fb59842d5742245513262678e2c63a229cb46/functions/index.js#L26

Too easy to get out of sync, IMO.

😞

😭


add a kubectl Summary impl for Jobs

plugin-kubectl/src/lib/view/models/Summary/impl
this will 1) allow for faster sidecar loads; 2) temporarily shore up replaying notebooks that have job sidecars

an alternative would be to have the Generic.ts impl just return the full yaml.


Fabrid/end2end integration

new FABRID executable for end2end integration test
rework FABRID hop indexing to only use one hop per AS
enable zero policy on border routers

Added path validation, passes for all paths in end2end integration test on default topo

compute path validator at source
fix HostHostKey fetching at source
derive path key at destination
verify path validator at destination


Error when parsing pipeline.yml with regular expression containing $

I was using conditions in my pipeline.yml in which I wanted the build.message to end with a certain keyword. For this the regular expression will contain a $. But the following error is shown in the build:
FATAL  Pipeline parsing of "pipeline.yml" failed (Expected identifier to start with a letter, got /)
--
  | 🚨 Error: The command exited with status 1

What I noticed is that the parser for the pipeline.yml file always expects a letter immediately after the dollar sign. I even tried the example expressions given in https://buildkite.com/docs/pipelines/conditionals#example-expressions that contain $ and I get similar error.

Sorry you ran into this! The condition is has variable interpolation applied to it, so that errors is because the $ marks the start of variable interpolation.
Try escaping $ with either \$ or $$.


#[display("{:?}")] could be better

#[derive(Display)]
#[display("{:?}")]
enum E {
    A,
    B,
}

It generates the following Display::fmt:
match self {
    &Self::A=> f.write_fmt(format_args!("{0:?}", "A")),
    &Self::B=> f.write_fmt(format_args!("{0:?}", "B")),
}

I think "{:?}" should generate the following:
<Self as Debug>::fmt(self, f)

I implemented this specification with de8a9431787053078ed706fc6ff53126c35a4acf.
There are some inefficiencies in the generated code, which I will eventually fix.

Thank you.


Kubernetes IngressRoute: HTTPS backend heuristic is inadequate and too subtle

Do you want to request a feature or report a bug?
Bug
Did you try using a 1.7.x configuration for the version 2.0?

[ ] Yes
[x] No

What did you do?
When using a v1alpha1.IngressRoute to refer to a Kubernetes Service whose endpoints are expecting HTTPS connections, Traefik discerns this case using two heuristic conditions:

The matching Endpoint's port number is 443, or
the Endpoint's port name starts with "https."

This works, but doesn't help with the following common cases:

The Endpoint is a pod that doesn't have permission bind to a privileged port, so it uses something like port 8443 to accept HTTPS connections.
Note that for an Endpoint that's a pod, the port in the Endpoint is the container port, not the Service port.
The Endpoint corresponds to a Service whose author is different from the IngressRoute author, such that the Service author didn't bother to name the port in a way that anticipates this "https" name prefix heuristic.
Note that the Service port may not be named at all.

For cases where the IngressRoute author can't adjust the target Service, it may not be possible to coerce Traefik into using HTTPS to talk to the backend.
What did you expect to see?
The IngressRoute type should offer some way to specify the protocol with which to contact the backend, overriding the aforementioned heuristic. The Service type looks like the right place for this optional attribute, or collection of attributes. It may need to accommodate a CA bundle by which to trust the servers.
What did you see instead?
Traefik uses the aforementioned heuristic, forcing me to edit my Kubernetes Service to rename the port to start with "https."
Output of traefik version: (What version of Traefik are you using?)
Version:      2.0.0-alpha8
Codename:     faisselle
Go version:   go1.12.6
Built:        2019-07-01T17:46:52Z
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?
api:
  entryPoint: "api"
entryPoints:
  api:
    address: ":8080"
  metrics:
    address: ":9100"
  web:
    address: ":80"
  web-secure:
    address: ":443"
global:
  sendAnonymousUsage: false
metrics:
  prometheus:
    entryPoint: "metrics"
providers:
  kubernetesCRD: {}
serversTransport:
  insecureSkipVerify: true

Kubernetes version 1.14.3 running atop Container Linux in AWS

The previous #5044 covers my complaint, and #5062 provides a remedy, as of eleven hours ago.


REFACTOR: Backend: refactored models using base models

Codecov Report

Merging #142 (ebf90c2) into develop (fe420ba) will increase coverage by 0.89%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #142      +/-   ##
===========================================
+ Coverage    88.85%   89.74%   +0.89%
===========================================
  Files           79       83       +4
  Lines         1229     1278      +49
===========================================
+ Hits          1092     1147      +55
+ Misses         137      131       -6

Impacted Files
Coverage Δ

backend/src/apps/goods/api/serializers.py
100.00% <ø> (ø)

backend/src/apps/goods/api/viewsets.py
83.33% <ø> (ø)

backend/src/apps/orders/admin.py
100.00% <ø> (ø)

backend/src/apps/orders/api/serializers.py
100.00% <ø> (ø)

backend/src/apps/core/models.py
100.00% <100.00%> (ø)

backend/src/apps/goods/admin.py
94.44% <100.00%> (ø)

...move_dish_added_date_category_added_by_and_more.py
100.00% <100.00%> (ø)

backend/src/apps/goods/models.py
93.93% <100.00%> (-0.18%)
:arrow_down:

...orders/migrations/0007_alter_order_ordered_date.py
100.00% <100.00%> (ø)

...order_ordered_date_discount_created_at_and_more.py
100.00% <100.00%> (ø)

... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Accurate Time Remaining for Training

🚀 Feature
Currently tqdm time remaining in an epoch doesn't account for the fact that validation steps are faster and so is often wildly inaccurate, fluctuating between the time remaining if all steps were validation and if all steps were training.
Motivation
Would make it much easier to see how long an epoch is gonna take without having to do the math manually.
Pitch
Could just not include validation steps in the the overall epoch tqdm iterator but that would still not be accurate, could break the epoch down into the validation chunks and show a training bar for each and then saw (1/4) if validation steps are 0.25.
Could somehow calculate the speed of validation step vs training and produce accurate times for both (not sure how difficult)...
Alternatives
Remove the time remaining from tqdm all together? If it's not accurate.
Additional context
Epoch 1:  30%|██████████████████▌                                          | 3300/10868 [10:30<24:27,  5.16it/s, loss=0.473, train_loss=0.548]

Hey, good point, if you have some elegant solution in mind, could you send a PR?

@Borda Sure, I will look into this next week when I (hopefully) have more time

I couldn't find a good way to do with with tqdm, best temporary fix is to set smoothing=0 so it just takes an average of all steps rather than trying to exponentially weight most recent steps.


Remove runtime recursion from find_ntuplets()

From cms-sw/cmssw#35473 and cms-sw/cmssw#35542 for all other versions than hip (that was done in https://github.com/cms-patatrack/pixeltrack-standalone/pull/233).

I consider  "partial specializations of functions are not allowed" a defect in Alpaka.
The use of "if constexpr" instead of template specialization to terminate recursion is a more general coding pattern far more reaching that the case in hand


EditorFileDialog: disambiguate recent/favorite items

Implements part of https://github.com/godotengine/godot-proposals/issues/2876
Similar to the script editor, if two folders have the same name in any editor file dialog (e.g. Open Scene), they will now get a more descriptive name in the item list. Note that this is not showing the full path, it just adds the parent folder name where needed.
Also made the formatting more consistent by using a trailing slash for both lists.

Might also need a rebase just in case as we've been changing core APIs a lot recently.

Indeed, without the trailing slash should be perfect.

@akien-mga I did following changes:

Rebase onto master
Fix the logic responsible for filtering out non-res:// paths
Remove trailing /

Just found a bug when access == ACCESS_FILESYSTEM. Must fix.

OK I tested everything again (both kinds of file browsers - res:// path and OS path) and they show and keep recentdirs/favorites correctly.


Giving coordinates from PokéVision

I've noticed that if I pass PokéVision coordinates, sometimes the bot walks away from the point given and don't catch the pokemon I want.
Given the walking algorithm this bot is using, is there a hint of where should I place the marker to make the bot walk in that direction?

You should place the pokevision marker exactly on that pokemon you want.
The bot will catch it for you.


Gracefully handle invalid class names

Overview
As a user, I want css-typed to generate TS-compliant variable names for otherwise-invalid CSS class names. For example, kebab-case.
Notes

[x] Should this require an option?
Answer for now: Yes.

[x] Should this be on by default, but have an option to disable?
Answer for now: Not enabled by default.

[x] If off, should the TS generate or skip the invalid name?
Answer for now: Only emit valid TS.

[x] What formats?
Answer for now: support kebab-case to camelCase, but should not modify first letter.

kebab-case to camelCase is known
What about PascalCase?

See https://github.com/connorjs/css-typed/pull/1 for the first approach to this.

[Research note]
Vite has support for kebab-case to camelCase.

CSS feature docs.

If css.modules.localsConvention is set to enable camelCase locals (e.g. localsConvention: 'camelCaseOnly'), you can also use named imports:

The css.modules docs mention this uses postcss-modules.

Vite also has experimental support for lightning css. At first glance, I cannot tell if this supports kebab-case to camelCase transformation (but I could always prototype it).

A quick scan of Qwik suggests "defaults" but also "thanks to Vite."
My gut thought is to (a) default to no kebab-case to camelCase transformation but (b) only emit valid TS.
Note: I will create a "1.0 roadmap" tracking issue and include this in there (later).

Another note: stylelint-config-standard recommends kebab-case. Therefore, I’m strongly inclined to default to handling kebab-case. I’ll open a PR to change that this week.

This will be solved with upcoming localsConvention option. The next release will default to dashesOnly which will handle kebab-case by default.


Lint for pointless/bad positional arguments.

In cases like https://github.com/Citadel-Station-13/Citadel-Station-13-RP/blob/69ce25bd79b41b7800e33c45ccb9a094a280c5ff/code/modules/gamemaster/actions/atmos_leak.dm#L20-L23
...
severity = pickweight(EVENT_LEVEL_MUNDANE = 8,
EVENT_LEVEL_MODERATE = 5,
EVENT_LEVEL_MAJOR = 3
)
...
// Event defines.
#define EVENT_LEVEL_MUNDANE        1
#define EVENT_LEVEL_MODERATE    2
#define EVENT_LEVEL_MAJOR        3
...

this is almost certainly unintentional, undoubtably does not do what the programmer intended, and should probably be linted for.

Added context I haven't verified for myself:


JAMES-3516 Implement ThreadIdGuessingAlgorithm for Distributed module

The problem now is that the new message can't find related thread data from the thread table.
My guess is the Cassandra write is not finished yet before other new messages coming, or maybe even my code writing to Cassandra is not working.
I am working on this.

At DistributedThreadGetTest:

I added await for ES to ensure it can index all-new message
I debugged a test that adds new related messages: they have the same threadId => So guessThreadId API works properly now.
But then get that thread do not work properly. The thread with 3 message id just returns 1 message id.

At CassandraThreadIdGuessingAlgorithmTest which uses SimpleMessageSearchIndex does not work properly also.
This is really weird. My guess is we have a bug when SearchIndex indexes threadId which wraps CassandraMessageId (because it still works properly with InMemoryMessageId).

Can you squash @quantranhong1999 ?

Done. We need this to be merged https://github.com/apache/james-project/pull/550. Then I can remove the NO REVIEW commit.

The CI build failed with weird errors. Can someone restart it?

yes maybe a network issue with jib. I restarted the build

org.apache.james.backends.es.v7.ElasticSearchIndexerTest.deleteMessagesShouldNotThrowWhenEmptyList

Failing for the past 1 build (Since Failed#8 )
Took 0 ms.
Error Message
Could not initialize class org.apache.james.backends.es.v7.DockerElasticSearchSingleton
Stacktrace
java.lang.NoClassDefFoundError: Could not initialize class org.apache.james.backends.es.v7.DockerElasticSearchSingleton
	at org.apache.james.backends.es.v7.ElasticSearchIndexerTest.<init>(ElasticSearchIndexerTest.java:61)

These seem not related, green on my local btw.

Looks like it's not... restarted


issue #134: Updated the App to use Custom Icons

Updated project to use custom icons.

Created Icons component to provide custom svg icons.
Created a reusable Button component.
Created a buttonLinks object to map over in card.jsx.
Updated the Card.jsx to use Button and custom Icons component.
Updated the footer to use custom components.
Updated some styles in card.css and footer.css.

can you add some screenshots

Is it okay if I will do that tomorrow.
If you want you can view preview deployment for now

no problem @dhawal-793  , take your time

Screenshot of the updated Web Page

Updated footer

There's nothing changed much visually.
Just, earlier for two icons we were using the whole dependency of icons, now we don't need that.
If anyone wants to add a new Icon they can create a new component in Icons.jsx using SVG code and can use that anywhere in  project.

@JasonDsouza212 can you assign #151 to me.
I have implemented the code, just need approval.

@JasonDsouza212 can you assign #151 to me. I have implemented the code, just need approval.

Ya you can create a separate pull request for that

Everything looks good


Cannot get plain-text output from npm-groovy-lint?

Even if I pipe the output from npm-groovy-lint to a text-file,
I get the ugly terminal-color-encoding with ESC-chars, etc, in the output.
Example:
21    [33mwarning[39m  Class xxx.Yyy missing Javadoc  ClassJavadoc
How can I get plain-text output?

You can use --output path/to/resultsfile.txt , it will output in a file, without colors meant for console :)

aah -- yes, that worked!
Thanks!! :)

You're welcome :)

--output=/dev/stdout isn't allowed
--output=- isn't allowed
here is a nasty hack to mock writing to stdout normally
warning, temporary files are a total headache,
#!/bin/sh -eu
# /usr/local/bin/npm-groovy-lint-nocolor
tmpdir="$(mktemp -d )" && (ln -sf /dev/stdout ${tmpdir}/.txt && ${NPM_GROOVY_LINT_EXEC:-npx} npm-groovy-lint --output=${tmpdir}/.txt "$@"); rc=$?; rm ${tmpdir}/.txt; rmdir ${tmpdir}
exit $rc

feature request, it would be much prefered to be able to request the output format separate from the output file name --output-format=text --output=/dev/stdout # do what i say!
feature request, test if stdout is a tty  if(isatty(1)) # color might be okayand if environ $TERM supports ANSI 'color' in os.environ.get('TERM', '') # color might be okay as part of deciding to dump ANSI control codes by-default.
to test with stdin is not a tty true | npm-groovy-liny
to test with stdout is not a tty npm-groovy-liny | cat
to test both stdin and with stdout is not a tty true | npm-groovy-liny | cat


testadd sync after insert in test case

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Vanes recompile when zuse changes, even if new zuse fails to compile

We probably want to only recompile the vanes if the changed zuse actually compiles, otherwise we're just recompiling against the old version.

It's possible that this should be handled by ford, but it's not currently. %zuse and the vanes are built and installed by a special Arvo-specific move %veer.


add a command to list snapshots

Similar to the zeroctl list vdisks (which is used to list vdisks on an ARDB server/cluster), it would be useful to have a command which allows for listing snapshots on a given FTP server.
Proposed command:
zeroctl list snapshots --help
List all snapshots available on a FTP(S) Server

Usage:
  zeroctl list snapshots [flags]

Flags:
  -h, --help                      help for snapshots
      --name string               list only snapshots which match the given name (supports regexp)
  -s, --storage StorageConfig     ftp server url or local dir path to export the backup to (default $HOME/.zero-os/nbd/vdisks)

Global Flags:
  -v, --verbose   log available information

Oops, double created. Duplicate of #572.


[backport 2.7] Fix Nav Header elements on page refresh

Summary
Contributes to https://github.com/harvester/harvester/issues/4040

Occurred changes and/or fixed issues

Technical notes summary

We are setting the $route to immediate: true so that it runs again when refreshing the browser's window and imports again the NavHeaderRight component.

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

Checklist

[x] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
[x] The PR has a Milestone
[x] The PR template has been filled out
[x] The PR has been self reviewed
[x] The PR has a reviewer assigned
[x] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
[x] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@torchiaf apparently actions/upload-artifact: v2 in the worflow for the e2e-test is deprecated and it won't run

Closed as not required in 2.7


Corner radius animation

In most modern apps some images showing as a circles. Animation of the transition in such case doesn't look nice.
By adding new boolean flag to the configuration and slight change in transitions logic I made it possible to resolve this problem. Maybe it'll be useful for other developers too.

I agree that supporting cornerRadius for the animation would be a nice addition, although it would be nicer if the cornerRadius is just taken from the the source image view. So it doesn't require additional configuration params.
Will definitely add support for this in the next release.


apalis-cron example out of date

I'm having some issues setting up a job that runs on a cron schedule and I cannot follow the apalis-cron example since it is using functions that don't exist in 0.5 (job_fn): https://github.com/geofmureithi/apalis/blob/master/packages/apalis-cron/README.md
I keep getting a type error (using 0.5.3 of apalis with cron feature):
use anyhow::Result;
use apalis::cron::{CronStream, Schedule};
use apalis::prelude::*;
use chrono::{DateTime, Utc};
use std::str::FromStr;

#[derive(Default, Debug, Clone)]
struct Crawl(DateTime<Utc>);

impl From<DateTime<Utc>> for Crawl {
    fn from(t: DateTime<Utc>) -> Self {
        Crawl(t)
    }
}

impl Job for Crawl {
    const NAME: &'static str = "apalis::Crawl";
}

pub async fn test_crawl_fn(job: Crawl) -> Result<()> {
    tracing::info!(job = ?job, "crawl");
    Ok(())
}

#[tokio::main]
async fn main() -> Result<()> {
    let schedule = Schedule::from_str("0 * * * * *").unwrap();

    let worker = WorkerBuilder::new("crawler")
        .stream(CronStream::new(schedule).into_stream())
        .build_fn(test_crawl_fn);

    Monitor::<TokioExecutor>::new()
        .register(worker)
        .run()
        .await
        .unwrap();

    Ok(())
}

error[E0277]: the trait bound `ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>: tower_service::Service<apalis::prelude::Request<_>>` is n
ot satisfied
  --> src/bin/crawler.rs:31:10
   |
31 |         .build_fn(test_crawl_fn);
   |          ^^^^^^^^ the trait `tower_service::Service<apalis::prelude::Request<_>>` is not implemented for `ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>
> {test_crawl_fn}, _>`, which is required by `apalis::prelude::WorkerBuilder<_, Pin<Box<dyn futures_core::stream::Stream<Item = Result<Option<apalis::prelude::Request<_>>, apalis::
prelude::Error>> + Send>>, tower_layer::identity::Identity, _>: apalis::prelude::WorkerFactory<_, ServiceFn<_, _>>`
   |
   = help: the following other types implement trait `tower_service::Service<Request>`:
             ServiceFn<T, ()>
             ServiceFn<T, (A1, A2)>
             ServiceFn<T, (A1, A2, A3)>
             ServiceFn<T, (A1, A2, A3, A4)>
             ServiceFn<T, (A1, A2, A3, A4, A5)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8)>
           and 9 others
   = note: required for `WorkerBuilder<_, Pin<Box<dyn Stream<Item = Result<Option<Request<_>>, Error>> + Send>>, Identity, ServiceFn<fn(Crawl) -> ... {test_crawl_fn}, ...>>` to imp
lement `apalis::prelude::WorkerFactory<_, ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>>`
   = note: the full name for the type has been written to '/Users/tyler/crawlnicle/target/debug/deps/crawler-03fd1b85afa5a103.long-type-13636588232781125929.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>: tower_service::Service<apalis::prelude::Request<_>>` is n
ot satisfied
  --> src/bin/crawler.rs:31:10
   |
31 |         .build_fn(test_crawl_fn);
   |          ^^^^^^^^ the trait `tower_service::Service<apalis::prelude::Request<_>>` is not implemented for `ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>
> {test_crawl_fn}, _>`, which is required by `apalis::prelude::WorkerBuilder<_, Pin<Box<dyn futures_core::stream::Stream<Item = Result<Option<apalis::prelude::Request<_>>, apalis::
prelude::Error>> + Send>>, tower_layer::identity::Identity, ServiceFn<_, _>>: apalis::prelude::WorkerFactoryFn<_, _, _>`
   |
   = help: the following other types implement trait `tower_service::Service<Request>`:
             ServiceFn<T, ()>
             ServiceFn<T, (A1, A2)>
             ServiceFn<T, (A1, A2, A3)>
             ServiceFn<T, (A1, A2, A3, A4)>
             ServiceFn<T, (A1, A2, A3, A4, A5)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8)>
           and 9 others
   = note: required for `WorkerBuilder<_, Pin<Box<dyn Stream<Item = Result<Option<Request<_>>, Error>> + Send>>, Identity, ServiceFn<fn(Crawl) -> ... {test_crawl_fn}, ...>>` to imp
lement `apalis::prelude::WorkerFactory<_, ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>>`
   = note: required for `WorkerBuilder<_, Pin<Box<dyn Stream<Item = Result<Option<Request<_>>, Error>> + Send>>, Identity, ServiceFn<fn(Crawl) -> ... {test_crawl_fn}, ...>>` to imp
lement `apalis::prelude::WorkerFactoryFn<_, fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>`
   = note: the full name for the type has been written to '/Users/tyler/crawlnicle/target/debug/deps/crawler-03fd1b85afa5a103.long-type-13636588232781125929.txt'
   = note: consider using `--verbose` to print the full type name to the console
   = note: the full name for the type has been written to '/Users/tyler/crawlnicle/target/debug/deps/crawler-03fd1b85afa5a103.long-type-13636588232781125929.txt'
   = note: consider using `--verbose` to print the full type name to the console

error[E0277]: the trait bound `ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>: tower_service::Service<apalis::prelude::Request<_>>` is not satisfied
  --> src/bin/crawler.rs:34:19
   |
34 |         .register(worker)
   |          -------- ^^^^^^ the trait `tower_service::Service<apalis::prelude::Request<_>>` is not implemented for `ServiceFn<fn(Crawl) -> impl Future<Output = Result<(), anyhow::Error>> {test_crawl_fn}, _>`
   |          |
   |          required by a bound introduced by this call
   |
   = help: the following other types implement trait `tower_service::Service<Request>`:
             ServiceFn<T, ()>
             ServiceFn<T, (A1, A2)>
             ServiceFn<T, (A1, A2, A3)>
             ServiceFn<T, (A1, A2, A3, A4)>
             ServiceFn<T, (A1, A2, A3, A4, A5)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7)>
             ServiceFn<T, (A1, A2, A3, A4, A5, A6, A7, A8)>
           and 9 others
note: required by a bound in `apalis::prelude::Monitor::<E>::register`
  --> /Users/tyler/.cargo/registry/src/index.crates.io-6f17d22bba15001f/apalis-core-0.5.3/src/monitor/mod.rs:83:12
   |
81 |     pub fn register<
   |            -------- required by a bound in this associated function
82 |         J: Send + Sync + 'static,
83 |         S: Service<Request<J>> + Send + 'static + Clone,
   |            ^^^^^^^^^^^^^^^^^^^ required by this bound in `Monitor::<E>::register`

I'm trying to follow what other repos have done to set up apalis-cron (e.g. https://github.com/IgnisDa/ryot/blob/182e4e7982d5fb24e08dd6e9593d2cece171185f/apps/backend/src/main.rs#L255-L270), I'm not sure why I am getting this type error while they are not.

The issue is anyhow::Error which does not impl std::Error. See #258
The example should be updated.

This example might help:
https://github.com/geofmureithi/apalis/blob/master/examples/async-std-runtime/src/main.rs

Resolved by https://github.com/geofmureithi/apalis/pull/359


function pointer inside struct

Close #467

This change is

Close  #474

Reviewed 1 of 5 files at r1, 5 of 5 files at r2, 1 of 1 files at r3.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

transpiler/binary.go, line 302 at r3 (raw file):

					if union != nil && union.IsUnion {
						attrType, err := types.ResolveType(p, ref.Type)
						if err != nil {

Why did you remove this check?

Comments from Reviewable

Review status: 4 of 7 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed.

transpiler/binary.go, line 302 at r3 (raw file):
Previously, elliotchance (Elliot Chance) wrote…
Why did you remove this check?

I return back, but in my point of view, it is identical. It is happen because, checking err != nil will check inside function GenerateWarningMessage.

Comments from Reviewable

Reviewed 3 of 3 files at r4.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable


Dev/vf setup doc

Added a link to the new vf set up guide in the repo readm

@ahalim-intel sorry - issue on my side. I've removed the extra file now.


Refresh loader spins non stop, but nothing happens

Hello 👋
On my personal instance, I had to rollback to version 0.0.113 (93c7b00) (a one I knew it was Ok).
The main problem is the loader on the left kept running but nothing happened in the UI.
Old PRs were still displayed (I suppose from the cache), but nothing new appeared.
I have no error or log information to share.
If you want I can re-deploy the faulty version and run some test if helpful. At the moment, I don't know what I can share to help on this investigation.

After https://github.com/pvcnt/mergeable/commit/4c5e7e25d7e1713824120121c78404c80a029b0d, it seems to be ok. Let me know if you need anything 😉

Hi, I observed the same behaviour, it happened when the system stayed in a “loading” state forever, often due to a non-graceful termination of the sync process (e.g., by reloaded the page while syncing). Glad to know it’s fixed! Let me know if the issue comes back.


localai:v2.10.1-cublas-cuda12-core  ”Fails: grpc process not found”

LocalAI version:

localai:v2.10.1-cublas-cuda12-core
Environment, CPU architecture, OS, and Version:
windows 11,RTX 4090，cuda 12.3

2024-03-21 19:23:56 11:23AM INF [/build/backend/python/sentencetransformers/run.sh] Fails: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/sentencetransformers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS
2024-03-21 19:23:56 11:23AM INF [/build/backend/python/coqui/run.sh] Fails: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/coqui/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS
Describe the bug

i just run the command "docker run -ti -p 8080:8080 --gpus all localai/localai:v2.10.1-cublas-cuda12-core mixtral-instruct",and send a test prompt to the 8080 port.then i return the error to me.
To Reproduce

the command i send is "curl http://localhost:8080/v1/completions -H "Content-Type: application/json" -d "{ "model": "mixtral-instruct", "prompt": "How are you doing?" }""
Expected behavior

Logs

Additional context

Hi @testKKP can you post your model definition?
The core images does not include python so SentenceTransformers and Coqui are not available.
For your reference backends that requires python are:

autogptq
bark
coqui
diffusers
exllama
exllama2
mamba
petals
sentencetransformers
transformers
transformers-musicgen
vall-e-x
vllm

Same issue here, using the new all in one image
 docker run -p 8080:8080 --gpus all --name local-ai -ti quay.io/go-skynet/local-ai:latest-aio-gpu-nvidia-cuda-12

Request:
{ "model": "gpt-4", "messages": [{"role": "user",
  "content": "How are you doing?", "temperature": 0.1}]}

Response:
{
	"error": {
		"code": 500,
		"message": "rpc error: code = Unknown desc = unimplemented",
		"type": ""
	}
}

Running Fedora Linux + Nvidia RTX3060

Hi @ThaDrone this is a different issue since gpt-4 from AIO images uses llama.cpp backend while it seems that @testKKP is using a python (transformer?) backend.
Can you open a new issue with the output from docker logs local-ai?

Hi @ThaDrone this is a different issue since gpt-4 from AIO images uses llama.cpp backend while it seems that @testKKP is using a python (transformer?) backend. Can you open a new issue with the output from docker logs local-ai?

thansk for you reply.in fact ,i dont know my model definition. i just run the command provided in the official website like this “docker run -ti -p 8080:8080 --gpus all localai/localai:v2.10.1-cublas-cuda12-core mixtral-instruct”.  the others were all done by the docker itself.so i dont know how to solve it.

There is mixtral configuration in the example directory: https://github.com/mudler/LocalAI/tree/master/examples/configurations/mixtral.
Download the files in your models directory with the GGUF file.
In the example is used mixtral-8x7b-instruct-v0.1.Q2_K.gguf: you can choose whatever you prefer just remember to update the config.

Same issue here, using the new all in one image
 docker run -p 8080:8080 --gpus all --name local-ai -ti quay.io/go-skynet/local-ai:latest-aio-gpu-nvidia-cuda-12

Request:
{ "model": "gpt-4", "messages": [{"role": "user",
  "content": "How are you doing?", "temperature": 0.1}]}

Response:
{
	"error": {
		"code": 500,
		"message": "rpc error: code = Unknown desc = unimplemented",
		"type": ""
	}
}

Running Fedora Linux + Nvidia RTX3060

Hello, I also had a similar problem, did you solve it？

I am trying to debug the original error described in the OP's comment, since I am facing the same error running localai with docker locally. Unlike the OP, I am running the aio image localai/localai:latest-aio-gpu-nvidia-cuda-12.
Here is what I found:

Attempting to hit the text-embedding-ada-002 embeddings works fine, and loads the MiniLM model.
Attempting to ask for sentence-transformer model, e.g. sentence-transformers/distiluse-base-multilingual-cased-v1 results in an error (full logs below)

References
Running top inside the container
     62 root      20   0   15.4g<PHONE_NUMBER>76 S   0.3   0.9   0:20.87 python /build/backend/python/sentencetransformers/backend.py --addr <IP_ADDRESS>:36433
    408 root      20   0 7584852<PHONE_NUMBER>28 S   0.3   0.3   0:00.74 /tmp/localai/backend_data/backend-assets/grpc/llama-ggml --addr <IP_ADDRESS>:46483
    424 root      20   0 2600784 128992  61288 S   0.3   0.1   0:02.40 /tmp/localai/backend_data/backend-assets/grpc/llama-cpp-fallback --addr <IP_ADDRESS>:37325
      1 root      20   0 6444992   1.8g   1.8g S   0.0   1.9   0:14.64 ./local-ai
    257 root      20   0    4628   3856   3252 S   0.0   0.0   0:00.04 bash
    360 root      20   0 2600784 128684  60972 S   0.0   0.1   0:02.43 /tmp/localai/backend_data/backend-assets/grpc/llama-cpp-avx2 --addr <IP_ADDRESS>:42339
    384 root      20   0 2600784 128728  61012 S   0.0   0.1   0:02.40 /tmp/localai/backend_data/backend-assets/grpc/llama-cpp-avx2 --addr <IP_ADDRESS>:45619
    417 root      20   0 1707144  31364  20684 S   0.0   0.0   0:00.22 /tmp/localai/backend_data/backend-assets/grpc/gpt4all --addr <IP_ADDRESS>:46475
    458 root      20   0 1725624  34776  23276 S   0.0   0.0   0:00.23 /tmp/localai/backend_data/backend-assets/grpc/piper --addr <IP_ADDRESS>:45617
    465 root      20   0 2378980 137008  62124 S   0.0   0.1   0:00.44 /tmp/localai/backend_data/backend-assets/grpc/whisper --addr <IP_ADDRESS>:43485
    472 root      20   0 5067556  76780  52172 S   0.0   0.1   0:02.96 /tmp/localai/backend_data/backend-assets/grpc/stablediffusion --addr <IP_ADDRESS>:38627
    508 root      20   0 1703892  29476  18736 S   0.0   0.0   0:00.23 /tmp/localai/backend_data/backend-assets/grpc/huggingface --addr <IP_ADDRESS>:36347
    515 root      20   0 1708320  31488  20384 S   0.0   0.0   0:00.25 /tmp/localai/backend_data/backend-assets/grpc/bert-embeddings --addr <IP_ADDRESS>:33783
    529 root      20   0    7392   3392   2788 R   0.0   0.0   0:00.38 top

Relevant Logs when attempting to load the model
12:09PM INF [/build/backend/python/sentencetransformers/run.sh] Attempting to load
12:09PM INF Loading model 'sentence-transformers/distiluse-base-multilingual-cased-v1' with backend /build/backend/python/sentencetransformers/run.sh
12:09PM DBG Loading model in memory from file: /build/models/sentence-transformers/distiluse-base-multilingual-cased-v1
12:09PM DBG Loading Model sentence-transformers/distiluse-base-multilingual-cased-v1 with gRPC (file: /build/models/sentence-transformers/distiluse-base-multilingual-cased-v1) (backend: /build/backend/python/sentencetransformers/run.sh): {backendString:/build/backend/python/sentencetransformers/run.sh model:sentence-transformers/distiluse-base-multilingual-cased-v1 threads:12 assetDir:/tmp/localai/backend_data context:{emptyCtx:{}} gRPCOptions:0xc0008d2248 externalBackends:map[autogptq:/build/backend/python/autogptq/run.sh bark:/build/backend/python/bark/run.sh coqui:/build/backend/python/coqui/run.sh diffusers:/build/backend/python/diffusers/run.sh exllama:/build/backend/python/exllama/run.sh exllama2:/build/backend/python/exllama2/run.sh huggingface-embeddings:/build/backend/python/sentencetransformers/run.sh mamba:/build/backend/python/mamba/run.sh openvoice:/build/backend/python/openvoice/run.sh parler-tts:/build/backend/python/parler-tts/run.sh petals:/build/backend/python/petals/run.sh rerankers:/build/backend/python/rerankers/run.sh sentencetransformers:/build/backend/python/sentencetransformers/run.sh transformers:/build/backend/python/transformers/run.sh transformers-musicgen:/build/backend/python/transformers-musicgen/run.sh vall-e-x:/build/backend/python/vall-e-x/run.sh vllm:/build/backend/python/vllm/run.sh] grpcAttempts:20 grpcAttemptsDelay:2 singleActiveBackend:false parallelRequests:false}
12:09PM INF [/build/backend/python/sentencetransformers/run.sh] Fails: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/sentencetransformers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS
[...]
12:09PM ERR Server error error="could not load model - all backends returned error: [llama-cpp]: could not load model: rpc error: code = Canceled desc = \n[llama-cpp]: could not load model: rpc error: code = Canceled desc = \n[llama-ggml]: could not load model: rpc error: code = Unknown desc = failed loading model\n[gpt4all]: could not load model: rpc error: code = Unknown desc = failed loading model\n[llama-cpp-fallback]: could not load model: rpc error: code = Canceled desc = \n[piper]: could not load model: rpc error: code = Unknown desc = unsupported model type /build/models/sentence-transformers/distiluse-base-multilingual-cased-v1 (should end with .onnx)\n[whisper]: could not load model: rpc error: code = Unknown desc = stat /build/models/sentence-transformers/distiluse-base-multilingual-cased-v1: no such file or directory\n[stablediffusion]: could not load model: rpc error: code = Unknown desc = stat /build/models/sentence-transformers/distiluse-base-multilingual-cased-v1: no such file or directory\n[rwkv]: could not load model: rpc error: code = Unavailable desc = error reading from server: EOF\n[huggingface]: could not load model: rpc error: code = Unknown desc = no huggingface token provided\n[bert-embeddings]: could not load model: rpc error: code = Unknown desc = failed loading model\n[/build/backend/python/parler-tts/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/parler-tts/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/mamba/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/mamba/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/coqui/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/coqui/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/bark/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/bark/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/exllama2/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/exllama2/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/diffusers/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/diffusers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/autogptq/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/autogptq/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/openvoice/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/openvoice/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/sentencetransformers/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/sentencetransformers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/vall-e-x/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/vall-e-x/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/transformers-musicgen/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/transformers-musicgen/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/exllama/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/exllama/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/transformers/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/transformers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/petals/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/petals/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/vllm/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/vllm/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/sentencetransformers/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/sentencetransformers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS\n[/build/backend/python/rerankers/run.sh]: grpc process not found: /tmp/localai/backend_data/backend-assets/grpc/build/backend/python/rerankers/run.sh. some backends(stablediffusion, tts) require LocalAI compiled with GO_TAGS" ip=<IP_ADDRESS> latency=28.667421326s method=POST status=500 url=/embeddings


Doesn't seem to be working

I get everything running with no compile errors or console errors.
The home page is blank, and looking at the structure the root #app div is empty.
Any ideas?

yes  me too  i see the home page is blank and no compile errors or console erroes!!!!!!!!!


Multiple Settings

Is there a way to run the optimizer with multiple groups of settings? Let's say I wanted 500 lineups, 150 4-man stack, 150 3-man stack and 100 unstacked, is there a way to accomplish this with a for loop perhaps
The reason I ask is I want a mixture of stack types while keeping under a certain max_exposure threshold

This issue is close to #276, I'll add the ability to exclude lineups from optimizations. So it will be possible to generate the first batch of lineups with provided configs then change configs and generate a second batch of lineups with excluded lineups from the first step to avoid lineups duplications. But in this approach, you will specify max_exposure for each batch but the overall exposure should be equal to the batch exposures but spread across different configs.

In version 3.6.1 you can do this:
lineups = []
optimizer.add_stack(TeamStack(4))
for lineup in optimizer.optimize(150):
    lineups.append(lineup)
optimizer.reset_stacks()
optimizer.add_stack(TeamStack(3))
for lineup in optimizer.optimize(150, exclude_lineups=lineups):
    lineups.append(lineup)
optimizer.reset_stacks()
for lineup in optimizer.optimize(100, exclude_lineups=lineups):
    lineups.append(lineup)
for lineup in lineups:
    print(lineup)
optimizer.print_statistic(with_excluded=True)

With this code hiw do u add in randomness

@Denwen12  you would need to add settings with randomness per the docs tutorial. It will work the same this way. BTW, in my opinion, if you're adding randomness to multiple optimizations, its still just random.

I tried but didn't work like usually after the count
On Thu, Dec 9, 2021, 7:15 PM Owen-Slater @.***> wrote:

@Denwen12 https://github.com/Denwen12 you would need to add settings
with randomness per the docs tutorial. It will work the same this way. BTW,
in my opinion, if you're adding randomness to multiple optimizations, its
still just random.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/288#issuecomment-990432574,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANBWO7VKGIDW4MAUSMCCPYLUQFBCHANCNFSM5CVRKSSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@Denwen12  are you replacing the code for your optimizer settings between EACH optimization? This is how it works, you must reload all of the settings with each optimization

I tried it like this
lineups = []
optimizer.add_stack(TeamStack(4))
for lineup in optimizer.optimize(50, randomness=true):
lineups.append(lineup)
optimizer.reset_stacks()
optimizer.add_stack(TeamStack(3))
for lineup in optimizer.optimize(50, exclude_lineups=lineups, randomness=true):
lineups.append(lineup)
optimizer.reset_stacks()
for lineup in optimizer.optimize(50, exclude_lineups=lineups,  randomness=true):
lineups.append(lineup)
for lineup in lineups:
print(lineup)
optimizer.print_statistic(with_excluded=True)
On Thu, Dec 9, 2021, 8:17 PM Owen-Slater @.***> wrote:

@Denwen12 https://github.com/Denwen12 are you replacing the code for
your optimizer settings between EACH optimization? This is how it works,
you must reload all of the settings with each optimization
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/288#issuecomment-990482117,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANBWO7WWIATHNXWYG32X5CLUQFIJRANCNFSM5CVRKSSQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


[Event Request] codeunit 5632 "FA Jnl.-Post Line" - OnCalcResultOnDisposalAfterCalcGainLoss

Describe the request
Hello, can you please add a new Event OnCalcResultOnDisposalAfterCalcGainLoss in codeunit 5632 "FA Jnl.-Post Line"?
    local procedure CalcResultOnDisposal(FANo: Code[20]; DeprBookCode: Code[10]): Integer
    var
        FADeprBook: Record "FA Depreciation Book";
        FALedgEntry: Record "FA Ledger Entry";
    begin
        FADeprBook."FA No." := FANo;
        FADeprBook."Depreciation Book Code" := DeprBookCode;
        FADeprBook.CalcFields("Gain/Loss");
        OnCalcResultOnDisposalAfterCalcGainLoss(FADeprBook);
        if FADeprBook."Gain/Loss" <= 0 then
            exit(FALedgEntry."Result on Disposal"::Gain);

        exit(FALedgEntry."Result on Disposal"::Loss);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnCalcResultOnDisposalAfterCalcGainLoss(var FADepreciationBook: Record "FA Depreciation Book")
    begin
    end;

Additional context
We have additional values to calculate the Gain/Loss and need to recalculate it to get the correct return value.
Internal work item: AB#546990

Availability update: We will publish a fix for this issue in the next update for release 25.
Build ID to track: 26614.


YKFDE_CHALLENGE= in /etc/ykfde.conf appears to not work

Hi, the YKFDE_CHALLENGE= key appears to not work /etc/ykfde.conf
I am putting the exact same password to unlock it with 2FA, but with 1FA it doesn't seem to go.
edit: As in it seems to fail to authenticate. "No Key available with this passphrase"
Running latest archlinux
$ pacman -Q yubikey-full-disk-encryption
yubikey-full-disk-encryption r143.2ce7aa7-1
$ pacman -Q cryptsetup
cryptsetup 2.3.4-1

same challenge will result in different luks passphases in 2FA and 1FA so you have to enroll then both first. Keep note that using same challenge for 2FA make it no better than 1FA.

How do you enroll 1FA, there are no instructions, just 2FA.
Here is what I am trying to do: Turn on, hit the button, and system boots.

For 1FA you need to uncomment  and set YKFDE_CHALLENGE to non empty value then enroll it as instructed in README.

Any value or is this something that needs to be generated?

@Falroi any value no longer than 64 characters which is yubikey limitation. It's up to you.

very strange, I enter challenge to config, and verify it worked manually. But didnot work when booting,

@NgoHuy what happens on boot then? Did you regenerated initramfs after editing ykfde.conf? You may also enable debug mode to see more info

Do you mean you have multiple encrypted partitions protected with different ykfde challenges and want to decrypt them all on boot? Such scenario isn't really supported by this project.

Do you mean you have multiple encrypted partitions protected with different ykfde challenges and want to decrypt them all on boot? Such scenario isn't really supported by this project.

yes, I know, I must create different config and different hooks, it worked. But ykfde-enroll only support /etc/ykfde.conf, I must create the response as key to add manually by using cryptsetup. another way is edit main file, but edited again when done. Should we have option to point another config file?


inserting the same Customer several times generates duplicate records

Describe the bug
When I make a Curtomer data insertion call servide directly (using the same record, with the same data) with 3 threads that run simultaneously, it creates more than one record with the same data but with different IDs, indicating that I am using the Customer class where the Email is the primary key to validate
is there any way to control this event?

Simple solution:
Set e-mail column as Index

Thanks a lot,!


Only allow png and jpg

Hi, is there a filter, that only png and jpg will be get?

Hi @Neotastisch , at the moment that is not possible. It does seem to be possible to add filetype:png to the search query to get the same results. That would work without having to change images-scraper.


ImportError: No module named _add_two_ints_wrapper_cpp

Hello,
I am trying to use these packages as per the ROS Wiki Tutorial. I have made a test.py node with the below code:
  #!/usr/bin/env python     import rospy    from std_msgs.msg import Int64    from python_bindings_tutorial import AddTwoInts    a = Int64(4)    b = Int64(2)    addtwoints = AddTwoInts()    sum = addtwoints.add(a, b)    sum
When I am trying to run test.py, I am getting the following error :
Traceback (most recent call last):   File "/home/pi/python_bindings_ws/src/python_bindings_tutorial-master/src/test.py", line 4, in <module>     from python_bindings_tutorial import AddTwoInts   File "/home/pi/python_bindings_ws/src/python_bindings_tutorial-master/src/python_bindings_tutorial/__init__.py", line 1, in <module>     from python_bindings_tutorial._add_two_ints_wrapper_py import AddTwoInts   File "/home/pi/python_bindings_ws/src/python_bindings_tutorial-master/src/python_bindings_tutorial/_add_two_ints_wrapper_py.py", line 6, in <module>     from python_bindings_tutorial._add_two_ints_wrapper_cpp import AddTwoIntsWrapper ImportError: No module named _add_two_ints_wrapper_cpp
Could someone help me solve this issue?
Thanks in advance.

go to your catkin_ws directory and run:
catkin_make
It build the code in python_bindings_tutorial directory, after what you will be able to run the import command in your python script.

@sarathjayanthan Does it solve your issue? If yes, please close this issue.
@Matt-Galinski: thanks!


Wrong preprocessing of chlorine and bromine oxyacids

Dear RDKit developers,
I'm trying to read 4 types of chlorine oxyacids (hypochlorous, chlorous, chloric and perchloric acid) using Chem.MolFromSmiles, however, after reading RDKit breaks the structures. The algorithm adds charges to the oxygen and chlorine atoms, such behaviour is chemically incorrect.
Using the sanitize=False option saves the chemical correctness, but it makes such molecules incorrect for RDKit methods and  it's not the best option for other (non chlorine oxyacid) molecules.
To Reproduce
from rdkit import Chem
from rdkit.Chem import Draw

chlorine_acids = {1: '[H]OCl', 3: 'O[Cl]=O', 5: 'O[Cl](=O)=O', 7: 'O[Cl](=O)(=O)=O'}
Draw.MolsToGridImage([Chem.MolFromSmiles(i) for i in chlorine_acids.values()],  molsPerRow=4)

Output:

Chem.MolFromSmiles('O[Cl]=O', sanitize=False)

Output:

Draw.MolsToGridImage([(Chem.MolFromSmiles('O[Cl]=O', sanitize=False))])

Output:
RuntimeError: Pre-condition Violation
	getExplicitValence() called without call to calcExplicitValence()
	Violation occurred on line 308 in file Code/GraphMol/Atom.cpp
	Failed Expression: d_explicitValence > -1
	RDKIT: 2023.03.1b1
	BOOST: 1_78

Expected behavior
The expected behavior is to keep the original structure of the molecules and not give charges to the oxygen and chlorine atoms.
Current behavior looks like a bug...  or maybe RDKit have a spectial options for fixing this problem?
Many thanks!
Configuration:

RDKit version: 2023.03.1b1 and 2022.9.5
OS: [masOS 10.15.7]
Python version (if relevant): 3.9
Are you using conda? No
If you are not using conda: how did you install the RDKit?

poetry add rdkit (for 2022.9.5 version)
pip install rdkit-pypi==2023.3.1b1

Additional context
The bromine oxyacids have same behaviour.

This is expected behavior and is documented here: https://www.rdkit.org/docs/RDKit_Book.html#molecular-sanitization
The zwitterionic form that the RDKit uses is just an alternate, non-hypervalent, representation of the structure.
If you insist upon the hypervalent form, you can certainly use that by doing partial sanitization. Doing a web search for that will turn up a bunch of hits describing how to do this.


G3 panics in src/g3proxy/src/inspect/stream/object.rs

G3 panics in src/g3proxy/src/inspect/stream/object.rs in transit_unknown. This happens when G3 is in front of another proxy. I am unsure as to what the true root cause is. My personal workaround is adding a check for None but I believe that is a bandaid. I have attached my config and the panic log.
crashlog1.txt
crash_config.yml.txt

Thanks!!


Add ZoomInfo Bot

This bot keeps hitting our test servers.
Linked to github issue: https://github.com/WhichBrowser/Parser-PHP/issues/100
Links: https://en.wikipedia.org/wiki/ZoomInfo

Contact scraping
ZoomInfo Technologies Inc. is an American subscription-based software as a service (SaaS) e.g. sells your data as a service!

Coverage remained the same at 100.0% when pulling 380ccf762e31e5055a251a85eeb6d460ae2d1730 on ayumi-cloud:ZoomInfo into c65ad41ee66cc126a7740d929aab706dd7304c1c on WhichBrowser:master.


Update description

Description of this repository says

A framework agnostic, multi-gateway payment processing library for PHP 5.3+

It should be updated to "for PHP 5.6+"

Done, thanks!


Would be nice if you'll remove bootstrap from bower dependencies

People who using yamm3 already knows that it's for bootstrap.
In my case I'm using bootstrap-stylus and don't wanna install original bootstrap(when it is not really needed)
Will be great if you'll add smth like:
/*!
 * Yamm!3 - Yet another megamenu for Bootstrap 3
 * http://geedmo.github.com/yamm3
 *
 * @geedmo - Licensed under the MIT license
 */

//-----------------------------
//  Yamm Styles
//-----------------------------

.yamm .nav,
.yamm .collapse,
.yamm .dropup,
.yamm .dropdown
  position static

.yamm
  .container
    position relative
  .dropdown-menu
    left auto
  .yamm-content
    padding 20px 30px
  .dropdown
    &.yamm-fw
      .dropdown-menu
        left 0
        right 0

into yamm.styl and put in alongside with yamm.less and yamm.css
So yamm.styl could be available via bower

You might be would like if I'll contribute support of compiling stylus file from css via gulp-stylus and gulp-stylint

Not everyone knows it requires bootstrap, and also since it's only for bootstrap, the dependency is a must and that's a normal pattern on most of bower components.
Regarding to stylus, I'd prefer to leave your post for future references, sass is also an option but due to the small size of this component I think is not a big deal for any project to adapt to other languages.
No matter what is your preprocessor, the "right way" to work should be including the yamm.css and then override any style in your project stylesheets.

Hey @MechanisM just want to let you know I've decided to include your PR.
Thanks for your contribution.

I'd like to add another vote for removing the bootstrap-LESS dependency. This seems reasonable especially now that the yamm3 master includes Sass and Stylus natively. The fact that it's Bootstrap-only should be perfectly obvious considering it's right in the repository description and the first line of the README. This highlights the need for an "or" dependency declaration in bower, but that's a topic for another day.
On a side note, it would be great to have a new release so we can shrinkwrap it for large projects rather than pulling master. It would be preferable to keep it as a package with the option of upgrading, rather than having to copy it into stylesheets to make sure nothing breaks down the road.

If anyone else having issues with this: you can add the following to your .bowerrc. You'll need bower >= 1.6.3.
 {
  "ignoredDependencies": [
    "bootstrap"
  ]
}


[Documentation/user guide] How to write wasm scheduler plugin

/kind documentation
Document how to write wasm scheduler plugins with /examples.
This document would be for users, and no need to deep dive into the details that users don't need to know.

/priority next-release

/assign


Add Librispeech ASR

This PR adds the librispeech asr dataset: https://www.tensorflow.org/datasets/catalog/librispeech
There are 2 configs: "clean" and "other" whereas there are two "train" datasets for "clean", hence the name "train.100" and "train.360".
As suggested by @lhoestq, due to the enormous size of the dataset in .arrow format, the speech files are not directly prepared to a float32-array, but instead just the path to the array file is stored.

Awesome thank you !
The dummy data are quite big but it was expected given that the raw files are flac files.
Given that the script doesn't even read the flac files I think we can remove them. Or maybe use empty flac files (see here for example). What do you think ?
We'll find a better solution to be able to have bigger dummy_data (max 1MB instead of a few KB, maybe using git LFS.

Hmm, I already made the dummy data as small as possible (a single flac filie per split only). I'd like to keep them at least to have complete dummy data and don't think 500KB over all is a problem (the long-range summarization datasets are similarly heavy). The moment we allow dummy data to be loaded directly for testing, we need the flac files IMO.

Awesome thank you !
The dummy data are quite big but it was expected given that the raw files are flac files.
Given that the script doesn't even read the flac files I think we can remove them. Or maybe use empty flac files (see here for example). What do you think ?
We'll find a better solution to be able to have bigger dummy_data (max 1MB instead of a few KB, maybe using git LFS.

Hmm, I already made the dummy data as small as possible (a single flac filie per split only). I'd like to keep them at least to have complete dummy data and don't think 500KB over all is a problem (the long-range summarization datasets are similarly heavy). The moment we allow dummy data to be loaded directly for testing, we need the flac files IMO.


Authentication via Github

With authentification we can create a nicer UI to edit, and to comment and discuss
repo
blog tutorial
Use with Jekyll
imitate jkan

closing since it's so old - will revisit


fix: format integration test param in the EditParamsModal

Fixes

https://issues.redhat.com/browse/KFLUXBUGS-1524
Description

Type of change

[ ] Feature
[ ] Bugfix
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

Screen shots / Gifs for design review

no visual changes
How to test or reproduce?

Browser conformance:

[ ] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

/lgtm

/retest

/retest

/retest

/retest

/retest


Troubleshooting example.py in bloom_embeddings

Hi @maciejkula,
i have encountered errors of unable to download movielens_100k & out of bounds for int32 from example.py of bloom_embeddings
Complete error reference:
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-27-caa8df7efe1c>", line 1, in <module>
    dataset = get_movielens_dataset(variant='100K')
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\datasets\movielens.py", line 70, in get_movielens_dataset
    return Interactions(*_get_movielens(url))
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\datasets\movielens.py", line 37, in _get_movielens
    extension))
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\datasets\_transport.py", line 36, in get_data
    download(url, dest_path)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\datasets\_transport.py", line 19, in download
    req.raise_for_status()
  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/maciejkula/recommender_datasets/releases/download/v0.2.0%5Cmovielens_100K.hdf5

During my debug of the link reference i found that this line of code : requests.get(url, stream=True) in _transport.py of source code is where the error is originating from.
The url passed appears to be correct but somehow requests.get gets back with 404. So i downloaded the file manually and placed it in the destination folder & then i came across below error, which is beyond my comprehension :)
C:\ProgramData\Anaconda3\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
<Interactions dataset (944 users x 1683 items x 100000 interactions)>
Traceback (most recent call last):
  File "C:/BNPP/recoEngine/example.py", line 339, in <module>
    random_state=random_state)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\cross_validation.py", line 146, in user_based_train_test_split
    seed = random_state.randint(minint, maxint)
  File "mtrand.pyx", line 991, in mtrand.RandomState.randint
ValueError: high is out of bounds for int32

Would appreciate your help in smoothly testing out the examples in spotlight.
Thanks,
Pavan

Just for reference, mentioning on how got to workaround the second error mentioned above & also one more which might have arose due to the workaround. Please do let me know if below changes makes sense.
In cross_validation.py changed the maxint value to<PHONE_NUMBER>. So that out of bounds error does not persist.
This change might have led me to:
Traceback (most recent call last):
  File "C:/BNPP/recoEngine/example.py", line 367, in <module>
    run(experiment_name, train, test, validation, random_state)
  File "C:/BNPP/recoEngine/example.py", line 261, in run
    validation)
  File "C:/BNPP/recoEngine/example.py", line 209, in evaluate_model
    model.fit(train, verbose=True)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\sequence\implicit.py", line 238, in fit
    user_representation)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\sequence\implicit.py", line 269, in _get_negative_prediction
    negative_prediction = self._net(user_representation, negative_var)
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 325, in __call__
    result = self.forward(*input, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spotlight\sequence\representations.py", line 249, in forward
    target_embedding = (self.item_embeddings(targets)
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 325, in __call__
    result = self.forward(*input, **kwargs)
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\sparse.py", line 103, in forward
    self.scale_grad_by_freq, self.sparse
  File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\_functions\thnn\sparse.py", line 59, in forward
    output = torch.index_select(weight, 0, indices.view(-1))
TypeError: torch.index_select received an invalid combination of arguments - got (torch.cuda.FloatTensor, int, !torch.cuda.IntTensor!), but expected (torch.cuda.FloatTensor source, int dim, torch.cuda.LongTensor index)

made one more change was made to source code to run example.py.
In implicit.py, class ImplicitSequenceModel, in function _get_negative_prediction changed the tensor
negative_var = Variable(gpu(torch.from_numpy(negative_items), self._use_cuda)) to
negative_var = Variable(gpu(torch.LongTensor(negative_items), self._use_cuda))
With these workarounds was able to get the example.py executed successfully.
Regards,
Pavan

Hi @pavanAlluri, both issues should be fixed in the master version of Spotlight.
Can you pull master and check that it works?

yeah its resolved, thank you