Cannot read properties of undefined (reading 'kind')

Bug description
Hello,
When attempting to create a ChatActivity object, an error occurs, preventing the process from completing. The error message indicates a TypeError related to reading the ‘kind’ property of an undefined object. This issue arises within the @prisma/client library, specifically in the runtime files during the mapping process.
The bug consistently happens at the creation step, suggesting a potential issue with the data mapping or structure of the CreateChatActivityDto, most likely there is an issue with the activityContent field. Once I remove it from the dto, the creation is successful. activityContent is a JSON object, and has type Json in schema.prisma.
If any information is missing, let me know. I would kindly ask you to ignore my ignorance, as I am new to GitHub Issue reports 😃
The Error
[Nest] 16668  - 06/18/2024, 4:32:40 PM   ERROR [ExceptionsHandler] Cannot read properties of undefined (reading 'kind')
TypeError: Cannot read properties of undefined (reading 'kind')
    at Ka (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:115:2921)
    at Ka (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:115:2938)
    at Array.map (<anonymous>)
    at Id (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:115:2832)
    at wn (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:114:2205)
    at Ga (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:114:308)
    at wn (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:114:2423)
    at Tn (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:115:6662)
    at In.handleRequestError (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:122:6533)
    at In.handleAndLogRequestError (/Users/daniel/Programmieren/Eigene Projekte/Academi.fy/backend/node_modules/@prisma/client/runtime/library.js:122:6211)

How to reproduce

Install Nest.js with Prisma ORM
Setup Prisma with PostgreSQL and GraphQL:

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

generator nestgraphql {
  provider                              = "node node_modules/prisma-nestjs-graphql"
  output                                = "../src/@generated-types"
  fields_Validator_from                 = "class-validator"
  fields_Validator_input                = true
  requireSingleFieldsInWhereUniqueInput = true
  emitSingle                            = true
  emitCompiled                          = true
  purgeOutput                           = true
  noTypeId                              = true
}

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

Create the desired Model (ChatActivity in my case):

model ChatActivity {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  chat   Chat   @relation("ChatActivity", fields: [chatId], references: [id])
  chatId String @db.Uuid

  executor   User   @relation("UserChatActivity", fields: [executorId], references: [id])
  executorId String @db.Uuid

  readBy User[] @relation("ReadChatActivity")

  answerTo   ChatActivity? @relation("ChatActivityAnswer", fields: [answerToId], references: [id])
  answerToId String?       @db.Uuid

  answeredBy ChatActivity[] @relation("ChatActivityAnswer")

  type            ChatActivityType
  activityContent Json

  starred Boolean @default(false)

  @@map("activities")
}

Try to create a new instance of said object in the database with the following dto structure:

import { Field, InputType } from '@nestjs/graphql';
import { ChatActivityType } from '@/@generated-types';
import {
  IsBoolean,
  IsEnum,
  IsObject,
  IsOptional,
  IsString,
} from 'class-validator';
import { GraphQLJSON } from 'graphql-type-json';

@InputType()
export class CreateChatActivityDto<T> {
  @Field(() => GraphQLJSON)
  @IsObject()
  activityContent: T;

  @Field(() => String, { nullable: true })
  @IsString()
  @IsOptional()
  answeredBy?: string;

  @Field(() => String, { nullable: true })
  @IsString()
  @IsOptional()
  answerTo?: string;

  @Field(() => String)
  @IsString()
  chat: string;

  @Field(() => String)
  @IsString()
  executor: string;

  @Field(() => [String], { nullable: true })
  @IsString()
  @IsOptional()
  readBy?: string[];

  @Field(() => ChatActivityType)
  @IsString()
  @IsEnum(ChatActivityType)
  type: ChatActivityType;

  @Field(() => Boolean, { nullable: true })
  @IsBoolean()
  @IsOptional()
  starred?: boolean;
}

Expected behavior
An new instance of ChatActivity is supposed to be created in the database.
Prisma information
Prisma Schema
generator client {
  provider = "prisma-client-js"
}

generator nestgraphql {
  provider                              = "node node_modules/prisma-nestjs-graphql"
  output                                = "../src/@generated-types"
  fields_Validator_from                 = "class-validator"
  fields_Validator_input                = true
  requireSingleFieldsInWhereUniqueInput = true
  emitSingle                            = true
  emitCompiled                          = true
  purgeOutput                           = true
  noTypeId                              = true
}

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

model Badge {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  description String
  image       String
  name        String
  users       User[] @relation("UserBadge")

  @@map("badges")
}

model Blackboard {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  authors    User[]          @relation("BlackboardAuthor")
  coverImage String?
  school     School          @relation("SchoolBlackboard", fields: [schoolId], references: [id])
  schoolId   String          @db.Uuid
  tags       BlackboardTag[] @relation("BlackboardBlackboardTag")
  targets    User[]          @relation("BlackboardTarget")
  text       String?
  title      String

  @@map("blackboards")
}

model BlackboardTag {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  blackboards Blackboard[] @relation("BlackboardBlackboardTag")
  name        String       @unique

  @@map("blackboard_tags")
}

model Chat {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  activities ChatActivity[] @relation("ChatActivity")
  avatar     String?
  clubs      Club[]         @relation("ClubChat")
  courses    Course[]       @relation("CourseChat")
  name       String
  targets    UserChat[]     @relation("ChatTarget")
  type       ChatType

  @@map("chats")
}

model ChatActivity {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  chat   Chat   @relation("ChatActivity", fields: [chatId], references: [id])
  chatId String @db.Uuid

  executor   User   @relation("UserChatActivity", fields: [executorId], references: [id])
  executorId String @db.Uuid

  readBy User[] @relation("ReadChatActivity")

  answerTo   ChatActivity? @relation("ChatActivityAnswer", fields: [answerToId], references: [id])
  answerToId String?       @db.Uuid

  answeredBy ChatActivity[] @relation("ChatActivityAnswer")

  type            ChatActivityType
  activityContent Json

  starred Boolean @default(false)

  @@map("activities")
}

model Class {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  courses        Course[] @relation("ClassCourse")
  grade          Grade    @relation("ClassGrade", fields: [gradeId], references: [id])
  gradeId        String   @db.Uuid
  members        User[]   @relation("ClassMember")
  school         School   @relation("ClassSchool", fields: [schoolId], references: [id])
  schoolId       String   @db.Uuid
  specifiedGrade String?

  @@map("classes")
}

model Club {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  avatar       String?
  chat         Chat?     @relation("ClubChat", fields: [chatId], references: [id])
  chatId       String?   @db.Uuid
  coverImage   String?
  description  String?
  events       Event[]   @relation("ClubEvent")
  leaders      User[]    @relation("ClubLeader")
  location     String?
  meetingDay   Day?
  meetingTime  String?
  members      User[]    @relation("ClubMember")
  name         String
  requirements Json[]
  school       School    @relation("ClubSchool", fields: [schoolId], references: [id])
  schoolId     String    @db.Uuid
  tags         ClubTag[] @relation("ClubClubTag")

  @@map("clubs")
}

model ClubTag {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  clubs Club[] @relation("ClubClubTag")
  name  String

  @@map("club_tags")
}

model Course {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  chat      Chat?   @relation("CourseChat", fields: [chatId], references: [id])
  chatId    String? @db.Uuid
  classes   Class[] @relation("ClassCourse")
  members   User[]  @relation("CourseMember")
  name      String
  subject   Subject @relation("CourseSubject", fields: [subjectId], references: [id])
  subjectId String  @db.Uuid
  teacher   User    @relation("CourseTeacher", fields: [teacherId], references: [id])
  teacherId String  @db.Uuid

  @@map("courses")
}

model Event {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  clubs       Club[]        @relation("ClubEvent")
  description String?
  endDate     DateTime
  host        String
  information Json[]
  location    String?
  school      School        @relation("EventSchool", fields: [schoolId], references: [id])
  schoolId    String        @db.Uuid
  startDate   DateTime
  subscribers User[]        @relation("EventSubscriber")
  tickets     EventTicket[] @relation("EventEventTicket")
  title       String

  @@map("events")
}

model EventTicket {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  buyer    User     @relation("EventTicketBuyer", fields: [buyerId], references: [id])
  buyerId  String   @db.Uuid
  event    Event    @relation("EventEventTicket", fields: [eventId], references: [id])
  eventId  String   @db.Uuid
  price    Int
  saleDate DateTime

  @@map("event_tickets")
}

model Grade {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  classes  Class[]    @relation("ClassGrade")
  level    GradeLevel
  school   School     @relation("SchoolGrade", fields: [schoolId], references: [id])
  schoolId String     @db.Uuid

  @@map("grades")
}

model School {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  blackboards    Blackboard[] @relation("SchoolBlackboard")
  classes        Class[]      @relation("ClassSchool")
  clubs          Club[]       @relation("ClubSchool")
  events         Event[]      @relation("EventSchool")
  grades         Grade[]      @relation("SchoolGrade")
  members        User[]       @relation("SchoolMember")
  name           String       @unique
  setupAccount   SetupAccount @relation("SchoolSetupAccount", fields: [setupAccountId], references: [id])
  setupAccountId String       @unique @db.Uuid
  subjects       Subject[]    @relation("SubjectSchool")

  @@map("schools")
}

model SetupAccount {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  school     School? @relation("SchoolSetupAccount")
  schoolId   String? @db.Uuid
  schoolName String  @unique

  @@map("setup_accounts")
}

model Subject {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  courses   Course[]    @relation("CourseSubject")
  school    School      @relation("SubjectSchool", fields: [schoolId], references: [id])
  schoolId  String      @db.Uuid
  shortName String
  type      SubjectType @unique

  @@map("subjects")
}

model User {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  avatar                String?
  badges                Badge[]        @relation("UserBadge")
  blackboards           Blackboard[]   @relation("BlackboardAuthor")
  blackboardsReceived   Blackboard[]   @relation("BlackboardTarget")
  birthday              String?
  chatActivitiesCreated ChatActivity[] @relation("UserChatActivity")
  classes               Class[]        @relation("ClassMember")
  clubs                 Club[]         @relation("ClubMember")
  clubsAsLeader         Club[]         @relation("ClubLeader")
  courses               Course[]       @relation("CourseMember")
  coursesAsTeacher      Course[]       @relation("CourseTeacher")
  events                Event[]        @relation("EventSubscriber")
  eventTickets          EventTicket[]  @relation("EventTicketBuyer")
  firstName             String
  lastName              String
  readActivities        ChatActivity[] @relation("ReadChatActivity")
  schools               School[]       @relation("SchoolMember")
  type                  UserType
  userAccount           UserAccount    @relation("UserUserAccount", fields: [userAccountId], references: [id])
  userAccountId         String         @unique @db.Uuid
  userChats             UserChat[]     @relation("UserUserChat")

  @@map("users")
}

model RefreshToken {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  expiresAt     DateTime
  token         String      @unique
  userAccount   UserAccount @relation("RefreshTokenUser", fields: [userAccountId], references: [id])
  userAccountId String      @db.Uuid

  @@map("refresh_tokens")
}

model UserAccount {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  email    String? @unique
  password String
  user     User?   @relation("UserUserAccount")
  userId   String? @db.Uuid
  username String  @unique

  refreshTokens RefreshToken[] @relation("RefreshTokenUser")

  @@map("user_accounts")
}

model UserChat {
  id        String   @id @default(uuid()) @db.Uuid
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  chat   Chat    @relation("ChatTarget", fields: [chatId], references: [id])
  chatId String  @db.Uuid
  hidden Boolean @default(false)
  pinned Boolean @default(false)
  read   Boolean @default(true)
  user   User    @relation("UserUserChat", fields: [userId], references: [id])
  userId String  @db.Uuid

  @@map("user_chats")
}

enum Day {
  Monday
  Tuesday
  Wednesday
  Thursday
  Friday
  Saturday
  Sunday
}

enum GradeLevel {
  G5
  G6
  G7
  G8
  G9
  G10
  G11
  G12
}

enum SubjectType {
  ART
  BIOLOGY
  CHEMISTRY
  COMPUTER_SCIENCE
  ECONOMICS
  ENGLISH
  ETHICS
  FRENCH
  GEOGRAPHY
  GERMAN
  HISTORY
  IMP
  ITALIAN
  LATIN
  MATHS
  MUSIC
  NWT
  PHYSICS
  POLITICS
  RELIGION
  SPANISH
  SPORT
}

enum UserType {
  ADMIN
  TEACHER
  STUDENT
}

enum ChatActivityType {
  MESSAGE_SEND
  MESSAGE_EDIT
  MESSAGE_DELETE
  MESSAGE_ANSWER
  ACTIVITY_STAR
  ACTIVITY_UNSTAR
  POLL_SEND
  POLL_EDIT
  POLL_DELETE
  POLL_VOTE
  POLL_UNVOTE
  POLL_CLOSE
  POLL_REOPEN
  POLL_RESULT
  CHAT_TARGET_ADD
  CHAT_TARGET_REMOVE
  CHAT_COURSE_ADD
  CHAT_COURSE_REMOVE
  CHAT_CLUB_ADD
  CHAT_CLUB_REMOVE
  CHAT_NAME_CHANGE

  CHAT_AVATAR_CHANGE
}

enum ChatType {
  GROUP
  PRIVATE
  COURSE
}

Code interacting with Prisma Client
async processCreateChatActivity(
    dto: CreateChatActivityDto<any>,
  ): Promise<ChatActivity> {
    const chatActivity: ChatActivity = await this.prisma.chatActivity.create({
      data: {
          activityContent: dto.activityContent
          ? { ...dto.activityContent }
          : undefined,
        answeredBy: dto.answeredBy
          ? this.connectSingle(dto.answeredBy)
          : undefined,
        answerTo: dto.answerTo ? this.connectSingle(dto.answerTo) : undefined,
        chat: dto.chat ? this.connectSingle(dto.chat) : undefined,
        executor: dto.executor ? this.connectSingle(dto.executor) : undefined,
        readBy: dto.readBy ? this.connectArray(dto.readBy) : undefined,
        type: dto.type ? dto.type : undefined,
      },
      include: {
        ...chatActivityNesting,
      },
    });
    if (!chatActivity)
      throw new Error(`ChatActivity could not be created with data: ${dto}`);

    return chatActivity;
  }

Environment & setup

OS: MacOS Sonoma (ver. 14.5), also Windows 11 Home (ver. 10.0.22631; build 22631)

Database: PostgreSQL

Node.js version: v20.11.1

Nest.js version: v10.3.2

Prisma Version
Environment variables loaded from .env
prisma                  : 5.15.0
@prisma/client          : 5.15.0
Computed binaryTarget   : darwin-arm64
Operating System        : darwin
Architecture            : arm64
Node.js                 : v20.11.1
Query Engine (Node-API) : libquery-engine 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022 (at<EMAIL_ADDRESS>Schema Engine           : schema-engine-cli 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022 (at node_modules/@prisma/engines/schema-engine-darwin-arm64)
Schema Wasm             : @prisma/prisma-schema-wasm 5.15.0-29.12e25d8d06f6ea5a0252864dd9a03b1bb51f3022
Default Engines Hash    : 12e25d8d06f6ea5a0252864dd9a03b1bb51f3022
Studio                  : 0.501.0

HI @Daanieeel
Is there any chance you could provide an isolated example, with just prisma client and no NestJS stuff? Ideally, we'd like to know the exact data create method gets when the error happens. Right now, unfortunately, it's impossible to reconstruct it from your provided snipped as we don't know what's in DTO, chatActivityNesting or what do connectSingle or connectArray do.
Thank you!

Hey,
of course, just did: https://github.com/Daanieeel/prisma-issue-github
Strangely enough, now it works, even though I used the exact same schema.

Alright, I was able to fix the issue.
However, I don't know exactly how and I still don't know, what the error was.

I reinstalled node
I deleted all node_modules and added them again
I deleted all Prisma files and migrated again
I reset my Docker image and reinstalled Postgres
I reinstalled TypeScript

I have no idea, which step exactly helped me. I suspected step 3 initially and had tried it before I opened the issue - didn't work. (If someone reading this has the same problem, maybe try step 3 first)
Thank you nevertheless, and good luck to everybody with any similar issues

I had the similar problem (probably the same). I deleted all node_modules and added them again and worked for me.
Thank you.

I did all of the following:
deleted node_modules and ran npm i
cleared the database and migrated and pushed
I'm still getting this error: prisma:error Cannot read properties of undefined (reading 'kind'). And it only happens when I run await prisma.jobs.create({ data: jobCreateData }) (wrote this today). Everything else worked normally, like it's been working for months on end now.
Here's my Jobs table:
model Jobs {
  id                 String    @id @default(uuid())
  slug               String    @unique()
  createdAt          DateTime  @default(now())
  updatedAt          DateTime  @updatedAt
  title              String
  description        String
  posted_at          DateTime?
  expires_at         DateTime?
  type               String
  level              String
  min_salary         String?
  max_salary         String?
  salary_currency    String?
  apply_url          String
  source             JobSource @default(inhouse)
  is_live            Boolean   @default(false)
  approval_status    String?   @default("Pending verification and approval")
  analytics_link     String?
  metadata           String?
  company            Company   @relation(fields: [companyId], references: [id], onDelete: Cascade)
  companyId          String
  paid               Boolean   @default(false)
  verified           Boolean   @default(false)
  outsourced         Boolean   @default(true)
  featured           Boolean   @default(false)
  tags               String[]
  perks              String[]
  skills             String[]
  forms              Forms?
  recommendedTalents String[]
  user               User[]
  payments           Payments? @relation(fields: [paymentsId], references: [id])
  paymentsId         String?
  category           String
  subcategory        String
}

I'm positive that I'm passing valid data. I've been at this for hours on end, and I've exhausted every last possibility I could think of. Perhaps it's a bug, especially since I've seen similar issues. And I don't have 'kind' anywhere in my codebase.
Any help please? Thanks in advance.
:(

I did all of the following: deleted node_modules and ran npm i cleared the database and migrated and pushed
I'm still getting this error: prisma:error Cannot read properties of undefined (reading 'kind'). And it only happens when I run await prisma.jobs.create({ data: jobCreateData }) (wrote this today). Everything else worked normally, like it's been working for months on end now.
Here's my Jobs table:
model Jobs {
  id                 String    @id @default(uuid())
  slug               String    @unique()
  createdAt          DateTime  @default(now())
  updatedAt          DateTime  @updatedAt
  title              String
  description        String
  posted_at          DateTime?
  expires_at         DateTime?
  type               String
  level              String
  min_salary         String?
  max_salary         String?
  salary_currency    String?
  apply_url          String
  source             JobSource @default(inhouse)
  is_live            Boolean   @default(false)
  approval_status    String?   @default("Pending verification and approval")
  analytics_link     String?
  metadata           String?
  company            Company   @relation(fields: [companyId], references: [id], onDelete: Cascade)
  companyId          String
  paid               Boolean   @default(false)
  verified           Boolean   @default(false)
  outsourced         Boolean   @default(true)
  featured           Boolean   @default(false)
  tags               String[]
  perks              String[]
  skills             String[]
  forms              Forms?
  recommendedTalents String[]
  user               User[]
  payments           Payments? @relation(fields: [paymentsId], references: [id])
  paymentsId         String?
  category           String
  subcategory        String
}

I'm positive that I'm passing valid data. I've been at this for hours on end, and I've exhausted every last possibility I could think of. Perhaps it's a bug, especially since I've seen similar issues. And I don't have 'kind' anywhere in my codebase.
Any help please? Thanks in advance. :(
PS: Logged the error here:

Fixed. I realized that I was importing an object instead of an array of strings. Also realised that vscode's typescript can be buggy (and therefore misleading)

Though this is closed, I do think my mistake is well documenting: I supplied undefined.


[nrf noup] cmake: include nrf reports cmake from repo

To make patches simpler and diff smaller.
nrf pr https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1741
Signed-off-by: Håkon Øye Amundsen<EMAIL_ADDRESS>

This repository's history has been rewritten for the v1.2 release. Please rebase this PR if still relevant, or close it if no longer needed. Thanks!

This could simply be a revert of the original commit adding these lines, but it looks like all the PM commits has been squashed, so I'm not sure how to do this in a way which simplifies the upmerge process. @mbolivar does this look OK?

Ping @SebastianBoe

@mbolivar does this look OK?

Looks great. I'll squash it in next rebase.


Using Interstitial ad with AppOpen ad

Currently Im using native_admob_flutter to my flutter app. I also included AppOpen Ad and Interstital ad.
I want to display the AppOpen ad when user open the app/ resume to the app, here is how I do it in main.dart:
Future<void> didChangeAppLifecycleState(AppLifecycleState state) async {
switch (state) {
  case AppLifecycleState.resumed:
    loadAndDisplayAppOpenAd();
    break;
  case AppLifecycleState.inactive:
    break;
  case AppLifecycleState.paused:
    break;
  case AppLifecycleState.detached:
    break;
}
}

However I found that displaying Interstial ad will also change the app state -> inactive -> paused -> resume, which trigger AppOpen ad.
Is there a way to overcome this?

Maybe https://pub.dev/packages/flutter_fgbg

Maybe https://pub.dev/packages/flutter_fgbg

Thanks for the quick response, tested on both ios and android and works like a charm!!


Spark2 CI

TL;DR
alll-spark3 is the same as all for some time, so we are not testing spark2 in CI. This PR adds it.
Type

[x] Bug Fix
[ ] Feature
[ ] Plugin

Are all requirements met?

[ ] Code completed
[ ] Smoke tested
[ ] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
Remove all-spark3 and test all-spark2.4.
Tracking Issue
NA
Follow-up issue
NA

@wild-endeavor PTAL, thanks.

Sorry I rebased from main branch and need a new approval. @wild-endeavor


CB-18661 avoid the "ssl" directive is deprecated warning message, and…

… delete the dead code and free up the port 1080.

This is more than 3 months old

This is more than 3 months old

Yes, and we still couldn't decide whether it was some kind of experiment, an unfinished PR, a leftover PoC, etc. No proof of test (image burned from branch), no ticket, no description. Whatever we merge in we do it super carefully because it can have an immediate impact on images we send to production or it can simply hinder our daily operation.

I see, the counterpart of this where we are overwriting the ssl.conf is in production since October: https://github.com/hortonworks/cloudbreak/commit/07e4c37a9992fb44366b73f5dfa8c97be1c9bd17
I have tested it manually overwriting the mentioned files.


ModelArrayRef should provide access to Eigen::Matrix data

ModelArrayRef is built around ModelArray and its Eigen::Array base. The data stored in the dynamics is contained in Eigen::Matrix variables. If the access to these was entirely transparent, then the dynamics data could be easily shared into the physics code. The trick is to do this with a minimum of interference to the existing dynamics code and classes.

Since ModelArrayRef is just wrapper around accessing the ModelArray* ModelComponent::sharedArrays and const ModelArray* ModelComponent::protectedArrays, the stored pointers to ModelArray instances should allow access to a class that holds a Eigen::Matrix, rather than a Eigen::Array. This could potentially be achieved by a derived class, though that does introduce virtual functions where they are not necessarily welcome.
However, the other place where ModelArray is used is as part of ModelState. This directly contains copies of the ModelArray data, and so to work in the same fashion, there needs to be only one ModelArray class with no derived classes and no templating.

Possible solutions

Copy data in to and out from the dynamics arrays at the start and end of the dynamics part.

Could be very slow.

Build ModelArray around the common Eigen base class of both Array and Matrix and make sure the right operations occur on the right interpretation of the data
Build ModelArray around Eigen::Matrix. Provide transparent pass-throughs for the Matrix operations

These two options rely on the Magdeburg group being willing to use the Nextsim::ModelArray class rather than the underlying Eigen::Matrix class.

Change ModelArray to be a typedef of Eigen::Matrix, and rework everything else around that concept

Provide some helper functions/classes to do everything that the current ModelArray class does

Please refer to PR number and close issue.

Merged as part of PR #101
Closed.


Persist file index across app restarts

I feel like I see this a lot

Would also like to +1 this issue as my work's projects can take a while to index. Most times I am just restarting Atom or my computer without making any project changes, but I end up having to re-index every time.

The same thing for me.
It seems the issue related to this one https://github.com/atom/fuzzy-finder/issues/88

+1

Project indexing could start automatically when adding a project folder in workspace. Sometimes I forget to click Ctrl+P when starting Atom and when I need Ctrl+P the indexing is not ready yet, so Atom still has to start the project indexing and it takes some time...


KAFKA-9066: Retain metrics for failed tasks

Jira
Right now, sink and source task JMX metrics are dropped as soon as the task fails. The changes here cause these metrics to be retained even if the task fails, and instead only be removed when the task has been shut down or abandoned during shut down by the worker.
Existing unit tests are modified to account for this tweak in the worker logic.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@gharris1727, @cyrusv, @ncliang, would any of you mind taking a look when you have a moment?

Thanks @ncliang! @rhauch, @kkonstantine would one of you mind taking a look at this when you have a moment?

ok to test

retest this please

Retest this please

One concern I have is that we're not actually verifying in any of the tests that the task metrics are cleaned up when a connector is deleted, and that the tasks that remain after a worker fails are cleared and don't hinder the re-creation of the task metrics if the connector is restarted. Thoughts?

@rhauch it'd be nice to verify this in tests but unfortunately I didn't notice your comment earlier in the day and I don't think I have time to adjust/write new test cases to account for this. It also looks like the possibility you pointed out about hindering re-creation of task metrics isn't super likely given that tasks proactively clear out any metrics set up for older instances on startup: https://github.com/apache/kafka/blob/6abb913c6449113141582921340994c0d5e50839/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java#L352-L353
If this is still a sticking point, could we log a backlog ticket for those testing improvements and address it as time permits after the 2.6 release?

@C0urante the original description doesn't mention that the task metrics for a failed task will also be removed when the connector is deleted (in addition to the worker stopping or the tasks completing gracefully). Can you confirm my understanding, and if I'm right can you please update the description?

@rhauch sure, I can update the description to make it clear that we will still remove task metrics when a connector is deleted.


UdpSocket: Sync On Windows, !Sync On Unix

I am not sure if this has been brought up before as I couldn't find anything in the issue tracker, so apologies if this is a duplicate. The only thing I found was this which looks like sharing Overlapped on Windows was added explicitly.
It seems that on Windows, mio's UdpSocket is safe to share between threads, however, on Unix platforms, this is not the case and a compile error is generated.
I am not sure if the lack of Sync is due to differences between iocp and epoll, but it would be nice to be able to shared a single UdpSocket between multiple threads on both platforms.

This was a design decision.  Technically speaking two threads shouldn't access an fd at exactly the same time, as the results are undefined, so it needs to be wrapped in something that would Marshall access. The API design forces this.
As far as Windows goes, I think the implementation required that the descriptor be shared among multiple threads, and I think it is thread safe.
I'm investigating whether its time to just migrate all of Mio's net types over to Rust since their net stdlib should have all of the appropriate support now.  Afaict,  Rust's UdpSocket isn't sync either.
https://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html
I'm going to label this as wontfix, but I'm open to hearing more compelling reasons why we should allow it.

I believe Rust's UdpSocket is indeed thread safe. This compiles and runs fine:
use std::thread::{self};
use std::net::{UdpSocket};
use std::sync::{Arc};
use std::time::{Duration};

fn main() {
    let sock = Arc::new(UdpSocket::bind("<IP_ADDRESS>:0").unwrap());

    let sock_clone = sock.clone();
    thread::spawn(move || {
        println!("{:?}", sock_clone.local_addr());
    });

    println!("{:?}", sock.local_addr());
    thread::sleep(Duration::from_millis(500));
}

So if you guys are planning on making the switch, you may get this for free.

@rrichardson I believe that this was just accidental and hasn't been updated since then, I very intentionally made all of the windows types Sync as this allows having something like Arc<TcpSocket> which can often be quite useful.
As @GGist points out the underlying OS networking types are safe to use across multiple threads, including reads and writes. You'll probably get nonsensical results if you write concurrently or read concurrently, but reading and writing concurrently is generally an expected operation (e.g. one thread reading, another writing).
I also don't think mio can move to vanilla libstd networking types because on Windows at least there must be a layer (lots of shenanigans there) and to have a cross platform API that means there needs to be a layer on Unix as well.

Yea. I just looked at the shenanigans. We're not getting clear of those any time soon. I think that we could at least fulfill the interfaces with the std::net on Unix, which would cut down on some of the duplicated functionality, but that's an issue for a separate ticket.
I agree that the underlying file descriptor can and should be usable across threads, after all, it is just an int (on *nix at least).  The UdpSocket, however, has additional mutable state. A cell, which is used as the explicit example of things that shouldn't be Sync.
From a usability standpoint,  I'm trying to sort out which is better:  Share the UdpSocket or share the underlying fd.  I'm leaning towards the FD, because the additional state in UdpSocket is the selector_id, which associates it with a poller.  If two threads want to poll the same fd with their own epoll's this is acceptable, but for them to do it on the same UdpSocket is nonsensical in the current implementation.

The UDP/TCP implementation on Unix have a selector id associated with them to exhibit the same semantics as found on Windows which is that a socket can be associated with at most one event loop. (this can be worked around with EventedFd, however). The Cell that is currently used to implement it can be trivially replaced with AtomicUsize, however, so there's no fundamental need for !Sync

Since the selector_id is used in a very opaque way, I guess it wouldn't be the end of the world to use an atomic and a sentinel value in place of the Option<>
We need to keep parity with the windows API, and since it doesn't have the notion of a file descriptor,  a Udp/TcpSocket object will have to do.
I still have some concerns, though, reading/writing a socket from multiple threads is certainly something that we should support.  But what about polling?  Polling the same fd from multiple event dispatchers is a technique employed with epoll.  (Not sure about the others APIs)   The current implementation of the *Socket objects would not support that, and one would have to clone the object (or the underlying fd) so it would be pointless to make the object Sync, and one would just duplicate it or the underlying fd instead.

The fix is on dev waiting for CI to pass.


Move CloudBank institutions to the new cloudbank cluster

Once #35 happens, we'll probably want to deploy hubs that are funded by CloudBank to <hubname>.cloudbank.2i2c.cloud (instead of .pilot.2i2c.cloud). This includes

spelman
ccsf
elcamino

I think right now none of these have actual users, so we can probably just delete them and move them over-straightaway. Or, we could use it as an opportunity to document how a hub can be moved between projects.

Hi - just checking in on the status of this before a meeting tomorrow at 12pm PDT  @yuvipanda

@yuvipanda when I try to log on I got:

@choldgraf   Thanks - looks good - do you want me to add you as optional for meeting invite?

sounds good - @ericvd-ucb were you able to log into the hub successfully or did you get the same error page?

error page - the spelman.pilot still working though

Sorry guys. Investigating this now.

@ericvd-ucb @choldgraf ok, looks like this works now and I see folks have logged in. I think I fixed this yesterday without seeing this issue?

They're all in the new cluster now.

very exciting! hooray \o/


Password Hashing

What are the groups thoughts on password hashing?  At the moment we have a criterion that states they should stored as iterated hashes with a per user salt.  Should we have another criterion that is Password hashes SHOULD be generated using a key stretching algorithm like PBKDF2, Bcrypt or Scrypt?  Then for the more advanced badges this could become a MUST.

Seems like we might want to require these at the lower badge levels, too, for implementation simplicity. Not sure about PBKDF2 (though presumably it's the same), but I know for bcrypt and scrypt, you can basically just run a password through them and forget about it, since they do stuff like salting automatically.
In contrast, "iterated hashes with a per-user salt" is very easy to get wrong. E.g. running a salted password through an MD5 implementation 100 times fits that criteria, but I could crack that in a matter of minutes, possibly seconds, on my laptop.

The intention of the existing criterion may have meant to imply this type
of algorithm.  We could include these as examples of how to achieve this.
On Fri, 25 Sep 2015 12:07 Alex Jordan<EMAIL_ADDRESS>wrote:

Seems like we might want to require these at the lower badge levels, too,
for implementation simplicity. Not sure about PBKDF2 (though presumably
it's the same), but I know for bcrypt and scrypt, you can basically just
run a password through them and forget about it, since they do stuff like
salting automatically.
In contrast, "iterated hashes with a per-user salt" is very easy to get
wrong. E.g. running a salted password through an MD5 implementation 100
times fits that criteria, but I could crack that in a matter of minutes,
possibly seconds, on my laptop.
—
Reply to this email directly or view it on GitHub
https://github.com/linuxfoundation/cii-best-practices-badge/issues/49#issuecomment-143102416
.

Have updated this criterion in pull request #50

On the other hand, I don't think we want to specify just one specific algorithm. Is there a better way to specify this?
--- David A.Wheeler

We have addressed this in crypto_password_storage: "If passwords are stored for authentication of external users, the project MUST store them as iterated hashes with a per-user salt by using a key stretching (iterated) algorithm (e.g., PBKDF2, Bcrypt or Scrypt)."  This doesn't require a specific algorithm, but it includes common examples.


[wip] arraynode should be supported in FlyteRemote

Tracking issue
Fixes flyteorg/flyte#5359
Why are the changes needed?
Getting executions with Array nodes are not currently supported in FlyteRemote
What changes were proposed in this pull request?
TBD
How was this patch tested?
TBD
Setup process
Screenshots
Check all the applicable boxes

[ ] I updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] All commits are signed-off.

Related PRs

Docs link

closing in favor of #2442


Pull request with type [CREATE] for user [AdamGrossTX] and object type [Script] - titled [Enable or Disable Local Administrator Account]

Automated pull request from the Endpoint Configuration Manager Community hub.

Can I get a status on this?


Matching multiple file extensions

Hello. Seems like multiple matching is not working: "**/*.{js,ts}". I've tested with different forms of globs.
The License checker just ignores all the files and quietly passes without any outputs.

Can you create a reproduction repository for this case? "**/*.{js,ts}" seems working at least for my case...

Can you look at this repo: https://github.com/solid-maxim/test_word_presence/pull/4? Check is passed, but a license text is missing.

Ah, I haven't update the github actions version of this script for a while, and probably that caused the issue. I've just published version 1.0.4 of kt3k/license_checker. Please try update your github action to<EMAIL_ADDRESS>

Now it works. Thanks!


Search in pdf files

I have just released PDF::Extract due to not being able to find a simple abstraction over pdftotext and pdf2html CLI tools.
Anyway - based on my superficial understanding of rak, there is no option to open and read pdf files as text...?
Would it be of interest for me to write this as a PR and submit back here?
If so, please can you provide a bit of a steer as to how that would integrate with the current rak implmentation:

where to shove tmp files
what kind of command line switch to enable  --pdf=0|1
on or off by default (on?)

There's likely a few other, similar things for eg. Office docs (which I am not currently proposing) and maybe a notion of where / how to generally develop a "file suffix preprocessor" might be a good idea...  libreoffice --headless --convert-to "txt:Text (encoded):UTF8" mydocument.doc maybe

Am looking at App::Rak again  :-)
I'm looking at making this automatic if PDF::Extract is installed.  I only need a way to reliably detect a PDF file.  I assume the .pdf extension doesn't cut it in all cases?

PDF::Extract uses the poppler library
According to https://superuser.com/questions/580887/check-if-pdf-files-are-corrupted-using-command-line-on-linux
You can try doing it with pdfinfo (here on Fedora in the poppler-utils package). pdfinfo gets information about the PDF file from its dictionary, so if it finds it the file should be ok
for f in *.pdf; do
    if ! pdfinfo "$f" &> /dev/null; then
        echo "$f" is broken
    fi
done

~ > pdfinfo /Users/stephenroe/Downloads/Policy.pdf
Creator:         GMC Software AG~Inspire Designer~<IP_ADDRESS>
Producer:        PDF
CreationDate:    Mon Jan  3 18:40:04 2022 GMT
Custom Metadata: no
Metadata Stream: no
Tagged:          no
UserProperties:  no
Suspects:        no
Form:            none
JavaScript:      no
Pages:           8
Encrypted:       no
Page size:       595.276 x 841.89 pts (A4)
Page rot:        0
File size:       1134532 bytes
Optimized:       no
PDF version:     1.4

On debian, the "file" system command seems pretty reliable for detecting pdf files.

I have bumped PDF::Extract to v0.0.3
You can now go
use PDF::Extract;

my $extract = Extract.new: file => '../resources/sample copy.pdf';

$extract.first = 0;
$extract.last = 2;
$extract.range: 0..1;

say $extract.text;
say $extract.html;
say $extract.xml;

say $extract.so;   #test for PDF headers
say $extract.info;
say $extract.info<CreationDate>;

This has now been implemented with --pdf-per-line, --pdf-per-file and --pdf-info.  So closing now


WARN: no response in log, trigger re-launch action.

2015-08-20 09:32:20.931 instruments[564:11839] Attempting to set event horizon when core is not engaged, request ignored
2015-08-20 01:31:26 +0000 Screenshot captured.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log

问题描述不清，固关闭！

我现在也是这个问题，启动app后进入到首页就不动了，app也没挂，正常的；

@vigossjjj 请问怎么处理呢？Attempting iOS device system log capture via deviceconsole.
BundleID was found: com.jk724.health
Run: ["instruments", "-w", "21625055ec5e44fb8061a719ad66682d3b92c441", "-t", "/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Resources/templates/Automation.tracetemplate", "com.jk724.health", "-e", "UIASCRIPT", "/Users/jon/smart_monkey_result/report_20170427134442/custom.js", "-e", "UIARESULTSPATH", "/Users/jon/smart_monkey_result/report_20170427134442"]
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.
WARN: no response in log, trigger re-launch action.


Resolve race condition in AsyncRequester

Currently the AsyncRequester in TBAW.resource_getters just uses plain Future objects, this is fine normally. The issue arises when the resource is removed from the resource_queue and resource_map using a 'done callback' that is called when the future is completed in some way.
The issue is done callbacks are called on the main process but not on the main thread. Therefore if, for some reason, logic depends on the resource being removed immediately after the future complete (like in our tests) this may not be the case and creates a race condition.
One way around this is to subclass Future and change the logic such that callbacks always complete before marking the future complete (may violate the principle of least astonishment as this is not common behavior), or some other solution, possible like the one for get_even_json_async in getters.
This is low priority since this race condition will not cause issues for code that is written idiomatically, as in not trying to access the private resource queue and resource map in AsyncRequester.

Will be fixed in next commit. Futures are modified to run the Requester Callback last every time.


#230 - Load external decorators

I'm proceeding to close this PR as it is not currently factible to load decorators from the configuration file...


Correcting variable name

The wrong variable name caused the following error when stopping and restarting a container:
PS C:\Windows\system32> docker start -ai mynav
Initializing...
Restarting Instance
Starting Local SQL Server
C:\Run\SetupDatabase.ps1 : ERROR: Internal Error
At C:\Run\navstart.ps1:189 char:5
+     . (Get-MyFilePath "SetupDatabase.ps1")
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorExcep
   tion
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
   n,SetupDatabase.ps1

The right variable name is the one used in navstart.ps1

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Thanks, good catch:-)


Make entrypoint binary build for Windows

The entrypoint binary includes non-portable code that only works on
Linux. This change adds runner_windows.go with a build constraint so
that it's only built when GOOS=windows, which removes this code (and the
functionality it enabled).
You can test this with:
KO_DEFAULTBASEIMAGE=hello-world ko publish ./cmd/entrypoint/ --platform=all

This tells ko to build the entrypoint binary using the hello-world image
as a base. The hello-world image doesn't really matter, but it includes
lots of platforms, including both Linux and Windows OSes.
Eventually we'll want to identify (or build) a better base image, this
is just to demonstrate that building the image works when built for
Windows.
/kind feature
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[n] Docs included if any changes are user facing
[n] Tests included if any functionality added or changed
[y] Follows the commit message standard
[y] Meets the Tekton contributor standards (including
functionality, content, code)
[y] Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes
NONE

One small step toward #1826

nice!!!
/approve

/lgtm


[Systrace] Update message with instructions

The middleware for automatically converting Systrace traces to HTML and popping the browser hasn't worked properly for a while, since the version on Homebrew generates some code that uses Object.observe, which was deleted from Chrome ages ago. People have complained about it, but fixing it properly has proven to be harder than expected, so I suggest we simply update the message with instructions for people to load it on Chrome, which is what all of us have been doing anyway (AFAIK).

LGTM but would like someone at FB to sign off on it to make sure it doesn't break internal workflows either (@astreet?).

Sorry, I really don't know anything about the systrace integration with the packager. Looks like @Martin B wrote it so I'll try to tag him as a reviewer.

Actually, I wrote it, I believe @martinbigio moved it later as it was messy. Maybe @javache would know?

Hey @tadeuzagallo! We actually tried upgrading trace2html upstream (https://github.com/Homebrew/homebrew-core/pull/4638 https://github.com/Homebrew/homebrew-core/pull/7485) but I don't think that has shipped.

Yeah, I'm aware of that, but I tried running the regular workflow and it didn't work, so I thought it could make sense to just update the message, and later on if/when it ships on systrace we can just change it back. Not sure how many people use it though, but seems unfriendly since it's just there seating in the dev menu and when people run it it fails and they get an unhelpful alert.

Internally we tell people to run this
curl https://gist.githubusercontent.com/javache/344da5bb6b7801087e2fb4fdf33342aa/raw/b9da7a846de1f45281cfb2ad3cab2546c6858d83/gistfile1.txt > "$(EDITOR=echo brew edit trace2html)"
brew reinstall trace2html

Perhaps we could add something like that to the debug message? I'm fine with merging this too though.

@tadeuzagallo I was going to import this, but looks like there’s no CLA on you 😢 . Could you please email<EMAIL_ADDRESS>with your details?

Oops... I already emailed, just forgot to fill the form, will do it today!

Thanks! I just bumped into this issue myself and been copy-pasting Object.observe polyfill into the generated HTML 😭


onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION

Traceback (most recent call last):
File "/yolov5-tensorrt/main.py", line 375, in
simplify_onnx(onnx_path)
File "/yolov5-tensorrt/main.py", line 156, in simplify_onnx
model_simp, check = simplify(model)
File "/root/anaconda3/lib/python3.7/site-packages/onnxsim/onnx_simplifier.py", line 492, in simplify
model = fixed_point(model, infer_shapes_and_optimize, constant_folding)
File "/root/anaconda3/lib/python3.7/site-packages/onnxsim/onnx_simplifier.py", line 393, in fixed_point
x = func_b(x)
File "/root/anaconda3/lib/python3.7/site-packages/onnxsim/onnx_simplifier.py", line 486, in constant_folding
custom_lib=custom_lib)
File "/root/anaconda3/lib/python3.7/site-packages/onnxsim/onnx_simplifier.py", line 232, in forward_for_node_outputs
custom_lib=custom_lib)
File "/root/anaconda3/lib/python3.7/site-packages/onnxsim/onnx_simplifier.py", line 216, in forward
outputs, inputs, run_options=run_options)))
File "/root/anaconda3/lib/python3.7/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 188, in run
return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Mul node. Name:'Mul_448' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/math/element_wise_ops.h:487 void onnxruntime::BroadcastIterator::Append(ptrdiff_t, ptrdiff_t) axis == 1 || axis == largest was false. Attempting to broadcast an axis by a dimension other than 1. 3 by 16

same problem

@wangyongpenga I solved this problem by roll back versions of tensorrt. This environment is work for me:
cuda==10.2
cudnn==8.0.5
tensorRT==<IP_ADDRESS>
torch==1.6.0
onnx==1.6.0
onnxruntime==1.2.0


flip RUNTIME_GUARD 'envoy.reloadable_features.thrift_connection_draining' to true

Commit Message: flip RUNTIME_GUARD 'envoy.reloadable_features.thrift_connection_draining' to true
Additional Description: Pinterest introduced this runtime_guard before. We've done tests in house and they were looking good, so we feel it is safe now to flip it to default true. We plan to remove this runtime_guard and make the feature default in half a year.
Risk Level: low
Testing: done in house
Docs Changes: none
Release Notes: none
Platform Specific Features:  none
[Optional Runtime guard:] envoy.reloadable_features.thrift_connection_draining
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/retest

/retest

Sorry, I've been out sick. I think this needs a release note to indicate that the feature flag got flipped to true in changelogs/current.yaml and then we can merge it.

@zuercher hope you recover soon! I read changelogs/current.yaml before and it seems say only creating or deleting a flag needs a release note. But if you think it is necessary I'll do it of course.

I think the common pattern is for new runtime flags to be enabled by default, so we have a changelog entry that notes the behavior change and how to revert to the old behavior. Here it's been defaulted off for two versions, now we're turning it on by default which is a behavior change, but can be reverted.

/retest

/retest

/retest

/retest

/retest

/retest

/retest

@zuercher  I'm a first time contributor, I wonder if you need to unblock me for above tests?   First-time contributors need a maintainer to approve running workflows.     Thanks!

/retest

/retest

is this normal that the CI/CD failed for 10+ times for me? .....

/retest

@zuercher finally all tests passed!

the tests were all passed before, not sure why 3 of them are "expected" now...

/retest

/retest

@lizan Hi, I rerun the CI tests and it needs approval from reviewers.


Sanitize storage keys

Currently some storage keys contain //. Due to a recent change minio (which is used for dev setup and validation) that service rejects objects with such an key. Aside of that those keys also cause issues when viewed in the gcs browser.
To-Dos:

[ ] fix cases where // keys are used
[ ] Revert commit 7e12d3eb to go back to the latest minio version
[ ] Allow transition period to new key style

fixed


Support for Hot Water

Hi there. I've just set up my Wiser HubR and so far it seems to work fine!
I've noticed there is not a way to call for Hot Water.
Is this possible for you to implement?
Thanks!

Second this request. Hot water control, especially boost control, would be awesome if its possible.

I third this too - keen to help, but don't know how.


Cleanup PoolChunk / PoolSubpage and add a few more asserts

Motivation:
As the PooledByteBufAllocator is a critical part of netty we should ensure it works as expected.
Modifications:

Add a few more asserts to ensure we not see any corrupted state
Null out slot in the subpage array once the subpage was freed and removed from the pool
Merge methods into constructor as it was only called from the constructor anyway.

Result:
Code cleanup

I noticed this while investigate https://github.com/netty/netty/issues/10685


Provide additional deployment model for a public cloud provider

We want to have at least one additional deployment for a public cloud provider.
The goal is not to use OpenShift and abstract away all the differences. The goal also is not host a bunch of additional deployments for all the different APIs and requirements.
But to see what changes are required for a specific Kubernetes variant like GKE, Azure, AWS, DigitalOcean, … and learn some things that might help generalize the deployment.

@lulf I know you had it running on GKE. Do you think we can close this for 0.6.0?

@ctron Agreed, I forgot to close the issue.


x/pkgsite: "go to latest" button points to something that is not the latest

What is the URL of the page with the issue?
<EMAIL_ADDRESS>What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36
Screenshot

What did you do?
I have attempted to publish my module.  The go modules documentation is not clear that you cannot use normal versioning numbering (eg v1.0.0) if you do not put the go.mod file at the root if the repository.  So initially I had the go.mod in the main package ipaddr which is a directory in the repository.  After a lot of trial and error, trying to figure out why the go tools would not work as I expected, I've now placed it at the root of the repo.
So my module is at https://pkg.go.dev/github.com/seancfoley/ipaddress-go
If I click on the "ipaddr" package is goes to<EMAIL_ADDRESS>On that page it has a red button "Go to latest" which takes me to my failed attempt to publish the package with the go.mod in a subdirectory.  There are no versions in that failed attempt.  Nor are the dates more recent.  So it is clearly not the latest in any way, shape or form.
What did you expect to see?
I expect there to be no red button saying "Go to latest" taking you to a page which is not the latest.
What did you see instead?
I see a red button leading people to the wrong location.  It takes you to a version of the package which is clearly not the latest, neither by date, nor by version.  So the button should not be there, it is misleading.

go uses the longest module path to determine the containing module.
You'll need to use retract to fix this (both for pkg.go.dev and for the go tool to resolve properly).

The information I've seen on retract is for retracting versions, not pseudo-versions. Can you provide more info or a link?


View SharePoint files with File Explorer in Microsoft Edge not working with classic sites using new experience for doc libraries

I followed the instructions for the article "View SharePoint files with File Explorer in Microsoft Edge". This worked for Teams SharePoint site document library. However, we are using classic SharePoint sites for SharePoint. We changed the document library from classic to new experience and the option for "View In File Explorer" is not showing. Will this option be available for sites created as classic sites using document libraries with new experienced turned on?

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

ID: 2c3f9bb0-43af-b544-3fd7-71eed410cbec
Version Independent ID: 250786b4-90f1-0eab-c15d-2f0182d69e5e
Content: View SharePoint files with File Explorer in Microsoft Edge - SharePoint in Microsoft 365
Content Source: SharePoint/SharePointOnline/sharepoint-view-in-edge.md
Service: sharepoint-online
GitHub Login: @adeejoseph
Microsoft Alias: adjoseph

After waiting about 45 minutes, the option did appear on classic site document library using new experience.


UI improvement for settings page

UI improvement for settings page

To make the UI more user friendly, include some minimal icons and tweak up the whole user experience.

Would you like to work on the issue?
Yes , I would love to work on the issue.

Feel free to start working on it.


query and visualization template changes

PR changes overview:

query template added
visualization template edited
visualizations edited to match template
queries edited to match template
overview page visualization order change
minor visualization name changes to match visualization

@JamesKunstle Made the initial changes, once we discuss on the first one and then get a response on the last ill push

@JamesKunstle Changes made let me know what you think. Also if the pre commit errors are a quick fix this might be a good time to switch over for we can get back into the rhythm of using the checks

@cdolfi okay I'll look through everything again. it's probably the right time to fix the pre-commit stuff yeah


Set DisableKubeletCloudCredentialProviders upstream feature gate to False

Based on discussion in https://redhat-internal.slack.com/archives/C065R4NCLGM/p1701682788330769, we need to disable this feature gate until we have time to test and configure the credentials providers.
This will require us to make changes in the MCO to set up new configuration and run the credentials binaries on the host.
CC @elmiko @soltysh

this is going to be false by default in 1.29, do we set it true somewhere?

i talked with @JoelSpeed about this, it should be set false for now.
/lgtm
/hold cancel

/hold
I want to manually verify e2e before merging

Checking payload, I can see the feature gate is now disabled in the cluster, however, it's not being passed to kubelet. Looks like MCO is only taking into account those feature gates that are enabled, which means we have no way to explicitly disable an upstream feature gate currently.
We need to fix this MCO bug before we proceed

/hold cancel
Have verified in the rendered MC that it has the correct gates set

/retest-required

/test verify-client-go

https://github.com/openshift/client-go/pull/267 should have fixed the client go failure, odd, if this is blocking work I think we can override the client-go issue


SQLite Error

Hi there!
I get the error " SQLite_Error: no such column: t.route_id."

Would appreciate any input you have!
Thanks

Hey, a new column was added to the table trips vehicle_category_id
You can update the https://github.com/CptMeetKat/MMM-NextTrains/blob/main/create_db.sh#L149
and add the new column as TEXT.


Vimal

So I have completed the library by creating a separate url store and a separate requesting functionality. There is still a unit test yet to be added but, module for manual testing is added.

First, we will merge it with dev branch.


Thread visibility in the NuttX simulator

Up until now, I have been relying on sim:vpnkit (the simulator) for developing and testing my software before I use a real hardware target. However, AFAIK it is not possible to have visibility of threads during debugging with the sim target. Is this correct?
I'm considering different simulation targets, such as x86(-64) or the one used in https://nuttx.apache.org/docs/latest/guides/qemugdb.html, in order to have thread visibility during debugging. What do you recommend?

you have two methods in case of simulator:

launch gdb as normal with https://github.com/apache/nuttx/tree/master/tools/gdb which work with simulator too
Enable https://github.com/apache/nuttx-apps/tree/master/system/gdbstub and attach gdb to it as remote debug

The second method can't set break pointer yet, utils @anjiahao1 upstream kgdbstub version.
For real hardware, you can try https://github.com/apache/nuttx/blob/master/tools/jlink-nuttx.c.

Thank you @xiaoxiang781216. Are you aware of any major pitfall with regard to behavior of read/write/poll operations of pipes among threads in the simulator? I ask because, the application I'm working on, shows no issues with this when built as a linux program, but when built into the nuttx simulator, it seems to block.

Thank you @xiaoxiang781216. Are you aware of any major pitfall with regard to behavior of read/write/poll operations on pipes among threads in the simulator? I ask because, the application I'm working on, shows no issues with this when built as a linux program, but when built into the nuttx simulator, it seems to block.

poll work well very with both simulator and real device; we are building a very complex framework which use poll heavily, so poll implementation is solid in general. Recently, @thebolt report a special corner case which is fixed by: https://github.com/apache/nuttx/pull/10706


Should babel-register be a dev-dependency instead of dependency?

Hi,
Just noticed after updating meteor to 1.7-rc.3, which uses the new babel runtime package (@babel/runtime@^7.0.0-beta.46), that eslint-plugin-meteor was still depending on babel-register / babel-runtime @ 6.26
Compared with other plugins, I'm guessing that babel-register shouldn't be under dependencies, but belongs under devDependencies instead.
eg. https://github.com/3stack-software/eslint-plugin-meteor/commit/dd53fe1bbe9b14e10adfcaafe39af0d36e51c8f4

:tada: This issue has been resolved in version 4.2.2 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

Ah, no.  There's still a bit of code dependent on the babel-runtime, as you're using "transform-runtime" in .babelrc..

:tada: This issue has been resolved in version 5.0.0 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

I completely removed babel as a dependency in 5.0.0. Let me know how that works for you. I went ahead and tried it myself and all seemed to work nicely.
Note: eslint-plugin-meteor now needs at least node@6, which is the current minimal LTS version.

Works great @dferber90, Cheers!


[Task]: Add automatic proposal querying for nodes in client options

Task description
We should query all events available for every node that a user has specified in their client options / network configuration.
Requirements

[x] Register proposals for primary node in client options

[x] Only if they haven't already been registered, even if registered with a different node

[x] Keep registered events if primary node is removed or becomes non-primary

Creation checklist

[x] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

Blocked until this is resolved: https://github.com/iotaledger/wallet.rs/issues/1670

Blocked until wallet.rs is updated (https://github.com/iotaledger/firefly/pull/5682)


Format date

(wanted to solve this before bed. ok gn fr)

The date in /urls is now formatted.
There are 3 new anchors in /urls that send GET requests. 2 of these GET requests sort columns by date in ascending/descending order.
The edit button in /urls redirects you to a landing page ( /urls/edit/:id )
The update functionality (PUT request) still in development & code is commented out. Requires method-Override package

This seems good. It's might be useful to have another sort based on the number of visits, but probably not a priority. lgtm :shipit:

can do & will do in the next branch! more changes coming soon


feat: support Disease NCIT, SNOMEDCT IDs

[editing this post right now. wait for me to add NCIT mapping tests]
CHECK before merging:
I don't have a development environment set up for this, so check that the ID resolution works as expected before merging
CHECK FOR (these are subjects in the clinical risk kp api right now):

input "SNOMEDCT:386033004" (neuropathy) -> output UMLS:C0442874, MONDO:0005244. This should hit the mondo.xrefs and the umls.snomed fields.
input "SNOMEDCT:2415007" (Lumbosacral radiculopathy (disorder)) -> output UMLS:C1263855, UMLS:C0154738. Should get TWO UMLS IDs out.
input "SNOMEDCT:76571007" (Septic shock (disorder)) -> no equivalent IDs...It looks like our mapping files don't have this disease in them.

Pull Request Test Coverage Report for Build 926965750

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

Totals

Change from base Build 920236392:
0.0%

Covered Lines:
439

Relevant Lines:
444

💛  - Coveralls


fix(react-tinacms-inline): Fix ability to clear field selection

Closes #1725
This adds back the <div onClick={() => setFocussedField('')}> element that was removed in #1702.
@dwalkr Did this element need to be removed for some reason? I'm guessing it was just forgotten when refactoring?
Thanks!

@zenflow yeah, this was a clumsy attempt to address #1664 but it produces some undesirable side effects. Thanks for the fix!

@all-contributors add @zenflow for code and bugs

@dwalkr Thanks for the quick merge! I just realized you're publishing prereleases on npm (just not on GitHub /w tags) so now I have everything working with the latest prerelease :D Really awesome! Thanks and keep up the great work!


resource/cloudflare_ruleset: improve unknown value handling

Within the rulesets schema, we have a handful of fields that are Computed. The expectation of this directive is that it is a value not known at run time and may be provided by the remote. However, this premise will break down and not work correctly if the value is ever provided to the plan since the value is no longer "unknown". This subtle bug is one part of what is contributing to the additional output toil in #2690. To address this, I've removed the lines that modified these values and were being supplied to the plan operation.
This takes the confusing and bloated output from looking like this:
Terraform will perform the following actions:

  # cloudflare_ruleset.rate_limiting_example will be updated in-place
  ~ resource "cloudflare_ruleset" "rate_limiting_example" {
        id          = "87e1099f077f4e49bbfbe159217ff605"
        name        = "restrict API requests count"
        # (4 unchanged attributes hidden)

      ~ rules {
          ~ id           = "e3b97fdf354c4c24a7ac091c3537fbc5" -> (known after apply)
          ~ last_updated = "2024-01-31 04:02:55.651275 +0000 UTC" -> (known after apply)
          ~ ref          = "e3b97fdf354c4c24a7ac091c3537fbc5" -> (known after apply)
          ~ version      = "1" -> (known after apply)
            # (4 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }
      + rules {
          + action       = "block"
          + description  = "rate limit for API"
          + enabled      = true
          + expression   = "(http.request.uri.path matches \"^/api0/\")"
          + id           = (known after apply)
          + last_updated = (known after apply)
          + ref          = (known after apply)
          + version      = (known after apply)

          + ratelimit {
              + characteristics     = [
                  + "cf.colo.id",
                  + "ip.src",
                ]
              + mitigation_timeout  = 600
              + period              = 60
              + requests_per_period = 100
              + requests_to_origin  = false
            }
        }
    }

Plan: 0 to add, 1 to change, 0 to destroy.

To a clearer and more concise output:
Terraform will perform the following actions:

  # cloudflare_ruleset.rate_limiting_example will be updated in-place
  ~ resource "cloudflare_ruleset" "rate_limiting_example" {
        id          = "87e1099f077f4e49bbfbe159217ff605"
        name        = "restrict API requests count"
        # (4 unchanged attributes hidden)

      ~ rules {
            id           = "39ed6015367444e3905d838cadc1b9c2"
          + last_updated = (known after apply)
          + version      = (known after apply)
            # (5 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }
      + rules {
          + action       = "block"
          + description  = "rate limit for API"
          + enabled      = true
          + expression   = "(http.request.uri.path matches \"^/api0/\")"
          + id           = (known after apply)
          + last_updated = (known after apply)
          + ref          = (known after apply)
          + version      = (known after apply)

          + ratelimit {
              + characteristics     = [
                  + "cf.colo.id",
                  + "ip.src",
                ]
              + mitigation_timeout  = 600
              + period              = 60
              + requests_per_period = 100
              + requests_to_origin  = false
            }
        }
    }

Plan: 0 to add, 1 to change, 0 to destroy.

The second part of this confusing output is the last_updated and version output. The last_updated is pretty self explanatory however, there are some minor but important details about the version field here. Within ERE, it captures and is tied to a particular state of the ruleset rule at any point and is incremented when changes are detected to any parts of the rule. The naunce here is that ERE does not perform a diff of the current state and what is proposed. Instead, it autoincrements this field even if the payload is identical. So why is this important for the Terraform resource? Well, since we use explicit ordering via ListNestedObject schema attribute, we are sending all rules to the API even when only a single one changes to ensure we maintain the correctness the end user expects. Doing this causes the last_updated and version fields to always show as unknown values and result in updates. There are some plans to potentially look at de-duping the payloads to prevent spurious versions being created however, that won't help here until such a time that we individually manage rules as their own entities.
A further improvement consideration here is if we don't have active uses for last_updated and version, consider removing them entirely from the schema. This will have downstream impacts but may clear up the output.
Closes #3082 as it is superseded by this PR.
Closes #2690 by improving the output and marking the version and last_updated as known values that will always be changing due to the way we update all the resources.

need to dig into the test that handles preserving the references which is currently failing.
TF_ACC=1 go test ./internal/framework/service/rulesets -v -run "^TestAccCloudflareRuleset_PreserveRuleRefs" -count 1 -timeout 120m -parallel 1
=== RUN   TestAccCloudflareRuleset_PreserveRuleRefs
    resource_test.go:868: Step 2/12 error: Check failed: Check 1/2 error: cloudflare_ruleset.wvwfudwszz: Attribute "rules.0.ref" value: expected '4ac8be4f5f4944e4a15933e3823e2ef7' got 'ca9a6c1240a04c83898080e8b82252cb'
--- FAIL: TestAccCloudflareRuleset_PreserveRuleRefs (12.13s)
FAIL
FAIL	github.com/cloudflare/terraform-provider-cloudflare/internal/framework/service/rulesets	13.884s
FAIL
make: *** [testacc] Error 1

When will this feature be available?

I tested this change yesterday, and looks like everything works as expected - rules updated in CF and have correct ref (the same as id). And in the state the same.
Need to deep into the test itself.


QuickAccent: Add numero (№) symbol

Description of the new feature / enhancement
A useful addition to the ever-growing list of QuickAccent of characters would be the '№' (numero) symbol, which is used to prepend cardinal numbers in some languages, similarly to '#'.
It is part of the regular phonetic Bulgarian kbd layout, in the place of #.
I would propose it to be included either on the 'N' key (due to visual/phonetic similarity) or the '#' key (due to functional similarity) or both.
Scenario when this would be used?
It would help me to enter the numero symbol, without having to change kbd layouts, when I need to prepend numbers in locale-specific way.
Supporting information
I believe this symbol is also used in French, which makes the userbase, that needs it, much bigger.

@pesbandi
Feel free to open a PR. Your contribution is welcome. Thank you for your work on this.

This was released wit v0.82.0.


chore: require a changelog entry to merge PR

This was taken directly from the collector so I expect it should work for us just fine.

Do we have a guideline on which condition we don't need a changelog?

Do we have a guideline on which condition we don't need a changelog?

Updated the contributing.md


Upload first version of user stories doc in API documentation

Upload first version of user stories doc in API documentation as agreed in 24/11 follow-up meeting.
https://github.com/camaraproject/HomeDevicesQoD/blob/main/documentation/MeetingMinutes/MOM-2022-11-24.md

To be addressed by PR https://github.com/camaraproject/HomeDevicesQoD/pull/10

PR #10 is MERGED already.  I'm closing this issue.


Error on latest 2.5

Hi
I have just finished downloading the lastet build of UMA 2.5 (Commit: 2f407e93525282cfbc2fc5d3cefce561e52ab147) and am receiving the following errors:
Assets/UMA/Core/Extensions/DynamicCharacterSystem/Scripts/UMAAssetIndexer.cs(18,8): error CS0246: The type or namespace name `IPreprocessBuild' could not be found. Are you missing `UnityEditor.Build' using directive?
Assets/UMA/Core/Extensions/DynamicCharacterSystem/Scripts/UMAAssetIndexer.cs(799,9): error CS0246: The type or namespace name `IOrderedCallback' could not be found. Are you missing `UnityEditor.Build' using directive?
Assets/UMA/Core/Extensions/DynamicCharacterSystem/Scripts/UMAAssetIndexer.cs(807,10): error CS0246: The type or namespace name `IPreprocessBuild' could not be found. Are you missing `UnityEditor.Build' using directive?

This is with a clean project only containing UMA on Unity 5.6.0f3
Do you have any suggestions?

Never mind, 5.6 just requires the following:
using UnityEditor.Build;

I should have not been so lazy..

This should have been fixed already, but we had to back out some changes, so probably just got reverted. I'll fix it again.

Ok - got the fix checked in. Sorry about that.


[Review] cuml refine implementation + umap demo

WIP PR to implement the refine(iterative fitting) and a graph demo showcasing the same.
Currently cuml build pull from my private fork on top of version 21.08 -> https://github.com/AjayThorve/cuml/tree/fea/umap-refine
pending: supervised_refine
Allows us to visualize step-wise training, without needing callbacks

@AjayThorve have we started discussing getting these changes merged into cuML? Would be good to get those in there, then update our RAPIDS dependencies to 21.10.

@AjayThorve have we started discussing getting these changes merged into cuML? Would be good to get those in there, then update our RAPIDS dependencies to 21.10.

Not yet I think. But its a good idea to get started on the PR before its too late to merge into 21.10. I'll write unit tests for the ML::UMAP::refine function, and then create a PR on the cuml repo.

I think this PR is good to merge, pending CI builds. @trxcllnt, let me know when it's okay to merge this :-)


[SPARK-35467][SPARK-35468][SPARK-35477][PYTHON] Fix disallow_untyped_defs mypy checks.

What changes were proposed in this pull request?
Adds more type annotations in the files:

python/pyspark/pandas/spark/accessors.py
python/pyspark/pandas/typedef/typehints.py
python/pyspark/pandas/utils.py

and fixes the mypy check failures.
Why are the changes needed?
We should enable more disallow_untyped_defs mypy checks.
Does this PR introduce any user-facing change?
Yes.
This PR adds more type annotations in pandas APIs on Spark module, which can impact interaction with development tools for users.
How was this patch tested?
The mypy check with a new configuration and existing tests should pass.

Test build #138819 has started for PR 32627 at commit 57997ae.

Test build #138819 has finished for PR 32627 at commit 57997ae.

This patch fails Python style tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class SparkIndexOpsMethods(metaclass=ABCMeta):

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/138819/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43341/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43341/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43341/

Test build #138826 has started for PR 32627 at commit f1fdd46.

Test build #138826 has finished for PR 32627 at commit f1fdd46.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/138826/

Kubernetes integration test unable to build dist.
exiting with code: 1
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/43348/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/43348/

Merged to master.


restoring packages from cdnjs is failing

Describe the bug
In our ASP.NET Core web application, we manage our client-side libraries in a libman.json file and restore them during build using the  "Microsoft.Web.LibraryManager.Build" PackageReference in the .csproj. We use cdnjs as the default provider.
Starting today, the restore during build fails with the first client-side library to be restored:
Severity	Code	Description	Project	File	Line	Suppression State
Error	LIB002	The<EMAIL_ADDRESS>library could not be resolved by the "cdnjs" provider	yyyy.zzzz	C:\Users\xxxx\source\repos\yyyy\src\yyyy.zzzz\libman.json	5
cdnjs started rolling out some API change, which might be the reason for the failed restore, see https://github.com/cdnjs/cdnjs/issues/14140
Expected behavior
client-side libraries should be downloaded
Additional context
Visual Studio 2022 17.2.4
Using the "Microsoft.Web.LibraryManager.Build" PackageReference with my ASP.NET Core Project

duplicate of https://github.com/aspnet/LibraryManager/issues/685, closing


[Bug] Triggering saving event on sync() of a pivot table

I may be misunderstanding this, so apologies in advance.
I have the following on my Foo Eloquent model:
protected static function boot()
{
    parent::boot();

    Foo::saving(function($foo)
    {
        Event::fire('myApp.someEvent');
        return true;
    });
}

This has a many-to-many relationship with the Bar class and I sync changes as follows:
$bar->foos()->sync($data);

Presumably my event above doesn't fire as it's on the foos table when actually what's being saved is the bar_foos pivot table. So where would I fire that event to say that the pivot table has been changed? Or should the tables that the pivot relates to trigger it? If the latter is true, it's not working for me.
Thanks

you can try with this package https://github.com/fico7489/LaravelPivot


ethrun: init at 0.1.0

Motivation for this change
The ethrun program is a dependency of some other Ethereum-related utilities. It is a relatively stable basic tool that changes infrequently.
https://github.com/dapphub/ethrun
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

I got output path ‘/nix/store/f4cfq4cfig3j2i04rvqd3dirzfkq6451-ethrun-0.1.0-fetch’ has r:sha256 hash ‘0grf3gyxwcwrx06bmdx29ipnv332wiihbvpz774gwba6jbvhr5is’ when ‘14x8pbjgkz0g724lnvd9mi2alqd6fipjljw6xsraf9gqwijn1knq’ was expected when I tried to build this. Can you update the depsSha256 to 0grf3gyxwcwrx06bmdx29ipnv332wiihbvpz774gwba6jbvhr5is and see if it still builds for you?

Looks like this wasn't deterministic after all. @mbrock has been working on trying to fix it but he seems to have run into some pretty deep hair-pulling problems relating to the Nix-Rust-industrial complex.

It's pretty weird that there seem to be two different hashes. @bennofs and Travis both get the 0grf3 hash, but I and some other person on reddit get the 14x8p hash.
Beyond that problem is the problem that Rust packages with Cargo dependencies from GitHub don't work in the sandbox.

@mbrock They should work in the sandbox just fine. Nix does allow network access to derivations that specify the output hash beforehand (called fixed output derivations), which the fetch-deps derivation for rust packages does (this is why you get the "hash not deterministic" problem in the first case)

@mbrock I think the isssue is this: https://github.com/bennofs/nix-index/issues/2#issuecomment-296285769

Ok, that hash difference was fixed in https://github.com/NixOS/nixpkgs/commit/bd78749d3387f84d4f70dada335df04479f8170c.

Ok, interesting!
In my own investigations, I actually got this same error as on Hydra but only sometimes -- rerunning the exact same build (<up> <enter> in bash) would yield the basename: no operand error very roughly 50% of the time.
I didn't investigate further because I'm quite ignorant of exactly how Cargo works, and this seemed very mysterious.

@mbrock I think the current rust infrastructure is broken in various ways. I'll try to replace it with a better one.


No filenames when using the GitHub Actions renderer with Swift Testing

When running with --renderer github-actions the Swift Testing output doesn't contain a filename.
Compare this sample where I have both a regular XCTest and a Swift Test
[DemoApp] Processing Info.plist
[DemoAppTests] Processing empty-DemoAppTests.plist
Signing DemoAppTests.xctest (in target 'DemoAppTests' from project 'DemoApp')
Signing DemoApp.debug.dylib (in target 'DemoApp' from project 'DemoApp')
Signing __preview.dylib (in target 'DemoApp' from project 'DemoApp')
Signing DemoApp.app (in target 'DemoApp' from project 'DemoApp')
All tests
DemoAppTests.xctest
UnitTest
::error file=/Users/clajun/Source/other/xcode-demo-app-for-gha/DemoAppTests/UnitTest.swift,line=5::    testExample, XCTAssertTrue failed
Executed 1 test, with 1 failure (0 unexpected) in 0.135 (0.135) seconds
Test Suite 'DemoAppTests.xctest' failed at 2024-10-28 15:13:22.401.
Executed 1 test, with 1 failure (0 unexpected) in 0.135 (0.135) seconds
Test Suite 'All tests' failed at 2024-10-28 15:13:22.401.
Executed 1 test, with 1 failure (0 unexpected) in 0.135 (0.136) seconds
Test run started.
Suite DemoAppTests started
::notice ::Recorded an issue (DemoAppTests.swift:7:9: Expectation failed: true == false)
::error ::"true should not be false" (0.004 seconds) 1 issue(s)
::error ::Suite DemoAppTests failed after 0.005 seconds with 1 issue(s)
::error ::Test run with 1 tests failed after 0.005 seconds with 1 issue(s)
2024-10-28 15:13:30.639 xcodebuild[62861:55001310] [MT] IDETestOperationsObserverDebug: 21.403 elapsed -- Testing started completed.
2024-10-28 15:13:30.639 xcodebuild[62861:55001310] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2024-10-28 15:13:30.639 xcodebuild[62861:55001310] [MT] IDETestOperationsObserverDebug: 21.403 sec, +21.403 sec -- end
Failing tests:
	UnitTest.testExample()
	DemoAppTests.isTrue()

** TEST FAILED **

The GitHub Actions annotations for the Swift Test:
::notice ::Recorded an issue (DemoAppTests.swift:7:9: Expectation failed: true == false)
::error ::"true should not be false" (0.004 seconds) 1 issue(s)

vs. the XCTest:
::error file=/Users/clajun/Source/other/xcode-demo-app-for-gha/DemoAppTests/UnitTest.swift,line=5::    testExample,

Based on the output, it should be possible to capture it:
◇ Test run started.
↳ Testing Library Version: 94 (arm64-apple-ios13.0-simulator)
◇ Suite DemoAppTests started.
◇ Test "true should not be false" started.
✘ Test "true should not be false" recorded an issue at DemoAppTests.swift:7:9: Expectation failed: true == false
✘ Test "true should not be false" failed after 0.001 seconds with 1 issue.
✘ Suite DemoAppTests failed after 0.002 seconds with 1 issue.
✘ Test run with 1 test failed after 0.002 seconds with 1 issue.


Why Not RxLifecycle? - By Dan Lew(author of RxLifecycle)

Why Not RxLifecycle?
By Dan Lew(author of RxLifecycle)
http://blog.danlew.net/2017/08/02/why-not-rxlifecycle/
I find this library in dependencies but I am not sure at how much extends code utilize it.
It may or may not be useful now but it's good to have a look at this article once.

Dan Lew answer this question http://blog.danlew.net/2017/08/02/why-not-rxlifecycle/

@JigneshPatel23 Thanks for your suggestion! We're going to take that in consideration for 2.0.0 release. 👍


discovery: Remove unused ServiceDetector type

What does this PR do?
Remove this wrapper type ServiceDetector which is unused since system-probe calls the relevant functions directly.

Motivation
Helpful to untangle some dependencies when adding the Python support in https://github.com/DataDog/datadog-agent/pull/28580

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Update elixir to 1.17

Hi @suranyami! It looks like this PR is meant to replace #6, is that correct? I would be happy to review this PR once you address the issues I mentioned on the previous one, since they still apply here :)


[GetAppCredentials] This activity is either missing or could not be loaded properly

GetAppCredentials is broken. Numerous activities are displayed as missing or could not be loaded properly. I am using UIPath Studio 2019.10.0-beta.484 Community Edition.

Just found out after reading some of the other issue tickets here that we have access to the template in UIPath Studio already. It's working now after using that instead of the GitHub copy as instructed in the Level 3 Advanced lesson


JitKernel needs to be cleaned up

Due to mutiple iterations, the the JitKernel class became messy. PR #896

There are at least two levels of caching for the same unspecialized kernel, i.e. self._cache and self._kernel_bundle_cache
For the specialized kernel, the caching is done in three individual levels. i.e. self._cache, self._kernel_bundle_cache and self._specialization_cache
These multiple levels of LRU caching is causing unnecessary overhead. Everything in that class needs to be made streamlined and clean. e.g. self._cache and self._kernel_bundle_cache can be consolidated.
Also due to these reasons, the cache-hit/miss counts (self._cache_hits) became ambiguous.
Either _check_range() and _check_ndrange() functions need to be moved inside Range, NdRange class or moved into the numba_dpex.core.kernel_interface.utils module.

For the specialized kernel, the caching is done in three individual levels. i.e. self._cache, self._kernel_bundle_cache and self._specialization_cache

Specialized kernels do not use the self._cache.

Out of scope now as JitKernel will get replaced by experimental.KernelDispatcher


Incline "jumps" when closing

When closing a window, the incline statusline jumps to the left or top (it depends on the position of the window being closed) for a few milliseconds before disappearing. Any ideas what could be causing this :D?

It stopped when i disable windows.nvim, so i'll do some research into it.

Closing this as stale. If this is still an issue, please let me know and I'll re-open.


refactor: handle overflow errors and add fuzzing

I understand that the overflow is documented. However, I think that it is a bit unrealistic to assume that users will validate that the addresses are valid. Adding this error variant should reduce the likelihood of vulnerabilities due to improper use of this crate.

If slices can't be chunked into arrays of the right sizes

I also have been unable to reproduce this panic by fuzzing the library after 30 minutes.

Yeah, did not realize that clippy was whining about that. You can see the fuzzing github actions that I created here.


Vimeo video does not pause, and video controls do not show on Firefox

Expected behaviour
While playing a Vimeo video, the user can click directly on the player to pause it.
While playing a Vimeo video on Firefox, the user can hover over the video player, and the video controls will appear.
Actual behaviour
While playing a Vimeo video, clicking directly on the player does not pause it (it does nothing).
While playing a Vimeo video on Firefox, hovering over the video player does not display the video controls.
Steps to reproduce

Visit https://plyr.io/#vimeo using Google Chrome
Play the video, and then try to pause it by clicking in the middle of the video. Nothing happens

Firefox

Visit https://plyr.io/#vimeo using Mozilla Firefox
Play the video, and move your mouse away from the player until the controls disappear. Then hover your mouse over the video. The controls do not appear.

Environment

Browser: Google Chrome
Version: 88.0.4324.104 (64-bit)
Operating System: Windows 10
Version: 20H2

(For Firefox)

Browser: Firefox
Version: 85.0 (64-bit)

Console errors (if any)
Link to where the bug is happening
https://plyr.io/#vimeo
This seems to be a problem with the latest release because the previous release (3.6.3) did not have this problem. This issue is not present with YouTube videos.

I have this experience with Chrome 87 for Android - plyr demo video with Vimeo source not interactive after start playing

+1 Android Chrome 88
Touch events won't register at all

Testing locally, it appears that this problem is not present in 3.6.2 and was introduced in 3.6.3. Rolling back to 3.6.2 fixed the issue for me:
npm add<EMAIL_ADDRESS>--save-exact