PANIC in /root/.cargo/git/checkouts/rust-postgres-dc0fca9be721a90f/8a61d46/postgres-types/src/lib.rs:762:18expected array type

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v16.6.1

OS
darwin

Prisma Client
2.28.0

Query Engine
query-engine 89facabd0366f63911d089156a7a70125bfbcd27

Database
undefined

Query
mutation {
  queryRaw(
    query: "X"
    parameters: "X"
  )
}

Logs
s:26686:24)
  prisma:engine       at Socket.emit (node:events:406:35)
  prisma:engine       at Socket.emit (node:domain:475:12)
  prisma:engine       at endReadableNT (node:internal/streams/readable:1331:12)
  prisma:engine       at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  prisma:engine     code: 'UND_ERR_SOCKET'
  prisma:engine   }
  prisma:engine }
  prisma:engine {
  prisma:engine   error: Error: connect ECONNREFUSED <IP_ADDRESS>:53745
  prisma:engine       at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1142:16) {
  prisma:engine     errno: -61,
  prisma:engine     code: 'ECONNREFUSED',
  prisma:engine     syscall: 'connect',
  prisma:engine     address: '<IP_ADDRESS>',
  prisma:engine     port: 53745
  prisma:engine   }
  prisma:engine }
  prisma:engine { cwd: '/Users/brad/github/bradhilton/trading-bot/prisma' }
  prisma:engine Search for Query Engine in /Users/brad/github/bradhilton/trading-bot/node_modules/.prisma/client
  plusX Execution permissions of /Users/brad/github/bradhilton/trading-bot/node_modules/.prisma/client/query-engine-darwin are fine
  prisma:engine { flags: [ '--enable-raw-queries', '--port', '53750' ] }
  prisma:engine stdout  Starting a postgresql pool with 13 connections.
  prisma:engine stdout  Started http server on http://<IP_ADDRESS>:53750
  prisma:engine Search for Query Engine in /Users/brad/github/bradhilton/trading-bot/node_modules/.prisma/client
  plusX Execution permissions of /Users/brad/github/bradhilton/trading-bot/node_modules/.prisma/client/query-engine-darwin are fine
  prisma:engine Client Version: 2.28.0
  prisma:engine Engine Version: query-engine 89facabd0366f63911d089156a7a70125bfbcd27
  prisma:engine Active provider: postgresql
  prisma:engine stdout  PANIC in /root/.cargo/git/checkouts/rust-postgres-dc0fca9be721a90f/8a61d46/postgres-types/src/lib.rs:762:18
expected array type
  prisma:engine {
  prisma:engine   error: SocketError: other side closed
  prisma:engine       at Socket.onSocketEnd (/Users/brad/github/bradhilton/trading-bot/node_modules/@prisma/client/runtime/index.js:26686:24)
  prisma:engine       at Socket.emit (node:events:406:35)
  prisma:engine       at Socket.emit (node:domain:475:12)
  prisma:engine       at endReadableNT (node:internal/streams/readable:1331:12)
  prisma:engine       at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  prisma:engine     code: 'UND_ERR_SOCKET'
  prisma:engine   }
  prisma:engine }

Client Snippet
const bars = await prisma.$queryRaw<
  {
    time: string
    weekday: number
    day_minute: number
    open: number
    high: number
    low: number
    close: number
    change: number
    volume: number
    trade_count: number
    vwap: number
  }[]
>(
  sql`
SELECT to_char(bucket - interval '4 hours', 'FMMonth DD HH12:MI AM')                                  as time,
       extract(isodow from bucket)                                                                    as weekday,
       extract(hour from bucket) * 60 + extract(minute from bucket)                                   as day_minute,
       coalesce(open, locf_close)                                                                     as open,
       coalesce(high, locf_close)                                                                     as high,
       coalesce(low, locf_close)                                                                      as low,
       locf_close                                                                                as close,
       abs(locf_close - coalesce(open, locf_close)) / coalesce(open, locf_close) * 100                as change,
       coalesce(volume, 0)                                                                            as volume,
       coalesce(trade_count, 0)                                                                       as trade_count,
       coalesce(vwap, locf_vwap)                                                                      as vwap
FROM (SELECT time_bucket_gapfill('10 minutes', timestamp) as bucket,
             first(open, timestamp)                      as open,
             max(high)                                   as high,
             min(low)                                    as low,
             locf(last(close, timestamp), null, true)    as locf_close,
             sum(volume)                                 as volume,
             sum(trade_count)                            as trade_count,
             sum(vwap * volume) / sum(volume)            as vwap,
             locf(last(vwap, timestamp), null, true)     as locf_vwap
      FROM alpaca_bars
      WHERE symbol = $1
        AND time_frame = '1Min'
        AND timestamp >= '2021-05-24 14:00:00.000'
        AND timestamp < '2021-08-07 00:00:00.000'
      GROUP BY bucket
      ORDER BY bucket) as buckets
WHERE extract(hour from bucket) >= 8
  AND extract(isodow from bucket) < 6
  AND extract(doy from bucket) NOT IN (extract(doy from '2021-05-31'::date), extract(doy from '2021-07-05'::date));
`,
  ['AMC']
)

Schema
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

enum AlpacaAssetClass {
  usEquity  @map("us_equity")
}

enum AlpacaAssetExchange {
  AMEX
  ARCA
  BATS
  NYSE
  NASDAQ
  NYSEARCA
  OTC
}

enum AlpacaAssetStatus {
  active
  inactive
}

model AlpacaAsset {
  id           String              @id @db.Uuid
  class        AlpacaAssetClass
  exchange     AlpacaAssetExchange
  symbol       String
  name         String
  status       AlpacaAssetStatus
  tradable     Boolean
  marginable   Boolean
  shortable    Boolean
  easyToBorrow Boolean             @map("easy_to_borrow")
  fractionable Boolean

  @@index([symbol])
  @@map("alpaca_assets")
}

enum AlpacaBarTimeFrame {
  second  @map("1Sec")
  minute  @map("1Min")
  hour    @map("1Hour")
  day     @map("1Day")
}

model AlpacaBar {
  symbol     String
  timeFrame  AlpacaBarTimeFrame @map("time_frame")
  timestamp  DateTime
  open       Float
  high       Float
  low        Float
  close      Float
  volume     Int
  tradeCount Int                @map("trade_count")
  vwap       Float

  @@unique([symbol, timeFrame, timestamp])
  @@index([timeFrame])
  @@index([timestamp])
  @@map("alpaca_bars")
}

Are you using timescale db here? We don't really officially support it so there might be some type which is not handled by the driver.
Can you please try with 2.29.1 once as well ?


bug: [entproto]  Failed generating protobuf after overiding builtin id type

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
After changing the type of id field in ent schema as below.
// Fields of the User.
func (User) Fields() []ent.Field {
	return []ent.Field{
		field.Uint32("id").StorageKey("user_id").Annotations(entproto.Field(1)),
	}
}

I got this error while generating an implementation of the gRPC service.
entproto: failed generating protos: entproto: failed parsing ent graph: entproto: list method does not support schema "User" id
type "uint64"

It is weird as there've been test case TestMessageWithId that cover this case for generating protobuf definiton.

Expected Behavior 🤔
Should work for generation of gRPC services

Steps to Reproduce 🕹

Steps:

Your Environment 🌎

Tech
Version

Go
1.18

Ent
0.11.4

Database
MySQL

Driver
https://github.com/go-sql-driver/mysql

closed by https://github.com/ent/contrib/pull/394


version 3.1.0 not work in Carthage

I'm trying Genome with Carthage, but when running carthage update it won't download Packages  folder content. Node, PathIndexable and Polymorphic is missing in project, which caused built failed.
I'm now running with specific version
github "LoganWright/Genome" == 3.0.3
It worked.
might be submodule issue?

@jhihguan I honestly have no idea 🙊 I'm not up and up on Carthage.
Would deleting the .git folders in Packages help perhaps?

I don't see .git in Packages folder.
When I clone the project in SourceTree it will error with
fatal: No url found for submodule path 'Packages/Node-1.0.1' in .gitmodules
and if I type git submodule in terminal, it will show
fatal: no submodule mapping found in .gitmodules for path 'Packages/Node-1.0.1'
But when I try pod install in another project, those package will download correctly.
yeah...I'm not up on Carthage😆

Got same git error with SPM:
$ swift build
Cloning https://github.com/LoganWright/Genome.git
/Users/max/.homebrew/bin/git clone --recursive --depth 10 https://github.com/LoganWright/Genome.git /Users/max/devel/***-swift/Packages/Genome.git
Cloning into '/Users/max/devel/***-swift/Packages/Genome.git'...
fatal: No url found for submodule path 'Packages/Node-1.0.1' in .gitmodules

error: Failed to clone https://github.com/LoganWright/Genome.git to /Users/max/devel/***-swift/Packages/Genome.git

@jhihguan @max-potapov can you attempt 3.1.1 and let me know if the issue is resolved.

I'm testing it in https://github.com/bwhiteley/JSONShootout
if I change version to 3.1.1 and do  carthage update --no-build
theGenome.xcodeproj still link to order version of Node Polymorphic PathIndexable
see the screenshot below

strange carthage...

@LoganWright tried 3.1.1 with spm and git recursive clone – everything is fine. thanks!

ahh, I think I found the issue, because carthage will use source code's Genome.xcodeproj to build project.
But right now Node Polymorphic PathIndexable is point to old code which is not existed anymore. (you can see my screenshot above)
I know how to add file into project, but I don't know how to link file like the way you did ex. Core/Node+Init.swift. Can you also tell me how you do that?

@jhihguan I was regenerating project from SPM, normally I wouldn't include the xcodeproj in the repository, but its necessary for Carthage. Let me try a regen and see what happens.

@jhihguan how does #79 look?

@jhihguan @max-potapov can you guys try 3.1.2 🙏

@LoganWright it works!
maybe after @max-potapov confirmed than this issue can be closed

@LoganWright sorry... I found a small issue that 3.1.2 only build Mac device while 3.0.3 has Mac, iOS, watchOS, tvOS

I add platform support in #80 and also set the minimum version for each platform

@jhihguan @LoganWright both spm & carthage works fine with 3.1.2!

@jhihguan thanks, merged as 3.1.3
https://github.com/LoganWright/Genome/releases/tag/3.1.3

great! it works


Add option to turn off or limit the depth of recursive scanning

Description
The config-file-validator will recursively scan the provided search path until it reaches the end of the directory structure. This may not be the desired behavior for some teams. We should offer an option to limit the depth of recursion as well as disable it entirely.
Potential implementation
Disable recursion
validator --depth=0 path/to/search

Limit the depth of recursion
validator --depth=1 path/to/search

@kehoecj I can pick this up? Thanks in advance.

@kehoecj I can pick this up? Thanks in advance.

I've got you assigned to #36 and #47 so I'll leave this open for others for now. If you finish those up and no one else has claimed this one then you can definitely work it

@kehoecj I can pick this up? Thanks in advance.

I've got you assigned to #36 and #47 so I'll leave this open for others for now. If you finish those up and no one else has claimed this one then you can definitely work it

Although if you want to swap this one for #47 that's fine too - just let me know. I just don't want someone loaded with more than 2 stories in progress at a time.

@kehoecj https://github.com/Boeing/config-file-validator/pull/54


LEGO: Pull request from JUNO/hb_a12a4630-4852-4e7d-9cbc-c0e1117da1ab_20230804114526129 to main

LEGO: Pull request from JUNO/hb_a12a4630-4852-4e7d-9cbc-c0e1117da1ab_20230804114526129 to main with localized lcls

closing old PR superseded by newer merged one


Do a better job of ignoring our own changes

▪    LOG 2015-11-13 00:21:25 UTC src/test_cuckoo.cc was saved by superuser
▪    LOG 2015-11-13 00:21:25 UTC Writing src/test_cuckoo.cc
▪    LOG 2015-11-13 00:21:25 UTC src/test_cuckoo.cc was changed
▪    LOG 2015-11-13 00:21:25 UTC new md5 is d41d8cd98f00b204e9800998ecf8427e
▪    LOG 2015-11-13 00:21:25 UTC src/test_cuckoo.cc was changed
▪    LOG 2015-11-13 00:21:25 UTC new md5 is 989a0b4dd3c76800cfd20550fa5f29d9

This is super annoying. Floomatic sends a blank file for a bit. :(

Fixed in v0.5.1.


Should there a category of developer to follow as well?

Just curious if people category is suitable for this? Or even blogs, or youtube since they also provide valuable information. Thanks

Like This?
https://github.com/bradtraversy/DevYouTubeList

Thanks for your suggestion @rattanakchea, I think it's not a good idea. We should stick with our main motive for this repo.
Btw, Brad has a dedicated repo as you mentioned.

I agree to @TechLead-21, this repo is about design and related things. Thanks for suggestion.


Codes generated aren't accepted by my AC

I tried to use this code to send commands to my Electra AirConditioner. As I only wanted the raw codes,I removed the irSling stuff and did some other tweaks to get it to compile.
I have written a http server for an ESP8266 LOLIN D1 mini chip through which I'm able to send raw commands as simply as:
  wget -O /dev/null "http://<IP_ADDRESS>/?code=$CODE"

where $CODE is the raw code that I want to send to my AC. Meanwhile I'm using a couple of codes that recorded from my remote control through the arduino IRrecvDumpV2 program and it works fine. E.g. the following command turns on the AC at 22°C:
     wget -O /dev/null 'http://<IP_ADDRESS>/?code=38000,3002,3820,1914,962,978,1898,954,964,1916,962,980,898,1020,938,980,940,956,964,978,912,1008,1870,982,934,1004,942,1892,960,1004,940,978,912,1006,912,1008,940,980,938,978,914,1002,940,980,940,978,914,1006,938,978,940,978,938,980,940,978,940,978,938,980,1870,1944,974,2944,3786,1946,964,954,1922,954,964,1914,962,980,938,982,940,980,938,978,938,980,940,980,1868,984,964,954,964,1914,964,978,940,980,940,980,940,978,940,954,964,956,966,980,938,978,938,980,940,978,938,980,914,982,964,978,910,1008,940,1004,914,954,1894,1946,974,2920,3810,1946,966,954,1896,982,966,1890,988,978,940,978,942,978,940,954,966,954,966,976,1872,1008,940,978,940,1914,964,978,940,978,942,976,942,952,966,954,968,976,940,978,940,954,966,974,942,956,966,978,942,978,942,976,944,954,936,980,964,954,1898,1916,1002,3942'

Before comparing to to the output of Electra-AC-Remote I rounded these numbers to multiples of 100 and I got the following command that works just the same.
      wget -O /dev/null '38000,3000,4000,2000,1000,1000,2000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,4000,2000,1000,1000,2000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,4000,2000,1000,1000,2000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,4000'

So now I tried generating the equivalent code through electraAcRemote as follows:
    ./electraAcRemote 1 COOL 22 ON SWING_OFF

which generated:
[3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,4000,0,0,0,0,0,0,0]
I modifed the output (removed square brackets and added the leading "38000") value and send the output to the 8266 chip:
    wget -O /dev/null 'http://<IP_ADDRESS>/?code=38000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,3000,3000,1000,1000,1000,1000,1000,2000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,1000,1000,1000,1000,2000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,2000,2000,1000,4000,0,0,0,0,0,0,0'

The result was a no-op. The AC did not recognize this code.
Any idea why? Meanwhile I'll record some more codes for myself to use, but I'd much rather have them computer generated.

it did not work for me either, i am using Arduino Pro Micro.

Well, it's been a long time since I did this and actually don't have access to this kind of AC to test anymore.
The equivalent code you created using 'electraAcRemote' doesn't seem quite equivalent, I think this would give what you generated with your remote: "./electraAcRemote 3 COOL 22 OFF SWING_OFF".
Anyhow since what you sent to the AC should also be a valid code I can only suggest some debug options:

Try sending the code generated by "./electraAcRemote 3 COOL 22 OFF SWING_OFF" multiple times, if one of the times sticks then it could be a timing issue.
You said you have the capability to record the IR signals. Try recording the "./electraAcRemote 3 COOL 22 OFF SWING_OFF" when it's sent from your hardware and see if it's any different from the code recorded from your remote.
For the timing issue (if exists), try playing with the division factor generating the number of cycles ("cycles = time / 28") depending on what you get in the recording (pulses longer/shorter than 1000 by a significant amount of time). For instance increase it to 30 to get shorter pulses etc..
Lastly, I see that in the codes you sent you omitted the trailing 0's, try doing that for the code generated by 'electraAcRemote', I don't think this is the issue though, but who knows.

What I can confirm is that back in the day this worked on two different Electra ACs with both pi and esp8266.
Good Luck!


text style

there is way to change text style

I think you can use this: https://github.com/ArefMozafari/flutter_pw_validator/issues/12


fix(*): make editorContainer optional, fix imports

update documentation, remove mkdocs, remove bower.json
add commitlint
add .npmignore, dont need to include src files in npm dist
Update readme
BREAKING CHANGE: window.Formeo is now window.FormeoEditor

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


It will block the Google Verification pop-up on Nintendo's official website

In other words, clicking the login button does not respond.

It shouldn't block anyway. Could you be more precise?

Loading this plug-in, reCAPTCHA will not appear in the lower right corner of the page

I don't think so. Maybe link the page you have problems with?

I cannot reproduce this problem. The login page works fine for me.


Fix Uri object and usage issues

Port field is an int so composition into strings requires a cast.
Pass explicit host and port to HTTPConnection initializers since
it doesn't appear to parse out the port number when a path is also
included.
Fixes #45

Once this is merged, I'd be down for creating 1.0.0.beta.


Added tests to verify bug fixes - (iii)

Hello Abhishek,
I have added these tests to verify 5051, 3562 and 5048
I also have a clean pre-commit run, I have shared the link to pre-commit run in another email.
Please review.
Thanks,
Khurram

+1

Thanks Abhishek.


Add to website an icon near the versions that were downloaded locally

Is your feature request related to a problem?
I'd suggest adding a way to differentiate between package version that are cached and the ones that weren't cached from the uplink. This will help users know what's actually was already requested from the repo.
Describe the solution you'd like
Add an icon near the versions that were downloaded in the versions page of every package on the website.
Describe alternatives you've considered
N/A
Additional context
N/A

You mean proxied vs private ?


Upgrade to witx 0.8.0 with tagged unions

Implements https://github.com/WebAssembly/WASI/pull/220/
Additionally, deletes all bindgen layout tests, since those became out-of-date with this PR. Instead, generate layout tests in wig, using witx::Layout as the source of truth.

Looks like I still need to fix the uses of these unions on all the platforms that cargo test didnt check for me locally. @alexcrichton or others - is there a reasonable way to test each platform locally (on linux)?

You can probably get by with rustup target add x86_64-pc-windows-gnu and cargo check --target x86_64-pc-windows-gnu I think?


[FLINK-16480][e2e] On failure, add e2e logs into artifact

What is the purpose of the change
Some e2e tests have the checking of logs for exceptions and errors disabled. When these tests fail, there is no way of getting the JM / TM logs.
With this change, these logs are included.
Brief change log

we register a on_exit hook / trap if we detect an azure environment which compresses the build artifact, when the build exists (for whatever reason)
On error, and if ARTIFACTS_DIR is set, the test runner is copying the logs into ARTIFACTS_DIR.

Thank you for your review. I've incorporated all your feedback. I'm currently testing the changes in a private branch. I'll push them once they are stable.

I addressed your comments. This is ready for review again.

Thanks a lot. I will merge it once the build has passed.

FYI, if you also want to upload the java e2e logs you can just set the logBackupDir property to ${ARTIFACTS_DIR}.

Thanks! I pushed a commit adding this.


VS2017 includes the v140 toolset--why are you recommending Chocolatey?

The README suggests that if you can't find the v140 toolset you should install the Build Tools from Chocolatey and explicitly remove the v141 toolset. This raises a number of questions:

Why does new code only work with an old toolset? Is there a particular dependency or bug in your code preventing you from keeping your compiler toolset current? Have you reached out to the MSVC team to try to resolve this issue?
Why are your recommending that developers install the Build Tools if they are already using VS2017? The VS2017 installer includes the v140 toolset.
Why are you recommending that developers install the Build Tools through Chocolatey rather than from the supported path (e.g., https://aka.ms/BuildTools)? Who maintains the Chocolately version of the Build Tools? Are they current? Are they serviceable? Do they present a EULA?

Feel free to contact me directly through email if you prefer.

Taking offline.

Thanks! Feel free to delete the issue if you like.


Supports. Net 6.0 and. NET standard 2.0

Supports. Net 6.0 and. NET standard 2.0

Yes, the library supports both target frameworks since GTranslate is built for .NET Standard 1.3.


pull request for e2e test at 01/17/2017 15:26:15

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Rubocop errors

Fixes Rubocop errors when using Rubocop 0.33.0. Style/ExtraSpacing is now enabled by default which causes most of the errors.


Updated: webstorm 192.7142.35

Newer version of webstorm (193.5233.80) is now available in master. 975f04dfd2e7a7e27d8860223e4b8f550a0835df


[core] allow programmatic configuration of no proxy list

One problem with current approach is that we load the noProxyList from NO_PROXY env var and cache it in first proxyPolicy() call, therefore

it is not possible to change the list when creating new pipelines.
it is not easy to configure noProxyList programmatically. For example, storage explorer allow users to configure proxy settings from the UI instead of using the NO_PROXY environment variable.

To address 1) we should remove the caching and load the list every time proxyPolicy() is called.
For 2) maybe add a parameter for noProxyList?
export function proxyPolicy(proxySettings?: ProxySettings, customNoProxyList?: string[]): RequestPolicyFactory {
  if (!proxySettings) {
    proxySettings = getDefaultProxySettings();
  }
  noProxyList = customNoProxyList ?? loadNoProxy();

  return {
    create: (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => {
      return new ProxyPolicy(nextPolicy, options, proxySettings!);
    }
  };
}

Another question is do we want to make noProxyList per ProxyPolicy, similar to proxySettings?  There might be case where two clients from different SDK libraries want to use different set of proxy configurations. This will then make the noProxyList and the byPassedList cache per ProxyPolicy
@bterlson @chradek @xirzec

In core-rest-pipeline we could load it per-pipeline without much overhead, since unlike in core-http, we don't call the policy constructor more than once per pipeline.
To answer your specific questions - do we know any customers who use this feature today? I'd love to get their insight about how they use it in the wild.

We should also check other languages too.

we should follow up with Storage Explorer team to have clarity on how they would use the customized no_proxy

The guideline only requires supporting NO_PROXY in global configuration/environment variable: https://azure.github.io/azure-sdk/general_azurecore.html#global-configuration.

Storage Explorer is currently in the process of adding direct support for NO_PROXY.
Storage Explorer allows users to specify proxy settings using either system proxy settings, custom app proxy settings, or environment variables. Users can change these settings at any time, which means we need to be able to support changing proxy information used by the various networking modules we use (request, Azure SDK, etc.). This is further complicated by the fact that Storage Explorer is spread out across several processes. Relying on environment variables for proxy settings is not sufficient without a full app restart.
Here's how we intend to handle environment variables in 1.21.0:

At startup, copy the environment variables to an internal object. If the user wishes to use proxy settings from environment variables, this object becomes the source for this information.
Delete the environment variables before any networking modules have a chance to load and read them.
When the user changes any proxy settings, we broadcast the change to any process that uses network communications.
How each process applies the settings depends on the network module in use in that process. Where possible, proxy settings are applied on a per-request basis.

Because different modules treat environment variables differently, we avoid setting process environment variables and rely on things like proxy policies or options. The read-once caching behavior for NO_PROXY is a good example. In order to work around that behavior, we have to implement the NO_PROXY behavior ourselves. If the URL matches one of the patterns in NO_PROXY, we skip applying a proxy policy to that request.
If the SDK supported a "no proxy" list when creating a proxy policy, that would remove the need for us to do the no-proxy check ourselves.
Here's our work item: microsoft/AzureStorageExplorer#2685

Yeah, this definitely feels like a case where environment variables are not the right solution. I like the idea of making proxy policy configurable in this way.
Since Storage is still on core-http, you'd have to recreate the client each time to get the updated policy rather than being able to dynamically swap the policies out, does that work okay for you?

@xirzec We're already doing that, actually. We create a new client for every operation that is performed. Then we discard it when the operation completes and returns.
Historically, we never relied on environment variables. But users were reporting issues when their environments had these variables set. Since the underlying networking modules already used these variables, we thought at first just using them would be the way to go, and it seemed to work with HTTPS_PROXY and HTTP_PROXY.
Since environment variables are essentially language/platform-independent versions of global variables...well, we learned that wasn't a good idea.

I also wonder if #16418 is related. I've been running some experiments, and I'm getting some rather surprising results trying to create clients with different proxy policies. Take for example:
const keyCred = new StorageSharedKeyCredential("<some account>", "<some key>");

async function testV12PolicyThenPolicyConnection(): Promise<void> {
    console.log("\nV12 -> Testing policy then policy connection...");

    try {
        let pipeline = newPipeline(keyCred, { proxyOptions: { host: "proxy.contoso.com", port: 8080 } });
        let client = new ContainerClient(containerUrl, pipeline);

        await client.getProperties();

        console.log("V12 -> (1) Policy connection was successful.");
    } catch (e) {
        console.log("V12 -> (1) Policy connection failed:\n" + e);
    }

    try {
        let pipeline = newPipeline(keyCred, { proxyOptions: { host: "alternate.contoso.com", port: 8181 } });
        let client = new ContainerClient(containerUrl, pipeline);

        await client.getProperties();

        console.log("V12 -> (2) Policy connection was successful.");
    } catch (e) {
        console.log("V12 -> (2) Policy connection failed:\n" + e);
    }
}

And this is the output:
V12 -> Testing policy then policy connection...
V12 -> (1) Policy connection failed:
FetchError: request to https://cralvordtest03.blob.core.windows.net/blob-container-01?restype=container&timeout=5 failed, reason: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.contoso.com
V12 -> (2) Policy connection failed:
FetchError: request to https://cralvordtest03.blob.core.windows.net/blob-container-01?restype=container&timeout=5 failed, reason: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.contoso.com

Notice that both operations use the same proxy host, which I definitely was not expecting.

Now it is possible to override the global NO_PROXY.  It is easy to replace a request policy in core-rest-pipeline. Unfortunately storage still depends on core-http and there isn't a supported way to replace a policy in existing pipeline other than a very hacky one of removing one at certain index in the array then inserting the new policy. Furthermore, some storage internal policies are not exposed so it is hard if not impossible to create a custom pipeline for Storage by duplicating newPipeline().
So far there are no asks from other services. For Storage we could add a property to StoragePipelineOptions.proxyOptions to pass it to proxyPolicy().
Thoughts? @bterlson @xirzec @chradek @deyaaeldeen

I'm okay with storage having an extra option, it shouldn't be too bad for compat later either...

@jeremymeng if it is possible, did you consider moving storage to use core v2 instead or delaying fixing this until when the migration happens? cc @ramya-rao-a

The migration to core v2 is planned for all storage packages by end of this semester

We hope to move the storage packages to core-rest-pipeline by March 2022


The "Lists" tab on the hub seems broken for non-authenticated users

          > The "Lists" tab on the hub seems broken in this for me: it redirects to the highlights home:

Are you logged in?
Just checked now, and it also appears broken for me... I don't think this is related to this PR, but i'll open a ticket for it
Originally posted by @OgDev-01 in https://github.com/open-sauced/app/issues/2194#issuecomment-1885104309

I'm no longer able to reproduce this 😢 maybe it was a fluke: let's leave this open for abit and see if anyone else reports something similar! Otherwise we can close this

Yes this issue is there on beta.

Logout
Go to lists
refresh and you will be redirected

Could also reproduce this in production

Could also reproduce this in production

Yes it is there in production as well

refresh and you will be redirected

Ahhhh interesting: I was missing the redirect part of that flow - yes, I can also reproduce that

You can find both in beta and production

can I work on this @OgDev-01  @jpmcb ?

.take

Yes I checked the middleware. Can we remove the /hub/:path altogether from the array?

We can't remove it as there are other paths that need to be protected.

Got it will make the changes like you mentioned before. Thanks for the heads up @nickytonline I was about to push with /hub/:path* being removed 😅


Add ecommerce search results plugin

We want to start using the Ecommerce tooling to track search results that are not clicked on a page.
In order to minimise the number of data requests that we send to GA we need to setup the ecommerce data prior to performing the pageview event.
https://trello.com/c/WlBZo8Sl/118-move-ecommerce-ga-to-use-govukfrontendtoolkit

cc'ing @alecgibson and @carvil as both have worked on analytics recently, and had many issues surrounding timing of custom dimensions tracking.

Updates to my comments look good :+1:. Will leave for @alecgibson to give the OK.


fix: add "shared" folder to files in package.json

This is a bugfix.

Proposed solution

Makes it possible to use sass files directly by including the shared folder in the bundled output.

Tradeoffs
❌  A little larger install size.

Testing Done
Have not tested. Not sure how to test this.

Changelog updated?
No.

Thank you so much @dpschen! Good catch 👏

You're welcome =)
Could you bump the version for a new release?


Voting bot

From coffee
module Chat.Bot.Vote where
import           Chat.Bot.Answer.Vote
import           Chat.Bot.Misc.Vote
import           Chat.Data
-- | LEVEL: Easy
-- This requires implementing comparing two numbers and display a message depending on the result
-- >>> guessMe 1 2
-- GuessLower
-- >>> guessMe 2 1
-- GuessHigher
-- >>> guessMe 2 2
-- GuessCorrect
data PollQuestion = PollQuestion String Int
"Zebra, 4"
"Tiger 7"
data Poll = Poll String [PollQuestion]
"What is you favorite animal"
createVote :: String -> [String] -> Poll
createVote question names = Poll question (map (\n -> PollQuestion n 0) names)
addVote :: Poll -> String -> Pool
addVote (Poll question votes) votingFor =
let updateQuestion (PollQuestion q v) =
PollQuestion q (if q == votingFor then v + 1 else v)
in  Poll question (map updateQuestion votes)
render :: Poll -> String

Dupe of https://github.com/charleso/haskell-in-haste/issues/38


[BUG-1] Refactor timeline item factory

As the timeline item factory I want to be refactored, so that my design patterns can achieve consistency with category item factory and start to operate correctly under all conditions.

Created branch BUG-1___refactor-timeline-item-factory

Merged with master. PR: BUG-1___refactor-timeline-item-factory


Adding HTTP/1.x metrics tab on network profiling widget

[ ] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
[x] Update the CHANGES log.

Close it, I will create another PR


copyBillingDetailsToCustomer - Why return on !name, !phone, or !address?

Hey,
I noticed that there's a copyBillingDetailsToCustomer() function that runs on createOrRetrieveCustomer.
Any reason why it returns when there's a missing name, phone or address?
What if a customer doesn't add their phone? Or address? Any reason why their billing details shouldn't be updated?
Thanks!

Not really, probably can be removed. Do you want to open a PR?


feat/add health checks

Adding container health checks to int/docker-compose.yml
Also changing ubuntu-latest to ubuntu-20.04 to provide support for python 3.6+

Looks like just some DCO errors to clean up (committing through github often has this problem):
Summary
Commit sha: 40f4b8b, Author: Alex Walker, Committer: GitHub; The sign-off is missing.
Commit sha: e2d3347, Author: Alex Walker, Committer: GitHub; The sign-off is missing.

@dbluhm Fixed! :) (I didn't realize you could change this manually)


How to get a coarse-grained op-level graph in tensorflow

Hi, tensorflow community,
I want to use tensorflow to get the full computation graph (including forward, backward and parameter update). I tried tf.functions, but the graph I got is too fine-grained, as many ops (Adam for example) are splited into smaller operators (add, mul, div etc.). So is there any methods that I can get a coarse-grained op-level graph? Thanks a lot!
Jiangfei

@JF-D ,
Kindly open a tf discussion forum issue for this as it is not a bug or feature request, Please post this kind of support questions at Stackoverflow. There is a big community to support and learn from your questions.Thanks!

Ok. Thanks!


"pac solution add-reference --path .." does not work

[Enter feedback here]
The following command on the page does not work.
pac solution add-reference --path ..\

The following works.
pac solution add-reference --path ..\..\

Needs correction.

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

ID: 3fc8bc19-4e5e-b6f4-34ef-77b004c2afd6
Version Independent ID: 847c467c-0015-1eb9-bdc7-720a40f1cdba
Content: Create your first component using Power Apps Component Framework in Microsoft Dataverse - Power Apps
Content Source: powerapps-docs/developer/component-framework/implementing-controls-using-typescript.md
Service: powerapps
Sub-service: pcf
GitHub Login: @noazarur-microsoft
Microsoft Alias: noazarur

Thanks for your comment, @keijimscom. This issue has been assigned to the doc author for review.

I have fixed this.
Thanks

@JimDaly  Thank you very much.
I just checked it was fixed on the released document page.


more checkstyle rules needed

I've merged https://github.com/apache/incubator-dubbo/issues/1513, but we still need to add more rules.

I also see some PR like: https://github.com/apache/incubator-dubbo/pull/2730
This kind of stuff should cover in checkstyle rule


docs(Configuration): document output.ignoreBrowserWarnings

Closes https://github.com/webpack/webpack.js.org/issues/6777

cc @indeediansbrett for review.


7931 data estimator

Adds a endpoint for getting a file size estimate based on providers and bbox.
Estimates are shown below the provider selection in the ui.
Available on both the create and clone pages.

Coverage decreased (-0.01%) to 80.745% when pulling 36edbb9f08250a4228e37a361b824e2d8c6abc3b on 7931-data-estimator into a442eb9d03b308dea854685ba357166b44f86708 on master.

Coverage increased (+0.2%) to 80.97% when pulling cb2faaefac4f103a4035ce4e704036a6e6006245 on 7931-data-estimator into a442eb9d03b308dea854685ba357166b44f86708 on master.

Coverage increased (+0.2%) to 80.97% when pulling 38afd34480b5f55e13419cd4da2c674d24df8278 on 7931-data-estimator into a442eb9d03b308dea854685ba357166b44f86708 on master.


Entitlement Management - AccessPackage Types

All API Related to AccessPackages within IDAG
WIP
#92

Hi @kaovd, thanks for this PR!
The way you've implemented deletes for AccessPackageResourceRequests seems ok. It's arguable whether this should just be omitted and allowed to leak downstream but a thin wrapper like this seems reasonable to make it more appear more restful.
The asynchronous behavior when creating AccessPackageResourceRequests is a bit more challenging. For the initial delay, can we implement retries via a ConsistencyFailureFunc rather than a hard sleep? I haven't used this service before, but is this a reliable way to get the request ID? If so, could this potentially be implemented in the client so that the returned struct can be populated? If this were done, it might be wise to add a boolean argument to the method to toggle that particular step.

The only way I've found to delete a resource is by getting its resource ID once the request has been made, as the Requests endpoint wont return the ID of the Resource it creates which while is a bit annoying - it is how the current documentation describes doing this
https://docs.microsoft.com/en-us/graph/api/accesspackageresourcerequest-post?view=graph-rest-beta&tabs=http
To remove an Azure AD app from a catalog, set the catalogId to be of the ID of the catalog, requestType to be AdminRemove, and the accessPackageResource the resource object to be removed. The resource object can be retrieved using list accessPackageResources.

For the flow of that endpoint downstream - on a Delete operation on the client would call the Pseduo-Get on the accessPackageResource to then be able to do the delete operation as seen in the Tests from the line you highlighted. Are you saying this could be rolled into the Create operation on the requests endpoint? While could simplify downstream could be a bit messy if so
Will move to a ConsistencyFailureFunc rather than a hard sleep

The only way I've found to delete a resource is by getting its resource ID once the request has been made, as the Requests endpoint wont return the ID of the Resource it creates which while is a bit annoying - it is how the current documentation describes doing this
https://docs.microsoft.com/en-us/graph/api/accesspackageresourcerequest-post?view=graph-rest-beta&tabs=http
To remove an Azure AD app from a catalog, set the catalogId to be of the ID of the catalog, requestType to be AdminRemove, and the accessPackageResource the resource object to be removed. The resource object can be retrieved using list accessPackageResources.

Cool, that's what I understood from your implementation 👍

For the flow of that endpoint downstream - on a Delete operation on the client would call the Pseduo-Get on the accessPackageResource to then be able to do the delete operation as seen in the Tests from the line you highlighted. Are you saying this could be rolled into the Create operation on the requests endpoint so we store it prehand? While could simplify downstream could be a bit messy if so
Will move to a ConsistencyFailureFunc rather than a hard sleep

Yeah that was my thinking. If you think this would be flaky or too messy we could not bother with it. We could gate it with a pollForId boolean on the Create method if you think consumers would sometimes rather skip this.

Did consider this at first but thought it might've not been acceptable, but if your fine with it will see what i can do with it would simplify the workflow

Think I'm mostly done in terms of raw implementation, pollForId bool works well. fixed bug in Policy Update

$ go test -race ./msgraph -run="TestAccessPackage*"                                                                                [±feature/accessPackages ●]
ok      github.com/manicminer/hamilton/msgraph  15.021s

I haven't introduced a seperate _tests for the accesspackageresource endpoint as it gets covered within the accesspackageresourcerequest tests. Can do so if its needed.

$ go test -race ./msgraph -run="TestAccessPackage*"                                                                                [±feature/accessPackages ●●]
ok      github.com/manicminer/hamilton/msgraph  28.060s

Taking out of draft although probably a few things to review here but feel like I've got good test coverage - let me know

@kaovd Thanks for your work on this! I unfortunately won't have time to review it today but will make sure it gets in to next week's release.


Always return an Array of DalvikVM objects to support multi-dex app

This will return an Array of DalvikVM objects for both multi and single dex application in AnalyzeAPK method.
This PR has the following changes:

AnalyzeAPK will return APK object, list of DalvikVM objects and Analysis object
Previously for multi-dex application an array of Analysis objects were returned which is wrong since the Analysis will have reference of all the dex files via the add() method
Fix the test cases to accommodate with the new return types of AnalyzeAPK
Add test-cases and sample apk for multi-dex app from https://github.com/subho007/abcore (forked version of https://github.com/greenaddress/abcore)

Fixes #369

@adesnos @reox let me know if this looks good

probably we can test now decompilation of all dex files in an APK?
I also noted that we should check if the xrefs do work when using multiple dex files... It would be very nice to have a very small multidex apk, with only a few classes per dex, which are referencing each other.
But the coomit looks good to me!

@reox I'm currently investigating on it. In future I'll make a sample smaller multidex application and write some more testcases on it. Have created a new issue #371


Formatting the content in the Streaming Integration Studio Overview page

Description:
Add content in [1] using the content in [2].
[1] https://github.com/wso2/docs-ei/blob/master/en/streaming-integrator/docs/develop/streaming-integrator-studio-overview.md
[2] https://github.com/wso2/docs-ei/blob/master/en/streaming-integrator/docs/develop/stream-Processor-Studio-Overview.md

Completed [1] for EI 7.0.0 release.
[1] https://ei.docs.wso2.com/en/latest/streaming-integrator/develop/streaming-integrator-studio-overview/


refactoring for run on wsl

fixing error: cannot communicate with server: Post "http://localhost/v2/snaps/bpytop": dial unix /run/snapd.socket: connect: no such file or directory on wsl

This was never created for WSL


No module named 'colossalai.kernel.op_builder' Can not run resnet example

🐛 Describe the bug
I use ubuntu on win 11 with wsl2. In the ubuntu I git the source code  and run   pip install -r requirements/requirements.txt and   pip install .  , everything is ok, colossai AI can been installed.
And then I cd to example/image/resnet and run pip install -r requirements/requirements.txt,  everything is ok too.
After I run  colossalai run --nproc_per_node 1 train.py -c ./ckpt-fp32 I get error
"ModuleNotFoundError: No module named 'colossalai.kernel.op_builder"
Can you tell me how to run the resnet example. Thank you
Environment
ubuntu on win 11 with wsl2
python 3.11
nvcc -V  12.3
nvidia-smi  CUDA Version: 12.0

colossalai check -i
------------ Environment ------------
Colossal-AI version: 0.3.4
PyTorch version: 2.1.2
System CUDA version: 12.3
CUDA version required by PyTorch: 12.1
Note:

The table above checks the versions of the libraries/tools in the current environment
If the System CUDA version is N/A, you can set the CUDA_HOME environment variable to locate it
If the CUDA version required by PyTorch is N/A, you probably did not install a CUDA-compatible PyTorch. This value is give by torch.version.cuda and you can go to https://pytorch.org/get-started/locally/ to download the correct version.

------------ CUDA Extensions AOT Compilation ------------
Found AOT CUDA Extension: ✓
PyTorch version used for AOT compilation: N/A
CUDA version used for AOT compilation: N/A
Note:

AOT (ahead-of-time) compilation of the CUDA kernels occurs during installation when the environment variable CUDA_EXT=1 is set
If AOT compilation is not enabled, stay calm as the CUDA kernels can still be built during runtime

------------ Compatibility ------------
PyTorch version match: N/A
System and PyTorch CUDA version match: x
System and Colossal-AI CUDA version match: N/A
Note:

The table above checks the version compatibility of the libraries/tools in the current environment

PyTorch version mismatch: whether the PyTorch version in the current environment is compatible with the PyTorch version used for AOT compilation
System and PyTorch CUDA version match: whether the CUDA version in the current environment is compatible with the CUDA version required by PyTorch
System and Colossal-AI CUDA version match: whether the CUDA version in the current environment is compatible with the CUDA version used for AOT compilation

Can you  downgrade cuda to 12.1?

@flybird11111  as your meaning, my  System CUDA version should be 12.1?

@flybird11111  I have   downgraded cuda to 12.1. Please look as following
colossalai check -i
Installation Report
------------ Environment ------------
Colossal-AI version: 0.3.4
PyTorch version: 2.1.2
System CUDA version: 12.1
CUDA version required by PyTorch: 12.1
Note:

The table above checks the versions of the libraries/tools in the current environment
If the System CUDA version is N/A, you can set the CUDA_HOME environment variable to locate it
If the CUDA version required by PyTorch is N/A, you probably did not install a CUDA-compatible PyTorch. This value is give by torch.version.cuda and you can go to https://pytorch.org/get-started/locally/ to download the correct version.

------------ CUDA Extensions AOT Compilation ------------
Found AOT CUDA Extension: ✓
PyTorch version used for AOT compilation: N/A
CUDA version used for AOT compilation: N/A
Note:

AOT (ahead-of-time) compilation of the CUDA kernels occurs during installation when the environment variable CUDA_EXT=1 is set
If AOT compilation is not enabled, stay calm as the CUDA kernels can still be built during runtime

------------ Compatibility ------------
PyTorch version match: N/A
System and PyTorch CUDA version match: ✓
System and Colossal-AI CUDA version match: N/A
Note:

The table above checks the version compatibility of the libraries/tools in the current environment

PyTorch version mismatch: whether the PyTorch version in the current environment is compatible with the PyTorch version used for AOT compilation
System and PyTorch CUDA version match: whether the CUDA version in the current environment is compatible with the CUDA version required by PyTorch
System and Colossal-AI CUDA version match: whether the CUDA version in the current environment is compatible with the CUDA version used for AOT compilation

but when I run the example of resnet
ken@ken-pc:~/ColossalAI/examples/images/resnet$ colossalai run --nproc_per_node 1 train.py
I also get error as following, Can you help me? Thank you.
Traceback (most recent call last):
File "/home/ken/ColossalAI/examples/images/resnet/train.py", line 16, in
from colossalai.booster import Booster
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/booster/init.py", line 2, in
from .booster import Booster
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/booster/booster.py", line 17, in
from .plugin import Plugin
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/booster/plugin/init.py", line 1, in
from .gemini_plugin import GeminiPlugin
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/booster/plugin/gemini_plugin.py", line 29, in
from colossalai.shardformer import ShardConfig, ShardFormer
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/init.py", line 1, in
from .shard import ShardConfig, ShardFormer
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/shard/init.py", line 2, in
from .sharder import ModelSharder
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/shard/sharder.py", line 10, in
from ..policies.auto_policy import get_autopolicy
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/policies/auto_policy.py", line 6, in
from .base_policy import Policy
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/policies/base_policy.py", line 14, in
from ..layer.normalization import BaseLayerNorm
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/layer/init.py", line 2, in
from .embedding import Embedding1D, VocabParallelEmbedding1D
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/layer/embedding.py", line 14, in
from colossalai.nn import init as init
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/nn/init.py", line 5, in
from .optimizer import *
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/nn/optimizer/init.py", line 1, in
from .cpu_adam import CPUAdam
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/nn/optimizer/cpu_adam.py", line 7, in
from colossalai.kernel.op_builder import ArmCPUAdamBuilder, CPUAdamBuilder
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/kernel/init.py", line 1, in
from .cuda_native import FusedScaleMaskSoftmax, LayerNorm, MultiHeadAttention
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/kernel/cuda_native/init.py", line 1, in
from .layer_norm import MixedFusedLayerNorm as LayerNorm
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/kernel/cuda_native/layer_norm.py", line 12, in
from colossalai.kernel.op_builder.layernorm import LayerNormBuilder
ModuleNotFoundError: No module named 'colossalai.kernel.op_builder'
[2023-12-25 14:26:40,806] torch.distributed.elastic.multiprocessing.api: [ERROR] failed (exitcode: 1) local_rank: 0 (pid: 3542) of binary: /home/ken/miniconda3/bin/python
Traceback (most recent call last):
File "/home/ken/miniconda3/bin/torchrun", line 8, in
sys.exit(main())
^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/run.py", line 806, in main
run(args)
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/run.py", line 797, in run
elastic_launch(
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 134, in call
return launch_agent(self._config, self._entrypoint, list(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 264, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
train.py FAILED
Failures:
<NO_OTHER_FAILURES>

I haven't reproduced your issue.This looks like you are missing some files. https://colossalai.org/docs/get_started/installation, can you try to install colossalai with the main branch of the repository.

@flybird11111  I have done like you, please following image

and got new error 'ValueError: An IPv4 address cannot be in brackets' please following message. Thank you
colossalai run --nproc_per_node 1 train.py
/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/kernel/cuda_native/mha/flash_attn_2.py:28: UserWarning: please install flash_attn from https://github.com/HazyResearch/flash-attention
warnings.warn("please install flash_attn from https://github.com/HazyResearch/flash-attention")
/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/kernel/cuda_native/mha/mem_eff_attn.py:15: UserWarning: please install xformers from https://github.com/facebookresearch/xformers
warnings.warn("please install xformers from https://github.com/facebookresearch/xformers")
/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/shardformer/layer/normalization.py:45: UserWarning: Please install apex from source (https://github.com/NVIDIA/apex) to use the fused layernorm kernel
warnings.warn("Please install apex from source (https://github.com/NVIDIA/apex) to use the fused layernorm kernel")
/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/initialize.py:48: UserWarning: config is deprecated and will be removed soon.
warnings.warn("config is deprecated and will be removed soon.")
Traceback (most recent call last):
File "/home/ken/ColossalAI/examples/images/resnet/train.py", line 207, in
main()
File "/home/ken/ColossalAI/examples/images/resnet/train.py", line 131, in main
colossalai.launch_from_torch(config={})
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/initialize.py", line 172, in launch_from_torch
launch(
File "/home/ken/miniconda3/lib/python3.11/site-packages/colossalai/initialize.py", line 55, in launch
dist.init_process_group(rank=rank, world_size=world_size, backend=backend, init_method=init_method)
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/c10d_logger.py", line 74, in wrapper
func_return = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/distributed_c10d.py", line 1138, in init_process_group
rendezvous_iterator = rendezvous(
^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/rendezvous.py", line 98, in rendezvous
return _rendezvous_helper(url, rank, world_size, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/rendezvous.py", line 60, in _rendezvous_helper
result = urlparse(url)
^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/urllib/parse.py", line 395, in urlparse
splitresult = urlsplit(url, scheme, allow_fragments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/urllib/parse.py", line 500, in urlsplit
_check_bracketed_host(bracketed_host)
File "/home/ken/miniconda3/lib/python3.11/urllib/parse.py", line 448, in _check_bracketed_host
raise ValueError(f"An IPv4 address cannot be in brackets")
ValueError: An IPv4 address cannot be in brackets
[2023-12-26 10:18:02,536] torch.distributed.elastic.multiprocessing.api: [ERROR] failed (exitcode: 1) local_rank: 0 (pid: 512) of binary: /home/ken/miniconda3/bin/python
Traceback (most recent call last):
File "/home/ken/miniconda3/bin/torchrun", line 8, in
sys.exit(main())
^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
(base) ken@ken-pc:~/ColossalAI/examples/images/resnet$
run(args)
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/run.py", line 797, in run
elastic_launch(
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 134, in call
return launch_agent(self._config, self._entrypoint, list(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ken/miniconda3/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 264, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
train.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time      : 2023-12-26_10:18:02
host      : ken-pc.
rank      : 0 (local_rank: 0)
exitcode  : 1 (pid: 512)
error_file: <N/A>
traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
Error: failed to run torchrun --nproc_per_node=1 --nnodes=1 --node_rank=0 --master_addr=<IP_ADDRESS> --master_port=29500 train.py on <IP_ADDRESS>, is localhost: True, exception: Encountered a bad command exit code!

Hi, could you please post the command you ran?

@flybird11111
I cd to the dir of the resnet example and run following command
colossalai run --nproc_per_node 1 train.py

Hi, it seems something wrong with python 3.11, we will fix it soon, can you change the python version to python 3.10, It works in my environment.

@flybird11111
I use "conda create -n py310 python=3.10" and "source activate py310"
Then I use pip install the lib from source code
I try to run  colossalai run --nproc_per_node 1 train.py in reset dir
And I get following error:
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
But I have installed the cude toolkit, I can find cuda in  /usr/local/cuda,please see following image

And I have  add env in ~/.bashrc

How can I run the example? Thank you

export PATH=/usr/local/cuda/bin:${PATH}, how about adding it to  ~/.bashrc

@flybird11111
using vim ~/.bashrc
append at the bottom. please see following text. Thank you
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
>>> conda initialize >>>
!! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/ken/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/ken/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/ken/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/ken/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
<<< conda initialize <<<
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
export PATH=$PATH:/usr/local/cuda/bin
export CUDA_HOME=/usr/local/cuda


Dynamic Horizontal Bar Chart beginAtZero not working correctly

Hello guys. I have dynamic horizontal bar chart. When i put data for the first time it starts from 0 but if i change the data the beginAtZero functionality seems not working for the second data. Here is example. https://jsfiddle.net/nxsncsa4/3/ every time i want to show only 3 bars and change them with another random 3 bars to start from 0 but they start from > 0 after i change the data for the second time

Maybe I'm not interpreting your question correctly, however if your goal is to start the x-axis at 0,
you should add the beginAtZero: true for the xAxes instead of the yAxes.


Remove TokenList as option for AvailabilityArgument

@swift-ci Please test

Sorry, accidentally merged this without waiting for your review @bnbarham. I’ll address comments in a follow-up PR.


Quickfix does not parse rspec error when the error message includes [Screenshot]

I'm running rspec test with 'dispatch' strategy, and expected quickfix to render list of file_name:line_numer format for all failed example.
My problem is : Not all failed example will be listed as navigatable in quickfix.
And as far as i can tell, the trouble happended only to the failed example with [Screenshot] content. Is there a way that we can parse the error message which includes screenshot?
Please refer to below reference.
Thanks in advance.
vimrc
let test#strategy = "dispatch"

spec.rb
  describe "vim test dispatch" do
    context "when working with example test" do
      it "should equals", :js do
        expect(2).to eq(1)
      end
      it{ expect(2).to eq(1) }
      it{ expect(2).to eq(1) }
    end
  end

result
there are 3 it block, one of which renders error with [Screenshot],
Quickfix
screen quickfix
Basic
screen for basic

Test.vim doesn't maintain the Vim compiler for RSpec, you should open a ticket a vim-ruby (but first make sure you're using the latest version of vim-ruby).


Bump swift-crypto to 3.0.0 in Package.swift

To address the error
Dependencies could not be resolved because root depends on 'swift-crypto' 2.5.0..<3.0.0 and 'swift-package-manager'
depends on 'swift-crypto' 3.0.0..<3.1.0.

related issue: https://github.com/apple/sourcekit-lsp/issues/903

@swift-ci test

Thank you for fixing the issue @joehsieh!


:wrench: Chore: Mark all the docs folders as generated

Description
https://github.com/github-linguist/linguist/blob/master/docs/overrides.md#generated-code
Testing
Explain the quality checks that have been done on the code changes
Additional Information

[ ] I read the contributing docs (if this is your first contribution)

Your ENS/address:

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #846

PR #848   👈

This stack of pull requests is managed by Graphite.


Yiang reduce automation triggler frequency

What type of PR is this?
type-enhancement

What this PR does / why we need it:
reduce trigger frequency of LOGIN_SUCCESS automation event
Which issue(s) this PR fixes:

Fixes #
https://github.com/oceanbase/odc/issues/789
Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:

PR title


[Bug][devops] log can not download

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened

log can not download
What do you expect to happen
download successfully.
How to reproduce

create bp
start bp
download log

Anything else
No response
Version
main
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Fixed and verified.


CI: Use black for code formatting

Just as an exercise to see if this would work.
I'm 50/50 on whether this is a good idea or not.

If we do decide to go forward with this, we should wait till large outstanding PRs are in. This branch will be relatively easy to update.

Also added coverage to the py36 build (turned off comments for now).

+1 on all or nothing
On Thu, Jun 28, 2018 at 7:34 AM, Tom Augspurger<EMAIL_ADDRESS>wrote:

@TomAugspurger commented on this pull request.
In dask_ml/_partial.py
https://github.com/dask/dask-ml/pull/237#discussion_r198808486:

 dsk = {(name, -1): model}

dsk.update({(name, i): (_partial_fit, (name, i - 1),

                                     (x.name, i, 0),

                                     (getattr(y, 'name', ''), i), kwargs)

           for i in range(nblocks)})

dsk.update(

   {

       (name, i): (

           _partial_fit,

           (name, i - 1),

           (x.name, i, 0),

           (getattr(y, "name", ""), i),

           kwargs,

       )

       for i in range(nblocks)

   }

Hmm... Agreed that this is less pleasant.
However, I'm inclined to do all or nothing here. Locally, I would set up a
pre-commit hook
https://github.com/ambv/black#version-control-integration and then
never worry about it again :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask-ml/pull/237#discussion_r198808486, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszKixk4uhNAD4W7axHTf5KxXeVKvxks5uBL84gaJpZM4U6MjO
.

@stsievert will wait for your +/- 1 here.
Will also wait for large PRs (hypberband) to be merged first.

:+1:, though that's dependent on being able to use # fmt in future PRs

Should we add black's .flake8 config? https://github.com/ambv/black/blob/master/.flake8 I got some errors about line length and binary operators after I formatted the Hyperband PR with black. They would have been resolved with their config.

though that's dependent on being able to use # fmt in future PRs

Maybe not. Not having to think about formatting would be really nice.

Should we add black's .flake8 config? https://github.com/ambv/black/blob/master/.flake8 I got some errors about line length and binary operators after I formatted the Hyperband PR with black.

https://github.com/dask/dask-ml/pull/237/files#diff-380c6a8ebbbce17d55d50ef17d3cf906 has the changes to linting settings so that flake8 still passes.

Not having to think about formatting would be really nice.

That's the hope :)

Rebased on master. Apologies for the force push, but I think having a clean git commit history of

configuration changes
auto-formatting
manual fixups

is useful here.
I'd like to merge this today if possible. I'll follow up with commits to outstanding PRs to use the new style.

Here goes.

Whoops, I just realized that I blew away the update to contributing.rst. Will do a followup now.


Coverage decreased (-56.5%) to 4.294% when pulling 20fd1d83f4abfedc1d3e91c4c40586b73267a361 on ghcs27:favorite_data_structure_resolved into 06a5e758f65dcb920f72b21353094b468173fa77 on SoCo:master.


Inconsistency about indexing same key and value between SQLite and cbforest

In case of emitting same key and value, cbforet does not index it, however SQLite indexes it. Following is sample map function. key and value is never changed whenever document is updated.
com.couchbase.lite.View view = mDatabase.getView("tasks");
if (view.getMap() == null) {
    Mapper map = new Mapper() {
        @Override
        public void map(Map<String, Object> document, Emitter emitter) {
            if ("task".equals(document.get("type"))) {
                List<Object> keys = new ArrayList<Object>();
                keys.add(document.get("list_id"));
                keys.add(document.get("created_at"));
                emitter.emit(keys, null);
            }
        }
    };
    view.setMap(map, "1.0");
}

For 1.3.0 release, we fixed this in ToDoLite.
https://github.com/couchbase/couchbase-lite-java-core/issues/1367

TODO: Write Unit Test - Correct more info

Unit Test: https://github.com/couchbase/couchbase-lite-android/commit/9b78bd99a14ae41debdcb7a1df915a278e33c0e7?diff=unified
Steps:

Create View which map function emit same key and value for unique document.
Create Live Query from View
Create document
Update document

SQLite: Live Query notify twice
ForestDB: Live Query notify once
Reason: ForestDB does not emit if both key and value is same with previous one.

Which behavior would be considered correct?  If the information has not changed, then has the query actually been updated?

@borrrden we could discuss this during next sprint planning?

Correct for each DB


bower: corrected filename of the main file

renamed 'angular-popup-windows.js' to 'angular-popup-window.js'

@jagged3dge thanks!


python3Packages.mariadb: 1.1.4 -> 1.1.10

Description of changes
@VergeDX is so lazy, so I'll help her to unbreak it.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@VergeDX doesn't use this package anymore and won't maintain it. So I'm removing her from maintainers.


feat(archive): Implement data retention. Closes #2273

Checklist:

[x] Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
[x] The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
[x] I have written unit and/or e2e tests for my change. PRs without these are unlike to be merged.
[x] Optional. I've added My organization is added to the README.
[x] I've signed the CLA and required builds are green.

Closes #2273
Testing
This must be manually tested.
Evidence of testing:
Disabled
time="2020-04-17T20:16:58Z" level=info msg="Archived workflows TTL zero - so archived workflow GC disabled - you must restart the controller if you enable this"

Enabled
time="2020-04-17T20:11:12Z" level=info msg="Performing archived workflow GC" periodicity=30s ttl=3m0s
...
time="2020-04-17T20:04:09Z" level=debug msg="Deleting offloaded nodes" uid=462323b6-3978-4fc3-b6ff-b19a79f9f565 version="fnv:525130960"
2020/04/17 20:04:09
	Session ID:     00001
	Query:          DELETE FROM "argo_archived_workflows" WHERE ("clustername" = $1 AND finishedat < current_timestamp - interval '180' second)
	Arguments:      []interface {}{"default"}
	Rows affected:  2
	Time taken:     0.00305s
	Context:        context.Background

time="2020-04-17T20:04:09Z" level=info msg="Deleted archived workflows" rowsAffected=2

@whynowy changes made as requested. Please can you re-review?

Re-run from failed.

Rerun from failed.


Open for Adoption

Kiwigrid Teams use Helm since a pretty long time and this plugin has been a important piece for all services built with Maven. That being said, we're moving away from Helm so continuously investing in the maintenance and development of Helm related open source can't be afforded forever.
So with this issue I'd like to inform that we're searching for a new owner and home of this project. If you're interested please comment with some details how you'd like to shape the future of the plugin and how you propose the move to be performed.
If we won't find a new home we're gonna archive the repository at some point in time.

Can it happen so that key maintainers/owners(let's say @jekkel and @axdotl) will review PRs(at least in terms of code quality) and perform releases once feature merged, while community(contributors) will act as main developers of plugin?

Well, anyway.
I can become new owner of this repo...
My plan:

Together with @jekkel and @axdotl migrate CI/CD on GitHub Actions in order to unlick from KiwiGrid infra(if there is some). I can take care of it.
Create development manifest. Store it in repo. Considering to have a short call to discuss key agreements.
Make list of maintainers/contributors in pom.xml up-to-date.
Smth else

Well, anyway. I can become new owner for this repo...
My plan:
* Together with @jekkel and @axdotl migrate CI/CD on GitHub Actions in order to unlink from KiwiGrid infra(if there is some). I can take care of it.

AFAIK it's built on travis CI, not our infra. So that might be safe already.

* Create development manifest. Store it in repo. Considering to have a short call to discuss key agreements.

* Make list of maintainers/contributors in `pom.xml` up-to-date.

* _Smth else_

My 2 ct on top:

let's remove kiwigrid from the maven groupID and from the java packages
let's release a last version with unchanged coordinates pointing users to the new coordinates via a warning log
migrate the repository ownership

That being said I wonder whether you got some supporters for being the maintainer...? Did you already contribute anything? How about pushing some PRs or issues forward as a "proof of work"?
@axdotl Any opinion from you here?

Any ideas reg new groupId?

Did you already contribute anything? How about pushing some PRs or issues forward as a "proof of work"?

For now I've raised 3 PRs:

Two of them my own initiative.
One based on opened issue.

That being said I wonder whether you got some supporters for being the maintainer...?

That is the harderst part I guess...

AFAIK it's built on travis CI, not our infra. So that might be safe already.

I'm whishing to have build on PRs. GitHub Actions allow to do that.

I filed a ticket for that one: #139

Any ideas reg new groupId?

Depends... Do you want to you move the project to your personal account or to an organizational account? I think the hosting entity is usually part of the package name then.

@jschwarze @fabian-schlegel How about your point of view? You've been contributing a lot and might want to take over the project as well?

I'd like to propose to move the repository together with the corresponding grade plugin to this project: https://github.com/kokuwaio/
For one reason, some of the contributors are also active there, but also the quite popular "helm-charts" project, which is somehow related, lives there.
After moving the projects I can adjust the Maven coordinates and parent POM and even create a release workflow.

That's a great idea! Please consider inviting @nazarovkv as a contributer or maintainer there.
In order to transfer the ownership you need to grant me (temporary) repository creation rights within kokuwa.io org. Note that there's a travis webhook which is going to be transferred as well.

Welcome kokuwa.io :)
@fabian-schlegel Thanks to you and your fellows for stepping in, I'm looking forward to contribute :+1:
(I think you could relate a PR for renaming everything to this ticket or close it and create a new one)


How to mock response for testing?

Everything is great so far but I am stuck with mocking the response.
For example, I am using a library like Mockito to mock the response. Then from JSON how I can mimic the response?
e.g. in http.Client we can mock the response like http.Response('Not Found', 404)
But I am not able to figure out how to do with this library so far!

All of the ferry data classes have toJSON / fromJSON methods

@smkhalsa Thank you so much for a very quick response!
I am using mockito library to generate mocks.
Yes, I can see the toJson / fromJSON And I have tried something:
@GenerateMocks([
  Client // Generate MockClient class
], customMocks: [
  MockSpec<OperationResponse<GEpisodesData, GEpisodesVars>>(as: #MockResponse) // Generate typed OperationResponse as MockResponse class
])
void main() {
  late MockClient mockClient;
  late MockResponse mockResponse;

  setUp(() {
    mockClient = MockClient();
    mockResponse = MockResponse();
  });

  GEpisodesData? getFakeData(){
    final jsonData = fixture("fixture_episodes.json"); // string data of `client.request(req).first->data->toJson`
    return GEpisodesData.fromJson(json.decode(jsonData));
  }

  test('should return success response',() async {
    when(mockResponse.data).thenReturn(getFakeData());
    when(mockClient.request(any).first) // <- throwing error here
        .thenAnswer((realInvocation) => Future.value(mockResponse));
    // then expect and stuff...
  });
}

But this test is throwing error:
dart:async                                                        Stream.first
test/data/remote/rick_and_morty_data_source_impl_test.dart 38:34  main.<fn>
test/data/remote/rick_and_morty_data_source_impl_test.dart 36:41  main.<fn>

Bad state: No element

I think it is related to mockClient.request(any) is being null or something not sure
Any example would be much helpful
Thanks

You can see the Ferry's tests for some guidance.
Otherwise, I suggest asking around on the discord.

I think any example here really could help a lot

Yeah, The link provided was not available. It would be really helpful if we could see an example test case in here or in PokemonExplorer.

You can see the Ferry's tests for some guidance.
Otherwise, I suggest asking around on the discord.

I updated the link above

Here is working example, i am testing fetchActiveSessions method of my ActiveSession class that call client.request and returns list of currently using devices (iphone, android) in chat app.
// Generate a MockClient using the Mockito package.
// Create new instances of this class in each test.
@GenerateMocks([
  Client
], customMocks: [
  MockSpec<OperationResponse<GActiveSessionListData, GActiveSessionListVars>>(
      as: #MockResponse) // Generate typed OperationResponse as MockResponse class
])
void main() {
  group('ActiveSessionList', () {
    test(
        'returns an ActiveSessionList if the query call completes successfully',
        () async {
      final client = MockClient();
      final mockResponse = MockResponse();

      final file = File('test/active_sessions_test.json');
      final jsonData = await file.readAsString();

      GActiveSessionListData? getTestData() {
        return GActiveSessionListData.fromJson(json.decode(jsonData));
      }

      when(mockResponse.data).thenReturn(getTestData());

      when(client.request(GActiveSessionListReq()))
          .thenAnswer((_) => Stream.fromFuture(Future.value(mockResponse)));

      var activeSessions = ActiveSessions(client);

      expect(await activeSessions.fetchActiveSessions(),
          isA<List<ActiveSession>>());
    });
  });
}

I was having the same problem, and for me it was not the serializer on build.yaml, cause it was already there. My problem was the json that i was sending to from json, i just copy and paste the response of my back end from insmonia, and it was like this
{
"data": {
"movies": {
"currentPage": 0,
"lastPageIndex": 3,
"pageSize": 10,
"movies": [
{
"id": "29912966"
}
]
}
}
}
But the fromJson method was giving that same error and putting null on my field that should be populated with thoose datas. TO SOLVE it, i just need to add the field '__typeName' that i suppose the ferry does it by his self, and remove the field 'data', and my mock json was updated to that
{
"__typename": "Query",
"movies": {
"__typename": "MoviesModel",
"currentPage": 0,
"lastPageIndex": 3,
"pageSize": 10,
"movies": [
{
"id": "29912966"
}
]
}
}
And worked :)


SOLR-16265 reduce memory usage of ContentWriter based requests in Http2SolrClient

https://issues.apache.org/jira/browse/SOLR-16265

Description
Initially started with addressing the TODO to remove extra buffer from the code (https://github.com/apache/solr/pull/1789/files#diff-db379c74efc9ff28acfd7571b07e16dbcdaa510783f2bee835b4a288927b5b3dR694). Ended up with removing all deprecated code to refresh implementation and bring it up to latest guidance.
It looks a bit more involved because some of the writers now need to push content after being setup, opposed to before style that was upfront setup of content.
To evaluate some performance aspect I ran exiting indexing benchmark. Numbers were equivalent, but heap footprint on benchmark client side saw a drop. posted screenshots below. if there are other tests I could run please let me know.
Solution
Please provide a short description of the approach taken to implement your solution.
Tests
Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.
Checklist
Please review the following and check all that apply:

[x] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[x] I have created a Jira issue and added the issue ID to my pull request title.
[x] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[x] I have developed this patch against the main branch.
[x] I have run ./gradlew check.
[x] I have added tests for my changes.
[ ] I have added documentation for the Reference Guide

Attaching memory footprint of client side during indexing benchmark. While perf numbers are very similar, memory footprint definitely sees a drop.

main branch

proposed patch

I wish we had more confidence in our tests (benchmark and unit) that a change like this that passed the tests could be assumed to correct ;-).   I like anything that removes deprecated code!

I wish we had more confidence in our tests (benchmark and unit) that a change like this that passed the tests could be assumed to correct ;-). I like anything that removes deprecated code!

oh yeah, I completely agree. how can we increase that confidence? I feel like there are quite a few tests already (running 'gradlew check' is already a lengthy affair)

thank you @risdenk and @markrmiller for the reviews. I have added one more change which was a bit awkward. I needed the request url for the exception message inside the async listener, so I moved some methods around to build the url first. it's the least bad solution I could come up with. this doesn't change much of the PR, so I will go ahead and try to push this in once the builds complete.

will push changes.txt to trigger a new build (I needed to do that anyway)


Battery optimization

(I'm not sure if this app is supposed to come preinstalled on a custom ROM or if it's intended to be installed afterwards by the user. The fact is, I did the latter, and my alarms didn't ring because battery optimization wasn't off for the app.)
A warning on the first start, saying that you should disable it for this app would be nice.

This app is no longer maintained, I don't have time I'm very busy, however there is another project of mine for that too I don't have time but it is more updated anyway.
https://github.com/qw123wh/new-clock/releases/tag/retail
However if you are on miui you will always have problems, try the other app it is more updated and better aesthetically


register gpu kernel for div_no_nan

This is a follow up PR for #21621.

ValueError: The use_gpu value used to get the cached session is different than the one that was used to create the session. Maybe create a new session with self.session()

Thank you, @drpngx . So will cache_session raise ValueError if use_gpu?

I initial thought it was due to this PR change in _test.py, but it was in some other test  in keras, so I think it was unrelated.

Oh, I see :-)


Drop not work with angular2 2.1

Hi,
I wanted to implement your module in my project but the behavior is not correct, I explain : The div I want to drop does not drop...
`

test

Place to drop

div to drag

test3

1 of 3

1 of 3

`
Thanks :)
Laurent.

Angular version: 2.1.0

I have the same issue on 2.1 I am able to drag the elements but they never drop.

Same here with Angular version 2.1.2, I replicated the example code but the drop doesn't react.

Same problem here :(

I'm on 2.1.0 and having no problem besides needing AOT.  I think I know what may be tripping you guys up, though.  The sample code doesn't seem to mention you need to add the attribute [dropEnabled]="true" to your drop slots.
Snippets from my code:
File drop zone, bootstrap well:

Implementation of google material design chips, drop enabled for doing a swap of the order:

@cviccaro Hello Chris,
I tried adding the "dropEnabled" attribute as you suggested, but still none of the functions (onDragEnter, onDropSuccess) are executed. Could you please provide a small Plunker with a working example? It would be much appreciated!
Thanks in advance!

I have the issue. Adding dropEnabled doesn't help.

Please try the latest 2.2.1

Please open another issue if it still exists.


Update status messages

This change is meant to liven up the status messages used on GitHub.

:+1:


yapb running on a debian server broke

Describe the bug
I'm trying to run a cstrike server on a debian 10 server, hlds is installed via steamcmd. Whenever I try to start the server with yapb, soon the game crashes with notice "segmentation fault", but running metamod without yapb or running in vanilla mode does not crashes. The server only installed metamod, csdm and yapb, other files remain not changed.
Expected behavior
I expect the game just runs and won't broke when someone connects to the server.
Video
If it's problem with AI behaviour, add video to help explain your problem.
Environment details:

OS: Linux Debian 10.4
Engine: vanilla 8684
GameDLL: both yapb standalone and metamod crashes
Metamod: both metamod or not crashes
Bot Version: 4.2.598
Game mode: both csdm and public crashes

Additionally, please provide list of AMX Mod X plugins: amxx plugins and list of Metamod plugins: meta plugins.
Additional context
It echoes "segmentation fault" when anyone connects to the server

Problem solved by adding "+map xx_xxx"


Support forcing specific auth method for AWS S3

Then we do not need to try again and again and again.

This feature is not needed any more.


Explore RO Crate and document potential use

Description from the RO Crate site:
A Research Object (RO) provide a machine-readable mechanism to communicate the diverse set of digital and real-world resources that contribute to an item of research. The aim of an RO is to replace traditional academic publication as a PDF with a couple of supplementary materials; to instead provide a structured archive of all the items that contributed to the research outcome, including their identifiers, provenance, relations and annotations.
Outcome of this issue would be documentation on RO Crate's potential utility to the OHDSI GIS/ Gaia project

RO-Crate is built on top of schema.org, JSON-LD and a schema.org extension from Bioschemas called ComputationalWorkflow. Alternatively, MedicalObservationalStudy along with extensions from EHDEN/GOFAIR and WorldFAIR WP7 (INSPIRE) is also built on top of schema.org and JSON-LD. Only it does both software packaging like RO-CRATE does AND it is an OHDSI knowledge graph too.
So when we consider the potential use of RO-CRATE there are perhaps two approaches to packaging schema:SoftwareSourceCode that OHDSI uses during the ETL process and subsequent data analyses.
This makes me think the decision to take one approach or the other to increase the FAIRness of OHDSI could be a community decision, not one that the GIS WG takes alone.

This exploration is currently ongoing on the https://github.com/OHDSI/GIS/tree/fairscape branch


Colors Hex - Incorrect

Would there be any reason my colors from my .clr file would appear in R.generated incorrectly?
For example, in Sketch, I'm saving "#F2F6F7" in my .clr file and in R.generated, I have:
/// #EFF4F5 White smoke
      static let whiteSmoke = Rswift.ColorResource(name: "White smoke", red: 0.935933113098145, green: 0.955909192562103, blue: 0.960774302482605, alpha: 1.0)

#EFF4F5 is VERY close to #F2F6F7, but not exact. This is happening with all of my colors. Am I doing something wrong?

I'm unable to reproduce this in the quick test I just did.
If I create a .clr file from the system color picker with a #F2F6F7 color, R.swift will interpret it as such.
How are you creating a .clr file from Sketch? I looked around and couldn't find a way to do that.
I did notice that R.swift currently always assumes a RGB color space, that might be incorrect on macOS and iOS 10 that support more color spaces. So maybe that is part of what's happening here.

It looks like what is happening is, when you are defining your colors, you are using the sRGB color space (which might be the default for Sketch, I'm not sure though), but R.swift expects colors to be defined in the Generic RGB color space. This is more of an issue with the format colors are saved in than an issue of R.swift generating the wrong colors.
I was able to reproduce the conversion from #F2F6F7 to #EFF4F5 in Xcode by doing the following:

Open the Color Picker in Xcode (through storyboard or anything else).
Select the second tab and choose RBG Slider.
Click the settings button and select sRGB.
Enter #F2F6F7 into the Hex Color field and press Enter.

Click the settings button again and this time, select Generic RGB.

You should see that the Hex value changes to #EFF4F5. This conversion happens implicitly when you save to your .clr file, so R.swift ends up generating colors for the converted values.
To fix this, with Generic RGB selected, reentering #F2F6F7  into the Hex Color field and pressing enter should give the correct color in the color space that R.swift is expecting.

You can re-save that new value to "White smoke" in your .clr file, and R.swift should generate the proper hex value for you.
Make sure you don't forget to press enter each time you update the Hex Color field, or Xcode won't register the change when you go to add your colors to your .clr file. Also, you'll need to copy the .clr file into your project so that R.swift can find it, if that's how you have R.swift setup.
I don't know if you can do something similar to changing the color space in Sketch, but as a second best option, if you follow the steps above, you should because to generate the proper colors for R.swift through Xcode. If this solves your problem, let me know and I'll submit a PR to update the documentation making this clear. If you are able to solve your problem using Sketch, I think that would be useful information to add to the documentation as well.
I hope this helps!

Awesome, thanks for the help guys!
@renrawnalon, I found these two links after digging more into this:
https://www.sketchapp.com/learn/documentation/other/color-management/
https://sketchtalk.io/discussion/2247/sketch-doesnt-do-color-management-and-why-thats-a-bad-idea
The second link provided the solution to making sure Sketch synced up correctly with Xcode. In short, Sketch was saving the colors in reference to my monitor's color gamut. It was set on a color setting that was effectively sRGB. By changing my monitor's display profile to Generic RGB Profile and rebuilding each of my saved colors in Sketch that I used for my .clr file with the new hex values like you mentioned, everything translates correctly once added to Xcode. Of course, this solution might not work for those who calibrate their monitors, but changing the color profile made a negligible difference for me personally.

@xiaosongshu I'm glad you were able to find a solution within Sketch. It would have been really inconvenient if you had to go through Xcode to generate proper rgb values for your .clr file.
@tomlokhorst @mac-cain13
Two questions.

Do you think that the solution to this problem is worth mentioning somewhere in the documentation or the FAQ? The reason I knew where to look for the solution is because I came across this same problem recently when using custom .clr files that I created in Xcode, and didn't even realize it until the designer on my team pointed it out to me. Others might be experiencing this same problem without realizing it as well.
If you'd like, I'd be happy to submit a PR to update the documentation with the information in this issue.

Given this added complication in using .clr files (properly) in R.swift, might it be worth reconsidering support of .txt or .json file formats as an alternative to .clr files, as mentions here? I know that the issue of colors is on the very edge of the scope of R.swift, and generating proper .clr files is completely outside of scope, but specifying rgba values in text format would be a surefire way of avoiding the problem of this issue. It might be best to continue this discussion on the original issue if you think it merits reconsideration.

@renrawnalon Feel free to create a PR that explains this in de docs! Seems like something that would be nice to document somewheren.
I still have mixed feelings about color json/txt files, but I get your point. I'm also thinking about more of a "style" file where you also can predefine font styles for example. To make collaboration with designers easier. Again that is not really the scope. Maybe we should remove colors completely from R.swift and create another tool to do such a thing.
Have to think a little more about it.

With regards to the current situation:
I think the fact that R.swift always interprets a .clr file as RGB, is simply a bug.
On iOS 10 it should be possible to use other color spaces, so R.swift should output the correct code for that.
If we don't want to add that feature yet (or for iOS versions below 10), R.swift should refuse to process the .clr file, if it isn't in RGB, and emit a warning.

This is fixed in the next release by PR #312, for P3 color support is a seperate ticket: https://github.com/mac-cain13/R.swift/issues/317


Implement decorator and isInIframe method

This PR addresses issues #63 and #66
Currently, on token renewal, an iframe is attached to the DOM which ultimately host an instance of the client app (due to auth redirect). In this case, any XHR requests associated with the given route will go out. This PR prevents any authenticated requests from going out from an iframe by implementing a decorator which, when applied to token acquisition methods, will return a never-to-be-fulfilled promise, if the current window is in an iframe.
Furthermore whenever the MSAL.js client automatically calls a token acquisition method, there is a risk of a repeated or infinite series of nesting iframes. If token renewal fails, and the client app automatically requests a token, the instance of the application in the iframe will trigger another renewal request in yet another iframe. If the token renewal requests will fail indefinitely, e.g. if the wrong response type is used, this sequence will also be indefinite.

@austindyoung,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot