Sncast do not work with correct configure of snfoundry.toml

Which component is your bug related to?
sncast
Foundry Version
v0.17.0~v0.21.0
What operating system are you using?
MacOS
What system architecture are you using?
arm
What happened
I am trying to use sncast but it did not work even with the same configure in the starknet foundry book.
The following is my snfoundry.toml configure information:
[sncast.default]
account = "Xor0v0"
accounts-file = "~/my-starknet-accounts/account.json"
url = "https://rpc.nethermind.io/sepolia-juno?apikey=rpc_key"
# url = "https://starknet-mainnet.infura.io/v3/rpc_key"
# url = "https://starknet-mainnet.g.alchemy.com/v2/rpc_key"

When I try to call a contract function with following command:
sncast call \
--contract-address 0x01a730fb914b6e79e6e05af2996b423306652c1c2d5036a455f3979d20161c8f \
--function get_owner \
--block-id latest

It return : Error: RPC url not passed nor found in snfoundry.toml. But instead I use command:
sncast -u https://rpc.nethermind.io/sepolia-juno?apikey=rpc_key call \
--contract-address 0x01a730fb914b6e79e6e05af2996b423306652c1c2d5036a455f3979d20161c8f \
--function get_owner \
--block-id latest

it return the expected result: command: call response: [0x5b54a13bfc88......cbd4d6938e907]
As you can see, I have tried many solutions: different networks (mainnet and sepolia), different rpc(nethermind, infura, alchemy) endpoints and even snfoundry version from 0.17.0 to 0.21.0 (latest).  They all get the bad response.
Trace
Error: RPC url not passed nor found in snfoundry.toml
Is there an existing issue for this?

[X] I have searched the existing issues and verified no issue exits for this problem.

Hi, @Xor0v0 , sadly I cannot reproduce the issue you've described. Can you tell me something more about your setup?
My guess is maybe snfoundry.toml is not present in the current/parent directory, and because of that the url cannot be properly determined? Can you show me your directory layout and exact commands (with an information about current working directory)? Alternatively, are you able to provide some repro code I could use to try to debug it further locally on my machine? thanks!

Closing an issue since it seems it might have been an user error. If you think this is not the case, and are able to provide repro code, feel free to re-open and provide the necessary info to reproduce the error. Thanks!


Blink opi2 & rpi

Add blink functionality to Orange Pi Zero 2 and Raspberry Pi
Tested on an up-to-date Raspberry Pi 4 running Raspbian and a Orange Pi Zero 2 running a Mirte image

Tested on a Orange pi zero (1) as well


Add bean validation integration

In a ConfigurationProperties bean described in #19, allow add bean validation annotation to validate the config by parsing/loading time.

BTW, I would like use a NotNull  or JSR305 like annotation on Converter to ensure the argument is not null, it seems Jakarta Commons Annotation added some annotations like this.

Jakarta Config should be a lightweight configuration without dependencies to other specification. An exception could by Jakarta Annotations or upcoming Jakarta Commons. Even CDI integration should be optional and provided in a separate jar because there are users who want to use Config without CDI.

Understand, but this should be in the todo list if we move to build the Bean Validation integration in future.


help me to integrate  default bpmn-js-properties-panel with bpmn.js  in my react app

I have seen your code
you are customizing it
how can i integrate this in my reactapp

Thanks for opening this bug. This library specifically is how to create your own custom properties panel. What specific trouble do you have to integrate the properties panel into your React application?


fix build script

Hmm, didn't it work with the initial arguments?

Didn't work because 'dist/assemblyscript.min.js' was not found.

Ah, I see. I was considering out/ as the temporary location for building the TS sources, and dist/ as the final destination of the final files. Is it correct to assume that just the dist/ folder was missing when you tried? If so, we should just add the folder to source control through a placeholder inside.

yse, I think problem with initially lacking of dist directory. Actully I more prefer Webpack and Rollup for fine tuning and speed of build process

I tried webpack first, but I figured that it didn't provide fine grained control over the build process, so I ended up with a two-step build process - first building the TS files the usual way to CommonJS-style files, then bundling it up with the prebuilt binaryen and typescript sources, and browserify seemed like a better match for this because it's just a simple one-shot command line.


Tall Images Parts Loading Problem.

Steps to reproduce
1 - Long strip comic with a sufficient number of pages (10+);
2 - Scroll down the chapter as pages load;
3 - Notice the discontinuity of the comic.
Expected behavior
No page skipping or transparent notification/display of page not downloaded.
Actual behavior
Pages which might have been downloaded or are yet to be are skipped/not displayed as such.
Crash logs
No response
Tachiyomi version
Preview r485
Android version
Android 10
Device
SM-G9600
Other details
I have noticed this happening at least since r478. A few things I've noticed are that:
1 - Pages behave like this usually in the middle of the chapter (most noticeable around pages 3-4.)
2 - In some cases the images were downloaded (I managed to see a part of the image before the app 'hid' it) but soon are hidden in favour of the next one [pages skip from 2 to 3] without due notification on the page progression display.
3 - A few ways to try to make the app display the images: Scroll Down and then all the way up again (Works best with chapters with more pages); restart reading the chapter; close the app and try it all again.
4 - The app may or not later re-display images that were skipped without user intervention.
Acknowledgements

[X] This is a TachiyomiSY specific issue that does not happen in Tachiyomi Preview.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version 1.8.5.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

This is most likely a main Tachi bug with Split Tall Images, open a issue in the main Tachi repo if there is not already one.


onAuthorize callback is not firing

I am using following script

And after the process done using Paypal Dialog Box, it doesn't call onAuthorize.
It does not even work in the demo you have on this library -- https://developer.paypal.com/demo/checkout/#/pattern/client

Hi @harshdoshi999 -- can you please re-open an issue with all of the requested details. Please do not delete the issue template.


Menu delegate not called when menu is open via panGesture : func panToogleMenu(_ show: Bool)

Used to add this line in :
fileprivate func panToogleMenu(_ show: Bool) {
var centerx = sourceView.center.x
if !show {
centerx = position == .left ? -sourceView.width/2 : sourceView.width + sourceView.width/2
}
isMenuOpen = show
UIView.animate(withDuration: animationDuration, animations: {
self.sideMenuContainerView.center.x = centerx
}) { _ in
self.animationCompleted = true
self.isMenuOpen ? self.delegate?.sideMenuDidOpen?() : nil
}
// Starting show/hide blur view animation
animateBlurview(isShow: show)
}
In further release can u patch your code for calling the delegate on all the kinds of opening the menu ?

Thanks for your attention.
Just would like to inform that it's in the next release.
A new one will go out soon.

Be informed that your request is available in v2.3.
I'm gonna close this thread. Feel free to reopen if any.
Thanks.


6.1.0

6.1.0

Codecov Report

Merging #60 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
- Coverage   99.43%   99.42%   -0.01%
==========================================
  Files           6        6
  Lines         176      175       -1
==========================================
- Hits          175      174       -1
  Misses          1        1

Impacted Files
Coverage Δ

Sources/Core/AsynchronousOperation.swift
100.00% <ø> (ø)

Sources/Operations/GroupOperation.swift
100.00% <ø> (ø)

Tests/AdvancedOperationTests/Helpers/Mocks.swift
100.00% <ø> (ø)

...perationTests/Operations/GroupOperationTests.swift
99.31% <100.00%> (ø)

Continue to review full report at Codecov.

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


Remove GetEventSignups(string userId) from IAllReadyDataAccess

@tonysurma please assign to me
GetEventSignups(string userId) is not being used. It should be removed
part of work to eventually phase out IAllReadyDataAccess (Issues #1131 and #1130)

Solved by #1182.


[5.1] Get rid of fetch mode configuration code

As discussed multiple times, and in #8078, we should get rid of the fetch mode configuration option in v5.1.
It only causes problems when people change things, as Laravel's code does not expect it to be something else than PDO::FETCH_OBJECT.
I also reverted the workaround from #8078.
Something I noticed: for some reason, the default value when only using the database component via Capsule, was set to PDO::FETCH_ASSOC. Was there a reason for this? It may have created some of these problems...
Associated PR for laravel/laravel incoming.

Nice. I think there are a few other places where we have hacky work arounds though. I can't remember any of the top of my head. Maybe @taylorotwell will know?

From a quick search through the issues, the following PRs and commits could probably be reverted:
https://github.com/laravel/framework/pull/6406, https://github.com/laravel/framework/commit/5fe9cc59dca56093ba2d25659fcd16ff0cc80d98 and https://github.com/laravel/framework/pull/689.
More details in https://github.com/laravel/framework/issues/3512. /cc @jchamberlain
Once Taylor replies with positive feedback, I'll take care of reverting these, too. No more time right now.

:+1:

@franzliedke, thanks for including me. I feel like I'm increasingly on the losing end of this debate, but please here me out. As you can see at #3512, I've spent a lot of time in the source code on this issue, and I can say with some certainty that there's very little in Laravel--maybe six or seven instances--where this ever comes into play, and it's all code that pretty much never changes. Yes, they're a little hack-ish, but your statement elsewhere that this causes a "maintenance nightmare" seems slightly exaggerated. On the other hand, the gain to people like me is huge. Is it possible to sacrifice a little purity to retain significant flexibility?
You are right that the default setting in the Capsule caused some of the problem, at least for me. It meant I wrote a lot of code dependent on PDO::FETCH_ASSOC, which I then continued writing given that it was also supported in Laravel proper. Now I'm looking at having to go back and change those if I ever want to upgrade. Of course I understand your reasoning, but...it's still pretty painful.
If we're ditching this, could you help people like me find a less painful upgrade path? Fetch style is not a PDO-wide setting, but rather set for each query in Illuminate\Database\Connection::select(), and stored on Connection. Could you leave intact the mode-related methods on Connection, and the call to getFetchMode() in select()? That would at least leave me the option of making my code use a different Connection than the default, and thereby continue using PDO::FETCH_ASSOC while Laravel uses PDO::FETCH_OBJ. Thoughts?
Again, thanks for pinging me even though I appear to be on the losing side of history. :)

Don't lose hope yet. You make some good arguments, and you appear to have convinced Taylor before.
If it's really that easy, I'm sure we can leave it in place, but there should be more consistency (mainly in regards to Capsule, I suppose).

What are the strong arguments for keeping it?

Just giving travis a kick. :)

Backwards compatibility. Currently, upgrading to 5.0 means moving my code around a bit, which is ok. It's a major release and an easy change, so I'll gladly do it. If you remove the fetch mode setting, upgrading to 5.1 will mean editing the code after every non-Eloquent query in my app--a much bigger breaking change, and not even in a major release.

Flexibility. There are entirely legitimate reasons to prefer a dictionary over an anonymous object, and I personally was quite pleased with your original decision to allow the developer some choice here. Here are few reasons I prefer arrays:

Code clarity. I like that, in my code, anything that reads like $model->property is an actual Eloquent object with all its methods. $model['property'] is just an array.
Easy use of all array_* functions. Need to check that a column exists? array_key_exists('column', $row). (isset($row->column) is NOT the same). Etc..
Memory usage. My single biggest complaint with PHP is how much RAM arrays take up, but stdClass is even worse. I know there are ways around it, but sometimes it's just nice to grab a large dataset out of the database and work on it all at once. The proposed change will make that even more annoying than it already is (PHP's fault, not Laravel's).

Really, though, the biggest reason for me is that I don't want to deal with a seriously breaking change in a minor release. Were this part of 5.0 and just one of several breaking changes, I wouldn't complain as much.

Maybe we should seriously explore what it takes to just cleanly support both? Someone mentioned it was just 5-6 spots?

Let's just make the effort to support both I guess. I would be quite an annoying API break.

Just had a quick look over all these related issues and not at the code so I don't know if it would work.
If PDO return an instance of object that supports ArrayAccess interface (obvious example would be ArrayIterator). Then Laravel always uses the array notation it wouldn't matter if what was returned was an array or an object.


[BUG] Documentation update Get-PnPUnifiedAuditLog Start and end times should be UTC Dates.

Reporting an Issue or Missing Feature
Bug (Documentation incorrect)
https://pnp.github.io/powershell/cmdlets/Get-PnPUnifiedAuditLog.html
Example 1
Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date).AddDays(-2) -EndTime (Get-Date).AddDays(-1)
Expected behavior
Documentation is missing the fact that start and end times are UTC.
Actual behavior
Example 1 should be like this and Start and End times documentation should make note that dates provided are UTC times.
$utcNow = Get-Date -asUtc
Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime ($utcNow).AddDays(-2) -EndTime ($utcNow).AddDays(-1)

@reshmee011 - can you check this since you recently worked on some improvements around this ? When we first created this cmdlet, we didn't require dates to be in UTC , but maybe things have changed ?

@gautamdsheth , that's right the date and times need to be in UTC, I  discovered it while working with cli for m365 equivalent as the dates are being passed as string and needed to be formatted to ISO 8601 string (2024-02-16)
https://pnp.github.io/cli-microsoft365/cmd/purview/auditlog/auditlog-list/
Get-Date -uFormat '%Y-%m-%d'
The PnP PowerShell accepts date parameters , hence conversion not required.
https://reshmeeauckloo.com/posts/powershell-get-log-sharepoint-dlp-exchange-entra-pnpunifiedlog/
Worth mentioning the required format.

@reshmee011 - thanks for confirming ! Could you also please update the PR as well to mention this ? :)

@gautamdsheth : I have updated the PR to include the note about passing the start and end date in ISO 8601 format if passed as string format.

Thanks @SPDEVGUY and @reshmee011 , docs updated. Closing this.

@gautamdsheth  / @reshmee011
The command accepting the dates should also point out that the date objects passed to the command should be UTC based.
$forDay = (Get-date)
$fromDate = Get-Date -Year ($forDay.Year) -Month ($forDay.Month) -Day ($forDay.Day) -hour 0 -minute 0 -second 0 -millisecond 0
$toDate = $fromDate.AddMinutes(60)

$fromDateUtc = get-date -date ($fromDate) -asUtc
$toDateUtc = get-date -date ($toDate) -asUtc

Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime $fromDateUtc -EndTime $toDateUtc

<# Will not return the same as  #>

Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime $fromDate -EndTime $toDate

In order to get the actual latest entries (which my app follows in 5 min slices) I needed to use the utc time now less 5 mins to actually get things that happened in the last 5 minutes.
You could probably just make this clear by changing your example to include " -asUtc"
Get-PnPUnifiedAuditLog -ContentType SharePoint -StartTime (Get-Date -asUtc).AddDays(-2) -EndTime (Get-Date -asUtc).AddDays(-1)

I apologize for any inconvenience caused by the oversight. As I am based in the UK and use GMT, I didn’t fully appreciate the impact of non-UTC dates. Thank you for bringing this to my attention! 😊. I have submitted a PR to update the docs.


[Sync Status] Make text translatable

This issue is to track the work needed to translate the sync status UI (from https://github.com/google/ground-android/issues/876)
Changing the labels to strings (as mentioned in https://github.com/google/ground-android/issues/876#issuecomment-1979046166) is needed for translations

Done in https://github.com/google/ground-android/pull/2482


Add phase ratio computation on vertices

CC @tduretz

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

Files with missing lines
Patch %
Lines

src/phases/phases.jl
0.00%
34 Missing :warning:

src/ext/AMDGPU/2D.jl
0.00%
2 Missing :warning:

src/ext/AMDGPU/3D.jl
0.00%
2 Missing :warning:

src/ext/CUDA/2D.jl
0.00%
2 Missing :warning:

src/ext/CUDA/3D.jl
0.00%
2 Missing :warning:

Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!

At first sight, it looks correct to me. I haven't tried using it in time-dependent problem yet.
It enabled me to design an initial  model setup configuration.

Would be great to have the functionalities (phase ratios) directly available in JustPic.


Use module style for type definitions

This PR updates the module style we use to write types. Instead of using declare module and ///<reference path="./deps.d.ts" /> comments, we use the more idiomatic ES-module style.
Current:
///<reference path='./base.d.ts' />

declare module '@stripe/stripe-js' {
  type StripeIbanElement = StripeElementBase & {

New:
import {StripeElementBase} from './base';

export type StripeIbanElement = StripeElementBase & {
// ...

This ensures that:

We only export types we intend to
We don't accidentally clobber two different types

For example, if we defined separate type Locale in both checkout.d.ts and elements.d.ts, it's not clear which would be used by consumers of the library. There would be no error during our build process in this case

When we write types, we are explicit about which other types we depend on

For example, whether we using our polyfilled version of Omit or the version from the standard TS library. Or whether the PaymentRequest type is a Stripe PaymentRequest or the TypeScript builtin.

It's easier to write types, since you don't need to understand the somewhat arcane declare module style

Testing
The existing tests in the repository still pass. I also did a smoke test with a separate TypeScript project using @stripe/stripe-js to help ensure that the types are usable once published. Because yarn link is incredibly finnicky, I instead copied the build output directly to the node_modules/@stripe/stripe-js folder of the test project.
yarn build && \
  yarn pack && \
  mkdir tmp && \
  tar xf stripe*.tgz -C tmp && \
  rm -rf $TEST_APP/node_modules/@stripe/stripe-js/* && \
  mv tmp/package/* $TEST_APP/node_modules/@stripe/stripe-js && \
  rm -rf tmp stripe*.tgz

The test project was able to access the types as expected.

The diffs look odd because of the indentation, so I can't line-by-line check it, but I assume that you just added import and export. Change is great, ES6 syntax is so much better.

Hey @rado-stripe, I rebased against master and pushed a fix to get all the tests passing. I also performed some manual QA. Could you re-r?


Fix 'panic: sync: negative WaitGroup counter'

Fixes issue #1418

@ZekeLu can you please take a look?


Coherence deployment can become "stuck" when using PVCs

I ran into an issue while trying to scale out a Coherence deployment that uses active persistence, where the cluster couldn't scale out to desired number of members because the PVC either:
a) couldn't be attached to the node because the maximum number of mounts per node has been reached, or
b) couldn't be provisioned at all, because the block storage quota has been reached
In either case, the pods would end up in a non-usable state (either error or pending), which was impossible to get out of by scaling back, or even deleting pods and failed PVCs manually.

Closing this with a workaround below.
When the provisioning or scale out of a cluster is stuck because of insufficient Kubernetes resources (which is ultimately what both of the issues above are), it is recommended to scale the Coherence cluster down to a manageable size (basically, to the point where it doesn't run into resource constraints), add the necessary resources to k8s cluster (additional nodes, disk quota, etc.) and then scale out again.


[Date and Time Support] Support for date and time fields

Date & Time Input Field Support For Application.

Fixes #748

@atalekar @gino-m  PTAL?

@HemanParbhakar LGTM. Please address @shobhitagarwal1612 's comment and we can merge.

its done https://github.com/google/ground-android/pull/846/commits/f76997dfb4fb732af77602f52c869f31f18cd96b

/gcbrun

/gcbrun

/gcbrun

/gcbrun

DateResponse and TimeResponse can extend DataTimeResponse.
I think we need separate view models, since the UIs for each are different.
On Wed, Jul 14, 2021 at 4:13 PM Heman Parbhakar @.***>
wrote:

@HemanParbhakar commented on this pull request.
In
gnd/src/main/java/com/google/android/gnd/model/observation/TimeResponse.java
https://github.com/google/ground-android/pull/846#discussion_r669920782:

See the License for the specific language governing permissions and

limitations under the License.

*/

+package com.google.android.gnd.model.observation;
+
+import androidx.annotation.NonNull;
+import com.google.android.gnd.model.form.Field;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Locale;
+import java8.util.Optional;
+
+/** A user-provided time @.*** Field} response. */
+public class TimeResponse implements Response {
so now we create a single base DateTimeResponse class from which we create
DateResponse and TimeResponse that will be just used to set the response
nothing else. and for VM we create single DateTimeViewModel.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/ground-android/pull/846#discussion_r669920782,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABXVUS2YGKCF7PQUKFCVP3TXXVVLANCNFSM46CR555Q
.

--
Gino Miceli |  Developer Relations Engineer |  @.*** |  Google
Earth Outreach

@HemanParbhakar Is this PR still active? Would you able to follow up on the last round of comments?

/gcbrun

/gcbrun

GCB is failing with:
/workspace/gnd/src/sharedTest/java/com/google/android/gnd/TestObservers.java:25: error: duplicate class: com.google.android.gnd.TestObservers
public class TestObservers {
       ^

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
> Task :gnd:compileStagingUnitTestJavaWithJavac FAILED
> Task :gnd:multiDexListStaging

FAILURE: Build failed with an exception

/gcbrun

/gcbrun


SharePoint Framework development with SharePoint Server 2016

Target SharePoint environment
SharePoint Server 2016 (on-premise)
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested

[X] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

Node.js version 6.7.1
NPM version 4
Gulp<EMAIL_ADDRESS><EMAIL_ADDRESS>(fail to install)
<EMAIL_ADDRESS>(fail to install )

Describe the bug / error
I need to create an SPFx web part for SharePoint 2016. I have been following the instructions here but am getting an error when running<EMAIL_ADDRESS>--global "

Steps to reproduce
1.Run cmd as admin
2. install node version 6.7.1
3.install gulp
4. Facing issue when running npm install<EMAIL_ADDRESS>--global
Expected behavior
<EMAIL_ADDRESS>--global and<EMAIL_ADDRESS>--global successfully installed and be able to create spfx webpart for SharePoint 2016

Getting the same issue, any solution for it? @ahmedmahmoudR


remove OpenFilesTracker

it was an earlier attempt to track ongoing file operations (at least
open|close), but it was never finished. Additionally, it only worked
for our own code and not for library code such as in RocksDB.
There is also a PR in arangodb/enterprise with the same branch name.

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/1880/


Add hash of source control URL to fingerprint filename to help disambiguate

rdar://100249231

@swift-ci smoke test

@swift-ci please smoke test

@swift-ci please smoke test

thanks for this fix, shell we pull this into 5.7 as well?


Option to insert more... inside text

I have to do more... inside the text. Not as divided element. Is it possible? Have you a plan for this like an option?
Also text need default overflow-y: hidden style, without it it will doesn't work as assume

Readmore.js was not designed to place the toggle links inside the collapsed block.


Completed scores don't add up correctly

When live scoring, upon completion the score, golds, and hits are incorrect.

ScoringCalculator->getScore the $score doesn't seem to have an up to date version of the arrows array. Possibly sync issues? Is the DB version correct or in-memory?


Issue while importing pykafka

Hi,
I have installed pykafka but when I import it, I get an error. Any help?
from pykafka import KafkaClient
ImportError: cannot import name KafkaClient

(test) [cloudera@quickstart ~]$ pip list | grep pykafka
DEPRECATION: The default format will switch to columns in the future. You can use --format=
(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to
disable this warning.
pykafka (2.6.0)

This is how I installed pykafka:
pip install pykafka
Thanks,
Rio

It's hard to tell based on the information you've supplied, but my best guess is that the python environment you're using doesn't have your test virtualenv activated, and thus can't access the pykafka instance you've installed in that virtualenv.
At any rate, this is not a pykafka issue. I'm able to from pykafka import KafkaClient on current master.


add test locking removed when amount is zero

Closes #14231
Hey @liamaharon, I've added the test when the amount is zero. Let me know if this is what you have in mind.

Hey @liamaharon, thanks for the quick response! Just did the requested changes.

bot merge


chore!: set release level to GA

Not sure if this is the right commit message or how release-please knows to make minor bumps, but hopefully this does the trick!

🎉 🎈

I would vote for chore!: in the title, there is no refactor here :)

@JustinBeckwith we've talked about that subject in the PubSub weekly meeting for a little while now and we're all in agreement that a surface change should not be necessary and I'm committed to that.

Hi everyone, I just wanted to ask, how is this a breaking change?


Aur package crashes on startup, cloned repo doesnt

Please describe the bug
When using the AUR version it crashes after startx
Steps to reproduce:
First remove the Hypr binary from /usr/bin and remove the desktop file from /usr/share/xsessions/ to avoid confusion and yay errors.
Use the example config.
My .xinitrc only contains the line "exec Hypr".

yay -S hypr-git
startx
It crashes after the bar is loaded or, if disabled, after a window tries to start

yay -Rns hypr-git
git clone git@github.com:vaxerski/Hypr
cd Hypr
make release
sudo cp build/Hypr /usr/bin/
startx
This version works completely normal
When it crashes xorg prints something along the lines of "Couldn't find gtk-theme" but because my resolution is fucked up part is printed off screen.
I couldn't find anything in both the Xorg log or the hypr log.

attach the hypr log regardless (of course if it exists)
post a stack trace
coredumpctl
and then
coredumpctl info <pid>
please remember the AUR package is not maintained by me.

The aur package is out of date

it's a git package though, should fetch the last commit

Ik, but the aur package actually doesn't works.

oh shit you're right, the version it has is stuck at commit 255 and we're at 323 already
you've got to contact the author then

And for now I'll add a warning in the README. thanks!

No problem, i'll contact him as fast as possible.

thanks again!

i sent to him a mail, i'm waiting for response.

attach the hypr log regardless (of course if it exists)
post a stack trace coredumpctl and then coredumpctl info <pid>

reopened, please provide more info.

I'll monitor this thread as well in case there really is something messed up with the AUR package (I'm the maintainer), but as @vaxerski said, it IS up to date. Versions just don't appear to change for -git packages.

i want to confirm that what happened to @MoonKnight76  is allso happened to me. Sometimes even worse, i was able to enter to the wm but instantly it crashed (These things happened to me only with the aur package installed).

i want to confirm that what happened to @MoonKnight76 is allso happened to me. Sometimes even worse, i was able to enter to the wm but instantly it crashed (These things happened to me only with the aur package installed).

come to think of it y'all are right as I did in fact had to build manually on my 10 year old laptop cuz the AUR pkg would crash. I blamed it on the laptop though

I looked through the pkgbuild again. The only thing that stood out to me was a permission issue with the .desktop file (it was being marked as executable). I don't think that would cause the issues that you all are describing, but it's fixed anyway.

Nope, didn't fix.
Stacktrace:
Stack trace of thread 1041668:
                #0  0x00007f0d9db7934c __pthread_kill_implementation (libc.so.6 + 0x8f34c)
                #1  0x00007f0d9db2c4b8 raise (libc.so.6 + 0x424b8)
                #2  0x00007f0d9db16534 abort (libc.so.6 + 0x2c534)
                #3  0x000000000041ec7e n/a (Hypr + 0x1ec7e)
                #4  0x000000000044e097 n/a (Hypr + 0x4e097)
                #5  0x0000000000469a0b n/a (Hypr + 0x69a0b)
                #6  0x000000000046cdd2 n/a (Hypr + 0x6cdd2)
                #7  0x000000000040f421 n/a (Hypr + 0xf421)
                #8  0x00007f0d9db17310 __libc_start_call_main (libc.so.6 + 0x2d310)
                #9  0x00007f0d9db173c1 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2d3c1)
                #10 0x0000000000413df5 n/a (Hypr + 0x13df5)

                Stack trace of thread 1041862:
                #0  0x00007f0d9dbc2a55<EMAIL_ADDRESS>(libc.so.6 + 0xd8a55)
                #1  0x00007f0d9dbc7717 __nanosleep (libc.so.6 + 0xdd717)
                #2  0x000000000043fb27 n/a (Hypr + 0x3fb27)
                #3  0x00007f0d9e0a3815 n/a (libglib-2.0.so.0 + 0x84815)
                #4  0x00007f0d9db775c2 start_thread (libc.so.6 + 0x8d5c2)
                #5  0x00007f0d9dbfc584 __clone (libc.so.6 + 0x112584)
                ELF object binary architecture: AMD x86-64

Very weird, that's when compiling with debug.
Signal: 6 (ABRT)
is suspicious

I just removed Hypr from my system entirely and rebuilt from the AUR and can confirm I am getting the same errors now.
Stack trace of thread 944606:
                #0  0x00007f72b8da634c __pthread_kill_implementation (libc.so.6 + 0x8f34c)
                #1  0x00007f72b8d594b8 raise (libc.so.6 + 0x424b8)
                #2  0x00007f72b8d43534 abort (libc.so.6 + 0x2c534)
                #3  0x000055d58baada4a n/a (Hypr + 0x27a4a)
                #4  0x000055d58badf0fa n/a (Hypr + 0x590fa)
                #5  0x000055d58badad4d n/a (Hypr + 0x54d4d)
                #6  0x000055d58bafccdd n/a (Hypr + 0x76cdd)
                #7  0x000055d58bb04522 n/a (Hypr + 0x7e522)
                #8  0x000055d58ba9c06a n/a (Hypr + 0x1606a)
                #9  0x00007f72b8d44310 __libc_start_call_main (libc.so.6 + 0x2d310)
                #10 0x00007f72b8d443c1 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2d3c1)
                #11 0x000055d58baa0d65 n/a (Hypr + 0x1ad65)

                Stack trace of thread 944695:
                #0  0x00007f72b8defa55<EMAIL_ADDRESS>(libc.so.6 + 0xd8a55)
                #1  0x00007f72b8df4717 __nanosleep (libc.so.6 + 0xdd717)
                #2  0x000055d58bad0987 n/a (Hypr + 0x4a987)
                #3  0x00007f72b92d0815 n/a (libglib-2.0.so.0 + 0x84815)
                #4  0x00007f72b8da45c2 start_thread (libc.so.6 + 0x8d5c2)
                #5  0x00007f72b8e29584 __clone (libc.so.6 + 0x112584)
                ELF object binary architecture: AMD x86-64

Build probably missing a dep for pthreads or something, I know a friend of mine had to add another dep on void. Maybe try adding glibc to the deps?

If it were a missing dep, manually building the git package would also result in a bad binary.

I can't think of anything else. makepkg does build in some sort of encapsulation, doesn't it?

That's possible. Give me a little bit to test.

tried with make PREFIX="/usr" SYSCONFDIR="/etc" release and still broken.
On a side note: you should consider adding an install -Dm644 for the example config too, as the window manager is kind of unusable without one and it'd be nice to provide a default config automatically.

If I did that, it would override changes made to your config.

Oh, okay, fair. If there's no way to "install only if doesn't exist" then yeah, fair.

I could probably write it out if it doesn't exist, but if you make a breaking change to the config, there will need to be manual intervention anyway. At this point I'm just trying to get it to work :D

Alright everybody, I just pushed a fix to the AUR package. Please rebuild and see if it fixes it for you.

Seems fixed for me, closing.
Thanks!


[NFC] Refactor DerivedConformances code to reduce diagnostics code duplication

This is a follow-up to #32797.
There was some code duplication for emitting new diagnostic notes for Comparable synthesis failures, so I have pulled the common code out for diagnosing derived conformance failures into separate functions which can be reused to emit the diagnostics.

diagnoseAnyNonConformingMemberTypes diagnoses any members of the conforming type that does not conform to the protocol we were trying to synthesise the conformance to. For example, Comparable synthesis requires the members of the conforming type to also be Comparable and using this method we can diagnose any members which does not conform to Comparable.

diagnoseIfSynthesisUnsupportedForDecl diagnoses the conforming type if we do not support derived conformances for that type. For example, Equatable synthesis is not supported for classes and using this method we can diagnose a given class type.

storedPropertiesNotConformingToProtocol returns any stored properties of a struct which do not conform to a given protocol. For example, diagnoseNonConformingMemberTypes uses this method to find the struct members which do not conform to the type for which we're trying to synthesise the conformance to. It is also used in canDeriveConformance to figure out if we can synthesise Equatable or Hashable for a struct.

@swift-ci please smoke test


yang

Expected behavior
Actual behavior
Information about the Issue
Steps to reproduce the behavior

...
...

No information provided - Closing


batch_execute doesn't use provided noise model.

Describe the bug
execute will apply a user-provided NoiseModel to circuits, but batch_execute does not.
To reproduce
Run a circuit (e.g. Bell circuit) with a BitFlip(0.5) on all gates using execute and batch_execute - the measurement outcomes will differ substantially.
Expected behavior
batch_execute should apply the device's NoiseModel to all circuits in the batch.
Screenshots or logs
N/A.
System information
A description of your system. Please provide:

Amazon Braket Python PennyLane Plugin version: 1.16.1
Amazon Braket Python SDK version: 1.42.1
Amazon Braket Python Schemas version: 1.17.0
Amazon Braket Python Default Simulator version: 1.15.0
Python version: 3.10

Additional context
Add any other context about the problem here.

Hi Katherine,
The issue should be fixed in v1.19.0


fix: update merge commit command

fixes https://github.com/codecov/codecov-cli/issues/372
This PR mirrors what is done in the uploader and bash uploader (what a throwback) to collect the proper commit for merge commits.

I'm closing this PR. I moved his logic to https://github.com/codecov/codecov-cli/pull/397 instead (but using the commend from github actions)
It aims to be the same thing, but in a different part of the code.


enhance empty cart

Before hovering on the button:

After hovering on the button:

@DarkSoul26  Looks good can you reduce the color of on hover it very bright and quite distracting also let's change the message to simply 'Go to home page for more restaurants'

Sure, let me do it asap


[telegraf : windows] InfluxDB is appending an extra $ symbol

While pushing Windows env. variable $USERNAME as tags, an extra $ symbol is appending.
System info:
Client: Telegraf v.1.3.1 on Windows 8.1(x64)
Database: InfluxDB v1.2.4 on CentOS 7
Steps to reproduce:

set up Telegraf on Windows with these lines in the config file

[global_tags]
  user = "$USERNAME"
  domain = "$USERDOMAIN"
[agent]
  interval = "5s"
  round_interval = true
  metric_buffer_limit = 2000
  flush_buffer_when_full = true
  collection_jitter = "3s"
  flush_interval = "10s"
  flush_jitter = "3s"
  quiet = false
  hostname = "$COMPUTERNAME"

Tested the config. Output like:
* Plugin: inputs.win_perf_counters, Collection 1
> win_mem,objectname=Memory,user=Khaled,domain=VM81-64,host=VM81-64 Standby_Cache_Normal_Priority_Bytes=239964160<PHONE_NUMBER>000000000
> win_cpu,user=Khaled,domain=VM81-64,host=VM81-64,instance=_Total,objectname=Processor Percent_Privileged_Time=0<PHONE_NUMBER>000000000
> win_cpu,instance=0,objectname=Processor,user=Khaled,domain=VM81-64,host=VM81-64 Percent_Privileged_Time=0<PHONE_NUMBER>000000000
> win_cpu,objectname=Processor,user=Khaled,domain=VM81-64,host=VM81-64,instance=1 Percent_Privileged_Time=0<PHONE_NUMBER>000000000

Setup InfluxDB as usual and "write" is using "HTTP.

Expected behavior:
> select * from "win_system" where time > now() - 1m
name: win_system
time                Context_Switches_persec Processor_Queue_Length System_Calls_persec System_Up_Time domain    host     objectname user
----                ----------------------- ---------------------- ------------------- -------------- ------    ----     ---------- ----
1497456881000000000<PHONE_NUMBER>5898438      0<PHONE_NUMBER>265625   35193.2109375  WORKGROUP TEST-WIN System     TEST-WIN
1497456882000000000 13934.048828125         0                      28119.4296875       39212.95703125 WORKGROUP VM81-64  System     VM81-64
1497456888000000000 14063.83203125          0                      28017.4140625       39218.390625   WORKGROUP VM81-64  System     VM81-64
1497456890000000000 14095.998046875         0                      27761.458984375     39220.640625   WORKGROUP VM81-64  System     VM81-64
1497456896000000000 13362.80859375          3                      25621.568359375     39226.17578125 WORKGROUP VM81-64  System     VM81-64
1497456903000000000<PHONE_NUMBER>873047       0<PHONE_NUMBER>664062   35215.31640625 WORKGROUP TEST-WIN System     TEST-WIN
1497456906000000000<PHONE_NUMBER>5546875      0                      1656.48828125       35218.234375   WORKGROUP TEST-WIN System     TEST-WIN
1497456910000000000 13281.59765625          1                      24811.4921875       39240.65625    WORKGROUP VM81-64  System     VM81-64
1497456915000000000 13392.09765625          0                      25515.10546875      39245.7578125  WORKGROUP VM81-64  System     VM81-64
1497456922000000000<PHONE_NUMBER>71875        0<PHONE_NUMBER>640625   35234.84765625 WORKGROUP TEST-WIN System     TEST-WIN

Actual behavior:
> select * from "win_system" where time > now() - 1m
name: win_system
time                Context_Switches_persec Processor_Queue_Length System_Calls_persec System_Up_Time domain    host     objectname user
----                ----------------------- ---------------------- ------------------- -------------- ------    ----     ---------- ----
1497456881000000000<PHONE_NUMBER>5898438      0<PHONE_NUMBER>265625   35193.2109375  WORKGROUP TEST-WIN System     TEST-WIN$
1497456882000000000 13934.048828125         0                      28119.4296875       39212.95703125 WORKGROUP VM81-64  System     VM81-64$
1497456888000000000 14063.83203125          0                      28017.4140625       39218.390625   WORKGROUP VM81-64  System     VM81-64$
1497456890000000000 14095.998046875         0                      27761.458984375     39220.640625   WORKGROUP VM81-64  System     VM81-64$
1497456896000000000 13362.80859375          3                      25621.568359375     39226.17578125 WORKGROUP VM81-64  System     VM81-64$
1497456903000000000<PHONE_NUMBER>873047       0<PHONE_NUMBER>664062   35215.31640625 WORKGROUP TEST-WIN System     TEST-WIN$
1497456906000000000<PHONE_NUMBER>5546875      0                      1656.48828125       35218.234375   WORKGROUP TEST-WIN System     TEST-WIN$
1497456910000000000 13281.59765625          1                      24811.4921875       39240.65625    WORKGROUP VM81-64  System     VM81-64$
1497456915000000000 13392.09765625          0                      25515.10546875      39245.7578125  WORKGROUP VM81-64  System     VM81-64$
1497456922000000000<PHONE_NUMBER>71875        0<PHONE_NUMBER>640625   35234.84765625 WORKGROUP TEST-WIN System     TEST-WIN$

And, as a result Grafana is failing to generate proper query due the should-be-escaped $ character for Influxdb.

i thought it is happening due to the fact that user is a keyword for Influxdb, so tested it by renaming it to username. But, it is still happening.
> select * from "win_system" where time > now() - 1m
name: win_system
time                Context_Switches_persec Processor_Queue_Length System_Calls_persec System_Up_Time domain    host     objectname user      username
----                ----------------------- ---------------------- ------------------- -------------- ------    ----     ---------- ----      --------
1497457426000000000 14831.0302734375        3                      28884.42578125      39756.51953125 WORKGROUP VM81-64  System     VM81-64$
1497457442000000000<PHONE_NUMBER>8398438      0<PHONE_NUMBER>054688   35754.44921875 WORKGROUP TEST-WIN System     TEST-WIN$
1497457447000000000<PHONE_NUMBER>7910156      0<PHONE_NUMBER>375      35759.19140625 WORKGROUP TEST-WIN System     TEST-WIN$
1497457456000000000<PHONE_NUMBER>457031       0                      1188.8446044921875  35768.375      WORKGROUP TEST-WIN System     TEST-WIN$
1497457462000000000<PHONE_NUMBER>8398438      0<PHONE_NUMBER>78125    35774.13671875 WORKGROUP TEST-WIN System     TEST-WIN$
1497457466000000000 31065.26171875          3<PHONE_NUMBER>5        39796.40625    WORKGROUP VM81-64  System               VM81-64$
1497457466000000000<PHONE_NUMBER>0097656      0<PHONE_NUMBER>265625   35778.75       WORKGROUP TEST-WIN System     TEST-WIN$
1497457472000000000 13540.296875            0                      29429.35546875      39802.1484375  WORKGROUP VM81-64  System               VM81-64$
1497457472000000000<PHONE_NUMBER>714844       0                      1155.097900390625   35784.38671875 WORKGROUP TEST-WIN System     TEST-WIN$
1497457475000000000 14300.015625            0                      28829.8515625       39805.91796875 WORKGROUP VM81-64  System               VM81-64$
1497457475000000000<PHONE_NUMBER>3945312      0<PHONE_NUMBER>035156   35787.890625   WORKGROUP TEST-WIN System     TEST-WIN$

Actually, this issue is a result of different values of Windows' environmental variables between running as a service vs. running as an application.
So, I'll raise the concern in telegraf repo instead of here, inshAllah.
Closing it here.


Add multiple retries for re-sending failed messages

And make it configurable.

Work in progress right here https://github.com/AntonyVorontsov/RabbitMQ.Client.Core.DependencyInjection/pull/47


sameAs - multiple social media links

How can we do multiple sameAs values for social media links?
Thank you for the library.

M

See #27, you can pass an array of items to any method. Gonna make it more clear in the readme / docblocks :)


IE11: Image width 100% results in space below grid

I put a grid inside the Solved by Flexbox Holy Grail Layout. Inside the grid is a block level image with 100% width. It works fine in all browsers except IE11. The result is a lot of space below the grid.

The issue seems to be related to flexbox and a % width. When I set a specific width in pixels there's no such issue on IE11.
I made a codepen: https://codepen.io/anon/pen/Ovgygo.
I've removed the Navigation and Advertisements sections from the Holy Grail layout to make the example clearer. I've copied all the CSS used by https://philipwalton.github.io/solved-by-flexbox/demos/holy-grail/ and only added this to the bottom:
/** IE11 Bug test styles from here on **/

.Grid-cell {
  background-color:red;
}

.Grid-cell img {
  width:100%;
  display:block;
}

Is this a known issue? If so, is there a solution or workaround? I'm sorry if this is a duplicate.

I see the same issue is being discussed here: https://github.com/philipwalton/flexbugs/issues/75. However there doesn't seem to be a solution when the flex grid is inside another flex grid. Setting min-height: 1px won't work.

I found that over-sized images can cause this IE bug. IE cant fit them without leaving a space.
But if I size the images down to approximately what I need. IE can digest them without freaking out.


Aspect ratio transformation not working

Hello,
It seems that there is a bug when trying to get a fluid image object with an aspect ratio transformation.
query Query {
  product {
    image {
      fluid(transformations: "ar_0.74,c_fill") {
        ...CloudinaryAssetFluid
      }
    }
  }
}

I have as an error:
Error: Cannot return null for non-nullable field CloudinaryAssetFluid.aspectRatio.

Hi, could you use the latest version? Pushed an update to the types. Let me know if it works.

Using the latest version 2.2.3 didn't solve my problem, but using chained instead of transformations fixed my problem.
query Query {
  product {
    image {
      fluid(chained: "ar_0.74,c_fill") {
        ...CloudinaryAssetFluid
      }
    }
  }
}

I can't seem to reproduce this, did you try other transformations aside 'ar' in the transformations param?


Dependencies problem

Sometime while running AGE-Viewer from Ubuntu (TERMINAL APP) I get error messages of dependencies.
and sometime while starting NPM run start I get this. Any one has any idea?
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_14.21.1-deb-1nodesource1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I guess it is happening due to a broken installation. Try installing the viewer again in a separate clean dir.

You can also try reconfiguring dpkg ( dpkg is used to install, remove, and provide information about . deb packages. dpkg) database. Using this: $ sudo dpkg --configure -a

Maybe its a problem with your nodejs, I think you can try to check your nodejs.
Following these steps:
sudo apt update
sudo apt install nodejs
sudo apt install npm
Other alternative is to check your npm packages.
npm outdated
This command will list every package outdated. Or you just can reinstall the AGE Viewer too.

It is possible that AGE Viewer is not compatible with the current version of your node js. As mentioned in the documentation the recommended version is 14.16.0 or above.
Make sure you have the required version of node js. To check the version simply type:
node -v
To install the desired version of node js run the following command:
nvm install 14.16.0
Or you can also try to fix any broken dependencies through the following command:
sudo apt --fix-broken install

The error message you received indicates that there were issues while processing the package "nodejs_14.21.1-deb-1nodesource1_amd64.deb" during an attempted installation or update.
These commands can solve the errors.
sudo apt update
sudo apt --fix-broken install
sudo apt clean
npm install
sudo apt install nodejs

First Run the following command to remove all the data present in the cache folder.
npm cache clean --force

Then run the following command to install all the required dependencies.
npm install

Also make sure that the node version that you have is 14.6 to be compatible with AGE-Viewer because this was mentioned in the documentation.


[IOTS-380] Remove Sample PizzaShack API

Reference: https://wso2.org/jira/browse/IOTS-380

This is a duplicate,
https://github.com/wso2/product-iots/issues/766


Add new contributors

Sorry that it took a long time.
@EdgarLGB can review the details. Thanks.

Hi @EdgarLGB . Would you mind looking at this.

Hi @j143 , sorry for the delay. Thanks for adding me in the list! But I am wondering why I don't have the write permission of the project. Since I am the committer, I guess should have the permission, right?

Hi @EdgarLGB - You do have all the permissions.
Setup, to sync gitbox and github
Visit: https://gitbox.apache.org/setup/
The instructions there should be sufficient enough.
If you encounter any problems, ping me via email.

Website

Hey, adding Closes #67. would close this PR automatically.
Also,
A.  would you mind adding the new committers to this list.

http://people.apache.org/phonebook.html?uid=kinnerebner
http://people.apache.org/phonebook.html?uid=ssiddiqi
http://people.apache.org/phonebook.html?uid=arnabp20
http://people.apache.org/phonebook.html?uid=markd

B.  Also, the changes need to be committed to svn repo too.
If you do not have time, I will do this step.
Thank you.

never mind deleted comment. :)


[Improvement][API-Test] Add api tests for executor controller

Purpose of the pull request

Some test cases rely on ProcessInstance APIs. Will complete remaining cases after ProcessInstance related API tests done.
This PR closes: #14513

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

(or)
If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

Codecov Report

Merging #14500 (20e16a3) into dev (3de0b5a) will increase coverage by 0.00%.
The diff coverage is 46.46%.

:exclamation: Current head 20e16a3 differs from pull request most recent head 866a43a. Consider uploading reports for the commit 866a43a to get more accurate results

@@            Coverage Diff            @@
##                dev   #14500   +/-   ##
=========================================
  Coverage     38.72%   38.73%
  Complexity     4575     4575
=========================================
  Files          1237     1237
  Lines         43477    43486    +9
  Branches       4813     4790   -23
=========================================
+ Hits          16838    16845    +7
+ Misses        24772    24769    -3
- Partials       1867     1872    +5

Impacted Files
Coverage Δ

...scheduler/api/controller/DataSourceController.java
36.36% <0.00%> (-2.35%)
:arrow_down:

...che/dolphinscheduler/api/python/PythonGateway.java
17.22% <0.00%> (-0.08%)
:arrow_down:

...e/dolphinscheduler/common/constants/Constants.java
75.00% <ø> (ø)

...scheduler/data/quality/DataQualityApplication.java
0.00% <0.00%> (ø)

...e/dolphinscheduler/server/master/MasterServer.java
0.00% <0.00%> (ø)

...inscheduler/server/master/config/MasterConfig.java
1.81% <0.00%> (-0.07%)
:arrow_down:

...inscheduler/server/master/rpc/MasterRPCServer.java
0.00% <0.00%> (ø)

...inscheduler/server/master/rpc/MasterRpcClient.java
7.14% <0.00%> (-2.86%)
:arrow_down:

...r/server/master/service/WorkerFailoverService.java
56.66% <ø> (+0.46%)
:arrow_up:

...er/plugin/task/api/utils/DataQualityConstants.java
0.00% <ø> (ø)

... and 15 more

... and 33 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[FEATURE] Add checkstyle support in repo

Is your feature request related to a problem?
Currently in repo, we don't have any checkstyle for which we lose consistency, code quality, readable. This can also help us to prevent common mistakes.
We need to enable Checkstyle in our repo for all the modules.
In addition, we should add spotless for all the modules in the repo.

@dhrubo-os can you assign me to this? I think I find a way to add spotless to the repo

@dhrubo-os can you assign me to this? I think I find a way to add spotless to the repo

We already have spotless for few modules. We need to add similar way for all the modules.

yeah I will check for other modules as well

@TrungBui59 this PR already completing some of your work.

Seems commons sub-project doesn't have checkstyle?


Hot reload doesn't work with fvm

I am using fvm tool for manage more Dart and Flutter versions.
But when I run:
>>> fvm dart run --enable-vm-service bin/server.dart
Can't load Kernel binary: Invalid kernel binary format version.
[hotreload] Hot reload not enabled. Run this app with --enable-vm-service (or use debug run) in order to enable hot reload.
shelfRun HTTP service running on port 5000

So hot reload is not enabled.
My fvm version is 2.3.1.
And setup:
>>> fvm list
Can't load Kernel binary: Invalid kernel binary format version.
Cache Directory:  /home/martin/fvm/versions

stable (active)
beta
2.10.3 (global)

When I run: fvm global stable so hot reloading works:
>>> fvm dart run --enable-vm-service bin/server.dart
The Dart VM service is listening on http://<IP_ADDRESS>:8181/aDmh-5IQ4Vg=/
The Dart DevTools debugger and profiler is available at: http://<IP_ADDRESS>:8181/aDmh-5IQ4Vg=/devtools/#/?uri=ws%3A%2F%2F<IP_ADDRESS>%3A8181%2FaDmh-5IQ4Vg%3D%2Fws
[hotreload] Hot reload is enabled.
shelfRun HTTP service running on port 5000

Hot reloading doesn't works when fvm global is not same as active.
Here is how looks my server code:
Handler init() {
  var app = Router().plus;

  app.use(logRequests());
  app.use(checkApiKey());

  app.get('/users/<id>/info/', UserEndpoint.userInfo);
  app.post('/users/<id>/device-info', UserEndpoint.deviceInfo);

  app.get('/shipments', ShipmentsEndpoint.list);
  app.get('/shipments/<id>', ShipmentsEndpoint.detail);
  app.get('/news', NewsEndpoint.list);

  return app;
}

void main() => shelfRun(init, defaultBindPort: 5000, defaultBindAddress: '<IP_ADDRESS>');

Sorry I am not using fvm. Therefore I can't provide any help in using that tool. Hot reload internally asks Dart if the "VM service" is available, which is a core feature of Dart. So this is likely not be a problem with this shelf_plus. I recommend asking the maintainers of fvm. Maybe it's a bug on their side? 😄


unable to launch examples (segmentation fault)

Versions

Python: v2.7.13
OS: Raspbian 9 (stretch)
Kivy:  v1.11.0
Kivy installation method: downloaded on git then make (as in the tutorial)

Description
Hi,
I would like to reuse an old project i had on kivy 2 years ago on a new pi (with a touch screen). But when I followed  the installation process and tried to launch an example, i've got this issue
Code and Logs
// REPLACE ME: [INFO   ] [Logger      ] Record log in /home/pi/.kivy/logs/kivy_18-10-30_4.txt
[INFO   ] [Kivy        ] v1.11.0.dev0, git-678a055, 20181030
[INFO   ] [Python      ] v2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516]
[INFO   ] [Factory     ] 184 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] [Window      ] Provider: egl_rpi
[INFO   ] [GL          ] Using the "OpenGL ES 2" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
Erreur de segmentation (segmentation fault)

Your issue already was reported in #6007 . There you can also find a possible workaround.

We just went back and used v1.10


feat: single-side liquidity provision

Description and Motivation

Enables single-side liquidity provision. Closes #310
Related Issues

Checklist:

[x] I have read Migaloo's contribution guidelines.
[x] My pull request has a sound title and description (not something vague like Update index.md)
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation.
[x] The code is formatted properly cargo fmt --all --.
[x] Clippy doesn't report any issues cargo clippy -- -D warnings.
[x] I have regenerated the schemas if needed cargo schema.

I like this implementation but on second view it looks like Osmosis does do a swap before provision rather than only providing to one side. Additionally looks like Wynd did that too. The behaviour of single provision and only providing to one side is similar to Uniswap. Do we want maybe to add an option to do the swap? https://medium.com/osmosis-community-updates/single-asset-lp-67fb48abce53

Good point. Let's explore doing it this way.


super_scaffold:join_model hangs?

➜  promptcraft git:(main) rails generate super_scaffold:join_model InputItem::PromptExecution prompt_execution_id{class_name=PromptExecution} input_item_id{class_name=InputItem}
Generating model with 'bin/rails generate model InputItem::PromptExecution prompt_execution:references input_item:references'

This will just hang there until I kill it. Then:
^C/Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bullet_train-super_scaffolding-1.7.4/lib/bullet_train/super_scaffolding/scaffolders/join_model_scaffolder.rb:46:in ``': Interrupt
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bullet_train-super_scaffolding-1.7.4/lib/bullet_train/super_scaffolding/scaffolders/join_model_scaffolder.rb:46:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bullet_train-super_scaffolding-1.7.4/lib/scaffolding/script.rb:212:in `<main>'
	from <internal:/Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bullet_train-super_scaffolding-1.7.4/lib/bullet_train/super_scaffolding.rb:29:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bullet_train-super_scaffolding-1.7.4/lib/generators/super_scaffold/join_model/join_model_generator.rb:26:in `generate'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `block in invoke_all'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `each'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `map'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `invoke_all'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/group.rb:232:in `dispatch'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/base.rb:584:in `start'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/generators.rb:261:in `invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/commands/generate/generate_command.rb:26:in `perform'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:178:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:73:in `perform'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:71:in `block in invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:149:in `with_argv'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:69:in `invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/commands.rb:18:in `<main>'
	from <internal:/Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from bin/rails:4:in `<main>'

➜  promptcraft git:(main) ✗ /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline/line_editor.rb:196:in `handle_interrupted': Interrupt (Interrupt)
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline/line_editor.rb:167:in `handle_signal'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline/general_io.rb:49:in `block in getc'
	from <internal:kernel>:187:in `loop'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline/general_io.rb:48:in `getc'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:386:in `block in read_io'
	from <internal:kernel>:187:in `loop'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:385:in `read_io'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:353:in `block in inner_readline'
	from <internal:kernel>:187:in `loop'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:352:in `inner_readline'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:291:in `block (2 levels) in readline'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline/general_io.rb:40:in `with_raw_input'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:290:in `block in readline'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:288:in `synchronize'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/reline-0.5.5/lib/reline.rb:288:in `readline'
	from /Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/forwardable.rb:240:in `readline'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/line_editor/readline.rb:20:in `readline'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/line_editor.rb:7:in `readline'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/shell/basic.rb:336:in `ask_simply'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/shell/basic.rb:87:in `ask'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/shell/basic.rb:212:in `block in file_collision'
	from <internal:kernel>:187:in `loop'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/shell/basic.rb:211:in `file_collision'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/create_file.rb:101:in `force_on_collision?'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/create_file.rb:94:in `force_or_skip_or_conflict'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/create_file.rb:78:in `on_conflict_behavior'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/empty_directory.rb:115:in `invoke_with_conflict_check'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/create_file.rb:61:in `invoke!'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions.rb:93:in `action'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/create_file.rb:25:in `create_file'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/actions/file_manipulation.rb:124:in `template'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/generators/named_base.rb:25:in `block in template'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/generators/named_base.rb:45:in `inside_template'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/generators/named_base.rb:24:in `template'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/activerecord-<IP_ADDRESS>/lib/rails/generators/active_record/model/model_generator.rb:38:in `create_module_file'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `block in invoke_all'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `each'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `map'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `invoke_all'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/group.rb:232:in `dispatch'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:116:in `invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/group.rb:277:in `block in _invoke_for_class_method'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/shell.rb:68:in `with_padding'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/group.rb:266:in `_invoke_for_class_method'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/group.rb:134:in `_invoke_from_option_orm'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `block in invoke_all'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `each'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `map'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:134:in `invoke_all'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/group.rb:232:in `dispatch'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/base.rb:584:in `start'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/generators.rb:261:in `invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/commands/generate/generate_command.rb:26:in `perform'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:178:in `invoke_command'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command/base.rb:73:in `perform'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:71:in `block in invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:149:in `with_argv'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/command.rb:69:in `invoke'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/railties-<IP_ADDRESS>/lib/rails/commands.rb:18:in `<main>'
	from <internal:/Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/Users/danieltenner/.rvm/rubies/ruby-3.3.0/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /Users/danieltenner/.rvm/gems/ruby-3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from bin/rails:4:in `<main>'

I think it's creating the files that it is creating correctly, but I guess some files are missing...
➜  promptcraft git:(main) ✗ gst
On branch main
Your branch is up to date with 'origin/main'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	app/models/input_item/
	db/migrate/20240513091444_create_input_item_prompt_executions.rb

nothing added to commit but untracked files present (use "git add" to track)

class CreateInputItemPromptExecutions < ActiveRecord::Migration[7.1]
  def change
    create_table :input_item_prompt_executions do |t|
      t.references :prompt_execution, null: false, foreign_key: true
      t.references :input_item, null: false, foreign_key: true

      t.timestamps
    end
  end
end

app/models/input_item/prompt_execution.rb:
class InputItem::PromptExecution < ApplicationRecord
  belongs_to :prompt_execution
  belongs_to :input_item
end

All scaffolds that were used to get to this point are here: https://github.com/swombat/promptcraft/blob/main/SCAFFOLDING.md

@swombat I don't know if it would help but you might try making the namespace for InputItem:: plural instead of singular. Generally having a namespace that exactly matches a model is a recipe for trouble of various sorts. So instead of InputItem::PromptExecution (singular namespace) I'd recommend trying InputItems::PromptExecution (plural namespace).

Ah, perhaps! I stopped using namespaces because of the other issues with them (sortable, etc), so I forgot this little trick... Will try again.

@swombat I just ran all of the scaffolders from your repo (https://github.com/swombat/promptcraft/blob/main/SCAFFOLDING.md) and then experimented with the join model you listed in this issue. If I pluralize the namespace it doesn't hang.
$ rails generate super_scaffold:join_model InputItems::PromptExecution prompt_execution_id{class_name=PromptExecution} input_item_id{class_name=InputItem}
Generating model with 'bin/rails generate model InputItems::PromptExecution prompt_execution:references input_item:references'
Updating './app/models/input_items/prompt_execution.rb'.
Updating './app/models/input_items/prompt_execution.rb'.
Updating './app/models/input_items/prompt_execution.rb'.
No need to update './app/models/input_items/prompt_execution.rb'. It already has 'belongs_to :prompt_execution'.
Updating './app/models/input_items/prompt_execution.rb'.
Updating './app/models/input_items/prompt_execution.rb'.
Updating './app/models/input_items/prompt_execution.rb'.
No need to update './app/models/input_items/prompt_execution.rb'. It already has 'belongs_to :input_item'.
Updating './app/models/prompt_execution.rb'.
Updating './app/models/prompt_execution.rb'.
Updating './app/models/input_item.rb'.
Updating './app/models/input_item.rb'.

So far I haven't been able to figure out exactly what's happening when it does hang with the singular version.

OK, I see what's causing the hang. If you run the model generation command that super scaffolding runs for you it asks if you want to overwrite the singularized input_item.rb file. But since the way that we shell out isn't interactive the question gets swallowed and there's no way to get a response back in.
$ rails generate model InputItem::PromptExecution prompt_execution:references input_item:references
      invoke  active_record
      create    db/migrate/20240603162946_create_input_item_prompt_executions.rb
      create    app/models/input_item/prompt_execution.rb
    conflict    app/models/input_item.rb
  Overwrite /Users/jgreen/projects/bullet-train-co/join-model-hang-test/app/models/input_item.rb? (enter "h" for help) [Ynaqdhm]

We should probably try to detect that the "namespace parent file" collides with an existing model, warn you about it, and bail out.

@jagthedrummer I reflected on namespaces a little while back here, and I think it's more of a Bullet Train philosophy/framework-wide issue, so maybe script.rb would be a good place to check for the parent (can't say off the top of my head). Definitely not good if the script is hanging when we should be bailing out instead.
I'll try to think of a good spot for it in the meantime!

I just confirmed that this same issue happens if you super scaffold a normal model (not a join model) with a namespace that matches an existing model.
For instance:
$ rails generate super_scaffold Prompt::Widget Prompt,Project,Team name:text_field description:trix_editor contents:text_area --sortable

Generating Prompt::Widget model with 'bin/rails generate model Prompt::Widget prompt:references name:string description:text contents:text'

Definitely seems like we need a common solution for both types of scaffolders.


Assert that ChainValidationState is in normal form in epochValid prop

I've added an option to Test.Cardano.Chain.Block.Validation.tests which either enables or disables an assertion to ensure that the ChainValidationState is always in normal form after validating each epoch.

In our existing cardano-ledger-test test-suite, we specify not to assert that the ChainValidationState is in normal form (NoAssertNF).
Added a new test executable, epoch-validation-normal-form-test, in which we specify to assert that the ChainValidationState is in normal form (AssertNF). I've also added a new CI job which builds and executes this without hpc coverage.

The new test executable and CI job was added as a means of circumventing an "issue" which was encountered in our existing CI job. Because our existing CI job builds with hpc (ghc -fhpc/stack --coverage), thunks are introduced throughout our program for hpc's program coverage measurement purposes and this prevents us from accurately determining whether a given expression is in normal form.
So, following @erikd's advice, I've introduced this new test executable (which will be built without hpc) which basically just calls upon Test.Cardano.Chain.Block.Validation.tests and provides it with an argument of AssertNF. This way, we can still build and test our normal test-suite with code coverage and also test this new normal form assertion in a separate CI job.
Notes
The function heap_view_closurePtrs in ghc/rts/Heap.c currently does not handle closures of type CONSTR_NOCAF and, as a result, it fprintfs a message to stderr every time it encounters one: "closurePtrs: Cannot handle type CONSTR_NOCAF yet".
Since the isNormalForm function utilizes this function it could get a bit "spammy" if we run into CONSTR_NOCAFs when running the test-suite. However, I've only seen that CompactTxInUtxos are allocated as CONSTR_NOCAFs when we compile with -O2. In our CI jobs, we tend to use stack --fast (-O0) so we don't see this sort of spammy output to stderr in the logs.
It's also worth noting that Joachim Breitner has recently raised a PR with ghc for specifically handling CONSTR_NOCAF objects in heap_view_closurePtrs

Looks like the CI times are quite high here - let's see whether hydra can get it done better

Looks like this is exhausting the heap in CI:
Test.Cardano.Chain.Block.Validation
--
  | prop_signingHistoryUpdatesPreserveInvariants:   OK (0.62s)
  | ✓ prop_signingHistoryUpdatesPreserveInvariants passed 100 tests.
  | ts_prop_mainnetEpochsValid:                     cardano-ledger-test: Heap exhausted;
  | cardano-ledger-test: Current maximum heap size is 524288000 bytes (500 MB).
  | cardano-ledger-test: Relink with -rtsopts and use `+RTS -M<size>' to increase it.

https://buildkite.com/input-output-hk/cardano-ledger/builds/2072#3ee17651-55e0-4a5f-82af-a1dc5d61d448

It turns out that foldM was causing serious problems, so I've moved the normal form check into foldChainValidationState, which seems to work fine.
@intricate we should still explore while the epoch normal form tests are failing on Windows, but let's leave this for next iteration

bors r+

It turns out that foldM was causing serious problems, so I've moved the normal form check into foldChainValidationState, which seems to work fine.
@intricate we should still explore while the epoch normal form tests are failing on Windows, but let's leave this for next iteration

Understood.


Refactor branch fix

please add this file

Hi, can you please merge main in your branch and fix the merge conflicts please?

Closing PR for now.
Feel free to create new up-to-date PR with required updates, or a new issue (bug/feature request).
Best regards


SparseCategoricalCrossentropy and Mixed Precision Training

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 20.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary):  Binary
TensorFlow version (use command below): v2.5.0-0
Python version: 3.8
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 11.2
GPU model and memory: A6000

Describe the current behavior
sparse_categorical_crossentropy in losses.py performs an unnecessary cast of y_true to y_pred.dtype since it's then cast to int64 in sparse_categorical_crossentropy in keras.backend.py.
This seems to be the same code as in categorical_crossentropy, but causes issues with sparse, especially with mixed precision training and float16 as the loss in precision causes incorrect encodings or labels outside the domain resulting in incorrect or nan loss. With float16, issues start with a couple thousand labels and a couple hundred labels with bfloat16.
Describe the expected behavior
Cast to y_pred.dtype should be skipped.
Contributing

Do you want to contribute a PR? (yes/no):
Briefly describe your candidate solution(if contributing):

Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
https://colab.research.google.com/drive/1oRbNOnCo1i2HcXD2V4_-D1Bz2EVxiT65

@zuyezheng ,
Please post this issue on keras-team/keras repo.
To know more refer to:
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999

Created https://github.com/keras-team/keras/issues/15012, thanks.


Getting started failes on a clean ubuntu server due to missing stuff

Looks like our "getting started" part of the readme is a bit incomplete - we miss a few dependencies:

python 3(>=.11?)
node and npm (>=16?)

it also could be an improvement in onboarding experience if we point a new starter to the published capella-dockerimages instead of build-from-scratch (saving build time).
another question - do we still need EASE image?
next observation - after successfull launch the thing serves on <IP_ADDRESS>:8080, however requesting that from anything that is not localhost results in 404 (design or intention?)
running the thing on a headless server leads to the below error (there is no browser to open):
/bin/bash: line 7: xdg-open: command not found
make: *** [Makefile:93: open] Error 127

Out of the box, session start fails with "an error occured, please try again" - but trying again leads to the same result as nothing changed ;-)
The backend error log is full of exciting messages:

Could not create an admin token. Please make sure that your Guacamole database is initialized properly. (File "/tmp/backend/capellacollab/sessions/guacamole.py", line 44, in get_admin_token)
Exception during fetching of last seen. (requests.exceptions.ReadTimeout: HTTPConnectionPool(host='dev-prometheus-server', port=9118): Read timed out. (read timeout=2),   File "/tmp/backend/capellacollab/sessions/sessions.py", line 41, in get_last_seen)
Could not handle idle sessions ( File "/tmp/backend/capellacollab/sessions/idletimeout.py", line 50, in loop)

running make provision-guacamole gets it a little further - a session card appears with "failed to create session",
the new error is "Could not parse log"
Traceback (most recent call last):
  File "/tmp/backend/capellacollab/sessions/sessions.py", line 76, in _determine_session_state
    logs = get_operator().get_session_logs(session.id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/backend/capellacollab/sessions/operators/k8s.py", line 413, in get_session_logs
    return self.v1_core.read_namespaced_pod_log(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api/core_v1_api.py", line 23747, in read_namespaced_pod_log
    return self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs)  # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api/core_v1_api.py", line 23866, in read_namespaced_pod_log_with_http_info
    return self.api_client.call_api(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api_client.py", line 348, in call_api
    return self.__call_api(resource_path, method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api_client.py", line 180, in __call_api
    response_data = self.request(
                    ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api_client.py", line 373, in request
    return self.rest_client.GET(url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/rest.py", line 241, in GET
    return self.request("GET", url,
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/rest.py", line 235, in request
    raise ApiException(http_resp=r)
kubernetes.client.exceptions.ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Audit-Id': '80086e04-2995-4176-9de1-f8c765ea40fe', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Mon, 12 Jun 2023 06:50:48 GMT', 'Content-Length': '261'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"container \"litkahioewsmzojuszisqxvuo\" in pod \"litkahioewsmzojuszisqxvuo-8d5bc7c5b-ttqfp\" is waiting to start: trying and failing to pull image","reason":"BadRequest","code":400}

I didnt get further so far.
make[2]: Entering directory '/home/viktor/capella-collab-manager/capella-dockerimages'
/bin/sh: 1: [: 1: unexpected operator
make[2]: Leaving directory '/home/viktor/capella-collab-manager/capella-dockerimages'
Successfully ran target 'capella/remote' for Capella version 6.0.0.
docker build --platform linux/amd64 -t capella/ease:$DOCKER_TAG --build-arg BASE_IMAGE=capella/base:$DOCKER_TAG --build-arg BUILD_TYPE=online ease
make PUSH_IMAGES=1 IMAGENAME=capella/ease .push

prometheus log:
~/capella-collab-manager$ kubectl logs dev-prometheus-nginx-548c6f89df-gwcr9
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/06/12 07:00:47 [error] 20#20: *1 upstream timed out (110: Connection timed out) while reading response header from upstream, client: <IP_ADDRESS>, server: _, request: "GET /prometheus/graph HTTP/1.1", upstream: "http://<IP_ADDRESS>:9118/prometheus/graph", host: "localhost:8080", referrer: "http://localhost:8080/"
<IP_ADDRESS> - - [12/Jun/2023:07:00:47 +0000] "GET /prometheus/graph HTTP/1.1" 504 569 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
2023/06/12 07:18:53 [error] 20#20: *4 upstream timed out (110: Connection timed out) while reading response header from upstream, client: <IP_ADDRESS>, server: _, request: "GET /prometheus/graph HTTP/1.1", upstream: "http://<IP_ADDRESS>:9118/prometheus/graph", host: "localhost:8080", referrer: "http://localhost:8080/"
<IP_ADDRESS> - - [12/Jun/2023:07:18:53 +0000] "GET /prometheus/graph HTTP/1.1" 504 569 "http://localhost:8080/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"

running capella 6 image from github artifacts leads to this log:
Defaulted container "vlgwsiomraniasowlytkicjja" out of: vlgwsiomraniasowlytkicjja, promtail
Current password: New password: Retype new password: passwd: password updated successfully
Changing password for techuser.
Executing Python script '/opt/setup/setup_welcome_screen.py'...
INFO:Capella preparation:Set existing config core_defaultRepositoryDir to /workspace/git
Executing shell script '/opt/setup/replace_env_variables.sh'...
2023-06-12 07:34:51,703 INFO supervisord started with pid 1
2023-06-12 07:34:52,707 INFO spawned: 'idletime' with pid 15
2023-06-12 07:34:52,709 INFO spawned: 'xrdp' with pid 16
2023-06-12 07:34:52,711 INFO spawned: 'xrdp-sesman' with pid 17
2023-06-12 07:34:53,713 INFO success: idletime entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-12 07:34:53,713 INFO success: xrdp entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-12 07:34:53,713 INFO success: xrdp-sesman entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-12 07:35:02,527 INFO reaped unknown pid 125 (exit status 1)
2023-06-12 07:35:02,527 INFO reaped unknown pid 127 (exit status 1)
2023-06-12 07:35:03,529 INFO reaped unknown pid 122 (terminated by SIGABRT (core dumped))

Looks like our "getting started" part of the readme is a bit incomplete - we miss a few dependencies:

python 3(>=.11?)
node and npm (>=16?)

The Python dependency has been added to the README and the Node.js / npm dependency is not required anymore in https://github.com/DSD-DBS/capella-collab-manager/pull/763/commits/3d898ea9aa85f0c2b64fd48d745031fa44044421

it also could be an improvement in onboarding experience if we point a new starter to the published capella-dockerimages instead of build-from-scratch (saving build time).

Implemented in https://github.com/DSD-DBS/capella-collab-manager/pull/763/commits/7624150737a0f6781b615f139e574af3ce5c8574. When the development mode is disabled, the Capella tool is initialized with the public Github images.

another question - do we still need EASE image?

Yes, they are still needed for the read-only images. A dependency graph is available here: https://dsd-dbs.github.io/capella-dockerimages/#build-images-manually-with-docker

next observation - after successfull launch the thing serves on <IP_ADDRESS>:8080, however requesting that from anything that is not localhost results in 404 (design or intention?)

To listen on all hosts, please change the .general.host value to the preferred value, e.g., <IP_ADDRESS>. Note that the OAuth mock still redirects to localhost:8080, the value .backend.authentication.oauth.redirectURI has to be changed in the values.yaml too.
In theory, you can also use * as wildcard. However, we don't support it from the application side, so the Guacamole and Jupyter redirects will stop working. If this is a wanted feature, we can also add support for wildcard hosts.

running the thing on a headless server leads to the below error (there is no browser to open):
/bin/bash: line 7: xdg-open: command not found
make: *** [Makefile:93: open] Error 127

Fixed in https://github.com/DSD-DBS/capella-collab-manager/pull/763/commits/19222241c697f539cae0b608c2626f251daafbdc

Out of the box, session start fails with "an error occured, please try again" - but trying again leads to the same result as nothing changed ;-)
The backend error log is full of exciting messages:

Could not create an admin token. Please make sure that your Guacamole database is initialized properly. (File "/tmp/backend/capellacollab/sessions/guacamole.py", line 44, in get_admin_token)

The first error message is because of the not initialised database of Guacamole. Most likely, the first run of your make deploy ran into a timeout and never reached the Guacamole provision part.

Exception during fetching of last seen. (requests.exceptions.ReadTimeout: HTTPConnectionPool(host='dev-prometheus-server', port=9118): Read timed out. (read timeout=2),   File "/tmp/backend/capellacollab/sessions/sessions.py", line 41, in get_last_seen)
Could not handle idle sessions ( File "/tmp/backend/capellacollab/sessions/idletimeout.py", line 50, in loop)

My guess is that Rrometheus is not running properly. Can you please share the output of the following command?
kubectl -n collab-manager logs deployment/dev-prometheus-server

running make provision-guacamole gets it a little further - a session card appears with "failed to create session", the new error is "Could not parse log"
Traceback (most recent call last):
  File "/tmp/backend/capellacollab/sessions/sessions.py", line 76, in _determine_session_state
    logs = get_operator().get_session_logs(session.id)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/backend/capellacollab/sessions/operators/k8s.py", line 413, in get_session_logs
    return self.v1_core.read_namespaced_pod_log(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api/core_v1_api.py", line 23747, in read_namespaced_pod_log
    return self.read_namespaced_pod_log_with_http_info(name, namespace, **kwargs)  # noqa: E501
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api/core_v1_api.py", line 23866, in read_namespaced_pod_log_with_http_info
    return self.api_client.call_api(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api_client.py", line 348, in call_api
    return self.__call_api(resource_path, method,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api_client.py", line 180, in __call_api
    response_data = self.request(
                    ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/api_client.py", line 373, in request
    return self.rest_client.GET(url,
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/rest.py", line 241, in GET
    return self.request("GET", url,
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/kubernetes/client/rest.py", line 235, in request
    raise ApiException(http_resp=r)
kubernetes.client.exceptions.ApiException: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Audit-Id': '80086e04-2995-4176-9de1-f8c765ea40fe', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Mon, 12 Jun 2023 06:50:48 GMT', 'Content-Length': '261'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"container \"litkahioewsmzojuszisqxvuo\" in pod \"litkahioewsmzojuszisqxvuo-8d5bc7c5b-ttqfp\" is waiting to start: trying and failing to pull image","reason":"BadRequest","code":400}

I didnt get further so far.
make[2]: Entering directory '/home/viktor/capella-collab-manager/capella-dockerimages'
/bin/sh: 1: [: 1: unexpected operator
make[2]: Leaving directory '/home/viktor/capella-collab-manager/capella-dockerimages'
Successfully ran target 'capella/remote' for Capella version 6.0.0.
docker build --platform linux/amd64 -t capella/ease:$DOCKER_TAG --build-arg BASE_IMAGE=capella/base:$DOCKER_TAG --build-arg BUILD_TYPE=online ease
make PUSH_IMAGES=1 IMAGENAME=capella/ease .push

This has been fixed in https://github.com/DSD-DBS/capella-dockerimages/pull/155

running capella 6 image from github artifacts leads to this log:
Defaulted container "vlgwsiomraniasowlytkicjja" out of: vlgwsiomraniasowlytkicjja, promtail
Current password: New password: Retype new password: passwd: password updated successfully
Changing password for techuser.
Executing Python script '/opt/setup/setup_welcome_screen.py'...
INFO:Capella preparation:Set existing config core_defaultRepositoryDir to /workspace/git
Executing shell script '/opt/setup/replace_env_variables.sh'...
2023-06-12 07:34:51,703 INFO supervisord started with pid 1
2023-06-12 07:34:52,707 INFO spawned: 'idletime' with pid 15
2023-06-12 07:34:52,709 INFO spawned: 'xrdp' with pid 16
2023-06-12 07:34:52,711 INFO spawned: 'xrdp-sesman' with pid 17
2023-06-12 07:34:53,713 INFO success: idletime entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-12 07:34:53,713 INFO success: xrdp entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-12 07:34:53,713 INFO success: xrdp-sesman entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-12 07:35:02,527 INFO reaped unknown pid 125 (exit status 1)
2023-06-12 07:35:02,527 INFO reaped unknown pid 127 (exit status 1)
2023-06-12 07:35:03,529 INFO reaped unknown pid 122 (terminated by SIGABRT (core dumped))

This is how the log should look like :)


Can't run tutorial

Error:
$ python rl.py
Traceback (most recent call last):
  File "rl.py", line 22, in <module>
    from pybrain.rl.environments.mazes import Maze, MDPMazeTask
ImportError: No module named pybrain.rl.environments.mazes

I am still getting this error, running on MacOS 10.10
Traceback (most recent call last):
  File "td.py", line 13, in <module>
    from pybrain.rl.environments.mazes import Maze, MDPMazeTask
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyBrain-0.3.3-py2.7.egg/pybrain/rl/environments/mazes/__init__.py", line 3, in <module>
    from pybrain.rl.environments.mazes.tasks.__init__ import *
  File "/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyBrain-0.3.3-py2.7.egg/pybrain/rl/environments/mazes/tasks/__init__.py", line 1, in <module>
    from pybrain.rl.environments.mazes.tiger import TigerTask
ImportError: No module named tiger

Hi tkelestermur. The above fix should have solved this issue but it seems it was never merged. I'll submit another pull request.
If you are in a hurry you can fix this issue on your machine by editing
pybrain/rl/environments/mazes/tasks/_init.py to look like this:
from pybrain.rl.environments.mazes.tasks.tiger import TigerTask
from pybrain.rl.environments.mazes.tasks.maze import TrivialMaze, MazeTask
from pybrain.rl.environments.mazes.tasks.cheesemaze import CheeseMaze
from pybrain.rl.environments.mazes.tasks.tmaze import TMaze
from pybrain.rl.environments.mazes.tasks.maze4x3 import FourByThreeMaze
from pybrain.rl.environments.mazes.tasks.maze89state import EightyNineStateMaze
from pybrain.rl.environments.mazes.tasks.shuttle import ShuttleDocking
from pybrain.rl.environments.mazes.tasks.mdp import MDPMazeTask
and then reinstall pybrain using setup.py.

Hi SBretz, thanks for the fix. I am now able to run it without any error.

PR #157 will fix this.