Prerelease v2

Moved PR to new Branch for auto publishing of NPM modules.
This is a rewrite of the manifest file generation code to use templates. View the README for a list of changes being made in v2.

Looks good.


Wave Surfer not working on MP3

Wavesurfer.js version(s):
6.1.0
Browser and operating system version(s):
Safari Version 15.0 (176<IP_ADDRESS>)
MacOS 12.0 Beta (21A5506j)
Wave surfer doesn't render at all when used on this MP3
I have already checked, this is not a CORS issue. If you'd like to test with this, I have enabled cors from any origin for this file.
This is only an issue on Safari, however other MP3s do work on Safari, which is why I'm confused.

There seems to be issues with Safari (15.4), which seems to break Wavesurfer :/
I have no idea what's causing it though, because it seems like the examples on the demo site are working just fine..

because it seems like the examples on the demo site are working just fine..

Yea, I don't see an issue with Safari 15.4.

Wave surfer doesn't render at all when used on this MP3

Can you run ffprobe (part of ffmpeg) on the file and paste the output here?

no feedback, closing.


JENKINS container with HTTPS

Hello,
How can I add https to this container directly to the dockerfile?
My problem is that I have the caddy container with 443 port already used.

I met the same problem, how did you solve it?


Create an easy-to-use API to specify Projections & Snippets for search

Maybe we just start with extract-document-data.

Sam, I have assigned 3.0-6 as the milestone for this. Please change it milestone  as appropriate

Milestone is TBD

Part of #732

Part of ENG-41


sometimes can't slide with scrollable-tab-view

I use with react-native-scrollable-tab-view. A tab component add side menu. when I reload, it work fine, but close side menu，it can't slide open。
  and sometimes the left has blank
<ScrollableTabView initialPage={0} renderTabBar={() => <BottomTabBar />}                                tabBarBackgroundColor="#efefef"                                tabBarPosition='overlayBottom'             >                 <SideMenu menu={menu }>                     <TodoApp navigator={this.props.navigator} />                 </SideMenu> </ScrollableTabView>

I've got this issue too, any idea ?

I replaced it with react-native-drawer

@mxyue  hie, i am a new bie in react-native , could you help me out about how to start up using drawer and how to use project.

@pareekkhushboo77   I open my react-native program you can read the code habit_formating,  Drawer  in the habit_formation/app/containers/defaultPage.js。


drivers: spi: nrfx: use SPI(M|S)_TXD_MACNT_MAXCNT_Msk

This definition from MDK provides the bit mask for the MAXCNT register in a instance agnostic way.
Signed-off-by: Gerard Marull-Paretas<EMAIL_ADDRESS>

MAXCNT_Msk  only represents the maximum possible configuration for a device, and may not always be the actually implemented size for all instances. It is safer to keep using per-instance MAXCNT_SIZE

MAXCNT_Msk only represents the maximum possible configuration for a device, and may not always be the actually implemented size for all instances. It is safer to keep using per-instance MAXCNT_SIZE

Looking at MDK defines, they seem to match for all cases now. In which situation is this different?

MAXCNT_Msk only represents the maximum possible configuration for a device, and may not always be the actually implemented size for all instances. It is safer to keep using per-instance MAXCNT_SIZE

Looking at MDK defines, they seem to match for all cases now. In which situation is this different?

All cases are currently the same, this is not guaranteed by the platform, and should not be considered a given for future products.

MAXCNT_Msk only represents the maximum possible configuration for a device, and may not always be the actually implemented size for all instances. It is safer to keep using per-instance MAXCNT_SIZE

Looking at MDK defines, they seem to match for all cases now. In which situation is this different?

All cases are currently the same, this is not guaranteed by the platform, and should not be considered a given for future products.

So then we're left with the https://github.com/zephyrproject-rtos/zephyr/pull/54663 solution. Per-instance hardware settings need to come from DT. Let me post some examples here, so that it is clear that I'm not asking for something strange:
https://github.com/zephyrproject-rtos/zephyr/blob/5222691b7f5562555b74112d4fe1be0f5955ef60/dts/arm/gigadevice/gd32f4xx/gd32f4xx.dtsi#L397-L398
https://github.com/zephyrproject-rtos/zephyr/blob/5222691b7f5562555b74112d4fe1be0f5955ef60/dts/arm/gigadevice/gd32f4xx/gd32f4xx.dtsi#L525-L526
STM32 example, migrated EXTI settings to DT: https://github.com/zephyrproject-rtos/zephyr/pull/53825


Add gzip json for python3 compatibility

Currently your example trained model reads from a numpy pickle file.  This file is not compatible with python3.
I added gzip.json files for the weights so that standalone_model_numpy.py can work with python3.

Thanks @lilleswing !


Video could not be loaded

As the title says, Videos aren't loading.
I always get the message "The video could not be loaded, either because the server or network failed or because the format is not supported: >URL of the Video<" when I'm playing Videos in Google Chrome. If I disable the plugin, the videos play without any problem.

Same problem. After months I finally found out this extension was causing it. I can't play webms / gifs on certain sites (9gag) and a lot of video players don't work on sites such as animes sites. Everything works fine with the extension disabled.

Same problem. After months I finally found out this extension was causing it. I can't play webms / gifs on certain sites (9gag) and a lot of video players don't work on sites such as animes sites. Everything works fine with the extension disabled.

Same, noticed this on 9gag and on bandcamp.com


[route] add a option to not consider port in :authority when matching route.

Title: Add an option in route to strip port in ":authority" when we do service picking.
Description:
See related issue, but different: https://github.com/envoyproxy/envoy/issues/19589
a Cloud Customer sets the host match rule without a port, and oftentimes they configure their http services on multiple ports other than the default one.
The traffic comes in as "www.foo.com:8080", and since the host/domain in config is without a point, doamin "www.foo.com" will not match the host and a 404 returned or the default catch-all virtualHost is matched instead.
It'd be ideal if we can add an option in RouteConfiguration, say "strip_host_port_in_domain_matching", only match on the domain portion if the :authority happens to contain a port.
In a cloud-proxy scenario, this allows different cloud customers to set different behaviors for their traffic load balancing.
[optional Relevant Links:]

See https://github.com/envoyproxy/envoy/issues/19589 , where a single HCM level option 'strip_any_host_port' removes port from ":authority" on receiving the request.

cc @adisuissa @alyssawilk

/assign stevenzzzz

cc @htuch @yanavlasov

I think this makes sense given this is just a RouteConfiguraiton level variant of strip_any_host_port at HCM-level. Chatting with @stevenzzzz offline, the usefulness of this comes up in multi-tenant SRDS scenarios, where we don't want a shared setting across all scopes.
I'd suggest:

Using consistent terminology, so strip_any_host_port here.
Consider future proofing so that this can also accommodate strip_matching_host_port if needed later.
Clearly documenting the override semantics between this setting and the HCM-level setting.

One key difference here is that we don't want to mutate (ie actually strip) the value. The need is not to use the port for purpose of matching, but otherwise leave it intact.

SGTM. Agree on consistent terminology.

I think if we do this non-mutation, we must ensure that there is no use of :port in the virtual host domains (or that they could never match if there was one there) FWIW. In this case, we should name this ignore_host_port I think.

for "strip_any_host_port", I actually lack some context first place why we would strip port from host at listener level. As a proxy, I'd hope it to be as transparent as possible. but Envoy mutates the very import ":host" header with little customer intervention.
I am adding a new "ignore_port_in_host_matching" option at route-table level, which doesn't mutate the host header.
OTOH, strip_any_host_port cause tricky issue w.r.t host-rewrite: should the original port from request be used or not when there is no port_rewrite.  (I think it should be, but envoy is doing the other way). ==> https://github.com/envoyproxy/envoy/issues/19589

this can be closed now.


Allow update/import of assets without opening editor

Operating system or device - Godot version:
ubuntu + arch
Issue description:
It would be extremely handy and time saving to have a way to check for updated assets before loading the game, or even during the game.
Such as a commandline argument.
This would save having to open the editor just to update the textures/meshes etc.
Having blender open, the editor and the game, gets tedious switching back and forth between them all.

this would be useful, but itś quite some work, kicking to 3.1

Moving to the next milestone as 3.1 is now feature frozen.

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


[Question] Sending a Slack Private Message using C# Bot Framework

I've seen quite a few examples for the NodeJS Bot Framework which suggest simply the removal of the ConversationID field of a message activity and pointing the recipient address at the user's ID to initiate a private message .
Unfortunately the C# framework doesn't seem to be as lenient and removing the ConversationID when trying to initiate a new reply activity object (bot to user) throws a Null Pointer Exception.
It seems that in an older version there may have been a Message object in the past where this was possible however now it does not seem to exist anymore (I hope I'm wrong?). If I'm not, how can I instigate my bot to private message a user?
Example scenario: User posts something in #general chat on Slack. Bot picks up on this. Identifies user. Private messages user.
It's the instigating of conversation back from the Bot as a private message rather than spamming everyone in #general that I need.
Thanks!

@karam94 you mind sharing your C# code so we can take a look?

@karam94 you can easily start a new private conversation between your bot and a Slack user in C# by a few steps:

createDirectConversationAsync
CreateMessageActivity, linking to this conversation
SendToConversationAsync

Parameters
You need some parameters. For Slack, the ID of the bot and the user are made like this:

the bot ID is a concatenation of its Slack's Bot_id, a ':' and Slack's Team_id
the user ID is a concatenation of its Slack's id, a ':' and Slack's Team_id

The advantage of Slack is the possibility to get all the necessary parameters to start a conversation by only knowing a few information and requesting their API. For example you can start a conversation by knowing only:

Bot Slack's username
User email address or Slack's username
Then you can use Slack's API to get what the bot really needs.

How to get info from Slack?
public class SlackService
{
    internal static async Task<SlackMembersRootObject> GetSlackUsersList(string slackApiToken, CancellationToken ct)
    {
        using (var client = new HttpClient())
        {
            using (var response = await client.GetAsync($"https://slack.com/api/users.list?token=" + $"{slackApiToken}", ct).ConfigureAwait(false))
            {
                var jsonString = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
                var rootObject = Newtonsoft.Json.JsonConvert.DeserializeObject<SlackMembersRootObject>(jsonString);
                return rootObject;
            }
        }
    }
}

public static async Task StartSlackDirectMessage(string msAppId, string msAppPassword, string slackApiToken, string message, string botSlackUsername, string botName, string destEmailAddress, string destName, string lang, CancellationToken ct)
{
    // Getting Slack user (and bot) list
    var slackUsersList = await SlackService.GetSlackUsersList(slackApiToken, CancellationToken.None);

    // Get Bot SlackId by searching its "username", you can also search by other criteria
    var slackBotUser = slackUsersList.Members.FirstOrDefault(x => x.Name == botSlackUsername);
    if (slackBotUser == null)
    {
        throw new Exception($"Slack API : no bot found for name '{botSlackUsername}'");
    }

    // Get User SlackId by email address
    var slackTargetedUser = slackUsersList.Members.FirstOrDefault(x => x.Profile.Email == destEmailAddress);
    if (slackTargetedUser != null)
    {
        // if found, starting the conversation by passing the right IDs
        await StartDirectMessage(msAppId, msAppPassword, "https://slack.botframework.com/", "slack", $"{slackBotUser.Profile.Bot_id}:{slackBotUser.Team_id}", botName, $"{slackTargetedUser.Id}:{slackTargetedUser.Team_id}", destName, message, lang, ct);
    }
    else
    {
        throw new Exception($"Slack API : no user found for email '{destEmailAddress}'");
    }
}

Start your conversation
The following code is generic to all channels to start a conversation (and is called in my method above)
private static async Task StartDirectMessage(string msAppId, string msAppPassword, string connectorClientUrl, string channelId, string fromId, string fromName, string recipientId, string recipientName, string message, string locale, CancellationToken token)
{
    // Init connector
    MicrosoftAppCredentials.TrustServiceUrl(connectorClientUrl, DateTime.Now.AddDays(7));
    var account = new MicrosoftAppCredentials(msAppId, msAppPassword);
    var connector = new ConnectorClient(new Uri(connectorClientUrl), account);

    // Init conversation members
    ChannelAccount channelFrom = new ChannelAccount(fromId, fromName);
    ChannelAccount channelTo = new ChannelAccount(recipientId, recipientName);

    // Create Conversation
    var conversation = await connector.Conversations.CreateDirectConversationAsync(channelFrom, channelTo);

    // Create message Activity and send it to Conversation
    IMessageActivity newMessage = Activity.CreateMessageActivity();
    newMessage.Type = ActivityTypes.Message;
    newMessage.From = channelFrom;
    newMessage.Recipient = channelTo;

    newMessage.Locale = (locale ?? "en-US");
    newMessage.ChannelId = channelId;
    newMessage.Conversation = new ConversationAccount(id: conversation.Id);
    newMessage.Text = message;
    await connector.Conversations.SendToConversationAsync((Activity)newMessage);
}

Note: I previously sent quite the same answer on StackOverflow: https://stackoverflow.com/questions/44353520/is-there-a-way-to-start-formflow-dialog-on-conversationupdate-event

guys is it still actual in v 4.4 or there's now more easy way?

@Unders0n  This is Slack specific, so not likely to be incorporated directly into the SDK.  The code to accomplish this with V4.4 will be very similar to what @nrobert  has shared above.

@EricDahlvang, suppose we know userId and lets remove this part from problem, next question would be to write in DM and i think this question could be generic to all messengers with group chat, for example i have found this article for Skype Teams https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/bots/bot-conversations/bots-conv-proactive , but whole example is not very clear. For example i can't get what is "client" in
var response = client.Conversations.CreateOrGetDirectConversation(activity.Recipient, activity.From, activity.GetTenantId());
Is it generic of Skype specific stuff and i should stick to old example mentioned in this thread?

Client is the connector client:
var client = new ConnectorClient(new Uri(activity.ServiceUrl));

Ok some updates for those who trying to do same thing in 4.4+:

client.Conversations.CreateOrGetDirectConversation seems to be only available in Teams, we have CreateDirectConversation but that not worked for me
old aproach with creating "fake message" mentioned here worked to send simple activity
if you want to start proactive message from dialog, old aproach meant here: https://stackoverflow.com/questions/44353520/is-there-a-way-to-start-formflow-dialog-on-conversationupdate-event is not working anymore cos lots of signatures changed in v4, but i found that this simple solution worked:
var fakemessage = <...creating fake message as it was> activity.Conversation = fakeMess.Conversation;  await dc.BeginDialogAsync(typeof(T).Name);
4)now faced problem : i want to ignore all communication in group chats and property in Activity class not seems to work correctly (testing in slack group, just sending some text):

@Unders0n  Closed issues are not monitored by the Bot Framework Support team.  Please open a new issue, and someone from the team will assist you with these questions.


Bizarre KeyError: 'imdbId'

Describe the bug
I tried using this to hunt down some radarr titles that are in my streaming service and this bizarre keyerror occured. "KeyError: 'imdbId'"
To Reproduce
excludarr radarr exclude -a delete -d -e
Expected behavior
A list of movies that are on my streaming services and a prompt to confirm I'm deleting them
Versions

OS Version: win10
Excludarr version: 1.0.8
Python version:  3.11

Debug logging
https://gist.github.com/Yankees4life/9c6b7ab0cc3127416e97b966ed739f05

Yea, this should also get fixed by the pull request I made, It's an error related to not making sure that the imdbId is populated on radarr


Feed Support for Releases / Tags

as title
basic support for feeds was added at  #569, to get backend information, just look at the 3 related pulls

The current implementation of the repo feed actually already has events about tags and releases based on actions:

ActionPushTag
ActionDeleteTag
ActionPublishRelease

hello, @oGi4i is correct in that the current repo feed already include the tags and releases based on acations. Is this issue about a separate feed for the release and tag only? I can give it a go, if we have a conclusion on this.

:point_up: yes it is ... the main difference will be that you should use model.release and tag info directly ...
since actions can be purged and so are not that accurate long term

Hi, I would like to work on this issue

It would be great to have (RSS|Atom)-Feeds for Releases (and other events). It's really helpful to subscribe to https://github.com/go-gitea/gitea/releases.atom
Actually it's kind of surprising this doesn't exist yet. So thanks for working on this!


Organize Keyshortcuts by Topic

When viewing the keyboard shortcuts within VS Code, we need the option to view them by category to help learn them like they are already presented in https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_keyboard-reference-sheets

The keyboard shortcut categories on the reference sheets are all presented in different orders for each of the three OS platforms. I regularly work on both Windows and Linux. It is already confusing having to deal with different shortcuts, but not being able to easily compare the two lists to find the same shortcut makes it a little more difficult. Please consider re-ordering the categories to be consistent across all three OS platforms in those reference sheets. Thanks.
(Since this is the closest issue I have found, I'm piggybacking here. If I should open a new issue, please let me know)


Correct keyword for microsoftAuthApiRef

Makes for a little less guesswork in the middle of things.
Hey, I just made a Pull Request!
Changes a keyword in the docs for the Azure Auth provider, so one can follow the guides a little easier. Didn't work with the old "microsoftAuthApi", but did by adding Ref to the end.
:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[X] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Thank you!


See Worker Container in Portainer

Hello,
unfortunately I can't see the containers (under container) that are running on a Docker Swarm Worker. I have completely rebuilt Portainer because I thought that in the “old” installation the containers of the workers were also visible. After the rebuild I still can't see the worker-containers anymore.
I thought the Agent on the workers provide information about the containers running on the worker?
How can I investigate?
Thanks you Servus Rob
PS - under Docker swarm i can the the containers in the Cluster visualizer

PS this is the docker Compose …
version: '3.7'
networks:
agent_network:
driver: overlay
attachable: true
volumes:
portainer_data:
services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
placement:
constraints: [node.platform.os == linux]
portainer:
image: portainer/portainer
command:
--ssl
--sslcert /certs/wildcard.bpmspace.net.certificate.crt
--sslkey /certs/wildcard.bpmspace.net.key
ports:
- "8880:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
- /mnt/gluster/gluster_bpmspacecloud/certs/:/certs
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]

Hi there @BPMspace If you are managing a agent endpoint which is running agents on each node then yes you should see all containers. We need some more info to help debug this issue, could you please fill out the below template?

Bug description:
A clear and concise description of what the bug is.
Expected behavior:
A clear and concise description of what you expected to happen.
Portainer Logs:
Provide the logs of your Portainer container or Service. You can see how here
Steps to reproduce the issue:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Technical details:

Portainer version:
Docker version (managed by Portainer):
Platform (windows/linux):
Command used to start Portainer (docker run -p 9000:9000 portainer/portainer):
Browser:

Additional context
Add any other context about the problem here.

ok - sorry for the delay - too much to do - will provide the info within the next week ...


No support for scoped packages

Hi,
Given a folder structure such as
node_modules/
  test/
    index.ts

  @ns/
    test/
      index.ts

app/
  a.ts

tsconfig.json

with both index.ts files consisting of
export class Test {
  constructor(public name: string) { }
}

and a.ts consisting of
import * as testNonScoped from 'test'
import * as testScope from '@ns/test'

const resultScoped = new testScope.Test('hi')
const resultUnScoped = new testNonScoped.Test('hi')

tsc 1.7.5 will error out with:
app/a.ts: error TS2306: Cannot find module '@ns/test'

However, this will only occur for the scoped npm package. My tsconfig is very simple and just sets the module system to ES6 and includes the tsd typings in addition to the a.ts file.
Is there something I'm missing or are these simply just not supported?

I cannot reproduce this locally using the latest bits from master. I've created the following folder structure.
│   tsconfig.json
│
├───app
│       a.ts
│
└───node_modules
    ├───@ns
    │   └───test
    │           index.ts
    │
    └───test
            index.ts

Content of every file is the same with your repro and content of tsconfig.json is
{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es5",
        "noImplicitAny": false,
        "sourceMap": false
    },
    "exclude": [
        "node_modules"
    ]
}

Running node D:\sources\git\TypeScript\built\local\tsc.js -p . produced no errors.

Your tsconfig was different from mine, so I retried tsc with your exact one and it was able to pick up the scoped package.
However, I still had it set to es6 so that I could downstep the compilation and let babel take care of async/await.
Here's my exact repo tsconfig:
{
    "compilerOptions": {
        "experimentalDecorators": true,
        "target": "es6",
        "sourceMap": true
    },
    "files": [
        "typings/tsd.d.ts",
        "app/a.ts"
    ]
}

Figured it out. You need a special compiler option set in order to get this to work:
{
    "compilerOptions": {
        "experimentalDecorators": true,
        "target": "es6",
        "sourceMap": true,
        "moduleResolution": "node"
    },
    "files": [
        "typings/tsd.d.ts",
        "app/a.ts"
    ]
}

Now the question is why this works fine when target is not set to es6.

node module resolution is enabled if you either turn it on explicitly (by using "moduleResolution": "node") or if target module kind is commonjs. This explains why it didn't work for you if you just specify "target": "es6" - in this case (and also if you target any other module kinds without setting moduleResolution) compiler will use default pre-TypeScript-1.6 module resolution strategy that walks folder all the way up to the root and checks if current folder contains requested module and that is not compatible with node

Okay, I see. It's not that it was es5 causing it per se, just that setting to es6 disallows setting the module, and commonjs implies the node-style module resolution.
That seems to solve the mystery of why that fix works, and all that leaves now is the question mark over why it found test in node_modules if the non-node resolution system is incompatible with it. I presume based on your explanation it should have been looking for a test folder in the root where the tsconfig.json is, not in node_modules?

yes, this is correct. It should not be able to find both test and @ns/test and in fact this is what I'm seeing locally if I keep only "target": "es6" in tsconfig.json.
{
    "compilerOptions": {
        "target": "es6",
        "noImplicitAny": false,
        "sourceMap": false
    }
}

D:\sources\bugs\scoped>node D:\sources\git\TypeScript\built\local\tsc.js -p .
app/a.ts(1,32): error TS2307: Cannot find module 'test'.
app/a.ts(2,28): error TS2307: Cannot find module '@ns/test'.

OK, figured out that piece to the puzzle. I had a file on disc in the same folder with the same name I was importing, but it wasn't in the csproj so I had forgotten about it.
So my directory was actually this:
node_modules/
  test/
    index.ts

  @ns/
    test/
      index.ts

app/
  a.ts
  test.ts

tsconfig.json

In a sense, this meant that ./test and test were referring to the same module. It still worked when I switched it to the node resolution, but was actually pointing at the test/index.ts instead of test.ts.
This solves all pieces of the puzzle. Thanks.


feat: expose serde errors with same format as jsonschema validation

Does what it says on the tin :)
Some notes:

jsonschema have made their types OutputUnit and JSONPointer impossible to use elsewhere and so I have had to make a copy. With this, the objects have snake_case keys rather than camelCase
I have made sure to copy the styling from jsonschema for the serde error path so that they are similar
I have exposed a 'type' parameter on the error for computers to better understand
despite serde_path_to_error returning a single value, I have made serde_error also a vec for consistency
I pulled in itertools for convenience.  This can be replaced.

Examples
// the input to our `create_user` handler
#[derive(Deserialize, JsonSchema)]
pub struct CreateUser {
    pub username: String,
    pub ages: Vec<NonZeroU8>,
    pub people: Vec<Name>,
}

#[derive(Deserialize, JsonSchema)]
pub struct Name {
    first: String,
    last: String,
    age: NonZeroU8,
}

Serde issue
{
    "ages": [
        1,
        2,
        3,
        3
    ],
    "people": [
        {
            "age": 1.0,
            "first": "Alex",
            "last": "Lyon"
        }
    ],
    "username": "Alex"
}

{
    "error": "deserialization failed",
    "serde_error": [
        {
            "error": "invalid type: floating point `1`, expected a nonzero u8",
            "instance_location": "/people/0/age"
        }
    ],
    "type": "serde"
}

Jsonschema issue
{
    "ages": [
        1,
        2,
        3,
        3
    ],
    "people": [
        {
            "age": 0,
            "first": "Alex",
            "last": "Lyon"
        }
    ],
    "username": "Alex"
}

{
    "error": "request schema validation failed",
    "schema_validation": [
        {
            "error": "0 is less than the minimum of 1.0",
            "instance_location": "/people/0/age",
            "keyword_location": "/properties/people/items/properties/age/minimum"
        }
    ],
    "type": "schema"
}

Request issue
{

{
  "error": "Failed to parse the request body as JSON",
  "type": "json"
}

Thanks, looks great!
Instead of serde, deserialization could be used as well as instead of serde_error, it could probably be called deserialization_error or something similar, as the consumer of the API might not know what serde is. Just an idea, I have no strong opinion on this.

That sounds reasonable. I'll update it :)

Thank you, LGTM, sorry about the delay, I'll publish a new version with this soon.


[Bug] type css is aliased to string

https://github.com/SentiaAnalytics/bs-css/blob/0a037cdc977c7d18a45a46bfd4cb506232e3a6a5/src/Css.re#L10
The actual type is an object: https://github.com/threepointone/glamor/blob/667b480d31b3721a905021b26e1290ce92ca2879/index.d.ts#L268
This causes the following bug: https://github.com/phenomic/phenomic/issues/1220
Where a style object is directly passed to className but it's not an actual string etc.
cc @thangngoc89

Hey I'm sorry but isn't aliasing type css = string is a wrong binding?


how to directly get cpg files in .json format instead of .svg ?

how to directly get cpg files in .json format instead of .svg ?
as we want cpg in .json format to train a graph neural network for our project.

AFAIK so far we only offer dot, graphml and neo4jcsv: https://github.com/ShiftLeftSecurity/overflowdb/tree/master/formats/src/main/scala/overflowdb/formats
We're happy to include contributions for more formats.
A workaround might be to convert the graphml (xml) to json...
Not sure why you mention svg, do we support that in some form?

@mpollmeier can i also not import the CPGs of my code files  into neo4j instance running on neo4j desktop and from there i can download the .json format files?
if yes then how can i do it using your joern library?

also ,
if not .json format then in what format i can get from your library which can be feed into a deep learning model to predict flaws in a code.

have you tried https://docs.joern.io/exporting?

@mpollmeier ,yes i tried , here its giving me in these three formats

but i am not figuring out how to export cpgs to neo4j instance and then download .json from there.

@mpollmeier would you please elaborate what you said?

joern-export now supports exporting to json: https://github.com/joernio/joern/pull/1845


Disallow declaring IRQ handlers for reserved interrupts?

Currently this builds fine in user code

#[interrupt]
fn RADIO() {
    info!("RADIO triggered!")
}

but will not work since RADIO is a softdevice-reserved interrupt. I think it does work before enabling the softdevice, and after enabling it'll just never fire (the softdevice never forwards that irq to the application).
Not sure if this should be somehow prevented from compiling (if that's even possible).

As long as SD will steal them, Lets just define them ourselves. Then theyll be overriden, which is fine.
If someone tries to use it itll fail for being defined twice
https://github.com/rust-embedded/cortex-m-rt/blob/6c4689de32546ee1d271270a1e6e5a0fe52266de/tests/compile-fail/interrupt-twice.rs
  = note: rust-lld: error: duplicate symbol: RADIO
          >>> defined at rtic.rs:143 (examples/src/bin/rtic.rs:143)
          >>>            /home/jacob/Downloads/nrf-softdevice/target/thumbv7em-none-eabihf/debug/deps/rtic-6ac6ec1c4166c100.rtic.bl7ebdu1-cgu.0.rcgu.o:(RADIO)
          >>> defined at lib.rs:47 (nrf-softdevice/src/lib.rs:47)
          >>>            nrf_softdevice-2b21128dbb5f1edc.nrf_softdevice.besa5utw-cgu.0.rcgu.o:(.text.RADIO+0x1) in archive /home/jacob/Downloads/nrf-softdevice/target/thumbv7em-none-eabihf/debug/deps/libnrf_softdevice-2b21128dbb5f1edc.rlib

In the end I think it's better to not do this, because you CAN use reserved interrupts before enabling the softdevice, or if you never enable the softdevice at all (some device with a physical switch that switches it between BLE and custom radio protocols, for example)


how to include the Googlemaps API key

I've signed up and received my GoogleMaps API key but I don't know where to place it so that this composer package coding will work.  Can you please advise?

@richardNorthwind FIrst, if you want to use this library with an API key, you will need to use the 2.x version of the library (dev-master or 2.0@dev).
Second, to know how to respond to your question, I need to know what do you want to do with the library. Do you want to generate a map? Do you want to geocode a location? Do you want to process a directions? ...

So, if you want to use the map, the api key should be configured on the api helper, see https://github.com/egeloen/ivory-google-map/blob/master/doc/helper/api.md#configure-api-key
If you're using a service (geocoeder, directions, elevations, ...), the api key should be configured on the service, see https://github.com/egeloen/ivory-google-map/blob/master/doc/service/service.md#configure-api-key


deps: update forms dependencies

This updates the form libraries.

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
Closes https://github.com/camunda/camunda-modeler/issues/3382
Closes https://github.com/camunda/camunda-modeler/issues/3379
Closes https://github.com/camunda/camunda-modeler/issues/3383
Closes https://github.com/camunda/camunda-modeler/issues/3384
Closes https://github.com/camunda/camunda-modeler/issues/3381

Highlights

Updated palette
Searchable selects (searchable property of select fields are only supported in Camunda 8.2)
Auto complete for variable names in JSON editor

Cf. https://github.com/camunda/form-playground/blob/main/CHANGELOG.md#040

Found https://github.com/camunda/camunda-modeler/issues/3379#issuecomment-1413802106 worth a potential follow-up.

Provided a fix via https://github.com/bpmn-io/form-js/pull/537. Thanks for testing ❤ We will provide a patch and integrate it into this PR accordingly.

https://github.com/camunda/camunda-modeler/issues/3379#issuecomment-1413802106 and https://github.com/camunda/camunda-modeler/issues/3381#issuecomment-1413798312 are fixed with the latest dependency bumps.
@camunda/modeling-dev feel free to have another look 👍

@camunda/modeling-dev any chance to get a review on this one?


500 internal server error

I keep getting this error on master branch  and on dev branch as well.
On dev branch i was able to install everything fine. I can login to admin account.  But if i want to create an account i get thi "internal server error" as soon as i click signup button.
What i am doing wrong. Please help!

Hey @ClarkyKent , I was just doing some updates last night that may have fixed this issue. Try cloning the main branch now and giving it a try and let me know if you're still having this error.

hey, @therecluse26
I did pull after you merged the dev branch to master.
Now it is working for me.
Thanks


Support list of vault addresses in "-vault" CLI arg (VAULT_ADDR env var)

Currently, the -vault CLI arg (VAULT_ADDR env var) only allows for one Vault address to be listed.
In an environment where there is a cluster with multiple Vault instances, it would be good for the setting to allow for the set of instances to be listed (similar to the MESOS_MASTER setting).
e.g., VAULT_ADDR=https://:8200,:8200,:8200,:8200,:8200

in cluster mode isnt only one active so you should only be pointing to, for example, with consul HA: http://active.vault.service.consul:8200

In any case if you send a request to a standby node it will forward to the active master


wip: ocs-to-ocs: update secret for snapshot in ocs to ocs mode

updating snapshot csi secrets for ocs to ocs mode.
Signed-off-by: subhamkrai<EMAIL_ADDRESS>

marked WIP, I need to test the changes

closing this, not required anymore.


Question about point selection

Thanks for your impressive work. In the roi_head of CT3D, you select points by horizontal limit. Why don't you limit the height of points in the vertical direction?

Yeah, I have tried several parameters that limit the height, and their performance have no big difference. By the way, if you visualize the point cloud of an outdoor scene, you will find that the vertical range is not necessary to limit.

Thanks for your reply. I got the point.


Impossibility to build on Simulator when library is used

Hello, I have checked the readme and see that the simulator is not supported currently.
It does not make any sense to test/use ai features on simulator.  However, we would like for our app as a whole to continue running on iOS simulator for developer purposes.
The issue lies in fact that any simulator build for a target that depends on the framework is going to fail.
Maybe you someone is aware of conditional solutions for this issue? Are there any hacks that will allow skipping importing the framewors and stubbing its APIs for simulator builds?

This has been addressed in 1.2.9, for both SPM and cocoapods.
Long term there is a potential of injecting test scenarios, but we're leaving as stubs for the simulator for now.
It requires no simulator macros in your apps, so check the basic demo SampleApp if you have an issues your side:
https://github.com/quickpose/quickpose-ios-sdk/tree/main/SampleApps/SwiftUI/BasicDemo


Separate the service module into logical chunks

Ticket
Resolves #383
Changes
What was added, updated, or removed in this PR.
Context for reviewers
Some of the main.tf files were starting to get unwieldy. This PR is a subtask of https://github.com/navapbc/template-infra/issues/371. The service module has four additional files. access-control.tf contains all the code relating to the task executor permissions and the database access permissions. access-logs.tf contains all of the logging configuration for the module. network-config.tf contains the security groups and other networking information. Lastly, load-balancer.tf contains the load balancing configuration for the service module.
Testing

Run the terraform plan command. The configuration should have no changes.

Test PR here: https://github.com/navapbc/platform-test/pull/28

before you merge let's update the platform-test PR with a screenshot taht shows no changes were needed in the terraform plan


chore: Configure jest to work with Svelte components.

Description
This PR adds 3 dev dependencies  and some configuration to enable unit tests for Svelte components.
It also adds 2 example tests for the EditForm component.
Motivation and Context
Tests referencing any code with a direct or indirect dependency on EditForm wouldn't compile.
How has this been tested?
Unit tests.
Types of changes

Changes visible to users:

[ ] Bug fix (prefix: fix - non-breaking change which fixes an issue)
[ ] New feature (prefix: feat - non-breaking change which adds functionality)
[ ] Breaking change (prefix: feat!! or fix!! - fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (prefix: docs - improvements to any documentation content)
[ ] Sample vault (prefix: vault - improvements to the Tasks-Demo sample vault)

Internal changes:

[ ] Refactor (prefix: refactor - non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)
[X] Tests (prefix: test - additions and improvements to unit tests and the smoke tests)
[X] Infrastructure (prefix: chore - examples include GitHub Actions, issue templates)

Checklist

[X] My code follows the code style of this project and passes yarn run lint.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] My change has adequate Unit Test coverage.

Terms

[X] My contribution follow this project's contributing guide
[X] I agree to follow this project's Code of Conduct

Wow, thank you very much indeed @3bit. I am looking foward to testing this out - which I hope will be possible over this coming weekend.


active development

this is more of a question. is this project sftp-action is something will be under development and actively releasing new release because the reason i ask is is been hard to find something like this that actually works.

Hey there! Yes this project is under development and also updated but it is difficult for me to actively invest time in this project at the moment. I myself have relatively little free time at the moment to implement new features myself (pull requests are very welcome!), but bugs and security holes will I of course fix immediately.
So yes, it will be actively maintained and new features will be added over time.


[WIP][Application] LOSS for YOLO v3 in nntrainer

Add Loss layer for YOLO v3.
It is work in process.
(got error when adding loss layer more than 1)
Signed-off-by: Seungbaek Hong<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2229. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

:octocat: cibot: @baek2sm, The last line of a text file must have a newline character. Please append a new line at the end of the line in Applications/YOLOv3/jni/yolo_v3_loss.cpp.

:octocat: cibot: @baek2sm, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2229-202306162036280.76437902450562-a6c66ce0162d4b88c959db9e48f6e3610c8e4a68/.

:octocat: cibot: @baek2sm, The last line of a text file must have a newline character. Please append a new line at the end of the line in Applications/YOLOv3/jni/yolo_v3_loss.cpp.

:octocat: cibot: @baek2sm, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2229-202307071920570.19157409667969-5acf5f5dcfb022c6d28ecc0868f374a77e79ef8c/.

:octocat: cibot: @baek2sm, The last line of a text file must have a newline character. Please append a new line at the end of the line in Applications/YOLOv3/jni/yolo_v3_loss.cpp.

:octocat: cibot: @baek2sm, The last line of a text file must have a newline character. Please append a new line at the end of the line in Applications/YOLOv3/jni/yolo_v3_loss.cpp.

:octocat: cibot: @baek2sm, The last line of a text file must have a newline character. Please append a new line at the end of the line in Applications/YOLOv3/jni/yolo_v3_loss.cpp.

:octocat: cibot: @baek2sm, The last line of a text file must have a newline character. Please append a new line at the end of the line in Applications/YOLOv3/jni/yolo_v3_loss.cpp.

:octocat: cibot: @baek2sm, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2229-202307182040520.045969009399414-2c13408c2d41e6addcbd288556fcd2bb3c115ae7/.

:octocat: cibot: @baek2sm, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2229-202309131820490.058510065078735-f796f1b9048f55f8822e574fe9313e04a79c1f1d/.

:octocat: cibot: @baek2sm, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://ci.nnstreamer.ai/nntrainer/ci/repo-workers/pr-checker/2229-202309132012310.32411789894104-27e5f3ea292393a9572965eb0f1f18cf0d475953/.


Add Emission Index Sulfur Oxide to EnginePerformanceMap

For additional emission calculation an emission index for sulfur oxide needs to be added to the enginePerformanceMap. Inline with the current naming convention it could be named "eiSOx" analogous to "eiNOx".

implemented in GH-466. Waiting for review...

Merged into develop branch 58a04b567f562da3ca396d1bb14d531d81cb943a


Cancellation token in actor context

Description
It would be nice to be able to stop an actor right away even if it is processing a long running task. Today we need to wait that the actor finishes processing the current message.
This PR enables it by passing a CancellationToken to the actor's context.
Purpose
This pull request is a:

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

Checklist

[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Hello @Damian-P, I really like this idea.
It makes perfect sense to me.
My only objection to it:
https://github.com/AsynkronIT/protoactor-dotnet/pull/546/files#diff-7f6ae40b07d28b06255dc176688be953R46
This would lead to an allocation of a TaskCompletionSource for each and every actor, no matter if it is being used.
As Proto.Actor is extremely optimized for having small allocations on the default path.
e.g. this is shown by SpawnBenchmark which outperforms other actor implementations in .NET space.
I would rather see that this lives in the ActorContextExtras.cs where any additional, non default state lives.
Then having the IContext.CancellationToken lazily map to that.
e.g.
by default, the actor does not have a ActorContextExtras instance, it is only allocated on demand.
ActorContex could have a property definition like so:
class ActorContext : IContext .... {

   //EnsureExtras allocates the ActorContextExtras if needed.
   CancellationToken => EnsureExtras().CancellationToken;

Do you think you could add this adaptation to it?

You're absolutely right. I moved that to ActorContextExtras.cs.

Many thanks!
This is great work


[3.x] Consistently use p_ for parameters in GLTFDocument

3.x version of #69878. This PR renames parameters to consistently use p_ or r_. I also did some other small renames including renaming Ref<FileAccess> f to p_file and AnimationPlayer *ap to p_animation_player.
This is just renames so it shouldn't change behavior, but I did some testing anyway and indeed everything seems fine. All of the renames are internal-only, compatibility is not broken.
Why backport to 3.x: I'm doing work to backport pieces of the master GLTF module into 3.x, and having the names be improved in both is a big help. This PR also includes a small number of renames that are already present in master.

Thanks!


[yaml] Syntax highlighting bug - escaped double quotes

VSCode Version: June 2016 (version 1.3)
OS Version: OS X 10.11.5 (15F34)
Kernel Version: Darwin 15.5.0

Steps to Reproduce:
\1. Type in:
commands:
  - "echo '{ \"allow_root\": true }' > .bowerrc"
  # hello
  - ls

\2. Set Language Mode to YAML

This issue was moved to textmate/yaml.tmbundle#15

Thank you
On Tue, 19 Jul 2016, 8:30 AM Martin Aeschlimann<EMAIL_ADDRESS>wrote:

Closed #9011 https://github.com/Microsoft/vscode/issues/9011.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/9011#event-727530253, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACyjU1FCoNxA2nEohHx5VbGC0QtZvL2Iks5qXNGAgaJpZM4JIsXV
.


Improve error messages when check-example-showcase-patches-still-work CI job fails

I was slightly worried about contributor experience here. A failure currently looks like:

CI doesn't tell you which patch failed, so that needs to be cross-referenced
CI stops after the first failure

But with this running on merge_group, I guess it's mostly maintainers having to deal with / at least explain this to contributors?
Still, would something like this be helpful? (or maybe just a set -x)

CODE=0
for patch in tools/example-showcase/*.patch; do
  git apply --ignore-whitespace $patch || { echo "::error::$patch failed to apply."; CODE=1; }
done
exit $CODE

(output using that code here: https://github.com/rparrett/bevy/actions/runs/8286681390/job/22677245376#step:7:14)

Originally posted by @rparrett in https://github.com/bevyengine/bevy/issues/12457#issuecomment-1994619378

Someone picking this up might also want to address this comment while they're in there. https://github.com/bevyengine/bevy/pull/12457#discussion_r1527612715


Show count of history entries

Codecov Report

Merging #509 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #509   +/-   ##
=======================================
  Coverage   98.52%   98.52%
=======================================
  Files         223      223
  Lines        3396     3396
=======================================
  Hits         3346     3346
  Misses         50       50

Impacted Files
Coverage Δ

client/app/services/history/history.service.js
100% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Shoot migrate flow: Move ensureResourceManagerScaledUp in front of deployGardenerResourceManager

How to categorize this PR?
/area control-plane-migration
/kind bug
What this PR does / why we need it:
After a little more testing I've discovered that the fix in (#7608) works better if the gardener-resource-manager is scaled up before calling deployGardenerResourceManager.
While testing #7608 I haven't really payed attention and didn't see that the flow fails once and succeeds afterwards.
Which issue(s) this PR fixes:

Fixes #7606
Also fixes another bug where after a control-plane migration of a hibernated shoot all shoot-access- secrets contain no data

Release note:
NONE

Can you explain why/what "works better"?

Can you explain why/what "works better"?

If the gardener-resource-manager has 0 replicas the mustBootstrapGardenerResourceManager func in botanist.DeployGardenerResourceManager will return false -> gardener-resource-manager won't be bootstraped.
After that the gardener-resource-manager will be scaled to 1. The shoot reconciler_migrate flow will fail at deleteManagedResources like in #7606.
At the next run the deployGardenerResourceManager task will bootstrap the gardener-resource-manager as it is still scaled to 1.
When the gardener-resource-manager is scaled up before the deployGardenerResourceManager task the flow will succeed directly.

OK, thanks, sounds reasonable!
/lgtm
/ok-to-test
/approve

/retest

/test pull-gardener-e2e-kind-migration

/test pull-gardener-e2e-kind-migration

@Kumm-Kai something seems wrong with the e2e-migration test - it continuously fails. Please check

@Kumm-Kai Do you still plan to look into this issue?

@Kumm-Kai Do you still plan to look into this issue?

Yes I do, but I currently don't have much time.
I started looking into it and it seems like the deployGardenerResourceManager is scaling down the grm again.
I think it would be best to write another function that bootstraps the grm if needed and to use it instead.

/reopen

/reopen


Date store

Having a date store would just save time in the case of needing a clock or something like that.
import { readable } from "svelte/store";

export const date = readable(new Date(), (set) => {
  const interval = setInterval(() => {
    set(new Date());
  });

  return () => clearInterval(interval);
});

Hopefully something like that would be useful
thank you

Handled


FEDX-651 : Migrate w_dio repo to GHA

New Pull Request Checklist

[ ] I have read the Documentation
[ ] I have searched for a similar pull request in the project and found none
[ ] I have updated this branch with the latest main branch to avoid conflicts (via merge from master or rebase)
[ ] I have added the required tests to prove the fix/feature I'm adding
[ ] I have updated the documentation (if necessary)
[ ] I have run the tests without failures
[ ] I have updated the CHANGELOG.md in the corresponding package

Additional context and info (if any)

Security Insights
No security relevant content was detected by automated scans.
Action Items

Review PR for security impact; comment "security review required" if needed or unsure
Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

I'm not seeing the pub artifacts attached anywhere.

@Workiva/release-management-p will you merge with WKB still on here? Let's see.


Interaction with dropdown.js and a dropdown menu in a nav Tag

Hi, ive a strange kind of problem.
I'm using ver 1.13.14 inside web application
ASP.NET 4.6
Jquery 3.31
Bootstrap 3.37
Now when add dropdown.js to project my control selectpicker works well but this causes that dropdown (not a select picker) placed inside "nav menu" not open. If i remove dropdown.js from project dropdown in nav menu works well but selectpicker control won't open.
The sequence of ibrary is
CSS:
bootstrap css
bootstrap-select.min.css
JS
jquery
bootstrap
dropdown.js
bootstrap-select.min.js
Any suggestions.

Solved i've added (on document ready function) class "open"
$("#mydiv .dropdown").click(function () {
$(this).addClass("open");
});
to click event.


podman does not support entrypoint

Steps to reproduce the issue:
This is just an example

buildah config --entrypoint "ls -al /etc" my-container

buildah inspect  my-container   // it's set correctly

buildah commit my-container ls

podman run -it ls

Describe the results you received:
You get an error asking you for a command
Describe the results you expected:
The long listing of a directory /etc
Additional information you deem important (e.g. issue happens only occasionally):
The entries in entrypoint are set correctly. Docker has no problem using them in the image.
Output of podman version:
podman version 0.1

Additional environment details (AWS, VirtualBox, physical, etc.):
Fedroa 27, physical

@baude Can you get this fixed before we announce on Monday?

yes working on it now

This is verified to be working now.


Add h-entry markup to default template

This makes it compatible with indieweb markup for webmention support, and adds the timestamp, author and permalink to the rendered HTML so they show up in search indexes and other web crawlers.

@scripting This is a great feature. Can we merge it master please.

Thanks for the suggestion and sorry to take so long to respond (I have to set things up so I get automatic notification).
Right now this product isn't in active development.
Also, I treat pull requests as feature requests. It's just the way I develop. It would work a lot better if it came in as a feature request, saying specifically what the changes are you envision and how it would make the product better. If it offers more interop, what products will it interop with?
Since this is a change to a template (I could be wrong about that, btw, not sure) you can make it in your own copy of MyWord Editor, and then illustrate the request by providing a pointer to your server. It also would be a good way to assure that there aren't any conflicts or breakage.
And, even if I don't go for it that way, you can fork the project and if it gains traction as the original project has not (sadly) it might actually have some impact in the real world.
Hope this helps. Thanks again for the suggestion. I wish MWE had taken off, and was in wide use, then this discussion would mean something. :-)


State Store preparation

State store architecture rebuilt, ready for state rebuild and database connection handling. This is a step towards #21
This stage of the State Store work is large so will submit it for peer review and suggestions while working on the second part.
This step essentially adds no features. It introduces a StateStoreSupplier that is held in a Topology, Application and StreamThread; these generate StateStores for StreamTasks. A StateStore exists within a StreamTask and is designed to allow handling of database connections and Kafka Topic associations. A StateStore, creates a KeyValueStateStore for use within a processor, this provides a MutableMapping (python dict) as an interface to reading and writing from a state store.
As part of this work, the TopologyBuilder API to add a state store has changed. It has changed to take a StateStoreSupplier rather than a Callable. This is a potential breaking change for users for the initial implementation. Examples have been updated to reflect.
It adds a set of factory classes as an option to create StateStoreSupplier. This API stands out as Java-esque, it should be replaced with something that fits with the work for #22
Type hints have been introduced for the StateStore and Serde objects as (de)serialization from known, fixed types will be required on the state changelog.
The next stage will be to add the State rebuild from changelog and tests that check for correctness of the rebuilt state and failure scenarios around

Looks good to me now!


Feedback: An exception was thrown from what line number or what variable was null?

What You Are Seeing?

What is Expected?
An easier debugging experience that tells me which variable was null or what line what tore down the house.
What version of Cake are you using?
tools\nuget\nuget.exe install Cake -OutputDirectory tools -ExcludeVersion -Version 0.22.1

What environment are you running on?  Windows? Linux? Mac?
Windows x64
Are you running on a CI Server?  If so, which one?
Troubleshooting why RxUI builds went red - it's probs my fault but it's repro locally
https://github.com/reactiveui/reactiveui/tree/use-cake-22

Full log over at https://gist.github.com/ghuntley/f59e810b188700e1095037d0293343e9


Randomized Order of Datatable or Filters

The datatable should be able to support excluding a tag from the listing. This would allow more interesting things to float to the top and find some unique blogs. Also the data table should probably be in a randomized order of some sort to help other people be visible as displaying it in alphabetical order reduces discovery.

I agree with you on the ordering. I will look about it


device update with x509 certificate

Hi All,
We were playing around with the device update agent, connecting to Azure, update the device software packages. We could connect the agent to Azure using the Shared Acess keys. But is there any way to do it using the x509 certs?. Please guide us if there any documents or links to some blogs.

Hello,
Thank you for your question. You can connect the Device Update agent as a Module (see how to) only using the SAS key because we have a current limitation on the support from IoT Identity Service . This should be expanded in the future.
Alternatively if you are ok with using the Device identity, you can connect the Device Update agent using SAS keys, TPM or x509 certs (see how to).

Thanks for your answer. But the second part of your answer about using the device identity to connect the device agent to azure is not so clear to me from the link. Could you please help me, how can we use certificates?

Hey Pradeep,
Sorry this took so long I had to follow up with some of our internal partners to make sure I understood what the process would be for you and if we natively supported the scenario you're discussing.
From what I gather you're trying to run the DU agent which will connect to an IotHub device (not a module) using an x509 certificate without using IotEdge. We don't currently support connecting using self-signed x509 certificates out of the box without IotEdge but I outline a method for doing so if you want to take our reference agent and make the code changes yourself.
To make this work you'll need to follow the next three steps. Please note that only the third step requires you to crack open the agent and add some code.

Create the primary and secondary certificates you want to use for the connection. You can read generally about how the IotHub uses x509 certificates and how they apply to the configuration of your devices here

For the development environment you can generate self-signed certificates using the steps found here
For production environments you should be using CA signed certificates obtained from your Certified Authority.Learn more here

Once you've generated your certificates and gotten your x509 thumbprints you simply need to create the device

For both Iot Devices and Iot Edge Devices you simply need to navigate to the IotHub on which you wish to create these devices, select "New" under the Iot Devices or IotEdge Devices leaf (Microsoft for the sidebar tab)
In the information panel you must select either X.509 Self-Signed or X.509 CA Signed depending on what kind of certificate you generated in (1). Please note that for any and all production environments you should be using CA signed certificates. Self-Signed certificates should only ever be used in development phases.
Enter the thumbprints for the primary and secondary certificates obtained above into their respective fields.
Press "Save"
You should now be looking at your fancy new x509 authenticating device!

Setup DU to use the certificates in your device

First please take a look at the sample that accomplishes your scenario here
You'll notice that you need to include the certificates and private keys that you generated and then took the thumbprint of to create your IotHub device in either plaintext or add a method for ADU to read them into the main.c so they can be added to your device handle like below (from the sample)

(IoTHubDeviceClient_LL_SetOption(device_ll_handle, OPTION_X509_CERT, x509certificate) != IOTHUB_CLIENT_OK) || (IoTHubDeviceClient_LL_SetOption(device_ll_handle, OPTION_X509_PRIVATE_KEY, x509privatekey) != IOTHUB_CLIENT_OK)

Within the DU agent we add these kind of additions within this fucntion
If you were trying to be fancy I would suggest adding a parameter to the adu-conf.txt configuration file that has the absolute path to your certificate and private key within our GetConnectionInfoFromADUConfigFile() function located here. Now you can add some functionality to read in the certificate and private key into the agent.
Then you can just add your connection string, x509CertificatePath, and privateKeyPath to the configuration file to get those values into the agent.
Once you are reading those values in you can add new variables to our ADUC_LaunchArguments structure or reuse old ones so you can pass your certificate and private key that you added above to the ADUC_DeviceClientCreate function
The final step would to be add the options above to the clientHandle being created in ADUC_DeviceCLientCreate. I wrote the code that should work if you want to add it within the if-else-if structure we have within ADUC_DeviceClientCreate. For the code I assumed you added the new member values of selfSignedCertificateString and selfSignedPrivateKey to the ADUC_LaunchArguments structure for your certificate and private key strings read into the agent above

    else if (
        connInfo->selfSignedCertificateString != NULL
        && (iothubResult = IoTHubDeviceClient_LL_SetOption(g_iotHubClientHandle,OPTION_X509_CERT,connInfo->selfSignedCertificateString) != IOTHUB_CLIENT_OK))
    {
        Log_Error("Unable to set certificate string for validation");
        result = false;
    }
    else if (
        connInfo->selfSignedPrivateKey != NULL
        && (iothubResult = IoTHubDeviceClient_LL_SetOption(g_iotHubClientHandle,OPTION_X509_PRIVATE_KEY,connInfo->selfSignedPrivateKey) != IOTHUB_CLIENT_OK))
    {
        Log_Error("Unable to set private key string for validation");
        result = false;
    }

You should then be able to build the agent for use on linux platforms and ready to deploy APT updates using ./scripts/build.sh -p linux --content-handlers microsoft/apt --build-packages. Then install the agent using debian, add your variables to the adu-conf.txt and then get right on going.

I want to let you know we're looking into support this out of the box but I don't have a timeline for you. that's why I figured I'd get you the code and steps that will at least get you going right now until we have a more robust solution.
Let me know if you have any questions.
-Nic Hemstreet
Software Engineer, Adu Client

@nihemstr Thanks for the detailed explanation. You are right I am trying to connect my iot device directly to the IoThub without using the IotEdge. My question here is, Is it common practice to connect IoT devices with IotEdge or directly?. Which is better?
Now I have an environment wherein I connect the IoT Device using the x509 self-signed certificate to IoTHub.

Hello,
It is great to hear that this is what you were looking for!
Connecting the IoT device with the IoT Identity Service (works with IoTEdge and non-Edge devices) or not depends on your use case.  For development and when using a few devices, it’s more convenient to use config file. But for production,  it is recommended to use the IoT Identity service for scalability and security.

Hi nihemstr,
I am working same concept where adding DPS feature to adu agent code same way as you explained with little minor changed.
I used x509 certificate type instead of connection string and used the  IoTHubDeviceClient_LL_CreateFromDeviceAuth
I got successfully registered with DPS to IOT hub and get connect to hub, update twins properties.
But code get stuck after subscription to topic $iothub/twin/PATCH/properties/desired/#.
I have build the all on pi 4 running on Raspbian os.
Below are low please look and help me out finding root clause.
Nov 29 04:50:03 raspberrypi systemd[1]: Stopped Azure Device Update Agent daemon..
Nov 29 04:50:03 raspberrypi systemd[1]: Started Azure Device Update Agent daemon..
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Hi This is Gaurav from agentEnter into test function sucessfully2021-11-29T04:50:03.1160Z [I] Agent (linux; 0.6.0-public-preview) starting. [main]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:03.1160Z [I] Git Info: main:743bb72 [main]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:03.1160Z [I] Agent built with handlers: microsoft/swupdate. [main]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: inside AllocateDeviceClientHandle
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Provisioning API Version: 1.7.0
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Info: Initiating DPS client to retrieve IoT Hub connection information
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Provisioning Status: 0
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Provisioning Status: 2
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Registration Information received from service: devmgmtiothub.azure-devices.net!
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Info: Provisioning callback indicates success.  iothubUri=devmgmtiothub.azure-devices.net, deviceId=dev_iot_001
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: Info: DPS successfully registered.  Continuing on to creation of IoTHub device client handle.
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:14.7812Z [I] Initalizing PnP components. [ADUC_PnP_Components_Create]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:14.7813Z [I] ADUC agent started. Using IoT Hub Client SDK 1.7.0 [AzureDeviceUpdateCoreInterface_Create]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:14.7813Z [I] Calling ADUC_Register [ADUC_MethodCall_Register]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:14.7814Z [I] IoTHub Device Twin callback registered. [ADUC_DeviceClient_Create]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:14.7819Z [W] Failed to pass connection string to DO, error: -1 [StartupAgent]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:14.7819Z [I] Agent running. [main]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: -> 04:50:15 CONNECT | VER: 4 | KEEPALIVE: 240 | FLAGS: 128 | USERNAME: devmgmtiothub.azure-devices.net/dev_iot_001/?api-version=2020-09-30&DeviceClientType=iothubclient%2f1.7.0%20(native%3b%20Linux%3b%20armv7l)&model-id=dtmi%3aAzureDeviceUpdate%3b1 | CLEAN: 0
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: <- 04:50:16 CONNACK | SESSION_PRESENT: true | RETURN_CODE: 0x0
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:16.2355Z [D] IotHub connection status: 0, reason:6 [ADUC_ConnectionStatus_Callback]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: -> 04:50:16 SUBSCRIBE | PACKET_ID: 2 | TOPIC_NAME: $iothub/twin/res/# | QOS: 0
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: <- 04:50:16 SUBACK | PACKET_ID: 2 | RETURN_CODE: 0
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: -> 04:50:16 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_MOST_ONCE | TOPIC_NAME: $iothub/twin/GET/?$rid=3
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: <- 04:50:17 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_MOST_ONCE | TOPIC_NAME: $iothub/twin/res/200/?$rid=3 | PAYLOAD_LEN: 537
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0376Z [I] Processing existing Device Twin data after agent started. [ADUC_PnPDeviceTwin_Callback]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0376Z [D] Notifies components that all callback are subscribed. [ADUC_PnPDeviceTwin_Callback]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0377Z [I] DeviceInformation component is ready - reporting properties [DeviceInfoInterface_Connected]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0379Z [I] Property manufacturer changed to Contoso [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0380Z [I] Property model changed to Virtual-Machine [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0380Z [I] Property osName changed to Linux [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0381Z [I] Property swVersion changed to 5.10.17-v7l- [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0382Z [I] Property processorArchitecture changed to armv7l [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0628Z [I] Property processorManufacturer changed to ARM [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0630Z [I] Property totalMemory changed to 3919128 [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0631Z [I] Property totalStorage changed to 2405632 [RefreshDeviceInfoInterfaceData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0633Z [I] No update content. Reporting Idle state. [ADUC_Workflow_HandleStartupWorkflowData]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0634Z [I] Setting UpdateState to Idle [ADUC_SetUpdateStateHelper]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0634Z [I] Reporting state: 0, Idle (0); HTTP 200; result 1, 0 [AzureDeviceUpdateCoreInterface_ReportStateAndResultAsync]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0635Z [I] UpdateAction: Idle. WorkflowId:<PHONE_NUMBER>17 [ADUC_MethodCall_Idle]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0636Z [I] Calling IdleCallback [ADUC_MethodCall_Idle]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: 2021-11-29T04:50:17.0636Z [I] Now idle. workflowId:<PHONE_NUMBER>17 [Idle]
Nov 29 04:50:17 raspberrypi AducIotAgent[4218]: -> 04:50:17 SUBSCRIBE | PACKET_ID: 4 | TOPIC_NAME: $iothub/twin/PATCH/properties/desired/# | QOS: 0

Hi,
@nihemstr I´ve integrated your explanation but I get some error messages while starting ADU agent. But first I have some more question about the integration, maybe you can help me.

I guess I have to update the authType in "GetConnectionInfoFromADUConfigFile". By default it is set to "ADUC_AuthType_SASToken", but I guess it should be something like "ADUC_AuthType_X509" but this doesn´t exists.
What must the "connection_string" in adu_config.txt contains? My device only have primary/secondary fingerprint. If I´m leaving it empty so there are errors because of empty connection_string. So it´s mandatory to set.

Thanks for any help.

Hey @GauravChoube I'm not sure how to debug the issue with the topic. I can ping the service, but it looks like we resolved the initial issue. If you're still working on this implementation, please feel free to create a new issue and I can pass it along to my service side counterparts to take a deeper dive.
Thanks!


Auto mode for transition selection

Currently the most painful thing is working out which transitions you need to select when plotting. I think it would be best to add an "auto" mode, that automatically works out which transitions are the most important for the energy range of interest, and then automatically labels those.
You would enable this mode by setting relevant_transitions="auto" in the plotter as an alternative to passing a list.
And I think all of the examples, except one, should use "auto".

"auto" mode now shows the 3 most contributing band transitions for the TAS plot, or 2 most contributing for each JDOS.
(most contributing == maximum of the absolute absorption values associated with the transition is highest compared to other transitions)
Option of passing a relevant_transitions list is still available.
I can also change the number of 'auto' plots to be shown in the plot if you think 3 is too many/too little. It might be useful to have this as a changeable parameter for the user.
Additionally, I think it'd be beneficial to be able to pull out a list with the order of contribution from different transitions, so that the user can easily see the order of transitions. Happy to implement this if you think it would be useful.


reverted left style assignment on unstick as it didn't do anything an…

Disagreeing with @driannaude on https://github.com/d-oliveros/ngSticky/commit/81eb463e83835a41262fbfdac73d60c2665cffdf
My (floating) sticky elements now loose their horizontal position on stickElement() because assigning just a number via $elem.css('left', aNumberWithoutUnit) will not do anything - the elements jump to the left on sticking, because the left property isn't assigned.
Any thoughts on this, @driannaude? Why exactly has this been introduced? How can we keep my applications working while not destroying the bottom-out feature?

using just jqLite from angular btw, might a full jQuery handle .css calls differently?

Hey @severinraez, I'll have a look over the next few hours, actually at work at the moment, but I found the same thing a few weeks ago happened to me. But I do agree that a value without a unit would not do much, I don't know what I was thinking there... I will need to introduce ngSticky into a project again soon so will see if I can get this done today.

Sorry, been off to enjoy the nice weather. Thanks for the merge @d-oliveros , I hope this won't interfere with your further work @driannaude

Oh crap sorry @severinraez, I did have a look that day, but thanks for the PR, pulled it and all seems well so far, I can't believe it's been 2 weeks since I said I'd look into it. I deserve a slap on the wrist! Good luck and thanks man, sorry for the stale reply again!


ModuleNotFoundError: No module named 'main' opentelemetry dep issues

Followed all debug steps of https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/appservice.md
until i found an unexplainable issue ats startup_
2024/07/27 11:24:47 main.go:50: Retry: response 200
2024/07/27 11:24:47 main.go:50: Retry: exit due to non-retriable status code
(✓) Done: Deploying service backend

Endpoint: https://XXXXXXXXXXXXXXXX.azurewebsites.net/

SUCCESS: Your application was deployed to Azure in 30 minutes 22 seconds.
You can view the resources created under the resource group ece-prodweub-docbot-rg in Azure Portal:
1https://portal.azure.com/#@/resource/subscriptions/YYYYYYYYYYYYYYYYYYYYYYYYYYYY/resourceGroups/RRRRRRRRRRRRR-rg/overview

2024-07-27T00:27:38.7892647Z    _____
2024-07-27T00:27:38.7894244Z   /  _  \ __________ _________   ____
2024-07-27T00:27:38.7894357Z  /  /\  \__   /  |  _  __ _/ __ \
2024-07-27T00:27:38.7894406Z /    |    /    /|  |  /|  | /\  /
2024-07-27T00:27:38.7894455Z _|__  /_____ _/ ||    __  >
2024-07-27T00:27:38.7894502Z         /      /                  /
2024-07-27T00:27:38.7894548Z A P P   S E R V I C E   O N   L I N U X
2024-07-27T00:27:38.7894592Z
2024-07-27T00:27:38.7894663Z Documentation: http://aka.ms/webapp-linux
2024-07-27T00:27:38.7894710Z Python 3.11.8
2024-07-27T00:27:38.7894756Z Note: Any data outside '/home' is not persisted
2024-07-27T00:27:40.2836783Z Starting OpenBSD Secure Shell server: sshd.
2024-07-27T00:27:40.3314078Z WEBSITES_INCLUDE_CLOUD_CERTS is not set to true.
2024-07-27T00:27:40.6308099Z Site's appCommandLine: python3 -m gunicorn main:app
2024-07-27T00:27:40.9948027Z Starting periodic command scheduler: cron.
2024-07-27T00:27:41.0053470Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'python3 -m gunicorn main:app'
2024-07-27T00:27:41.1039522Z Could not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-07-27T00:27:41.1057743Z Could not find operation ID in manifest. Generating an operation id...
2024-07-27T00:27:41.1233128Z Build Operation ID: a665f202-54d0-443c-944e-11efc28bac7b
2024-07-27T00:27:41.6327554Z Oryx Version: 0.2.20240619.2, Commit: cf006407a02b225f59dccd677986973c7889aa50, ReleaseTagName: 20240619.2
2024-07-27T00:27:41.6543031Z Writing output script to '/opt/startup/startup.sh'
2024-07-27T00:27:41.7411267Z WARNING: Could not find virtual environment directory /home/site/wwwroot/antenv.
2024-07-27T00:27:41.7428213Z WARNING: Could not find package directory /home/site/wwwroot/oryx_packages.
2024-07-27T00:27:43.5036823Z [2024-07-27 00:27:43 +0000] [81] [INFO] Starting gunicorn 22.0.0
2024-07-27T00:27:43.5052472Z [2024-07-27 00:27:43 +0000] [81] [INFO] Listening at: http://<IP_ADDRESS>:8000 (81)
2024-07-27T00:27:43.5214209Z [2024-07-27 00:27:43 +0000] [81] [INFO] Using worker: sync
2024-07-27T00:27:43.5345590Z [2024-07-27 00:27:43 +0000] [82] [INFO] Booting worker with pid: 82
2024-07-27T00:27:43.5931697Z [2024-07-27 00:27:43 +0000] [82] [ERROR] Exception in worker process
2024-07-27T00:27:43.5932888Z Traceback (most recent call last):
2024-07-27T00:27:43.5932948Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
2024-07-27T00:27:43.5933001Z     worker.init_process()
2024-07-27T00:27:43.5933058Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
2024-07-27T00:27:43.5933174Z     self.load_wsgi()
2024-07-27T00:27:43.5933225Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2024-07-27T00:27:43.5933270Z     self.wsgi = self.app.wsgi()
2024-07-27T00:27:43.5933315Z                 ^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933363Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
2024-07-27T00:27:43.5933429Z     self.callable = self.load()
2024-07-27T00:27:43.5933474Z                     ^^^^^^^^^^^
2024-07-27T00:27:43.5933522Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2024-07-27T00:27:43.5933568Z     return self.load_wsgiapp()
2024-07-27T00:27:43.5933614Z            ^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933678Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2024-07-27T00:27:43.5933727Z     return util.import_app(self.app_uri)
2024-07-27T00:27:43.5933773Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933822Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
2024-07-27T00:27:43.5933867Z     mod = importlib.import_module(module)
2024-07-27T00:27:43.5933913Z           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5933977Z   File "/opt/python/3/lib/python3.11/importlib/init.py", line 126, in import_module
2024-07-27T00:27:43.5934025Z     return bootstrap.gcd_import(name[level:], package, level)
2024-07-27T00:27:43.5934073Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:27:43.5934120Z   File "", line 1204, in gcd_import
2024-07-27T00:27:43.5934183Z   File "", line 1176, in find_and_load
2024-07-27T00:27:43.5934232Z   File "", line 1140, in find_and_load_unlocked
2024-07-27T00:27:43.5934278Z ModuleNotFoundError: No module named 'main'
2024-07-27T00:27:43.6121435Z [2024-07-27 00:27:43 +0000] [82] [INFO] Worker exiting (pid: 82)
2024-07-27T00:27:43.8065597Z [2024-07-27 00:27:43 +0000] [81] [ERROR] Worker (pid:82) exited with code 3
2024-07-27T00:27:43.8224651Z [2024-07-27 00:27:43 +0000] [81] [ERROR] Shutting down: Master
2024-07-27T00:27:43.8225005Z [2024-07-27 00:27:43 +0000] [81] [ERROR] Reason: Worker failed to boot.
2024-07-27T00:28:25.530406476Z    _____
2024-07-27T00:28:25.530463977Z   /  _  \ __________ _________   ____
2024-07-27T00:28:25.530470977Z  /  /\  \   /  |  _  __ _/ __ \
2024-07-27T00:28:25.530475877Z /    |    /    /|  |  /|  | /\  /
2024-07-27T00:28:25.530480077Z _|_  /_____ _/ ||    __  >
2024-07-27T00:28:25.530484477Z         /      /                  /
2024-07-27T00:28:25.530488578Z A P P   S E R V I C E   O N   L I N U X
2024-07-27T00:28:25.530492778Z
2024-07-27T00:28:25.530496678Z Documentation: http://aka.ms/webapp-linux
2024-07-27T00:28:25.530500678Z Python 3.11.8
2024-07-27T00:28:25.530504578Z Note: Any data outside '/home' is not persisted
2024-07-27T00:28:30.024985566Z Starting OpenBSD Secure Shell server: sshd.
2024-07-27T00:28:30.154095574Z WEBSITES_INCLUDE_CLOUD_CERTS is not set to true.
2024-07-27T00:28:30.310384842Z Site's appCommandLine: python3 -m gunicorn main:app
2024-07-27T00:28:30.318372048Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'python3 -m gunicorn main:app'
2024-07-27T00:28:30.586568697Z Could not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-07-27T00:28:30.596054023Z Could not find operation ID in manifest. Generating an operation id...
2024-07-27T00:28:30.705904876Z Build Operation ID: 2e710c01-a499-4acf-95cb-17d9c74a10e5
2024-07-27T00:28:31.890939757Z Oryx Version: 0.2.20240501.1, Commit: f83f88d3cfb8bb6d3e2765e1dcd218eb0814a095, ReleaseTagName: 20240501.1
2024-07-27T00:28:31.930469980Z Writing output script to '/opt/startup/startup.sh'
2024-07-27T00:28:32.072753663Z WARNING: Could not find virtual environment directory /home/site/wwwroot/antenv.
2024-07-27T00:28:32.113394901Z WARNING: Could not find package directory /home/site/wwwroot/oryx_packages.
2024-07-27T00:28:34.328924018Z [2024-07-27 00:28:34 +0000] [63] [INFO] Starting gunicorn 22.0.0
2024-07-27T00:28:34.328957218Z [2024-07-27 00:28:34 +0000] [63] [INFO] Listening at: http://<IP_ADDRESS>:8000 (63)
2024-07-27T00:28:34.337424130Z [2024-07-27 00:28:34 +0000] [63] [INFO] Using worker: sync
2024-07-27T00:28:34.359122417Z [2024-07-27 00:28:34 +0000] [68] [INFO] Booting worker with pid: 68
2024-07-27T00:28:34.388854811Z [2024-07-27 00:28:34 +0000] [68] [ERROR] Exception in worker process
2024-07-27T00:28:34.388907811Z Traceback (most recent call last):
2024-07-27T00:28:34.388915511Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
2024-07-27T00:28:34.388921212Z     worker.init_process()
2024-07-27T00:28:34.388926112Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
2024-07-27T00:28:34.388931312Z     self.load_wsgi()
2024-07-27T00:28:34.388947512Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2024-07-27T00:28:34.388959712Z     self.wsgi = self.app.wsgi()
2024-07-27T00:28:34.388964512Z                 ^^^^^^^^^^^^^^^
2024-07-27T00:28:34.388969212Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
2024-07-27T00:28:34.388973912Z     self.callable = self.load()
2024-07-27T00:28:34.388978612Z                     ^^^^^^^^^^^
2024-07-27T00:28:34.388983312Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2024-07-27T00:28:34.388988112Z     return self.load_wsgiapp()
2024-07-27T00:28:34.388992413Z            ^^^^^^^^^^^^^^^^^^^
2024-07-27T00:28:34.388997213Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2024-07-27T00:28:34.389002013Z     return util.import_app(self.app_uri)
2024-07-27T00:28:34.389006713Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:28:34.389011313Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
2024-07-27T00:28:34.389016313Z     mod = importlib.import_module(module)
2024-07-27T00:28:34.389020813Z           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:28:34.389025313Z   File "/opt/python/3/lib/python3.11/importlib/init.py", line 126, in import_module
2024-07-27T00:28:34.389029913Z     return _bootstrap._gcd_import(name[level:], package, level)
2024-07-27T00:28:34.389034613Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-27T00:28:34.389039213Z   File "", line 1204, in _gcd_import
2024-07-27T00:28:34.389044513Z   File "", line 1176, in _find_and_load
2024-07-27T00:28:34.389049213Z   File "", line 1140, in _find_and_load_unlocked
2024-07-27T00:28:34.389054113Z ModuleNotFoundError: No module named 'main'
2024-07-27T00:28:34.398361536Z [2024-07-27 00:28:34 +0000] [68] [INFO] Worker exiting (pid: 68)
2024-07-27T00:28:34.658491279Z [2024-07-27 00:28:34 +0000] [63] [ERROR] Worker (pid:68) exited with code 3
2024-07-27T00:28:34.669995331Z [2024-07-27 00:28:34 +0000] [63] [ERROR] Shutting down: Master
2024-07-27T00:28:34.671412050Z [2024-07-27 00:28:34 +0000] [63] [ERROR] Reason: Worker failed to boot.

related

https://github.com/Azure-Samples/azure-search-openai-demo/issues/1624
https://github.com/Azure-Samples/azure-search-openai-demo/issues/1361
https://github.com/Azure-Samples/azure-search-openai-demo/issues/95

Which  gave me the rteleavt hints
Insights > Investigate > Failures, and then filtering by recency.
Traceback (most recent call last):
File "/agents/python/sitecustomize.py", line 97, in _load_instrumentors
distro.load_instrumentor(entry_point, skip_dep_check=True)
File "/agents/python/opentelemetry/instrumentation/distro.py", line 62, in load_instrumentor
instrumentor: BaseInstrumentor = entry_point.load()
^^^^^^^^^^^^^^^^^^
File "/agents/python/pkg_resources/init.py", line 2473, in load
self.require(*args, **kwargs)
File "/agents/python/pkg_resources/init.py", line 2497, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/agents/python/pkg_resources/init.py", line 787, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/agents/python/pkg_resources/init.py", line 833, in _resolve_dist
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (opentelemetry-util-http 0.45b0 (/agents/python), Requirement.parse('opentelemetry-util-http==0.46b0'))

There is some  issue with dep - maybe
opentelemetry-semantic-conventions==0.46b0
opentelemetry-semantic-conventions-ai==0.3.5

requirements.txt
ERROR: Cannot install -r app/backend/requirements.txt (line 242), -r app/backend/requirements.txt (line 244), -r app/backend/requirements.txt (line 248), -r app/backend/requirements.txt (line 250), -r app/backend/requirements.txt (line 252), -r app/backend/requirements.txt (line 256), -r app/backend/requirements.txt (line 258) and opentelemetry-instrumentation==0.47b0 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Failed to restore backend python packages

https://github.com/traceloop/openllmetry/issues/1694

I think it was a problem with python deps / version of opentelemetry libs .
Shall be fixed meanwhile
Am Mo., 2. Sept. 2024 um 09:19 Uhr schrieb Abhishek Kumar <
@.***>:

@cforce https://github.com/cforce , did you find any solution for this
issue. I am also facing the same.
—
Reply to this email directly, view it on GitHub
https://github.com/Azure-Samples/azure-search-openai-demo/issues/1864#issuecomment-2323992777,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADAARRJ3DQLKMWVHBVJBCTZUQGRJAVCNFSM6AAAAABLRXIYVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRTHE4TENZXG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

how to fix this? do I azd up?

Hello, I'm facing this issue with vanilla repo deployment
The local deployment works fine only faces issue when done 'azd up'
Has anyone found a fix @cforce, @abhiaryz , @hwvm, @archerzz, @timheuer
2024-09-24T16:38:02.910679503Z Documentation: http://aka.ms/webapp-linux
2024-09-24T16:38:02.910683703Z Python 3.11.8
2024-09-24T16:38:02.910687503Z Note: Any data outside '/home' is not persisted
2024-09-24T16:38:07.527752375Z Starting OpenBSD Secure Shell server: sshd.
2024-09-24T16:38:07.527795076Z WEBSITES_INCLUDE_CLOUD_CERTS is not set to true.
2024-09-24T16:38:07.706128150Z Site's appCommandLine: python3 -c "import os; print(os.getcwd()); print(os.listdir(os.getcwd()))" && exec python3 -m gunicorn main:app
2024-09-24T16:38:07.706155650Z Launching oryx with: create-script -appPath /home/site/wwwroot -output /opt/startup/startup.sh -virtualEnvName antenv -defaultApp /opt/defaultsite -userStartupCommand 'python3 -c "import os; print(os.getcwd()); print(os.listdir(os.getcwd()))" && exec python3 -m gunicorn main:app'
2024-09-24T16:38:07.867606919Z Could not find build manifest file at '/home/site/wwwroot/oryx-manifest.toml'
2024-09-24T16:38:07.867641920Z Could not find operation ID in manifest. Generating an operation id...
2024-09-24T16:38:07.867648120Z Build Operation ID: 2adb1ea0-52ac-4b6d-81f2-86b44589ed55
2024-09-24T16:38:08.498425338Z Oryx Version: 0.2.20240501.1, Commit: f83f88d3cfb8bb6d3e2765e1dcd218eb0814a095, ReleaseTagName: 20240501.1
2024-09-24T16:38:08.515548348Z Writing output script to '/opt/startup/startup.sh'
2024-09-24T16:38:08.611730554Z WARNING: Could not find virtual environment directory /home/site/wwwroot/antenv.
2024-09-24T16:38:08.611775355Z WARNING: Could not find package directory /home/site/wwwroot/oryx_packages.
2024-09-24T16:38:08.885881425Z /home/site/wwwroot
2024-09-24T16:38:08.885926026Z ['.ostype', 'hostingstart.html', 'output.tar.gz']
2024-09-24T16:38:11.719477571Z [2024-09-24 16:38:11 +0000] [1] [INFO] Starting gunicorn 22.0.0
2024-09-24T16:38:11.776347350Z [2024-09-24 16:38:11 +0000] [1] [INFO] Listening at: http://<IP_ADDRESS>:8000 (1)
2024-09-24T16:38:11.776372150Z [2024-09-24 16:38:11 +0000] [1] [INFO] Using worker: sync
2024-09-24T16:38:11.787241194Z [2024-09-24 16:38:11 +0000] [65] [INFO] Booting worker with pid: 65
2024-09-24T16:38:12.167232936Z [2024-09-24 16:38:11 +0000] [65] [ERROR] Exception in worker process
2024-09-24T16:38:12.167261437Z Traceback (most recent call last):
2024-09-24T16:38:12.167268237Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
2024-09-24T16:38:12.167293337Z     worker.init_process()
2024-09-24T16:38:12.167298937Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 134, in init_process
2024-09-24T16:38:12.167303837Z     self.load_wsgi()
2024-09-24T16:38:12.167308238Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
2024-09-24T16:38:12.167313038Z     self.wsgi = self.app.wsgi()
2024-09-24T16:38:12.167317738Z                 ^^^^^^^^^^^^^^^
2024-09-24T16:38:12.167322538Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/base.py", line 67, in wsgi
2024-09-24T16:38:12.167327438Z     self.callable = self.load()
2024-09-24T16:38:12.167332138Z                     ^^^^^^^^^^^
2024-09-24T16:38:12.167336838Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
2024-09-24T16:38:12.167341538Z     return self.load_wsgiapp()
2024-09-24T16:38:12.167346338Z            ^^^^^^^^^^^^^^^^^^^
2024-09-24T16:38:12.167350939Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
2024-09-24T16:38:12.167355839Z     return util.import_app(self.app_uri)
2024-09-24T16:38:12.167360639Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-24T16:38:12.167365239Z   File "/opt/python/3/lib/python3.11/site-packages/gunicorn/util.py", line 371, in import_app
2024-09-24T16:38:12.167370139Z     mod = importlib.import_module(module)
2024-09-24T16:38:12.167374839Z           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-24T16:38:12.167379439Z   File "/opt/python/3/lib/python3.11/importlib/init.py", line 126, in import_module
2024-09-24T16:38:12.167384239Z     return _bootstrap._gcd_import(name[level:], package, level)
2024-09-24T16:38:12.167388939Z            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-09-24T16:38:12.167393539Z   File "", line 1204, in _gcd_import
2024-09-24T16:38:12.167398540Z   File "", line 1176, in _find_and_load
2024-09-24T16:38:12.167403440Z   File "", line 1140, in _find_and_load_unlocked
2024-09-24T16:38:12.167408240Z ModuleNotFoundError: No module named 'main'
2024-09-24T16:38:12.167412840Z [2024-09-24 16:38:11 +0000] [65] [INFO] Worker exiting (pid: 65)
2024-09-24T16:38:12.525890399Z [2024-09-24 16:38:12 +0000] [1] [ERROR] Worker (pid:65) exited with code 3
2024-09-24T16:38:12.525935900Z [2024-09-24 16:38:12 +0000] [1] [ERROR] Shutting down: Master
2024-09-24T16:38:12.525943200Z [2024-09-24 16:38:12 +0000] [1] [ERROR] Reason: Worker failed to boot.rmup request to container app-backend-tgrxvw7vy3jry_0_356c298c_msiProxy for site app-backend-tgrxvw7vy3jry

For my team this is quite a problematic bug as we’re looking to take the app into production.

For my team this is quite a problematic bug as we’re looking to take the app into production.

I have two implementations of this repo with different adjustments in the code, and this error occurred randomly in both of them at the same time.

check https://github.com/Azure-Samples/azure-search-openai-demo/issues/2099


KAFKA-16824: Utils.getHost and Utils.getPort do not catch a lot of invalid host and ports.

Modify regex of HOST_PORT_PATTERN to prevent malformed hosts and ports.
Committer Checklist (excluded from commit message)

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

Failed tests are unrelated.

@frankvicky looks like with this change, SASL_PLAINTEXT://localhost:50132 becomes invalid url because of _

@zhaochun-ma , nice find! I've created KAFKA-16946 for this issue. Are you interested in opening a PR to fix it?

@zhaochun-ma , nice find! I've created KAFKA-16946 for this issue. Are you interested in opening a PR to fix it?

i haven't worked on kafka before, might be better for someone else to pick it up

Hi @zhaochun-ma
Thanks for your remind 😄
If you have free cycle, it would be nice you could have a PR to fix it

@frankvicky looks like with this change, SASL_PLAINTEXT://localhost:50132 becomes invalid url because of _ in the protocol, and it's a breaking change, is this expected?

definitely a bug. we should fix or revert