integrated deep links into citizen dashboard for fault viewing

created PR into wrong branch.
closed without merge.


[Discussion] Project tree view should maybe be in file explorer

Since its directly related to the local file system instead of Azure. I'm also open to a setting that lets the user control this. Right now its in the Azure view.

This issue has become stale and is at risk of being closed. The community has 60 days to upvote the issue. If it receives 5 upvotes we will keep it open and take another look. If not, we will close it. To learn more about how we handle issues, please see our documentation.\n\nHappy Coding!

:slightly_frowning_face: In the last 60 days, this issue has received less than 5 community upvotes and we closed it. Still a big Thank You to you for taking the time to create it! To learn more about how we handle issues, please see our documentation.
Happy Coding!


[NestJS][Fastify] Middleware doesn't work when using Fastify in NestJS

Context
Earlier on simplenotezy created the issue mentioning that middlewares are not being triggered when using the Fastify Adapter in combination with the NestJS module.
https://github.com/DennisSnijder/nestjs-bull-board/issues/1
Since the issue was originally opened on the nestjs-bull-board github, I move the issue here since we migrated the package to @bull-board/nestjs.
I will keep this issue updated with updates regarding this issue and with a solution when it becomes available on NestJS's side.
What's the status?

We're currently waiting for NestJS to release a new version to address this issue (https://github.com/nestjs/nest/pull/11718)

Update: a new version has been publish (10.0.0). However this did not fix the mentioned issue. A new issue has been created on NestJS's Github repo to address this.
https://github.com/nestjs/nest/issues/11802

Update: the latest update for nestjs v10.1.3 still doesn't fix this issue :-(

Can we reopen this issue? It has not been resolved yet.

@DennisSnijder can you check if #704 solves this issue?

issue still exist

@nestjs/core 10.3.7
@bull-board/fastify 5.15.3

This issue was not resolved. All other solutions mostly don't work. Current possible workaround is o wrap into a custom controller. Therefore it affects core functionality and probably should get resolved

I also had a hard time setting up the Auth middleware for the dashboard in my NestJS app with the Fastify adapter. At least I am glad now that someone mentioned it, and we all look forward to having this fixed soon. Any contribution here will be highly appreciated.

Is there another way to set up authorization when using Fastify? I need to go into production soon and need to restrict access to the admin panel.

For those of you looking for a workaround, here's roughly what you should do (please pardon any mistakes, you can not just copy-paste the code below but check out the configure method for the steps):
import type { FastifyBasicAuthOptions } from '@fastify/basic-auth';
import basicAuth from '@fastify/basic-auth';
import { ConfigService } from '@nestjs/config';
import { BullModule as NestBullModule } from '@nestjs/bullmq';
import type { DynamicModule, NestModule } from '@nestjs/common';
import { HttpStatus, Module, UnauthorizedException } from '@nestjs/common';
import { BullMQAdapter } from '@bull-board/api/bullMQAdapter';
import { FastifyAdapter } from '@bull-board/fastify';
import { createBullBoard } from '@bull-board/api';
import { HttpAdapterHost } from '@nestjs/core';
import type { FastifyInstance } from 'fastify';

@Module({})
export class JobsModule implements NestModule {
  constructor(
    private readonly adapterHost: HttpAdapterHost,
    @InjectQueue("QUEUE_NAME") private readonly queue: Queue,
  ) {}

  static forRoot(): DynamicModule {
    return {
      module: QueueModule,
      imports: [
        BullModule,
        BullModule.registerQueueAsync({
		  name: "QUEUE_NAME",
		})
      ],
      providers: [],
      exports: [],
    };
  }

  configure() {
    const route = '/bullboard';

    const serverAdapter = new FastifyAdapter();
    serverAdapter.setBasePath(route);

    createBullBoard({
      queues: [
        new BullMQAdapter(this.queue),
      ],
      serverAdapter,
    });

    const app = this.adapterHost.httpAdapter.getInstance<FastifyInstance>();

    // Basic auth
    const authenticate: FastifyBasicAuthOptions['authenticate'] = true;

    const validate: FastifyBasicAuthOptions['validate'] = async (
      username,
      password
    ) => {
      if (username !== "YOUR_USERNAME" || password !== "YOUR_PASSWORD") {
        throw new UnauthorizedException();
      }
    };

    app.register(basicAuth, {
      validate,
      authenticate,
    });

    const bullboardPlugin = serverAdapter.registerPlugin();

    /* Inspired by:
     * https://github.com/felixmosh/bull-board/blob/master/examples/with-fastify-auth/basicAuth.js
     * revisit later as the middleware isn't running correctly due to the following bug:
     * https://github.com/nestjs/nest/issues/11802
     */

    app.register(async (instance) => {
      instance.addHook('onRequest', (req, reply, next) => {
        instance.basicAuth(req, reply, function (error) {
          if (!error) {
            return next();
          }

          const statusCode =
            (error as $TSFixMe).statusCode || HttpStatus.INTERNAL_SERVER_ERROR;
          reply.code(statusCode).send({ error: error.name });
        });
      });

      instance.register(bullboardPlugin, {
        basePath: undefined,
        prefix: route,
      });
    });
  }
}

@mareksuscak
thanks for sharing the above code,
could you please provide an example of how we are supposed to inject this JobsModule into the parent Module?


Writing compile-time test cases for the verifier's function should be supported in the rooch-integration-test-runner.

In crates/rooch-integration-test-runner/tests, only the CompiledModule after compilation can be checked, and checking the ModuleEnv during compilation is not supported. Therefore, it is not possible to write test cases for compile-time verification.

I may dig into this later time possibly with moveos-compiler?

Is this issue resolved?

Is this issue resolved?

Yes, the test cases has been resolved.


Get-OpenADWhoAmi should return a richer object.

I recognize the value in Get-OpenADWhoAmi for troubleshooting. But from a PowerShell perspective, I'd encourage you to either modify the output to be just the username. Right now, I get a string like u:COMPANY\ArtD. If I want to save this to a variable and use for other testing, I have to parse the string. Although I'd prefer a richer object. Give me the name. Give me the authentication value. Show the LDAP uri.   I'm thinking ahead when maybe a help desk tech is trying to use this module but encountering errors. They ask for support and I tell them to run Get-OpenADWhoAmi. The richer object helps me better troubleshoot the problem.  I realize I could also ask the tech to run Get-OpenADSession but it would be nicer to have a single, rich object to work with.

That's a good point. I can return an object that contains the session details from this request to provide more information rather than just the result of the Whoami extended request. I'm not sure about parsing the return string though, this is returned directly from AD/LDAP and while I've not seen any other prefix than u: being used I'm not sure if that's always going to be there. It probably doesn't hurt to just have both and hide the raw value from the default property set.

The PR https://github.com/jborean93/PSOpenAD/pull/30 should fix this problem for you. By default it will show the parsed username, ldap uri, domain controller dns name, and the authentication type used for the session. The raw value is still present but hidden by default in the default display set.


CFE does not provide a way to determine if no-such-method forwarders refer to an external field.

Related to: https://github.com/dart-lang/sdk/issues/38398
In that example, EditorClass.prototype.isExternal is true, but MockEditorClass.prototype.isExternal is false.
The analyzer provides PropertyInducingElement as a means for finding out whether or not a getter/setter is external. It's possible I've overlooked something, but Kernel doesn't seem to have a simple path to this kind of information from a Procedure.

Hmm, I don't think the title of this bug is quite right.
The issue here appears to be that we're not getting the most precise Member.  E.g., :
with @Markzipan 's example:
  var e = MockEditorClass();
  print(e.prototype);

the Member we get for prototype (on visitPropertyGet) is the one from the interface EditorClass, not the implementation in MockEditorClass (which is a NSM forwarder).

Oooh, good call. If we have a way to see all (or some union of) those members to determine if the behavior should be "external", that would be sufficient. From what I can tell, the Procedure that represents e.prototype doesn't have this info.

Can you clarify what it is you need from the CFE here?
The fact that e.prototype refers to a noSuchMethod forwarder is a dynamic property of the value of e. So it would seem this has to do with the way such accesses are dispatched at runtime. What is the information which is missing in Kernel for the DDC backend to be able to implement the desired behavior?

@Markzipan @natebosch - is there a blocker here or can we rework the code?
@askeksa-google - re "The fact that e.prototype refers to a noSuchMethod forwarder" is what we would expect, but are not seeing.  See my comment above.  visitPropertyGet provides the member from the interface (and the member is marked external and not an NSM forwarder) not the more precise member from MockEditorClass (which is not external but is an NSM forwarder).  Is that intentional?
If visitPropertyGet was provided the more precise member (the NSM forwarder, matching the static type of the receiver), we should generate the same in DDK as DDC.
That said, I think mocking an JS interop type with a prototype getter is semi-broken in both - this request would change broken DDK behavior to match broken DDC behavior.  So, asking first if we can rework code.

What I mean by this being a dynamic property is that the behavior should not depend on what information is statically available at the call site. If I change the body of main to
  EditorClass e = MockEditorClass();
  print(e.prototype);

the behavior of the program is exactly the same. It calls noSuchMethod in DDC but not in DDK. In this case, the static information at the call site clearly only includes the prototype declaration in EditorClass. Thus, it would seem that the difference is not caused by how code for the callsite is generated, but rather by how the runtime dispatch is handled.

You are right that the behavior should not depend on the static type of the receiver - that's why I think both are broken.
In your snippet above, DDC doesn't appear to call NSM either.
I'm not sure we have an ask on the CFE here yet.  Assigning to @Markzipan to clarify.  (fyi @sigmundch )

In an ideal case for DDC, the Procedure representing a dispatch to a noSuchMethod handler would be able to tell us if the original method were external.
However, Vijay's fix here might be good enough for this use pattern: https://github.com/dart-lang/sdk/issues/38398#issuecomment-533611212
In general, mocking JS interop-enabled objects is a poorly defined area.

@askeksa-google Looking at the more involved case I posted at https://github.com/dart-lang/sdk/issues/38398#issuecomment-534684495, it would be much easier if we had an easy way of either accessing the original interface from a noSuchMethod Procedure (e.g., noSuchMethodTarget) or otherwise finding out if a noSuchMethod Procedure refers to an external procedure.
Is there an easy way of doing this in CFE right now?

In general there might be several such targets. I don't see an easy way of reliably finding all of them, short of searching through all transitive supertypes. You could call hierarchy.getInterfaceMember on the direct supertypes to find some of them, but if a direct supertype inherits more than one, you will only find the first one of those this way.

Okay - we'll patch this by walking up the inheritance tree in DDC. A bit inefficient, but this is an extremely rare use case. Thanks!


v0.9.3 shipments do not update from (mah) delivered to (whs) received

How to reproduce:
jpsl@PDM-00781:/export/home/jpsl/develop/PharmaLedger/fgt-workspace/bin/environment$ node --unhandled-rejections=strict wsCreateStuff.js --sleep=120000 --env=dev  2>&1 | tee -a wsCreateStuff.log
...
# errors for already created products and batches will be ignored
...
https PUT {"path":"/traceability/shipment/update/16515134784268407029","method":"PUT","headers":{"content-type":"application/json","content-length":82,"Authorization":"Basic TUFIMTM2MzY2MzU1OlRoaXMxc1N1Y2hBUzNjdXJlUGFzc3cwcmQ="},"hostname":"api-mah-msd-fgt-dev.pharmaledger.pdmfc.com","port":"443"} {"status":"delivered","extraInfo":"Delivered in good condition by a test script!"}
res 4286ms {
  shipmentId: '16515134784268407029',
  orderId: 'WHS000001-2022-05-02T17:44:38.362Z',
  requesterId: 'WHS000001',
  senderId: 'MAH136366355',
  status: {
    status: 'delivered',
    log: [
      'MAH136366355<PHONE_NUMBER>952 set status to created',
      'MAH136366355<PHONE_NUMBER>196 updated status from created to pickup',
      'MAH136366355<PHONE_NUMBER>501 updated status from pickup to transit',
      'MAH136366355<PHONE_NUMBER>082 updated status from transit to delivered'
    ],
    extraInfo: { pickup: [Array], transit: [Array], delivered: [Array] }
  },
  shipmentLines: [
    {
      gtin: '00366582505358',
      batch: 'R034995',
      quantity: 100,
      senderId: 'MAH136366355',
      requesterId: 'WHS000001',
      status: [Object],
      createdOn:<PHONE_NUMBER>426
    },
    {
      gtin: '00191778005295',
      batch: 'U002114',
      quantity: 100,
      senderId: 'MAH136366355',
      requesterId: 'WHS000001',
      status: [Object],
      createdOn:<PHONE_NUMBER>426
    }
  ]
}
Sleep 120000ms
https PUT {"path":"/traceability/shipment/update/16515134784268407029","method":"PUT","headers":{"content-type":"application/json","content-length":80,"Authorization":"Basic V0hTMDAwMDAxOlRoaXMxc1N1Y2hBUzNjdXJlUGFzc3cwcmQ="},"hostname":"api-whs1-fgt-dev.pharmaledger.pdmfc.com","port":"443"} {"status":"received","extraInfo":"Received in good condition by a test script!"}
res 82ms {
  status: 400,
  error: 'Bad Request',
  message: 'Missing record in table simpleShipments and key<PHONE_NUMBER>4268407029(Path </mydb/simpleShipments/records/16515134784268407029> not found.)'
}

Seems to work.


undefined is not a JavaScript/TypeScript keyword

From @infinnie on November 7, 2016 7:52

VSCode Version: 1.7.1
OS Version:

Steps to Reproduce:

Type undefined in a JavaScript/TypeScript file.
It would be highlighted as a keyword instead of a variable.

However as is specified, undefined is a global constant instead of a keyword.
Copied from original issue: Microsoft/vscode#15083

@aeschli why iam mentioned here

@MandarSant , sorry, copy/paste error.
I meant @infinnie, FYI

undefined is a constant and it is marked as that in the grammar. All the other grammars out there use the same scope.

@aeschli its ok no problem


Memory usage constantly increasing

Hello, could you help me?
I'm using "zeebe-node" in a docker container and I'm having problems.
The memory used by my application is constantly increasing until it crashes.
Did you have any problems with this when using this lib?
Note: The memory increase occurs even though there are no tasks for workers.
This is the memory usage constantly increasing:

This is my code:
file src/envio-consulta-produto/index.js:

files src/workers/*.js:

Hi @lucasgiusti,
I can't see anything in your code that would cause a memory leak. I have applications running for months with the zeebe-node client with no leaks.
It looks like you can see a measurable increase in a relatively short period of time. Let me make a small project and test it.

Here is my code:
import { ZBClient, Duration } from "zeebe-node";
import { config } from "dotenv";
import got from "got";

config();

const zbc = new ZBClient();

zbc.createWorker("get-time", async (job, complete) => {
  const time = await got("https://json-api.joshwulf.com/time").json();
  console.log(time);
  complete.success({ time });
});

zbc.createWorker("make-greeting", (job, complete) => {
  const { greeting } = job.customHeaders;
  const { name } = job.variables;
  const say = `${greeting} ${name}`;
  console.log(say);
  complete.success({ say });
});

setInterval(() => {
  console.log(Date.now().toLocaleString(), process.memoryUsage());
}, Duration.milliseconds.from(Duration.minutes.of(5)));

I will run this with the 0.24.0 release for a few hours and report back what I see.

Nice @jwulf,
thank you so much for your help!

After three hours there is no memory increase. Could it be somewhere else in your code?
Can you make a minimum reproducer?

My code is just this.
The difference cannot be the settings below ?
{ longPoll: Duration.minutes.of(10) }
{ timeout: Duration.minutes.of(5) }

Nope. Here is the result with those settings:
Wed, 26 Aug 2020 10:27:21 GMT Memory: 168.0M
Wed, 26 Aug 2020 10:32:21 GMT Memory: 168.0M
Wed, 26 Aug 2020 10:37:21 GMT Memory: 152.9M
Wed, 26 Aug 2020 10:42:21 GMT Memory: 131.9M
Wed, 26 Aug 2020 10:47:21 GMT Memory: 131.9M
Wed, 26 Aug 2020 10:52:21 GMT Memory: 131.9M
Wed, 26 Aug 2020 10:57:21 GMT Memory: 132.6M
Wed, 26 Aug 2020 11:02:21 GMT Memory: 132.6M
Wed, 26 Aug 2020 11:07:21 GMT Memory: 132.3M
Wed, 26 Aug 2020 11:12:21 GMT Memory: 132.8M
Wed, 26 Aug 2020 11:17:21 GMT Memory: 132.9M
Wed, 26 Aug 2020 11:22:21 GMT Memory: 133.0M
Wed, 26 Aug 2020 11:27:21 GMT Memory: 133.8M
Wed, 26 Aug 2020 11:32:21 GMT Memory: 133.3M
Wed, 26 Aug 2020 11:37:21 GMT Memory: 134.3M
Wed, 26 Aug 2020 11:42:21 GMT Memory: 134.0M
Wed, 26 Aug 2020 11:47:21 GMT Memory: 134.6M
Wed, 26 Aug 2020 11:52:21 GMT Memory: 135.6M
Wed, 26 Aug 2020 11:57:21 GMT Memory: 135.9M
Wed, 26 Aug 2020 12:02:21 GMT Memory: 136.4M
Wed, 26 Aug 2020 12:07:21 GMT Memory: 136.5M
Wed, 26 Aug 2020 12:12:21 GMT Memory: 137.4M
Wed, 26 Aug 2020 12:17:21 GMT Memory: 137.9M
Wed, 26 Aug 2020 12:22:21 GMT Memory: 138.1M
Wed, 26 Aug 2020 12:27:21 GMT Memory: 138.8M
Wed, 26 Aug 2020 12:32:21 GMT Memory: 138.4M
Wed, 26 Aug 2020 12:37:21 GMT Memory: 139.1M
Wed, 26 Aug 2020 12:42:21 GMT Memory: 139.2M
Wed, 26 Aug 2020 12:47:21 GMT Memory: 140.0M
Wed, 26 Aug 2020 12:52:21 GMT Memory: 142.1M
Wed, 26 Aug 2020 12:57:21 GMT Memory: 142.1M
Wed, 26 Aug 2020 13:02:21 GMT Memory: 142.5M
Wed, 26 Aug 2020 13:07:21 GMT Memory: 110.4M

Run my code in your environment, and see if you can reproduce it.
Then add in additional parts of your code, until you isolate what it is.
Alternatively, if you can create a minimal reproducer that demonstrates it, I can run that.

Ok,
I will do this test and comment here.
Thank you!

Hi,
I did the example below and the memory increase occurred:
`'use strict';
const { ZBClient, Duration } = require('zeebe-node');
const zbc = new ZBClient(process.env.ZEEBE_ADDRESS);
const Dayjs = require('dayjs');
zbc.createWorker("parser-preco-to-gaia-v1", (job, complete) => {
const { greeting } = job.customHeaders;
const { name } = job.variables;
const say = ${greeting} ${name};
console.log(say);
complete.success({ say });
});
setInterval(() => {
console.log(
Dayjs().toString(),
"Memory: " + (process.memoryUsage().rss / 1024 / 1024).toFixed(1) + "M"
);
}, Duration.milliseconds.from(Duration.minutes.of(5)));`
Wed, 26 Aug 2020 17:35:53 GMT Memory: 77.7M Wed, 26 Aug 2020 17:40:53 GMT Memory: 78.3M Wed, 26 Aug 2020 17:45:53 GMT Memory: 80.4M Wed, 26 Aug 2020 17:50:53 GMT Memory: 81.9M Wed, 26 Aug 2020 17:55:53 GMT Memory: 84.3M Wed, 26 Aug 2020 18:00:53 GMT Memory: 85.7M Wed, 26 Aug 2020 18:05:53 GMT Memory: 85.6M Wed, 26 Aug 2020 18:10:53 GMT Memory: 85.9M Wed, 26 Aug 2020 18:15:53 GMT Memory: 86.6M Wed, 26 Aug 2020 18:20:53 GMT Memory: 86.6M Wed, 26 Aug 2020 18:25:53 GMT Memory: 87.3M Wed, 26 Aug 2020 18:30:53 GMT Memory: 87.3M Wed, 26 Aug 2020 18:35:53 GMT Memory: 88.3M Wed, 26 Aug 2020 18:40:53 GMT Memory: 88.1M Wed, 26 Aug 2020 18:45:53 GMT Memory: 89.0M Wed, 26 Aug 2020 18:50:53 GMT Memory: 87.7M Wed, 26 Aug 2020 18:55:53 GMT Memory: 88.0M Wed, 26 Aug 2020 19:00:53 GMT Memory: 88.3M Wed, 26 Aug 2020 19:05:53 GMT Memory: 88.9M Wed, 26 Aug 2020 19:10:53 GMT Memory: 89.3M Wed, 26 Aug 2020 19:15:53 GMT Memory: 88.7M Wed, 26 Aug 2020 19:20:53 GMT Memory: 89.2M Wed, 26 Aug 2020 19:25:53 GMT Memory: 90.0M Wed, 26 Aug 2020 19:30:53 GMT Memory: 89.1M Wed, 26 Aug 2020 19:35:53 GMT Memory: 89.9M Wed, 26 Aug 2020 19:40:53 GMT Memory: 90.1M Wed, 26 Aug 2020 19:45:53 GMT Memory: 90.5M Wed, 26 Aug 2020 19:50:53 GMT Memory: 90.1M Wed, 26 Aug 2020 19:55:53 GMT Memory: 90.9M Wed, 26 Aug 2020 20:00:53 GMT Memory: 91.0M Wed, 26 Aug 2020 20:05:53 GMT Memory: 91.2M Wed, 26 Aug 2020 20:10:53 GMT Memory: 91.2M Wed, 26 Aug 2020 20:15:53 GMT Memory: 91.6M Wed, 26 Aug 2020 20:20:53 GMT Memory: 92.1M Wed, 26 Aug 2020 20:25:53 GMT Memory: 91.0M Wed, 26 Aug 2020 20:30:53 GMT Memory: 91.7M Wed, 26 Aug 2020 20:35:53 GMT Memory: 91.8M Wed, 26 Aug 2020 20:40:53 GMT Memory: 91.7M Wed, 26 Aug 2020 20:45:53 GMT Memory: 92.5M Wed, 26 Aug 2020 20:50:53 GMT Memory: 92.4M Wed, 26 Aug 2020 20:55:53 GMT Memory: 92.4M Wed, 26 Aug 2020 21:00:53 GMT Memory: 92.5M Wed, 26 Aug 2020 21:05:53 GMT Memory: 92.9M Wed, 26 Aug 2020 21:10:53 GMT Memory: 92.8M Wed, 26 Aug 2020 21:15:53 GMT Memory: 93.8M Wed, 26 Aug 2020 21:20:53 GMT Memory: 93.9M Wed, 26 Aug 2020 21:25:53 GMT Memory: 94.0M Wed, 26 Aug 2020 21:30:53 GMT Memory: 94.4M
Which docker image did you use? I used the image "node: 13.5.0"

Hi @jwulf,
Can you run the code below in a container with a docker image "FROM node: 13.5.0" for a few hours?
Thus, I managed to reproduce the error with the code below:
'use strict';

const { ZBClient, Duration } = require('zeebe-node');
const zbc = new ZBClient(process.env.ZEEBE_ADDRESS);
const Dayjs = require('dayjs');

zbc.createWorker("parser-preco-to-gaia-v1", (job, complete) => {
  const { greeting } = job.customHeaders;
  const { name } = job.variables;
  const say = `${greeting} ${name}`;
  console.log(say);
  complete.success({ say });
});

setInterval(() => {
  console.log(
    Dayjs().toString(),
    "Memory: " + (process.memoryUsage().rss / 1024 / 1024).toFixed(1) + "M"
  );
}, Duration.milliseconds.from(Duration.minutes.of(5)));

These are two files to compare the memory change in Google Chrome. But I don't know the "node-zeebe" code to do an analysis:
heapsnapshot files

Can you make a repo with an MRE in it? If you can do that, then I can clone it locally and run docker-compose up, and we'll know that we are running the exact same code.
I'm keen to reproduce this and figure it out.

Nice,
I will create and post right here.

Hi,
My last execution return this data:

The code is available in:
https://github.com/lucasgiusti/test-zeebe
See Readme.md
Tks @jwulf .

Yes, I reproduced it with this. Over 12 hours, it went from 22MB to 44MB memory usage.

Do you know how to identify memory problems in nodejs.snapshot files?
I tried, but I can't.
@jwulf

Hi @jwulf could u understand why the process is consuming so much memory that it stops the docker?
I work with @lucasgiusti on that case

I think this is a Garbage Collector issue in Node 13.
The odd numbered Node releases are development versions. 12 and 14 are production releases.
On Node 12 on my laptop, and if I rebuild this container with Node 14.2.0, I don't see the memory leak issue.

Closing this for now - if you still see the issue with v0.25.0 of the client on Node 12 or 14, let me know.


Missing folder when checking out multiple repositories with the same name

Agent Version and Platform
3.213.2 / Linux
What's not working?
Considering this example:
resources:
  repositories:
    - repository: MyRepo
      type: git
      name: myrepo
...

steps:
  - checkout: MyRepo
    path: s/myrepo
  - checkout: MyRepo
    path: s/myrepo2

The first checkout steps checks out MyRepo to s/myrepo. According to the logs, the second checkout step checks out MyRepo to s/myrepo and then moves it to s/myrepo2: "Repository is current at '/home/vsts/work/1/s/myrepo', move to '/home/vsts/work/1/s/myrepo2'."
The result after the second checkout is that s/myrepo2 exists, but s/myrepo does not exist.

@schenker thank you for reporting this issue, we will take a look at it in order of priority.


HashChecker example is broken

https://github.com/pytorch/data/blob/6a8415b1ced33e5653f7a38c93f767ac8e1c7e79/torchdata/datapipes/iter/util/hashchecker.py#L36-L48
Running this will raise a StopIteration. The reason is simple: we want to read from a stream that was already exhausted by the hash checking. The docstring tells us that much
https://github.com/pytorch/data/blob/6a8415b1ced33e5653f7a38c93f767ac8e1c7e79/torchdata/datapipes/iter/util/hashchecker.py#L32-L33
and we correctly set rewind=False.

Thanks for flagging this. We definitely need to review the examples and tutorial before the next release.


Would you like to implement a reliable message queue using RPOPLPUSH?

similar project: https://github.com/adjust/rmq

Looks like one already exists :P You could also check out https://github.com/mc0/okq which I worked on with some other friends, it's currently being used in production at my current company and it's working out pretty great. Hope this helps!

Also I should say that antirez is discussing adding kafka-style queues to redis as a builtin type, which will be interesting and is definitely something to keep an eye out for, as that would probably cover your use-case as well once it's out.


FIX-#0000: Fix a typo in expr.py

Fixed typo

@modin-project/modin-core I personally don't mind merging pull requests of this kind without an issue, how do you feel about that?

@Egor-Krivov, please sign the commit message with git commit --amend -s and then push the changes with git push -f.

@YarShev the commit message itself doesn't matter since we can rewrite it when we squash and merge. But we do have a policy of signing commits.


[music3] Layer Settings ergonomic update

Will be rebased with the other music3 Pull Requests.
This PR:

change the color name of layers (which was black on dark gray background), and put it on bold
when you "close" the Layer Settings (hide the body of the toolbox), the interactor part is also closed. It was really painful to see this part always opened on a small screen.

And closed:

:m:

Nice


[Bug]: await puppeteer.launch() does not initialize

Bug expectation
I'm trying to run puppeteer inside a docker container using node 14.15.2 and the alpine version of linux.
I configured the dockerfile according to the documentation and when calling the function nothing is returned, creating a looping. Investigating I found that the launch() function never ends.
# Dockerfile

FROM node:14.15.2-alpine as builder

# Installs latest Chromium (100) package.
RUN apk add --no-cache \
  chromium \
  nss \
  freetype \
  harfbuzz \
  ca-certificates \
  ttf-freefont

# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

WORKDIR /app
COPY . .
RUN npm install && npm cache clean --force
RUN if [ "$AUDIT_FIX" = "true" ]; then npm audit fix; fi;
RUN npm run build

# Add user so we don't need --no-sandbox.

USER pptruser

CMD ["npm", "run", "start:dev"]

import * as fs from 'fs'
import { join } from 'path'
import puppeteer from 'puppeteer'
import handlebars from 'handlebars'

async generatePdfToBuffer(template: string, data: any) {
        try {
            const templateFile = fs.readFileSync(
                join(process.cwd(), `templates/${template}/index.hbs`),
                'utf-8'
            )
            const parseTemplate = handlebars.compile(templateFile)
            const parseHTML = parseTemplate(data)

            const browser = await puppeteer.launch({
                args: ['--no-sandbox', '--disable-setuid-sandbox']
            })

            const page = await browser.newPage()

            await page.setContent(parseHTML)
            await page.emulateMediaType('screen')

            const pdfBuffer = await page.pdf({ format: 'a4' })

            await browser.close()

            if (pdfBuffer) return pdfBuffer
        } catch (error) {
            console.log('ERROR, error during PDF creation ', error)
            throw `ERROR, error during PDF creation: ${error}`
        }
    }

Bug behavior

[ ] Flaky
[ ] PDF

Minimal, reproducible example
import * as fs from 'fs'
import { join } from 'path'
import puppeteer from 'puppeteer'
import handlebars from 'handlebars'

async generatePdfToBuffer(template: string, data: any) {
        try {
            const templateFile = fs.readFileSync(
                join(process.cwd(), `templates/${template}/index.hbs`),
                'utf-8'
            )
            const parseTemplate = handlebars.compile(templateFile)
            const parseHTML = parseTemplate(data)

            const browser = await puppeteer.launch({
                args: ['--no-sandbox', '--disable-setuid-sandbox']
            })

            const page = await browser.newPage()

            await page.setContent(parseHTML)
            await page.emulateMediaType('screen')

            const pdfBuffer = await page.pdf({ format: 'a4' })

            await browser.close()

            if (pdfBuffer) return pdfBuffer
        } catch (error) {
            console.log('ERROR, error during PDF creation ', error)
            throw `ERROR, error during PDF creation: ${error}`
        }
    }

Error string
NA
Puppeteer configuration
No response
Puppeteer version
19.7.1
Node version
v14.15.2
Package manager
npm
Package manager version
6.14.9
Operating system
macOS

Which Chromium version are you using? Note that Puppeteer is only compatible with the Chromium version it installs. Also, could you try the official docker image https://github.com/puppeteer/puppeteer/pkgs/container/puppeteer

@OrKoN I'm using the latest version of puppeteer which was just installed by package.json

@LandimTiago ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser the env var says to use the version from the Docker image.

@OrKoN Can you help me adapt my dockerfile to use the latest version?

You can use the official Dockerfile https://github.com/puppeteer/puppeteer/blob/main/docker/Dockerfile

Note you can replace the archive copy and npm i from the archive with npm i puppeteer@latest. We use the archive so that we can publish during the release before the npm package is published.

I am closing the issue as I believe it is a mismatch between the chromium and puppeteer versions in the custom docker image. Feel free to provide additional details but I am pretty confident launch works in Docker because we have a test for that.


Logs fail with no RTC

You might know this already, but from running in the emulator it appears that the logs fail because the filename is dependent on rtc.datetime and if there's no rtc then it can't get rtc.datetime, so is this bug more along the lines of finding a way to get the date and time for the log file without using rtc.datetime if there is no rtc?

Resolved by #336


Add test for inventory subcommnd

Depends-On: https://github.com/ansible/ansible-navigator/pull/136

Update integration test common code to emulate user
UI integration and fetch the terminal output
for end-to-end testing
Add integration tests for inventory subcommnad
Add unit test for inventory subcommand

recheck

recheck


Get bill from id endpoint missing

Describe the bug
Currently, there is no endpoint for getting a bill based on id
Expected behavior
There should be an endpoint fo getting the bill from bill id
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.
Checklist:

[x] I have double checked that the issue does not currently exist.
[x] I have added the appropriate labels (e.g. bug, front-end, back-end).
[x] I have added the Platform Project project

for now we will just use the /bills endpoint and filter by id on the client side. May reopen in the future


Defect: wrong value for this_image() in array constructor

[x] I am reporting a bug others will be able to reproduce and not asking a question or requesting a new feature.

System information including:

OpenCoarrays Version: 2.7.1
Fortran Compiler: gfortran 9.2.0
C compiler used for building lib: gcc 9.2.0
Installation method: cmake
All flags & options passed to the installer
CC=gcc FC="gfortran -I$MPI_BASE/include/gfortran/9.1.0" cmake /dss/dsshome1/lrz/noarch/src/compilers/gcc/opencoarrays/OpenCoarrays-2.7.1 -DCMAKE_INSTALL_PREFIX=${PWD}
Output of uname -a:
Linux mpp2-login5 4.4.180-94.100-default #1 SMP Tue Jul 9 19:57:20 UTC 2019 (1569ffb) x86_64 x86_64 x86_64 GNU/Linux
MPI library being used: Intel MPI 2019 update 5
Machine architecture and number of physical cores: Haswell 28 core
Version of CMake: 3.10 (self-installed)

To help us debug your issue please explain:
What you were trying to do (and why)
assign to an array constructor:
a = (/ this_image(), 5*this_image() /)
What happened (include command output, screenshots, logs, etc.)
resulting value of a after the statement is [ 0,0 ]
What you expected to happen
resulting value of a after statement is [ 1,5 ] on image 1
Step-by-step reproduction instructions to reproduce the error/bug
Use the following code:
program test_constr
  use, intrinsic :: iso_fortran_env
  implicit none

  real :: a(2), temp

  a = (/ this_image(), 5*this_image() /)
  write(output_unit,*) "first a is: ", a

  sync all
  a =  this_image()
  write(output_unit,*) "second a is: ", a

end program

build it with
caf tu.f90
execute with
cafrun -n 1 ./a.out
Notes:

more than 1 image also gives wrong results on the other images.
building with -fcoarray=single produces the expected result.
assigning a scalar that is broadcast to the array works as expected.

Thanks for reporting this. This smells like a GFortran front-end/IR problem to me. I'll try to investigate and if I confirm that to be the case we should open an issue upstream.

Retesting with gfortran 15 (current development) and mpich and intel mpi. In both cases I see no issues. Can you retest?


iOS Table Header & Footer

:warning: Not ready to merge :warning:
OK OK OK it's been a long time coming. This works in the basic test (in the demo app,) and I wanted to get your take so far @joshaber , in general and on this question:

When is it safe (or not safe) to read Element.frame?

Sorry for not reviewing this yet :disappointed: Soon!

Sorry for taking so long to get to this :sob: This looks like a pretty sensible direction :+1:

When is it safe (or not safe) to read Element.frame?

Generally elements are laid out after diffing is done. Is there some particular case you're wondering about?

@joshaber OK I think this is ready for a legit review. I've updated the iOS demo to have dynamic header and footer heights. One major library-wide change is 5f14ab5

@joshaber Would you mind reviewing this?

Sorry, I somehow missed that this was ready for review!

@joshaber Cool, left a couple notes

@joshaber Changes made. How's it look?

:metal:


[Bug]: module.kube-hetzner.null_resource.kustomization Create filed

Description
Changed k3s auto update option to false.
After the apply I see an error in module.kube-hetzner.null_resource.kustomization

Apparently, this is due to some module updates
Platform
Linux

I'm sorry! I re-applied it. And it worked!


Update pypi with 3.1.0

Hey,
It seems like pypi still has  3.0
https://pypi.python.org/pypi/django-robots
Can you guys also update pypi with 3.1.0 so it would be downlodable with pip?

For people who do not want to wait you can add tag 3.1.0 directly from github to your requirements.
Just add following line to your requirements.txt file.
# django-robots
-e<EMAIL_ADDRESS>

@jezdez any plans for it?

@tony @jezdez @jazzband-bot Is this still in progress?

@ratson, yes.

Can we release this without the automatic release system?

Ugh, tomorrow...

Thank you for your patience folks 🙇
I've enabled project releases and made @tony and me project lead members. That means we'll get notified when a git tag is pushed to GitHub and the deploy via Travis succeeds. Once that's done we'll confirm the release to push to PyPI.

Also, a new 3.1.0 tag is running on Travis right now and will trigger this system. So expect a release on PyPI soon.


Idiomatic method for returning many-to-many models

Hi Sqlx,
What is the idiomatic way of returning models in a many-to-many relationship? Specifically when returning a single struct as opposed to return tuple pairs.
Given Video, Tags, VideoWithTags and VideoTags models where VideoTags is a join table containing the key-pairs of video_id and tag_id. The VideoWithTags has all the same field as Videos with an extra tags: Vec<Tag> field. I tried to return everything in a single await chain using and_then. However, the inner .map returns an error that it is not async. This is what I tried:
let recs = sqlx::query(
    r#"
    SELECT *
    FROM videos"#,
)
.map(|rec: SqliteRow| VideoWithTags {
    id: rec.get(0),
...
    tags: Vec::new(),
})
.fetch_all(pool)
.await
.and_then(|videos| {
    videos
        .into_iter()
        .map(|video| {
            let tags = sqlx::query(
                r#"SELECT tags.label
    FROM tags
    JOIN video_tags ON tags.id = video_tags.tag_id
    WHERE video_tags.video_id = ?1"#,
            )
            .bind(video.id)
            .map(|row: SqliteRow| NewTag {
                id: None,
                label: row.get(0),
            })
            .fetch_all(pool)
            .await?;
            video.tags = tags;
            Ok(video)
        })
        .collect()
});

The error is: await is only allowed inside async functions and blocks only allowed inside async functions and blocks. I understand that map is sync and I've managed to do it using two sqlx::query blocks but I liked the idea of using and_then.

If you use futures::TryFutureExt you can lift the .await down below .and_then(), and then you can make your map closure return an async block and use futures::future::try_join_all() to run all the subsequent fetches concurrently:
use futures::{TryFutureExt, future::try_join_all};

let recs = sqlx::query(
    r#"
    SELECT *
    FROM videos"#,
)
.map(|rec: SqliteRow| VideoWithTags {
    id: rec.get(0),
...
    tags: Vec::new(),
})
.fetch_all(pool)
.and_then(|videos| {
    try_join_all(videos
        .into_iter()
        .map(|video| async {
            let tags = sqlx::query(
                r#"SELECT tags.label
    FROM tags
    JOIN video_tags ON tags.id = video_tags.tag_id
    WHERE video_tags.video_id = ?1"#,
            )
            .bind(video.id)
            .map(|row: SqliteRow| NewTag {
                id: None,
                label: row.get(0),
            })
            .fetch_all(pool)
            .await?;
            video.tags = tags;
            Ok(video)
        })
        .collect())
})
.await;

We don't .await the try_join_all() because .and_then() when called on a Future is expecting the closure to return a Future, so it's redundant.

Thanks! Closing as answered


Make widgets freely resizable (or give horizontal resize options)

Suggested new feature or improvement
Make widget freely resizable not just vertical resize. Or at least add support for few fixed horizontal resize views.
Scenario
I added a widget to view my PRs. I can only resize vertically and long sentences broken in multiple lines feels like strain on my eyes.
Additional details
No response

Duplicate of #724


Bad accuracy after model training

hi， I downloaded the model.zip file you provided and found that the trained ply files in it are very large, such as the garden model (more than 1 GB), and the results are very good, but my own training .ply file is not good and is only 10–20 MB in size. Should I have to change any parameters or other settings?

The size of the trained PLY files depends on various factors, including the complexity of the model and the training parameters. If your own training PLY file is significantly smaller (10-20 MB), it could be due to a simpler or less detailed model.
You might consider adjusting parameters such as the number of training iterations, learning rate, or model architecture to enhance the quality of your trained PLY file. Experimenting with these parameters could help you achieve better results, but it's essential to strike a balance between model quality and computational resources.
Feel free to share more details about your training process or specific issues you're facing, and I can provide further guidance.


scenario layuots

Hi, is there a way to import official scenarios to know what tiles will be used?
just for time saving
tks

No, but you can look through all the text of the scenarios, in the import directory (C:\Users\Bruce\AppData\Roaming\Valkyrie\MoM\import\text).


License

Could you add a license to this repo please?
Ideally same license as SDL2.

Yes i can understand this. It's just i was thinking about this before and realizing i was not a lawyer and didn't really understand any of it. So i kind of pushed it to the side. What would be the simplest route to giving it the same license as the original SDL2 had?

The SDL license is here: https://www.libsdl.org/license.php and it references the Zlib license here:

Add a file called LICENSE

Put this text in the file and click commit.
Zlib License
Copyright (C) 2024 Jeremiah Cheatham
This software is provided 'as-is', without any express or implied
warranty.  In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
This notice may not be removed or altered from any source distribution.

What i don't understand is does the apply to the lot or do i need to put it inside the SDL2 bindings. Because that is what youre interested in correct is the bindings?

What i don't understand is does the apply to the lot or do i need to put it inside the SDL2 bindings. Because that is what youre interested in correct is the bindings?

Well, I guess people will assume it applies to the whole repo without further guidance - but there is more you can do if you want to make it clear. This is the absolute bare minimum for people to be comfortable what was intended - and to know they are not violating copyright by using it.
If you have time you could also put a comment in the readme.md that says the license applies to all source code in this repository. Additionally, in an ideal world, put a comment at the top of key (or all) files that says 'copyright 2024  licensed under the Zlib license. See the file LICENSE for details.' But realize that is more work than you might want to do.
Some people or companies sometimes put the full license at the top of each file - but that's probably excessive for our purposes and doesn't really add anything extra than what we've done since Zlib is an OSI recognized license - even if a file gets separated from the repo you still have clarity on the original author and the license. And usually Forth files aren't massive. A one liner makes it clear what is covered and what license you intended.
If there are files in that repository you don't want to covered by this license, then I'd be clear either in that subdirectory or better still at the top of the files affected. I didn't see anything I'd be worried about in this repository.

It's just the fear of doing it wrong or making the wrong choice or if there is a file that's not mine. I don't know it's like you're making some important choice. Are you going to right some games in Forth and SDL2?

I actually posted your video and repo in answer to a games question on the Forth subreddit of the Reddit site.
I'd also like to write some games in Forth - and also use SDL for a test system for Forth code - like to test games for the Spectrum Next directly n SDL without using a Spectrum Next emulator or the actual machine.

I would love to see project written in forth with the SDL2. I really enjoy the forth language. The plan for the next 6 months or year is to create Beginners Guide, Yellow Snow, Game of Life, Super Clock, Minesweeper, Tetris and Asteroids in each of the languages. I have been working on Lua since it's the simplest and followed the configuration of neovim. But i plan to make these videos for each language and also i have a number of languages to add still. But one thing i thought about doing when i have 5 or more games in a language is to run a game jam on itch.io. As an example after making 4 or 5 game tutorials in Forth then run a game jam for a month or more so people can actually fallback on all the existing videos to make there projects. I think that would be a great way for people to try out making a game in Forth and also having some helpful source of information. And then we could show off the games made on channel. That has been an idea i have running around in my head. Though i do want to add a neural network to Yellow Snow so it can play itself. But i really want to show it off in COBOL because that would just be too funny to teach AI in SDL but using COBOL.

I've used C, C++, Lua, Love2D, Python, assembler and BASIC for making games with. I like Lua a lot. My next game project is to finish a Forth game port (from a C game I wrote many years ago) - but add graphics. However, at the moment I'm working on robots and also super cheap (0.05) microcontroller Forth. So many projects, so little time!

Ah time. Yes I want to make a attiny85 handle held but wanted a larger screen and got caught out by the different ic2 led screens. I still haven't gotten back to it. I also want to make an 8bit computer that doesn't cost as much as a car like all the other retro over priced stuff. I was looking at using 3 ATMegas 1 for cpu 1 for io and sound and 1 for graphics. But I have to pick a project so I'm doing the videos for now.


Creating WCON-structured data in memory is fiddly

I propose that every language that we support provide a basic set of routines to help the user create WCON data.  These routines would include:

A function to create each structure (arena, software, etc.)--optionally with whatever language-specific features make it most convenient (named arguments, default values, whatever)
A function to create a single data entry from numbers
A function to merge data entries into array form

I am not sure to what extent these things already exist, but for the library to be useful we need to be able to create and write data, not just read it.

I don't think the current WCON interface has an abstract interface to in-memory movement data. I think that would be useful to have, with language-specific implementations.
I believe for now we have an I/O interface in that we get some language specific data structure, from which users are expected to manipulate using language features (e.g. arrays etc ...) .

I have a draft in Scala up at https://github.com/Ichoran/tracker-commons/tree/scala-simplified
The Readme gives an example of usage: https://github.com/Ichoran/tracker-commons/tree/scala-simplified/src/scala
The main source file is at https://github.com/Ichoran/tracker-commons/blob/scala-simplified/src/scala/src/main/scala/Create.scala
The basic idea is as follows, in Scala.  You create the pieces you need by saying Create.nameOfPiece and then call a chain of methods to add stuff until you have everything you need.  This is done in order to let the type system help ensure that the construction is done properly.  In other languages with weaker type systems, this can just be a standard mutable builder (i.e. you call the methods repeatedly on the object without chaining them); on languages with liquid or path-dependent types (possibly Kotlin?) or typed reassignment (Rust), you could reassign the variable and preserve the type change.
Languages without type-level guarantees should probably provide a validate method to check everything and/or a conditional creation method that returns some sort of optional construct that is empty if the conditions were not met.
Here's a complete minimal example from my command-line during testing:
scala> Create.wcon().
setMeta(Create.meta().addWho("Rex")).
addData(Create.worm("wiggy").add(0.5, Array(1, 2.5), Array(2, 0.5)).result).
setUnits().result
res1: org.openworm.trackercommons.DataSet = DataSet(Metadata(Vector(),Vector(Rex),None,None,None,None,None,None,None,None,None,None,Vector(),Vector(),None,{}),UnitMap(Map(t -> LinearConvert(s,1.0,0,1,0), y -> LinearConvert(mm,1.0,1,0,0), x -> LinearConvert(mm,1.0,1,0,0)),{}),[Lorg.openworm.trackercommons.Data;@40444407,FileSet(Vector(),0,{}),{})

scala> res1.json
res2: kse.jsonal.Json = { "units":{ "t":"s", "y":"mm", "x":"mm" }, "data":[{ "id":"wiggy", "t":0.5, "x":[1, 2.5], "y":[2, 0.5] }], "metadata":{"who":"Rex"} }


Clarify "workspace" option.

Frequently misunderstood.
People think this is the path to their project, not a tmp location.

👍 I got confused at this.

I'd consider renaming "workspace" to something else, but mainly I'd strongly suggest to have shipitjs automatically use a temp folder as a convention, and clean it afterwards. For this you may use nodejs's os.tmpdir() or something similar.
Users who are sure they know what they're doing and for whatever reason don't want this default behaviour can of course specify a different path in their shipitfile.js.
A task that permanently deletes files from disk without the user explicitly confirming "yes, I'm sure I want those files gone forever" is very risky. Even more so when the main purpose of the task is to deploy your app, which could be thought of as exactly the opposite of deleting your app.

Workspace is changed in v4. It has now two different behaviours, in shallowClone and in no-shallowClone:

shallowClone: true: a new temporary workspace is generated each time you deploy.
shallowClone: false (default): same behaviour as before except that we will never run rm -rf in the workspace (before it was in shallowClone: true). I also added a warning if the workspace is set in the current directory.

https://github.com/shipitjs/shipit/pull/157/commits/25050848e3d5c250d1489402ebf5648af5321539


NewUI theme key added

MainWindow.Tab theme key added, plus minor color adjustment have been made.
Please take a look:
GitHub Dark
Before

After

GitHub Dark Dimmed
Before

After

Looks great and thanks for the screenshots! I'll make some new ones with some different languages at some point.


python3Packages.jaxlib build failure on x86_64-linux as of c7943e15

Issue description
Build of python3Packages.jaxlib failed on x86_64-linux as of c7943e15473a212ab9a3de79fbaa3110e384e281. This is currently breaking python3Packages.tensorflow-bin.
error: builder for '/nix/store/nr3v0fvkhr8ajy9rm0frm78p8ml7a1vd-bazel-build-jaxlib-0.4.19.drv' failed with exit code 1;
       last 10 log lines:
       > [3,923 / 5,428] Compiling mlir/lib/Dialect/GPU/IR/GPUDialect.cpp; 51s local ... (2 actions running)
       > ERROR: /build/output/external/llvm-project/mlir/BUILD.bazel:5034:11: Compiling mlir/lib/Dialect/GPU/IR/GPUDialect.cpp failed: (Exit 1): gcc failed: error executing command (from target @llvm-project//mlir:GPUDialect) /nix/store/zlzz2z48s7ry0hkl55xiqp5a73b4mzrg-gcc-wrapper-12.3.0/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 ... (remaining 185 arguments skipped)
       > [3,925 / 5,428] checking cached actions
       > Target //jaxlib/tools:build_wheel failed to build
       > Use --verbose_failures to see the command lines of failed build steps.
       > INFO: Elapsed time: 7042.625s, Critical Path: 177.16s
       > INFO: 3925 processes: 590 internal, 3335 local.
       > FAILED: Build did NOT complete successfully
       > ERROR: Build failed. Not running target
       >
       For full logs, run 'nix log /nix/store/nr3v0fvkhr8ajy9rm0frm78p8ml7a1vd-bazel-build-jaxlib-0.4.19.drv'.
error: 1 dependencies of derivation '/nix/store/z7xcifly78iks48vmqj75n1dm98lcmxc-python3.11-jaxlib-0.4.19.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wrjiws3x43hd7gghb4aybjva7arlp5b3-python3.11-jax-0.4.19.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x0m15nw9yw92hkmsd403w9zm6vqfh8gh-python3.11-tensorflow-gpu-2.13.0.drv' failed to build

full build log
python3Packages.tensorflow-bin maintainers cc: @jyp @abbradar
python3Packages.jaxlib maintainers cc: @ndl
Other cc: n/a
Steps to reproduce

Checkout nixpkgs at commit c7943e15473a212ab9a3de79fbaa3110e384e281
Run nix-build -A python3Packages.jaxlib

Technical details
 - system: `"x86_64-linux"`
 - host os: `Linux 6.2.0-1015-azure, Ubuntu, 22.04.3 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.16.1`
 - nixpkgs: `/nix/store/8q4j4pfjqi5n9d6gbgk4nyzdw4hb6q9n-source`

Contents of ~/.config/nixpkgs/config.nix:
{ allowUnfree = true; cudaSupport = true; cudaCapabilities = ["8.0"]; }

Misc.
This issue was automatically generated by nixpkgs-upkeep.

CI workflow that created this issue.
Internal tags: -4029767375586425544<PHONE_NUMBER>958767216

Works for me, please fix your CI pipeline. Try https://github.com/easimon/maximize-build-space if you need to

@FliegendeWurst thanks for the pointer! Added that in https://github.com/samuela/nixpkgs-upkeep/commit/9bb1824d279755ee5435b66c760d601dbe130dc5.


iostream error running w2v_accuracy

After running "w2v_accurary" and after all analogies on the test file has been "tested", I get this error:
terminate called after throwing an instance of 'std::ios_base::failure[abi:cxx11]'
  what():  basic_ios::clear: iostream error
Aborted

Here is the full input/output:
$ ./w2v_accuracy model.w2v /home/user/questions-words.txt
 capital-common-countries
section accuracy: 0.405082
 capital-world
section accuracy: 0.142876
 currency
section accuracy: 0.585325
 city-in-state
section accuracy: 0.44021
 family
section accuracy: 0.765345
 gram1-adjective-to-adverb
section accuracy: 0.59348
 gram2-opposite
section accuracy: 0.332675
 gram3-comparative
section accuracy: 0.766856
 gram4-superlative
section accuracy: 0.569138
 gram5-present-participle
section accuracy: 0.73709
 gram6-nationality-adjective
section accuracy: 0.379385
 gram7-past-tense
section accuracy: 0.841701
 gram8-plural
section accuracy: 0.835196
 gram9-plural-verbs
terminate called after throwing an instance of 'std::ios_base::failure[abi:cxx11]'
  what():  basic_ios::clear: iostream error
Aborted

Can anyone help me?

I've fixed this issue related to the empty line parsing in a test phrases file.
You need to update&rebuild sources.

I've cloned the git repository (following the building commands) again, and tried to evaluate my model again, and the same error popup!

hm, can you attach your test phrases file?

Sure! questions-words-pt.txt

I can not reproduce this issue with your test words file.
I think you did not pull last code changes.


Why not 4 different files?

In my nix setup, I dynamically fetch different catppuccin themes from github. Having to manually edit a file doesn't really fit in what I want to do. For now, I just use some hacky string manipulation to automatically do this. The question is - is there any good reason not to have 4 different files like most other catppuccin themes?
Thanks in advance!

Good point, I'll have a look at reworking it, since it also helps with changing themes on the fly.

Just a quick elaboration: Initially I had 4 different files, but I figures that since Alacritty actually supports this more dynamic way of setting the theme it would be the better way to go with. Most other applications do not support this kind of config, hence the lack of similar structure for other ports.
To switch themes I just use sed in this case – which could be considered hacky, but I personally don't think it is.
That said, there is absolutely no point to be made against having separate files either. Do you wanna look into this @nekowinston? Otherwise I can quickly do that. c:

We investigated a couple of possible solutions, and I think the PR I opened is the cleanest one.
The import: mapping can be swapped out for hot-reloading (swapping flavours on the spot), which is why I think it should be a good fit.
Including the existing catppuccin.yml didn't work, because it would render anchors useless. Importing anchors from somewhere else, and then trying to use them inside the alacritty.yml doesn't work, likely because Alacritty already imports the parsed YAML.
I also gave a setup with yq a shot, using:
curl https://raw.githubusercontent.com/catppuccin/alacritty/637645e862edae51160b38248f02e0517b8682ee/catppuccin.yml | yq eval-all '. as $item ireduce ({}; . * $item )' - ~/.config/alacritty/alacritty.yml

Here are the docs.


I2C Support

I2C Peripheral Support:
See Chapter 4 Section 3 of the datasheet for more information.
Each  I2C  controller  is  based  on  a  configuration  of  the  Synopsys  DW_apb_i2c  (v2.01)  IP.  The  following  features  are supported:
•Master or Slave (Default to Master mode)
•Standard mode, Fast mode or Fast mode plus
•Default slave address 0x055
•Supports 10-bit addressing in Master mode
•16-element transmit buffer
•16-element receive buffer
•Can be driven from DMA
•Can generate interrupts
Implementation:
Awaits #4

@AsafFisher Are you still working on this?

no

Initial implementation merged in #56


Encrypt/password-protect the private key

kbs2's threat model is currently narrow: the secret store and private key both live on disk, so any attacker with read access to the user's files might as well have fully access to their unencrypted secrets. In effect, using kbs2 is about the same as using pass with a PGP key that doesn't have a password.
We could improve this by password-protecting the private key. In effect, this would require us to:

Prompt the user for a master password during kbs2 init, or generate one for them
Establish a policy for decrypting the private key using the master password (on login, on first use, after periods of inactivity, &c)
Maintain an agent-style program that persists the unencrypted private key in its memory for kbs2 sessions to consume

(We could probably piggyback off of age-mount here, except that it doesn't exist yet. rage-mount does exist, but this'll need to be available in both implementations before kbs2 can take advantage of it).

More spitballing:

It'd be really good if we could avoid an agent-style program for persistence, since agents are terrible and users hate them (rightfully so).
Since age-mount doesn't exist yet, we could try doing it our own way. Some ideas:

Mounting our own swapless, read-only tmpfs (or ramfs) to place the decrypted private key in. This requires root at least once, to give the user account mounting permissions. It's also probably hard to do right (and securely) across multiple platforms. Meh.
Using POSIX shared memory (i.e., shm_open). This will need to be evaluated for security properties (can permissions be restricted beyond mode? Does it matter? Does POSIX allow shared memory to be swapped to disk?) Rust support for this might also be shaky.

Continuing the above: POSIX shared memory might be the best bet here:

It works on both Linux and macOS.
It probably won't get swapped to disk (at least with /dev/shm on Linux).
It's persistent while the machine is powered on, and is automatically destroyed on power-down.
It doesn't require a living process.

On the other hand:

The swapping behavior of POSIX shared memory objects is unspecified.
Shared memory is system wide, not tied to a login session. This is probably reasonable for our threat model, but is a little unintuitive (and might surprise users who would otherwise expect to be re-prompted).


[chip-test, adc_ctrl] chip_sw_adc_ctrl_sleep_debug_cable_wakeup

Test point name
chip_sw_adc_ctrl_sleep_debug_cable_wakeup
Host side component
Rust?
Opentitantool infrastructure implemented
Yes
Silicon Validation (SiVal)
Yes
Emulation targets

[ ] None
[ ] CW310
[ ] Hyperdebug + CW310

Contact person
Checklist
Please fill out this checklist as items are completed. Link to PRs and issues as appropriate.

[ ] Check if existing test covers most or all of this testpoint (if so, either extend said test to cover all points, or skip the next 3 checkboxes)
[ ] Device-side (C) component developed
[ ] Bazel build rules developed
[ ] Host-side component developed
[ ] Test added to dvsim nightly regression (and passing at time of checking)
[ ] For SiVal test cases, test is running relevant FPGA or silicon regression

This test needs to inject specific activity in the adc_ctrl, which is only feasible in sim_dv. The test already works in sim_dv, so perhaps this needs to be closed.


Readline no longer loads the shared library under 64-bit Slackware Linux 14.1

Having the hard-coded library version built in to newer versions caused NativeCall to fail while testing:
==> Testing Readline
t/01-load.t .. ok

# Failed test 'initialize'
# at t/02-base.t line 10
# Cannot locate native library 'libreadline.so.6': libreadline.so.6: cannot open shared object file: No     such file or directory

    # Failed test 'macro-dumper lives'
    # at t/02-base.t line 18
    # Cannot locate native library 'libreadline.so.6': libreadline.so.6: cannot open shared object file: No such file or directory
    # Looks like you failed 1 test of 1

# Failed test 'dumpers'
# at t/02-base.t line 13

This was because my system had only libreadline.so.5 installed.
However, after patching the module to attempt loading v5 instead of v6 of the library, it still failed to load do to undefined symbols. The same occurs after building and installing gnu libreadline.so.6.3.
==> Testing Readline
t/01-load.t .. ok

# Failed test 'initialize'
# at t/02-base.t line 10
# Cannot locate native library 'libreadline.so.6': /usr/lib64/libreadline.so.6: undefined symbol: UP

    # Failed test 'macro-dumper lives'
    # at t/02-base.t line 18
    # Cannot locate native library 'libreadline.so.6': /usr/lib64/libreadline.so.6: undefined symbol: UP
    # Looks like you failed 1 test of 1

# Failed test 'dumpers'
# at t/02-base.t line 13

The following symbols are undefined in both library versions:
doug@ender:~/test$ objdump -T /usr/lib64/libreadline.so.6 | grep -P '\b[A-Z][A-Z]$'
0000000000000000      D  *UND*<PHONE_NUMBER>000000              UP
0000000000000000      D  *UND*<PHONE_NUMBER>000000              PC
0000000000000000      D  *UND*<PHONE_NUMBER>000000              BC

Yeah, an old system, but ...
$ uname -a
Linux ender 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz GenuineIntel GNU/Linux

The solution (on my system) was to build the version 6 library from source:
./configure LDFLAGS=-lncurses
make && make install

This produced an additional shared library on my system, and the original system library (version 5) was left alone. BTW, I tried a lot of configure flags (trying to be too specific, I guess) before I found the formula above that worked ;-)
The missings symbols are part of the ncurses (or tinfo) library, which need to be linked explicitly for Readline to work. (Thanks, geekosaur, for the tips) Apparently some distributions prefer to keep the system libraries incomplete (for flexibility?) - but Readline (NativeCall) can't know how to combine additional dependent libraries without being told. There isn't any way to do that, is there?


As a Maker, I need to receive the solution for my bounty so I can use it.

solutions can be provided publicly through the solution submission or out of band, we support both flows.


Add functions ADDTIME and SUBTIME. (#132)

Signed-off-by: Yury-Fridlyand<EMAIL_ADDRESS>Description
I referred to MySQL docs and tried to reproduce MySQL v.8.0.30 behavior as a reference.
Please, see team review and discussion on https://github.com/Bit-Quill/opensearch-project-sql/pull/132.
New functions: ADDTIME/SUBTIME.

Changes

Adds or subtracts time to/from date and returns the result.

Signature
(TIME, TIME/DATE/DATETIME/TIMESTAMP) -> TIME
(DATE/DATETIME/TIMESTAMP, TIME/DATE/DATETIME/TIMESTAMP) -> DATETIME

Future changes (TODOs):

Accept strings as MySQL does
Update if and after https://github.com/opensearch-project/sql/issues/852

Test queries:
SELECT ADDTIME(TIME('23:59:59'), TIMESTAMP('2008-11-15 01:00:00'));
SELECT ADDTIME(TIME('23:59:59'), DATE('2004-01-01'));
SELECT ADDTIME(DATE('2008-12-12'), DATE('2008-11-15'));
SELECT ADDTIME(TIME('23:59:59'), DATETIME('2008-11-15 01:00:00'));

Test data
I found that first 6 rows from date0, time0, time1, datetime0 are good for testing - these columns have different data types in MySQL. In OpenSearch SQL all [date][time] columns have timestamp type, so I use CAST for clear testing.

data
mysql> show fields from Calcs where field IN ('date0', 'time0', 'time1', 'datetime0');
+-----------+-----------+------+-----+---------+-------+
| Field     | Type      | Null | Key | Default | Extra |
+-----------+-----------+------+-----+---------+-------+
| date0     | date      | YES  |     | NULL    |       |
| time0     | datetime  | YES  |     | NULL    |       |
| time1     | time      | YES  |     | NULL    |       |
| datetime0 | timestamp | YES  |     | NULL    |       |
+-----------+-----------+------+-----+---------+-------+
4 rows in set (0.00 sec)
mysql> select date0, time0, time1, datetime0 from calcs;
+------------+---------------------+----------+---------------------+
| date0      | time0               | time1    | datetime0           |
+------------+---------------------+----------+---------------------+
| 2004-04-15 | 1899-12-30 21:07:32 | 19:36:22 | 2004-07-09 10:17:35 |
| 1972-07-04 | 1900-01-01 13:48:48 | 02:05:25 | 2004-07-26 12:30:34 |
| 1975-11-12 | 1900-01-01 18:21:08 | 09:33:31 | 2004-08-02 07:59:23 |
| 2004-06-04 | 1900-01-01 18:51:48 | 22:50:16 | 2004-07-05 13:14:20 |
| 2004-06-19 | 1900-01-01 15:01:19 | NULL     | 2004-07-28 23:30:22 |
| NULL       | 1900-01-01 08:59:39 | 19:57:33 | 2004-07-22 00:30:23 |
| NULL       | 1900-01-01 07:37:48 | NULL     | 2004-07-28 06:54:50 |
| NULL       | 1900-01-01 19:45:54 | 19:48:23 | 2004-07-12 17:30:16 |
| NULL       | 1900-01-01 09:00:59 | 22:20:14 | 2004-07-04 22:49:28 |
| NULL       | 1900-01-01 20:36:00 | NULL     | 2004-07-23 21:13:37 |
| NULL       | 1900-01-01 01:31:32 | 00:05:57 | 2004-07-14 08:16:44 |
| NULL       | 1899-12-30 22:15:40 | 04:40:49 | 2004-07-25 15:22:26 |
| NULL       | 1900-01-01 13:53:46 | 04:48:07 | 2004-07-17 14:01:56 |
| NULL       | 1900-01-01 04:57:51 | NULL     | 2004-07-19 22:21:31 |
| NULL       | 1899-12-30 22:42:43 | 18:58:41 | 2004-07-31 11:57:52 |
| NULL       | 1899-12-30 22:24:08 | NULL     | 2004-07-14 07:43:00 |
| NULL       | 1900-01-01 11:58:29 | 12:33:57 | 2004-07-28 12:34:28 |
+------------+---------------------+----------+---------------------+
17 rows in set (0.00 sec)

Fixes
https://forum.opensearch.org/t/subdate-date-sub-query-method-not-supported/9252
Check List

[x] New functionality includes testing.

[x] All tests pass, including unit test, integration test and doctest

[x] New functionality has been documented.

[x] New functionality has javadoc added
[x] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1194 (b2a46f9) into main (64a3794) will decrease coverage by 2.45%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main    #1194      +/-   ##
============================================
- Coverage     98.30%   95.84%   -2.46%
- Complexity     3503     3552      +49
============================================
  Files           340      352      +12
  Lines          8652     9445     +793
  Branches        550      681     +131
============================================
+ Hits           8505     9053     +548
- Misses          142      334     +192
- Partials          5       58      +53

Flag
Coverage Δ

query-workbench
62.76% <ø> (?)

sql-engine
98.32% <100.00%> (+0.02%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...a/org/opensearch/sql/data/model/ExprDateValue.java
100.00% <100.00%> (ø)

...g/opensearch/sql/data/model/ExprDatetimeValue.java
100.00% <100.00%> (ø)

...a/org/opensearch/sql/data/model/ExprTimeValue.java
100.00% <100.00%> (ø)

.../opensearch/sql/data/model/ExprTimestampValue.java
100.00% <100.00%> (ø)

.../org/opensearch/sql/data/model/ExprValueUtils.java
100.00% <100.00%> (ø)

...arch/sql/expression/datetime/DateTimeFunction.java
100.00% <100.00%> (ø)

...h/sql/expression/function/BuiltinFunctionName.java
100.00% <100.00%> (ø)

...pensearch/sql/expression/function/FunctionDSL.java
100.00% <100.00%> (ø)

...n/java/org/opensearch/sql/utils/DateTimeUtils.java
100.00% <100.00%> (ø)

...c/main/java/org/opensearch/sql/expression/DSL.java
100.00% <0.00%> (ø)

... and 23 more

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

@Yury-Fridlyand There seems some conflicts blocking the merge.

Fixed, please re-approve.


issue 4540

Description
Support the issue mentioned 4540
How to test

seems a new issue occurred in #4540, should we fix it in this pr?


Clang-format error: unknown enumerated scalar SpaceBeforeParens: Custom

When trying to format a C++ file from within Visual Studio Code with the clangd addon, and using clang-format 15.0.6 or 15.0.7 that was previously installed using homebrew (on Mac OSX), I get an error saying:
error: unknown enumerated scalar
SpaceBeforeParens: Custom

According to documentation, this option is valid in version 15

You're probably using Apple's forked version of clangd, they have a different version scheme, it's not actually version 15.
(Clangd does not use any external clang-format program)

Try downloading the release from github.com/clangd/clangd/releases


"Cannot validate argument on parameter 'DriverPackageInput'.

Any idea why this might be happening? this is the PWSH transcript
IPU scenario w/
webservice 1.8.0
Invoke-CMApplyDriverPackage.ps1 3.0.5

Windows PowerShell transcript start
Start time:<PHONE_NUMBER>5751
Username: xxxx\SYSTEM
RunAs User: xxxx\SYSTEM
Configuration Name:
Machine: xxxxxx (Microsoft Windows NT 10.0.17763.0)
Host Application: C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command & 'C:\WINDOWS\ccmcache\k\Invoke-CMApplyDriverPackage.ps1' -URI http://XXXXXX-XXXX/ConfigMgrWebService/ConfigMgr.asmx -SecretKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Filter Driver -DeploymentType OSUpgrade  -TargetOSVersion 18363 ; exit ($LASTEXITCODE -bor [int](-not $? -and -not $LASTEXITCODE))
Process ID: 11960
PSVersion: 5.1.17763.1007
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.1007
BuildVersion: 10.0.17763.1007
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: <IP_ADDRESS>

Command start time:<PHONE_NUMBER>5751

PS>& 'C:\WINDOWS\ccmcache\k\Invoke-CMApplyDriverPackage.ps1' -URI http://XXXXXX-XXXX/ConfigMgrWebService/ConfigMgr.asmx -SecretKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -Filter Driver -DeploymentType OSUpgrade  -TargetOSVersion 18363 ; exit ($LASTEXITCODE -bor [int](-not $? -and -not $LASTEXITCODE))

Command start time:<PHONE_NUMBER>5757

**PS>TerminatingError(Confirm-OSName): "Cannot validate argument on parameter 'DriverPackageInput'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."

TerminatingError(Confirm-DriverPackage): "Cannot validate argument on parameter 'DriverPackageInput'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."**

Windows PowerShell transcript end
End time:<PHONE_NUMBER>5757

here is the apply driver log
[ApplyDriverPackage]: Apply Driver Package process initiated	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)

Apply driver package deployment type: OSUpgrade	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Apply driver package operational mode: Production	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
[PrerequisiteChecker]: Starting environment prerequisite checker	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Supported computer platform detected, script execution allowed to continue	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Computer manufacturer determined as: Lenovo	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Computer model determined as: ThinkPad T470s W10DG	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Computer SystemSKU determined as: 20JS	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Computer model detection was successful	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Computer SystemSKU detection was successful	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Computer details successfully verified	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Determined primary computer detection method: SystemSKU	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
[PrerequisiteChecker]: Completed environment prerequisite checker	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
[WebService]: Starting ConfigMgr WebService phase	ApplyDriverPackage	6/22/2020 2:57:52 PM	11960 (0x2EB8)
Successfully connected to ConfigMgr WebService at URI: http://xxxxx-xxxx/ConfigMgrWebService/ConfigMgr.asmx	ApplyDriverPackage	6/22/2020 2:57:54 PM	11960 (0x2EB8)
Retrieved a total of '71' driver packages from web service matching operational mode: Production	ApplyDriverPackage	6/22/2020 2:57:55 PM	11960 (0x2EB8)
Attempting to detect OS Image data from task sequence with PackageID: SH10050F	ApplyDriverPackage	6/22/2020 2:57:55 PM	11960 (0x2EB8)
Target operating system name detected as: Windows 10	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Target operating system architecture detected as: x64	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Target operating system build version detected as: 10.0.18363.1	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Target operating system translated version detected as: 1909	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
[WebService]: Completed ConfigMgr WebService phase	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
[DriverPackage]: Starting driver package matching phase	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Initial count of driver packages before starting filtering process: 71	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Filtering driver package results to detected computer manufacturer: Lenovo	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Count of driver packages after filter processing: 30	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Filtering driver package results to only include packages that have details added to the description field	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
Count of driver packages after filter processing: 29	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
[DriverPackage:SH1003AE]: Processing driver package with 3 detection methods: Drivers - Lenovo ThinkCentre M700 - Windows 10 x64	ApplyDriverPackage	6/22/2020 2:57:56 PM	11960 (0x2EB8)
[DriverPackage:SH100376]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkCentre M720q - Windows 10 1809 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004DA]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkCentre M720q - Windows 10 1909 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1003B1]: Processing driver package with 3 detection methods: Drivers - Lenovo ThinkCentre M73 - Windows 10 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1003B0]: Processing driver package with 3 detection methods: Drivers - Lenovo ThinkCentre M900 - Windows 10 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH10026E]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad P70 - Windows 10 1809 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1001E4]: Processing driver package with 4 detection methods: Drivers - LENOVO ThinkPad T440p - Windows 10 1803 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004D3]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T460 - Windows 10 1809 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004E0]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T460 - Windows 10 1909 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH100487]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T460s - Windows 10 1809 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004DB]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T460s - Windows 10 1909 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1001E3]: Processing driver package with 4 detection methods: Drivers - LENOVO ThinkPad T470p - Windows 10 1803 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH100488]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T470s W10DG - Windows 10 1809 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched SystemSKU: 20JS	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched operating system name: Windows 10	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched operating system architecture: x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH100488]: Skipping driver package since only 3/4 checks was matched	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004DD]: Processing driver package with 4 detection methods: Drivers - Lenovo ThinkPad T470s W10DG - Windows 10 1909 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched SystemSKU: 20JS	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched operating system name: Windows 10	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched operating system architecture: x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched operating system version: 1909	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004DD]: Driver package was created on: 06/16/2020 15:00:29	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH1004DD]: Match found between driver package and computer for 4/4 checks, adding to list for post-processing of matched driver packages	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[DriverPackage:SH100122]: Processing driver package with 3 detection methods: Drivers - Lenovo ThinkPad T470s W10DG - Windows 7 x64	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
Matched SystemSKU: 20JS	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)
[ApplyDriverPackage]: Apply Driver Package process failed, please refer to previous error or warning messages	ApplyDriverPackage	6/22/2020 2:57:57 PM	11960 (0x2EB8)

it was trying to download an old win 7 driver package


fix spelling typo in jquery.ajax-product-navigation.js

fix spelling typo in jquery.ajax-product-navigation.js getProductState $.publish callback

Description
Please describe your pull request:

Why is it necessary?
to subscribe to the right callback
What does it improve?
accuracy of code
Does it have side effects?
searched the code for the wrong term "onSetProductState" found nothing subscribed to

Questions
Answers

BC breaks?
no

Tests pass?
yes

Related tickets?
-

How to test?
look in code

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-18245.
Please use this issue to track the state of your pull request.

Hey @roman-1983,
thank you for your PR. This change is a break change and should be merged into the 5.3.
Best regards,
Simon

This pull-request will be merged in the 5.3 branch.


Next weekly note command not working

I just started using the plugin so my settings/understanding could be wrong but this is what I'm observing:

Open command palette for "Open weekly note" and it takes me to the current week's note.
If I open the command palette again and go to "Next weekly note" it doesn't go anywhere, this is while I'm on the current week's note.

I made sure to try this from other place, from an unrelated note (not a periodic note), as expected, I don't see the "Next weekly note" command available. But I'm not sure why "Next weekly note" command does not work from current week's note.
I can provide any info if needed.

"Unable to create new file." right?

Hi @usmanity !
Not sure if the same happened to you. I thought I had the same issue you described here. Using the  "Next weekly note" command wasn't doing anything. Then I realized this command is for navigation only, meaning it won't create a new weekly note. However, the command will work if you already have the next/previous weekly notes created already.

Yup! I didn't realize it was only for navigation! I thought it was creation too. Thanks. I'll close this ticket then.


Update config.toml

added dropdown for the Kubeflow 1.5 release

Holding on this until we cut the 1.5 branch. Amber is working getting the CLA signed.


Error on Initial npm run start

Hey bud, so ive downloaded the repo and extracted, successfully executed npm i and it installed all the node mods, however when i run npm run start the following happens,
The node console states successfully compiled but in Dev tools:
Uncaught Error: Actions may not have an undefined "type" property. Have you misspelled a constant?     at dispatch (redux.js:204)     at eval (index.js:56)
Nothing has been changed at all Yet.
I understand your not working on FiveM anymore, but if you can help locate the error? i can possibly fix and push a fix pr?

Hey, thanks for the issue!
I think I've fixed it in this branch. Could you let me know if it works and I'll merge it into master, thanks!

Hey, thanks for the issue!
I think I've fixed it in this branch. Could you let me know if it works and I'll merge it into master, thanks!

Yup, all seems good now, thanks a ton bud

Might wanna edit it in the example as well though :p lol


Edit github workflow to have a new workflow file for Windows trigger, on cron, on manual. It should have a new param to enter the platform of the test.

Right now the cron job is set to 0 0 * * * which will run at midnight UTC, which is 17:00 PDT. This can be modified on further discussion on how frequently and when we should run gradle check on windows.
Additionally, the timeout value is 160 minutes for now.
Opened a draft PR for the infra team to try it out in a Jenkins staging environment and make changes/iterations as needed.

Close this as we dont plan to add gradle check windows to github yet.


The name of the branch should be escaped when creating a Regex

I currently have a module that uses git-rev-sync to get the short hash of the repo.
It fails when attempting to match the contents of the .git/packed-refs file because my branch is named fix/webpack+node
Could bring in https://www.npmjs.com/package/escape-string-regexp as a dep but I'm not 100% how you feel about that.

closing without merge; i went ahead and added the suggested dep rather than duplicate similar code here
rel: https://github.com/kurttheviking/git-rev-sync-js/commit/00282be35becd0482c6e3589dc3c55e2a2e4f305


Expectations and reliability of axial mesh unifiication when detailedAxialExpansion: False.

In creating #797, a potential inconsistency in the expected use and reliability of axial mesh unification when detailedAxialExpansion: False was identified.
In this scenario, the o.r.core.refAssem is typically used as a "reference mesh" to set b.p.topIndex for each block on an assembly.
https://github.com/terrapower/armi/blob/c3872e82e974077e5310176dda7fb02ec535951d/armi/reactor/assemblies.py#L607
b.p.topIndex creates a "reference point" to move block bounds to align with the "reference mesh". I think this approach is usually adequate for scoping studies as o.r.core.refAssem is usually/hopefully the most neutronically important assembly in the core. So forcing every other assembly in the core to match it's block bounds is reasonable.
However, if a user has an assembly that has a finer mesh thn o.r.core.refAssem, the whole approach fails as b.p.topIndex will not have a mesh point to refer to.
https://github.com/terrapower/armi/blob/c3872e82e974077e5310176dda7fb02ec535951d/armi/reactor/assemblies.py#L609-L614
In #797, the "reference assembly" used to populate b.p.topIndex is changed from o.r.core.refAssem to be the assembly with the finest mesh. This guarantees that the detailedAxialExpansion: False axial mesh unification approach will always work. However, this could result in some interesting results.

E.g., consider a test assembly (core location arbitrary) that has the finest mesh (i.e., has the most blocks) and is used as the "reference mesh". The Assembly::setBlockMesh method (which is the primary method for unifying a disjoint axial mesh when detailedAxialExpansion: False) will set all blocks on all other assemblies in the core to be the same coordinates as the test assembly.
If this test assembly has axial expansion/contraction dynamics that are sufficiently different from the rest of the core (i.e., expands way more or less than everything else), a user could get some confusing results without any runLog.error/warning/info messages.
On the other hand, if the user uses the standard o.r.core.refAssem approach, then the method will fail as the test assembly will have mesh points that cannot be referenced to the o.r.core.refAssem.

Good points @albeanth! Its probably recommended to have your non-test assembly have the same number of mesh points as the test assembly, but the test assembly could still be the centermost assembly in the core, in which case we would still be foiled.
Perhaps we should make a new setting where the user can say the type of assembly to use for the reference mesh and if no type is provided we could default to the old behavior?


LS: Ignore warning diagnostics from deps and macro generated files

@Arcticae commented on 29.08.2024, 12:23:52:

Currently we are showing warning diagnostics from dependencies, they should be ignored
Scarb has added this behavior recently: https://github.com/starkware-libs/cairo/pull/6279
Also we can skip warns from virtual files generated by macros

@Arcticae commented on 7.11.2024, 11:46:50:

Blocked by 6128 (namely 3rd bulletpoint)


Add tooltip for elements

Some of the elements at the top are not clear what they do.

Great suggestion! I'll start working on that later today.

Implemented as of af0c228db31b9b4b5d55c28f247546461eab2762. Thank you, @madebyjeffrey!


Introduce Reactor Context#empty Refaster rule

To ensure usage of the intended API.

Suggested commit message:
Introduce Reactor `Context#empty` Refaster rule (#306)

^ Rebased and (hopefully) fixed the build. :ok_hand:

Added a commit to fix the build.
If the formatter is removing an import in the output file, we can add it to the elidedTypesAndStaticImports to make sure the formatter doesn't want to remove the import. The import is unused, but Refaster doesn't remove the import for us.


Mods folder w/ error in video to show possible conflicting mods.

I don't think this is really something I can fix on my end, the enchanted books in the loot pools are added via the vanilla enchant randomly function, which selects a random enchantment from the registry and places it on a book.


About the Windows environment： no_atomic.rs file

On Windows, the contents of the no_atomic.rs file '.. /no_atomic.rs' cannot compile. how i do?

You probably need to enable core.symlinks in git. (e.g., git config --global core.symlinks true)
(If you are using a crate uploaded to crates.io, the symlink should have been converted to a regular file, so I don't think you will have this problem.)

yes，you are right


[Typo] Correct words spelling v1

I've used https://github.com/aotaduy/eslint-plugin-spellcheck for finding mistakes. But it is very time consuming solution as for permanent linting.

Why don't we just use that eslint plugin? :)

@oliviertassinari If use it on every lint run it can take ages)) At least +10 minutes for each linting on my PC

@kybarg Oh, that's too slow then for the CI :/

@oliviertassinari Also O wonder which spelling of "grey/gray" to use) We have both.

😨  let's pick grey as it's the name of the Material Design color.

But I can't find gray in the codebase

Oh, that's on me Oops.

Found it

I'm taking care of it, thanks for noticing!

I can make a PR with my eslint config. It may be useful if create separate eslint config for spell check.

@kybarg Do we can run it offline from time to time?

@oliviertassinari I'll make a PR


[WIP] fix: update doc string check

Proposed changes
This is very strange - the command aea generate-all-protocols --check-clean passes in this repo before and after this commit. However, on other repos, the check does not work due to the wrong constant.
Fixes

Types of changes
What types of changes does your code introduce to agents-aea?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply.

[ ] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the develop branch (left side). Also you should start your branch off our develop.
[ ] Lint and unit tests pass locally with my changes and CI passes too
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that code coverage does not decrease.
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
DELETE INCLUSIVE THIS AND BELOW FOR STANDARD PR
Release summary
Version number: [e.g. 1.0.1]
Release details
Describe in short the main changes with the new release.
Checklist
Put an x in the boxes that apply.

[ ] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the main branch (left side), from develop
[ ] Lint and unit tests pass locally and in CI
[ ] I have checked the fingerprint hashes are correct by running (aea hash all --check)
[ ] I have regenerated the latest API docs
[ ] I built the documentation and updated it with the latest changes
[ ] I have added an item in HISTORY.md for this release
[ ] I bumped the version number in the aea/__version__.py file.
[ ] I bumped the version number in every Docker image of the repo and published it. Also, I built and published them with tag latest
(check the READMEs of aea-develop
and aea-user)
[ ] I have pushed the latest packages to the registry.
[ ] I have uploaded the latest aea to PyPI.
[ ] I have uploaded the latest plugins to PyPI.

Further comments

IT's to do with --no-deps flag: https://github.com/valory-xyz/agent-academy-1/pull/132/files

Codecov Report

Merging #286 (dd9386f) into main (192e40a) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #286   +/-   ##
=======================================
  Coverage   94.67%   94.67%
=======================================
  Files         312      312
  Lines       25276    25276
=======================================
  Hits        23929    23929
  Misses       1347     1347

Flag
Coverage Δ

unittests
94.67% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

aea/cli/generate_all_protocols.py
30.00% <100.00%> (ø)

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

This command is also way too sensitive - it should not care about a dirty tree outside the protocols folders


Issue 48: List view UI for Volunteers

Search and filter features
localhost_3000_volunteers.webm
pagination feature
localhost_3000_volunteers (1).webm

Design looks good. I approved it but some minor feedbacks according to figma :

Contact column sorting option not added
from search the filters button gap is not corrct
Add button and remove volunteer button padding and size need correct
navbar icons not matching
instead of location in navbar , it sould be analytics

@aimun-naharr  @skfarhad