Unable to run Perfcollector .NET 8 core

Type of issue
Missing information
Description
To enable the perf collector on K8 Linux container, on Linux VM (in AKS Linux Gen05 nodes) for .NET Core 8, we followed the following steps (following this guide https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng) still we are getting following error.
Running "/usr/bin/lttng add-context --kernel -t pid -t procname"
Error: pid: Kernel tracer not available
Error: procname: Kernel tracer not available
Here are the steps for reference:
1  curl -OL https://aka.ms/perfcollect
2  apt updat
3  apt update
4  apt install curl
5  curl -OL https://aka.ms/perfcollect
6  chmod +x perfcollect
7  sudo ./perfcollect install
8  dotnet tool install --global dotnet-symbol
9  mkdir mySymbolsNet8
10 ~/.dotnet/tools/dotnet-symbol  --output ./mySymbolsNet8/  /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0/lib*.so
11 cp ./mySymbolsNet8/*  /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.0/
12 apt-get install  linux-tools-5.15.0-1041-azure -y
13 cp /usr/lib/linux-tools/5.15.0-1041-azure/perf /usr/bin/perf
14 ps -ef | grep -i dotnet
15 export DOTNET_EnableWriteXorExecute=0
16 sudo ./perfcollect collect a   -pid 166
perfcollector.log
Please provide us the missing/updated steps
Page URL
https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/diagnostics/trace-perfcollect-lttng.md
Document Version Independent Id
ac6cc555-a033-766d-0597-bd9bda98820f
Article author
@tommcdon
Metadata

ID: 7dd230f8-907f-5f07-e3ab-7ad37fee3aa4
Product: dotnet-fundamentals

Hi @samyaghosh2, please see https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng#collect-in-a-docker-container for information on collecting diagnostics in a container.  Please let me know if this resolves the issue.
cc @brianrob

Hi @tommcdon cc @brianrob ,
We tried exact steps in the document (https://learn.microsoft.com/en-us/dotnet/core/diagnostics/trace-perfcollect-lttng#collect-in-a-docker-container), still it is giving the same error as mentioned earlier .
One more information we are using "containerd" as runtime our AKS cluster.

@samyaghosh2 can you verify:

The container has the SYS_ADMIN capability
DOTNET_PerfMapEnabled is set to 1 for the target process
If the above is all correct, please try adding the -nolttng argument to the perfcollect script.

Tried with the flag -nolttng
Yes the container has the SYS_ADMIN capabilities,
Also all the four following env variables are set:
export DOTNET_PerfMapEnabled=1
export DOTNET_EnableEventLog=1
export DOTNET_EnableWriteXorExecute=0
export DOTNET_ZapDisable=1
We got the following error:
Running "/usr/lib/linux-tools/5.15.0-1053-azure/perf record -k 1 -g -a -F 1000 -e cpu-clock"
Error:
Access to performance monitoring and observability operations is limited.
Consider adjusting /proc/sys/kernel/perf_event_paranoid setting to open
access to performance monitoring and observability operations for processes
without CAP_PERFMON, CAP_SYS_PTRACE or CAP_SYS_ADMIN Linux capability.
More information can be found at 'Perf events and tool security' document:
https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html
perf_event_paranoid setting is 4:
-1: Allow use of (almost) all events by all users
Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK

= 0: Disallow raw and ftrace function tracepoint access
sudo ./perfcollect collect sampleTrace>= 1: Disallow CPU event access
= 2: Disallow kernel profiling
To make the adjusted perf_event_paranoid setting permanent preserve it
in /etc/sysctl.conf (e.g. kernel.perf_event_paranoid = )

@brianrob should we update the docs to clearly state that perfcollect is not supported in containers or are there other caveats to be aware of?

@tommcdon, no we should not need to do that -  it is supported inside containers.  You just don't get some of the context information because the kernel module isn't loaded:
Running "/usr/bin/lttng add-context --kernel -t pid -t procname"
Error: pid: Kernel tracer not available
Error: procname: Kernel tracer not available

It might be worth noting that this error is expected if collecting inside of containers.

@brianrob please see https://github.com/dotnet/docs/issues/38951#issuecomment-1883037526.  The perf tool seems to be failing to collect CPU samples.  If the reason is "you will need to capture on the node instead of inside the container" then we should document that.

Ah, sorry, I got stuck on the stuff up above.  Collecting inside of a container is supported.  I suspect that this has something to do with the configuration of the container, and what perf requires in order to profile.  Can you please try capturing with a container with all permissions?  I'd like to try process of elimination to address this.
As a test, I just did a test in a new container with all privileges, and it worked:
docker run -it --privileged --security-opt seccomp=unconfined ubuntu:latest

@brianrob, thanks for your inputs, however I am wondering why does it only run for only privileged mode, as for perf security document, perf_events scope and access control for unprivileged processes is governed by perf_event_paranoid (https://docs.kernel.org/admin-guide/perf-security.html#id33) setting. Ideally, it should run in unprivileged mode, as in privileged mode container is a container that has access to all host system resources, including kernel features and devices, this mode could lead to unintended consequences to the host.

Agreed that this level of access may not be the best choice.  However, perfcollect doesn't choose the configuration that perf requires.  Instead, perfcollect is just showing the error from perf.  The error that you're seeing here is from perf, and so the configuration of the container is such that there is not enough privileges to capture a perf trace.
Going forward, I would recommend starting from a point where things work, and then dropping permissions until to find that it no longer works, in order to find the minimal set of permissions required.  Generally speaking, the guidance provided here has been sufficient, but it's possible that something has changed.

@brianrob, right exactly that's the point request you to update the guide which I believe would be referenced by other teams as well with detailing on the minimum required permission set to make this running.

Doing a bit more investigation, I am able to capture a trace within a container by adding just CAP_SYS_ADMIN.  I do get a warning that kernel symbols might not resolved based on permissions.  However, I do get a trace.
It sounds like the environment that you're in has additional security measures enabled, though I don't know what they are, and so you may need to run with more privileges to capture within the container, or capture directly on the node.  It seems reasonable to want some guidance specific to AKS, but I wouldn't change the baseline guidance, because it does apply to non-AKS containerized environments.

@brianrob and @tommcdon another experiment we did.
Base Image aspnet:6.0 dotnet version 6.0.418 --> Perfcollection worked when the container was started in privileged mode.
Base Image aspnet:8.0 dotnet version 8.0.1 --> Perfcollection didnt work work when the container was started in privileged mode. We also did set the 2 env variables, DOTNET_PerfMapEnabled=1, DOTNET_EnableEventLog=1, DOTNET_EnableWriteXorExecute=0
Please help with resolving this for Dotnet 8. Thanks.

@tommcdon Where do you want to go with this issue?


Implement the speedrun.com API

It seems like this has a big impact on the wasm file size. It grew from 2.8 MiB to 3.6 MiB (this is before wasm-opt / wasm-gc), despite only having 3 async fns in the public API so far. This will have to be investigated.


remove the projectID from PacketMachine crd

It does not look like the PacketMachine needs a ProjectID. It is a value
that we get from the PacketCluster.
It is not even generated from the make examples file and when applied
via kubectl it fails because PachetMachine.ProjectID is a required field
in openapi.

@deitch can you validate my assumption and the change itself?
Thanks a lot

It does not look like the PacketMachine needs a ProjectID. It is a value
that we get from the PacketCluster.

I think you are correct. I am looking at the change itself.

I approved the PR, but it looks like CI is failing due to some weird controller-gen stuff. Since this is a development branch, it isn't worth holding it up, but we should get that fixed too.


Don't close standard i/o streams?

Attempt of closing stdout or stderr in Node throws an exception. Maybe check for process.stdout or process.stderr and skip the .end part?
For example, this minimal tee-like program does not work:
var multiWriteStream = require('multi-write-stream');
var fs = require('fs');

process.stdin.pipe(multiWriteStream([
  process.stdout,
  fs.createWriteStream(process.argv[2])
]));

$ echo hello |node tee file.txt
hello
events.js:141
      throw er; // Unhandled 'error' event
            ^
Error: process.stdout cannot be closed.

You can .pipe(process.stdout) with no problems, so it's at least intuitive to expect .pipe(multiWriteStream([process.stdout, ...])) to work.

Good idea. Send me a pr for this :)

I've seen some libraries control this with { end: false } as an option. There are other cases besides stdout/stderr where you might want to pipe but leave the files un-ended


Fix rhumb line interpolate for 0 headings

Fixes rhumb line interpolation for headings of 0 degrees.
The error shows up in this (local) sandcastle
The fix is straightforward, but I'm getting reports that geojsons which previously worked are suddenly seeing this error. The confusing part is that it's reproducible in 1.110 and 1.109 (before the polygon changes went in), as well as versions 1.108 and before depending on whether or not they are using the zip file or the npm module. I'm thinking this is either a dependency or build discrepancy and looking further into it.

Thanks for the pull request @ggetz!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.


feat: implement simple tagging

Mostly putting this here for visibility, I can very much understand if this never gets merged but I really need a solution to tags.

for now behind a feature flags tags
it will generate artifacts when used with other serializers
conceptually implemented in the same way as rust-cbor does it
will be a breaking change as

tags now get emitted as u64 values
the self describing tag gets emitted as well, but this could be changed

I have not added Tagged to the Value type yet, unclear if this needs to happen or not

Example Code
#[derive(Debug, PartialEq)]
struct MyTaggedValue(Vec<u8>);

impl MyTaggedValue {
    fn tag() -> u64 {
        9
    }
}

impl Serialize for MyTaggedValue {
    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
    where
        S: Serializer,
    {
        serde_cbor::EncodeCborTag::new(Self::tag(), &self.0).serialize(serializer)
    }
}

impl<'de> Deserialize<'de> for MyTaggedValue {
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
    where
        D: Deserializer<'de>,
    {
        let wrapper = serde_cbor::EncodeCborTag::deserialize(deserializer)?;
        if wrapper.tag() != Self::tag() {
            return Err(serde::de::Error::custom(format!(
                "Invalid tag: {}, expected {}",
                wrapper.tag(),
                Self::tag()
            )));
        }
        Ok(MyTaggedValue(wrapper.value()))
    }
}

// Roundtrip with custom type

let value = MyTaggedValue(vec![1, 2, 3]);

// C9       # tag(9)
//    83    # array(3)
//       01 # unsigned(1)
//       02 # unsigned(2)
//       03 # unsigned(3)

let bytes = b"\xC9\x83\x01\x02\x03";
assert_eq!(&to_vec(&value).unwrap()[..], bytes);
let res: MyTaggedValue = serde_cbor::de::from_slice_with_scratch(bytes, &mut []).unwrap();

assert_eq!(res, value);

Ref #56

Mostly putting this here for visibility, I can very much understand if this never gets merged but I really need a solution to tags.

I really hope this helps anyone who needs tags. I will think about adopting a similar version in the future.

@pyfisch This looks like a solid basis for tags. What would be needed to get this over the finish line in order to get tag support merged?

The force-push was just a rebase on top of current master.

@pyfisch This looks like a solid basis for tags. What would be needed to get this over the finish line in order to get tag support merged?

The virtue of serde is that if you annotate a type with #[derive(Serialize, Deserialize)] it can be stored in many different data formats without the type being aware of the data format and vice versa.
Tags already break this concept somewhat because you need to add them to types and they vary based on the data format. This would be still ok as users can opt-in into using them.
This change works around the serde data model to express tags and in the process breaks other data formats using types which include CBOR tags or prevents the deserialization of tagged values if the value does not expect a tag.
To get tag support merged the serde data model needs to be changed (or as I am told specialization needs to land in rust #31844). Then support for CBOR tags can be implemented.

The force-push was just a rebase on top of current master.

How does this work with a branch of another user?

A proposal:
https://github.com/dignifiedquire/cbor/pull/1


[Adding minimal Contact form]

Description
description

I would like to add a minimalist design contact form at the footer of the home page
although the contact form is there in the header menu a small at footer may be useful

@IAmTamal
I would like to work on this
please assign it to me
Screenshots
current

expected

Additional information
No response

It's great having you contribute to Milan ! This is an auto-generated textThe maintainers/owner will look into the issue soon, add relevant tags and proceed further, please have paitence. Meanwhile feel free to support star the repo and share it with your friends. :nerd_face: :rocket:

Hi @Chinmay-03 , we already have someone working on a contact us button which takes us to a new page. The button is accessible via footer plus we already have stuffs in the navbar.
Thanks for raising the issue, however this is not us much use.
Thanks a tonn !

@IAmTamal assign me another task which i can contribute to


Content Suggestion: Research Section

Add a research section with links to documents.

Any examples of things you want in this section?

This is a great idea, we can start with 6102's coinjoin research and related articles.

Thanks Wiz. Yes, my research repo would be a good one. Also

The recent report (warning direct link) by the FCA in the uk
This paper has been recommended to me directly, although it is paywalled so currently wouldn't be suitable.

I tried making something as a pull request but then I will just wait.


Can't connect to web interface

When I try to connect to the machine running gow through https://[ip address]:47990 I get the following error in Chrome.
You cannot visit <IP_ADDRESS> right now because the website sent scrambled credentials that Chrome cannot process. Network errors and attacks are usually temporary, so this page will probably work later.
What am I doing wrong?

I'm sorry for the late reply, that's a know issue on Sunshine. The web interface is hosted via HTTPS and the certificate is a self signed one which is not recognized as secure by the latest Firefox/Chrome versions.
My suggestion is to skip the web interface altogether and just pair clients by using curl <SUNSHINE_IP>:47989/pin/<MOONLIGHT_PIN> as stated in the docs


Dragoon aetherial interference.

Hey there,
I noticed something weird with the dragoon rotation that occurs when the other DPS is not in the boss arena. The message "Unable to execute action due to aetherial interference" appears when I use the spell "Dragon Sight." The rotation keeps spamming the spell until I use it manually.
I understand that this rotation is still in development, so maybe this error can be addressed in future updates.
I just wanted to take a moment to thank you for the great work you're doing with your mod!

That's interesting - can you explain exactly how to reproduce that? "Not in boss arena" - how do you mean? Like, in dungeon have other DPS standing outside the barrier that appears 15 sec after boss is pulled?
That might be a tricky one to fix.

Hey,
I'm not sure if this happens when the DPS is standing outside of the arena when the fight is starting.
In my case, during a 4 players roulette, the DPS started the fight, but died and released his body. He then walked to the boss room but was unable to enter due to the restrictions.

Ok, I'll try to reproduce it.


Add voyage ai embeddings

End-user friendly description of the problem this fixes or functionality that this introduces

[ ] Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Give a summary of what the PR does, explaining any non-trivial design decisions
This PR just proposes to add voyage embeddings. They're recommended by anthropic who doesn't develop their own, and have a model for code that they say to be quite good. 🫠 I tested, I did not evaluate.
Cc: @csmith49
They've just released an updated one, voyage-code-3.
Cc: @csmith49

Link of any specific issues this addresses

To run this PR locally, use the following command:
docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:91bda0a-nikolaik   --name openhands-app-91bda0a   docker.all-hands.dev/all-hands-ai/openhands:91bda0a

FWIW I've had positive experiences with voyage as well: https://arxiv.org/pdf/2406.14497


[FR] Add calendar column type

New type of column where you can select the daily note associated to a row

React-calendar does not support onBlur event, so I will choose Datepicker instead


Secret Live Votings during meetings

see http://www.dotvoting.org/

This site no longer exists, do you have any ideas of bringing some sort of voting to the main app?


asp.net web api integration

This adds a web api endpoint to our existing aspnet example and a new integration to trace it.

working on an integration test and will merge when its done


⚠ Redacted has degraded performance

In cb3f0b7, Redacted ($RED) experienced degraded performance:

HTTP code: 200
Response time: 18883 ms

Resolved: Redacted performance has improved in a882c7b after 5 minutes.


Binding calendar object

How can i bind calendar object  as date in the layout directly using data binding?

Did it by creating a getter method in the Entity class.


MatchStatus.java:40-42: Use this ResponseHandler to get...

The puzzle 93-7fa72147 from #93 has to be resolved:
https://github.com/amihaiemil/docker-java-api/blob/554f35b10983e65de6c361e83f6d3d9f308fc8d2/src/main/java/com/amihaiemil/docker/MatchStatus.java#L40-L42
The puzzle was created by rultor on 11-May-18.
Estimate: 30 minutes,
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@amihaiemil please pay attention to this new issue.

@amihaiemil/z please, pay attention to this issue

@0pdd/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

Job #105 is now in scope, role is DEV

The job #105 assigned to @llorllale/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this

@amihaiemil puzzle wasn't closed


<!doctype html> ->

Changed
<!doctype html>
to
<!DOCTYPE html>
According to the spec it should be uppercase (but parsing is case insensitive).
Spec link (see then 8.1.1 The DOCTYPE chapter): https://www.w3.org/TR/html5/syntax.html#the-doctype

This is fine, thanks!


chore(ci): only show last 50 master cpp benches

Make https://aztecprotocol.github.io/aztec-packages/dev/bench/ more readable
Unrelated image, master of benches

Benchmark results
Metrics with a significant change:

avm_simulation_time_ms (Token:mint_public): 43.8 (-35%)
avm_simulation_time_ms (Token:assert_minter_and_mint): 66.5 (+69%)
avm_simulation_time_ms (Token:transfer_public): 29.5 (+42%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256_ms
5,746
1,552
705
749 (-1%)
769

proof_construction_time_sha256_30_ms
11,826
3,168
1,406
1,446 (+1%)
1,473 (-1%)

proof_construction_time_sha256_100_ms
45,190
12,014
5,427
5,413 (+2%)
5,355

proof_construction_time_poseidon_hash_ms
78.0
34.0
34.0
59.0
88.0 (-1%)

proof_construction_time_poseidon_hash_30_ms
1,528
421
203
228 (+3%)
267

proof_construction_time_poseidon_hash_100_ms
5,623
1,512
676
732
751 (+1%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
4 txs
8 txs
16 txs

l1_rollup_calldata_size_in_bytes
4,324
7,844
14,852

l1_rollup_calldata_gas
49,612
92,466
177,560

l1_rollup_execution_gas
1,383,106
2,130,928
3,958,061

l2_block_processing_time_in_ms
251 (-2%)
444
812 (+2%)

l2_block_building_time_in_ms
8,883
17,464
34,837 (+1%)

l2_block_rollup_simulation_time_in_ms
8,883
17,463
34,837 (+1%)

l2_block_public_tx_process_time_in_ms
7,507
15,950
33,300 (+1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 8 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
2,849 (-4%)
3,938 (+1%)

node_database_size_in_bytes
12,619,856
16,687,184

pxe_database_size_in_bytes
16,254
26,813

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Function
time_ms
bytecode_size_in_bytes

FeeJuice:_increase_public_balance
54.0 (-1%)
7,739

FeeJuice:set_portal
11.3 (+21%)
2,354

Token:constructor
79.2 (-8%)
26,525

FPC:constructor
52.4
18,383

FeeJuice:mint_public
37.9
5,877

Token:mint_public
:warning: 43.8 (-35%)
10,917

Token:assert_minter_and_mint
:warning: 66.5 (+69%)
7,512

AuthRegistry:set_authorized
46.0 (+22%)
4,391

FPC:prepare_fee
256 (+4%)
7,712

Token:transfer_public
:warning: 29.5 (+42%)
39,946

FPC:pay_refund
56.4 (+8%)
10,811

Benchmarking:increment_balance
933
6,929

Token:_increase_public_balance
39.6 (+3%)
8,433

FPC:pay_refund_with_shielded_rebate
65.8 (-1%)
11,360

Public DB Access
Time to access various public DBs.

Function
time_ms

get-nullifier-index
0.161 (+1%)

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
256 leaves
512 leaves
1024 leaves

batch_insert_into_append_only_tree_16_depth_ms
2.20 (+2%)
3.90 (+3%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.7
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.115 (+3%)
0.111 (+3%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
11.6 (+2%)
18.1 (+3%)
33.8 (+9%)
60.6 (+2%)
115 (+2%)

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
287
543
1,055

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.111 (+2%)
0.105 (+2%)
0.109 (+8%)
0.104 (+2%)
0.102 (+3%)

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
14.5
26.2 (+2%)
43.7 (+1%)
83.8 (+2%)
162 (+1%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
109
207
355
691
1,363

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.110 (+1%)
0.106 (+3%)
0.106 (+1%)
0.104 (+2%)
0.102 (-1%)

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
16.6 (+2%)
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
132
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
0.106 (+2%)
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
64,779
668,997

Transaction size based on fee payment method
| Metric |  |
| - |  |


copy and pasting table from one file to another

Describe the bug
When I copy a table from one instance of tabular editor to another instance of tabular editor, the table copies fine but the data source doesn't copy over.
To Reproduce
Steps to reproduce the behavior:

Click on Table
Ctrl-C
Go to another instance of tabular editor
Ctrl-V while clicking on 'Tables' folder

Application specifics

Tabular Editor version: 2.12.0
Model Compatibility Level: 1500

Additional context
Add any other context about the problem here.

This is actually by design. There are many scenarios in which you would copy tables from one model to another without including the data source. If the target model already contains a data source with the same name as the origin model, that data source will automatically be used on tables/partitions that are copied over from origin to target.
So in other words - make sure you copy the data source before copying the tables :-)

If the data source already existed it definitely makes sense not to duplicate it. Just thinking if the data source doesn't exist then intuitively I would think it would then take the table and include the data source. So preventing duplication, but if no duplication would occur then make the full transfer w/ data source.
Actually, now thinking about relationships in the same manner. May get too complicated but it could trigger a pop up window asking if you want to copy the relationships etc over too - where you could select from a list. Naturally, this would only be if you were transferring more than 1 table and those tables had at least 1 relationship.

Okay, you can certainly copy relationships over as well as a 3rd step, but I see where you're coming from. I'll mark this as a potential enhancement instead of a bug :-)

Great! Thanks Daniel!

It would be great if this enhancement also tied into the Clone() function so that one could specify if they want the relationships to be copied in a cloned table.


Blazor updates

Fixes #18078
Fixes #17483 – The 3rd point seems resolved per https://github.com/dotnet/aspnetcore/issues/20700#issuecomment-613060397.
Internal Review Topic (Get Started)

WRT the order of WASM mentions and Server mentions, I've been going since the beginning with WASM first. We switched in a few spots recently to Server because Server was supported. Here, I put those back to WASM first. All of them could be made Server first, but that would take a while. WASM and Server appear in the same sentence/paragraph in many spots across the docs.

The standalone B2C guidance that we've been using taps the B2C part of the portal to register the app.
It looks like Azure will be moving all app registration, including B2C, to the new app registration experience (i.e., the registration experience in the AAD portal area). They have a banner in the B2C area of the portal that implies this will be the case.
We have the new experience in the Hosted B2C topic for the client app; so on the last commit, I moved that experience over to the standalone topic. We're consistent now ... and consistent with the direction that Azure seems to be moving.

Also, I'm aware that we'll need TABS for VS vs. CLI guidance for app creation steps. I certainly don't want screenshots. I'd like text (table perhaps) mapping of the Azure portal configuration settings to the VS UI fields. I'll open an issue for it and get to it fairly soon.
I'll also be working further on B2C w/Graph API to get Azure groups and Administrative Roles in a B2C app.


Doesn't work with federated schema

Try this schema with graphql federation:
https://github.com/apollographql/federation-jvm/blob/master/spring-example/src/main/resources/schemas/inventory.graphql
graphql-inspector diff /tmp/inventory.graphql /tmp/inventory.graphql
This resulted in the following error:
error Error: Unknown directive "@key".

Unknown directive "@extends".

Unknown directive "@external".
    at assertValidSDL (/usr/local/lib/node_modules/graphql/validation/validate.js:107:11)
    at Object.buildASTSchema (/usr/local/lib/node_modules/graphql/utilities/buildASTSchema.js:45:34)
    at makeSchema (/usr/local/lib/node_modules/@graphql-inspector/cli/node_modules/@graphql-tools/merge/index.cjs.js:954:99)
    at Object.mergeSchemasAsync (/usr/local/lib/node_modules/@graphql-inspector/cli/node_modules/@graphql-tools/merge/index.cjs.js:945:12)
    at async Object.loadSchema (/usr/local/lib/node_modules/@graphql-inspector/cli/node_modules/@graphql-tools/load/index.cjs.js:650:20)
Error: Unknown directive "@key".

Unknown directive "@extends".

Unknown directive "@external".
    at assertValidSDL (/usr/local/lib/node_modules/graphql/validation/validate.js:107:11)
    at Object.buildASTSchema (/usr/local/lib/node_modules/graphql/utilities/buildASTSchema.js:45:34)
    at makeSchema (/usr/local/lib/node_modules/@graphql-inspector/cli/node_modules/@graphql-tools/merge/index.cjs.js:954:99)
    at Object.mergeSchemasAsync (/usr/local/lib/node_modules/@graphql-inspector/cli/node_modules/@graphql-tools/merge/index.cjs.js:945:12)
    at async Object.loadSchema (/usr/local/lib/node_modules/@graphql-inspector/cli/node_modules/@graphql-tools/load/index.cjs.js:650:20)

graphq-inspector version 2.1.0

How is that related to GraphQL Code Generator?

sorry.. I posted at the wrong project.


Kiosk: Allow add game url can be selected by keyboard

Describe the bug
Kiosk: Allow add game url can be selected by keyboard
Steps to reproduce the behavior

Navigate to https://arcade.makecode.com/kiosk
Use keyboard to select "Add your game"
Enter into add game page

Actual behavior
Only "Return to menu" can be selected by keyboard
Expect behavior
Allow add game url can be selected by keyboard, so that user can use keyboard to enter into add game page for the someone who doesn't have camera available,

Additional context
1.OS: Windows11

This is fixed. Tabbing through and clicking on this works.


Make psa.p4 include file in spec repo explicitly not compilable

Before this change,the p4-16/psa/psa.p4 include file contained a mix
of one section intended to be an example for a BMv2 target-specific
psa.p4 include file, and also a section with 'unspecified' for several
bit widths intended for generating the PSA specification text.
With this change, that file is only for the purpose of generating the
PSA specification.  It is no longer compilable, and contains an #error
directive that should make this obvious to anyone who tries to include
it while compiling a P4 program.  It also has comments linking to two
compilable example target-specific psa.p4 include files in the
p4lang/p4c repository.
Add a copy of the compilable version of the BMv2-specific psa.p4
include file in p4-16/psa/examples/psa-for-bmv2.p4, simply so the
example PSA programs can include that version.  Keeping it separate in
this repository makes it straightforward to do experimental local
changes in this repo.
Remove include of core.p4 from psa.p4.  This should be unnecessary
given that all example programs for other architectures recommend
first including core.p4, then the architecture's header file.
Add @pure and @noSideEffect annotations to match the ones used by
psa.p4 include files in open source p4c compiler.

Okay with me.


WIP: Bump up to iron 0.6

Merge after upgrading body-parser and urlencoded

FYI I've rolled this into another PR which also bumps serde to 1.0: https://github.com/iron/params/pull/39

Closed by #39. Thank you for your work!


Use go 1.17 to build choria

Does what the title says since Choria 0.24.1 doesn't build with go 1.18.
ping @rayward

🙇


Custom enemies don't appear correctly in assist mode

It's all mushrooms?
Always has been

7a314f27e9f563736dc6974d46dad9670659d9c2


CName shows missing if FQDN has mixed case.

Describe the bug
Getting incorrect results for App Services, could be others as well, with mixed case for the name / FQDN.
Azure Front Door seems fine because in Azure it shows the mixed case and doesn't convert it to lower.
Reproduce
Steps to reproduce the behavior:
Create App Service with mixed case sensitivity: Example: MyCustomApp01.azurewebsites.net.
The App will show the domain as all lowercase for App Services under default domain.
create a CNAME with all lowercase pointing to the mixed case MyCustomApp01.azurewebsites.net
Expected behavior
A clear and concise description of what you expected to happen.
Expecting a match in App service domain name and DNS. But since the case does not match, it is showing as not matching. Perhaps adjust the script to force everything to lowercase then compare.
Screenshots
If applicable, add screenshots/images to help explain your problem.
Environment- if applicable

What version of CLI was used [Az –version]

Desktop (please complete the following information if applicable):

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

Logs- if applicable

If logs are available, please provide relevant snippets

Additional context
Add any other context about the problem here.

@tee-roy Thank you for submitting this issue. We will get back to you in the next 72 hours.


Setting deployment node scheduling rule incorrect

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Create a workload, along with adding a node scheduling rule in Require Any of: rancher = true
Edit workload and check deployment YAML

Result:
Node Scheduling rule was set in Require ALL of unexpectedly

Environment information

Rancher version (rancher/rancher:v2.3.7 and rancher/rancher:v2.4.3):

Verified on rancher:v2.4.3
Steps:

Deploy a workload
Under node scheduling have an entry under "Require Any of:"  as test=val.
Deploy the workload.
The request sent has scheduling: {node: {requireAny: ["test = val"]}}
Do an Edit of the workload.
Require All of field is set under node scheduling.

This is not a UI issue.
After inspecting the network requests the UI is sending out:
  "scheduling": {
    "node": {
      "requireAny": [
        "rancher = true"
      ]
    }
  }

The API responds with:
  "scheduling": {
    "node": {
      "nodeId": null,
      "requireAll": [
        "rancher = true"
      ]
    },
    "scheduler": "default-scheduler"
  },


libsowc - remove legacy Errata.

This is a continuation of the work started by Alan (https://github.com/apache/trafficserver/pull/10112) +

Update for the JSONRPC logic which wasn't complete on his original PR due to changes needed in the libswoc which are now completed.
Make sure all autests/cpptests are green.

co-author: @SolidWallOfCode

@cmcfarlen ping!

I guess we don't need the tests in test_Errata.cc anymore as these are covered by swoc?

Yup.
Thanks Chris

Cherry-picked to v10.0.x


How to replace the LLM for test case generation?

Can we call the api of the local LLM or other LLMS to generate test cases, and if so, can you tell us where to make the changes?
Thanks

You'll want to change https://github.com/microsoft/codamosa/blob/main/pynguin/languagemodels/model.py
If you provide the same API as _OpenAILanguageModel, you should be able to just change the instance of the class at the very bottom of the file.

if you want to use another openai language model, you do not need to change that file, simply provide a different value to --model_name argument. This is pointed out in the README.md and replication/README.md.


somethings not understand

Hi,
I am using the merge option to merge my SV vcf files. However, there are two sections that I do not quite understand in using SURVIVOR merge"SURVIVOR merge sample_files 1000 2 1 1 0 30 sample_merged.vcf".
1.What does the 1000 means? You explained it as maximum allowed distance of 1kb. Does that mean the start position of the two SV sites could be 1kb distance? For example, one SV start position is chr1:100 and the other SV start position is chr1:1100 , and they can be merged as one sv site if they are the same SV type and on the same strand.
2. What does the 0 mean? You explained it as Estimate distance based on the size of SV.  What distance does it estimate?
Cheers

Hi,
soo each of the values correspond to one of the parameters listed when you execute the option with too few or no parameters.
./SURVIVOR merge Tab file with names max distance between breakpoints Minimum number of supporting caller Take the type into account (1==yes, else no) Take the strands of SVs into account (1==yes, else no) Estimate distance based on the size of SV (1==yes, else no). Minimum size of SVs to be taken into account. Output prefix
So ad 1 (1000) is the maximum distance allowed for start and stop coordinates to be considered the same SVs. We ran multiple tests across different species and something between 500 and 1k seems to work the best. However, feel free to set your own parameter.
ad2: The 0 deactivates this option. I have implemented a beta version of this, but havent fully finished testing it. The estimation is based on the size and type of a SVs, but as I said I would not use it right now as it currently just points back to the default. This will be enabled once I did more testing on this option.
Let me know if you have other questions
Cheers
Fritz


Bot authentication returns 401 following load testing instructions

Bot Info

Bot handle: spjaebot
App ID: 9c0072eb-f501-4042-af87-353a7dc8aee9
SDK Platform: .NET
SDK Version: Where do I check this from?
Active Channels: Direct Line, Web, Telegram
Deployment Environment: Azure website

Issue Description
I'm attempting to load test my bot using the instructions found here: https://blog.botframework.com/2017/06/19/load-testing-a-bot/ but keep getting a 401 when posting to my bot with the access token.
I attempted to generate an access token by POSTing to https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token with the following header values:
grant_type:client_credentials
client_id:9c0072eb-f501-4042-af87-353a7dc8aee9
client_secret:app_secret
scope:9c0072eb-f501-4042-af87-353a7dc8aee9/.default

The request returned the generated access token, but I'm unable to send anything to my bot's URL. I'm sending a POST to https://mybotname.azurewebsites.net/api/messages with the following headers
Content-Type:application/json
Authorization:bearer mytoken

and a sample JSON payload as follows
{
	"type": "message",
	"id": "1234",
	"channelId" : "test",
	"conversation": { "id": "1122" },
	"from": { "id": "user_id" },
	"recipient": { "id": "spjaebot" },
	"text":"hi",
	"serviceUrl": "https://mytunnel.ngrok.io"
}

This results in a 401 with the error message of "BotAuthenticator failed to authenticate incoming request!". However, I can test my bot through direct line, web chat, emulator (both local and remote) as well as telegram. I'm guessing I am doing something wrong with regards to authentication. I've set up a message sink using ngrok for load testing purposes. I don't think it is an issue with the payload as the bot doesn't even authenticate the request in the first place. I've also tried posting to /api/messages/v3 to no avail.
If any more information is needed I'm happy to send it over. Would appreciate any help :)

Just an update. For some reason the access token now works. However I'm getting this exception:
Error: Unable to deserialize the response.
Trace:    at Microsoft.Bot.Connector.Conversations.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Bot.Connector.ConversationsExtensions.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at NyxBot.Bot.MainBot.d__0.MoveNext() in X:\Nyx Intelligence LLP\Custom Projects\Nyx-SP\NyxBot\NyxBot\Bot\MainBot.cs:line 72
Source: Microsoft.Bot.Connector
Key Data: System.Collections.ListDictionaryInternal
This looks very much like some of the existing issues such as #618 and a few other existing stackoverflow posts. I understand that it isn't my place to ask but this task is blocking some other things at the moment, and I'm sort of in need of help fast. If that is possible I would really really appreciate it.

Looking into this, thanks for reporting

Thanks @JasonSowers
I've got some new information which may or may not help. I can reply to normal messages, but that error seems to only occur when responding with a typing activity. The activity is created as such:
ConnectorClient connector = new ConnectorClient(new Uri(message.ServiceUrl));
Activity typing = message.CreateReply();
typing.Type = ActivityTypes.Typing;
typing.Text = null;
await connector.Conversations.ReplyToActivityAsync(typing);

where message is the incoming activity.
The error occurs when the last line await connector.Conversations.ReplyToActivityAsync(typing); is being executed, throwing the exception in my post earlier.

you might want to give this one a shot IActivity typing = message.CreateReply().AsTypingActivity();

What about other activity types is typing the only one throwing the error?  Still working on getting a version up and running, feel free to share you mock channel if you can.

From what I see, the error is only thrown only when responding with a typing activity and when I do a manual post to the bot. If I use the existing channels such as Telegram/Web chat/Direct Line, it doesn't throw any errors. I am able to get a typing indicator as well as the expected response
I will test with IActivity typing = message.CreateReply().AsTypingActivity(); and get back to you. My mock channel is merely an ngrok tunnel to my own machine, so it won't always be up haha

Just tested with IActivity typing = message.CreateReply().AsTypingActivity(). It doesnt send the typing indicator at all.

We are trying pretty hard to reproduce still, but running into our own issues 👎.  This is going to end up being a blog post with samples when all is said and done.  Again, thanks for reporting this.

Hahahaha thank you @JasonSowers, appreciate the work you guys put in. If you need any more info I'm more than happy to test/help. In the meantime, I've disabled typing when I load test and for some reason the auth tokens work now - which is weird but I'm not complaining.
If I may suggest, could BF eventually have a default message sink for load tests? 😜

Hey guys, any news?

@DrWala Sorry for the extremely delayed response I was out of town then was working on a project.  I am unable to reproduce as when I send the typing activity below there is no error:
        public static Activity Typing()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.Typing,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

I am sending the activity like this:
            var token = GetToken();
            var jsonActivity = JsonConvert.SerializeObject(ActivityGenerator.Typing());

            using (var client = new WebClient())
            {
                client.Headers.Add("Content-Type", "application/json");
                client.Headers.Add("Authorization", $"Bearer {token}");
                var response = client.UploadString("https://80e5a947.ngrok.io/api/messages", jsonActivity);
                //Console.WriteLine(response);
            }

I'll dive back into this today and see if I can reproduce with the way you are creating and sending the message.  I created this class below to generate all types of activities.  It may or may not help you, but i figured I would share:
    public static class ActivityGenerator
    {

        public static Activity Message()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.Message,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new {clientActivityId = "1506483656068.11949484894092266.2"})
            };

            return a;
        }
        public static Activity ConversationUpdate()
        {
            Activity a = new Activity();

            a.Type = ActivityTypes.ConversationUpdate;
            a.Id = "9dn3fa6lh4hd9dn3fa6lh4hd";
            a.ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console;
            a.Conversation = new ConversationAccount(id: "9dn3fa6lh4hd");
            a.From = new ChannelAccount(id: "user", name: "username");
            a.Recipient = new ChannelAccount(id: "bot", name: "botname");
            a.Text = "Legit Nachos";
            a.ServiceUrl = @"http://localhost:55086/api/values";
            a.MembersAdded = new List<ChannelAccount>();
            a.MembersRemoved = new List<ChannelAccount>();
            a.Locale = "en-US";
            a.Attachments = new List<Attachment>();
            a.ReplyToId = "nii4344blg42";
            a.TextFormat = "plain";
            a.Timestamp = DateTime.Now;
            a.ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" });

            return a;
        }

        public static Activity ContactRelationUpdate()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.ContactRelationUpdate,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

        public static Activity DeleteUserData()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.DeleteUserData,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

        public static Activity EndOfConversation()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.EndOfConversation,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

        public static Activity Event()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.Event,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

        public static Activity InstallationUpdate()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.InstallationUpdate,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }
        public static Activity Invoke()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.Invoke,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

        public static Activity MessageReaction()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.MessageReaction,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }
        public static Activity Ping()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.Ping,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                Text = "Legit Nachos",
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new { clientActivityId = "1506483656068.11949484894092266.2" })
            };

            return a;
        }

        public static Activity Typing()
        {
            Activity a = new Activity
            {
                Type = ActivityTypes.Typing,
                Id = "9dn3fa6lh4hd9dn3fa6lh4hd",
                ChannelId = Microsoft.Bot.Builder.Dialogs.ChannelIds.Console,
                Conversation = new ConversationAccount(id: "9dn3fa6lh4hd"),
                From = new ChannelAccount(id: "user", name: "username"),
                Recipient = new ChannelAccount(id: "bot", name: "botname"),
                ServiceUrl = @"http://localhost:55086/api/values",
                MembersAdded = new List<ChannelAccount>(),
                MembersRemoved = new List<ChannelAccount>(),
                Locale = "en-US",
                Attachments = new List<Attachment>(),
                ReplyToId = "nii4344blg42",
                TextFormat = "plain",
                Timestamp = DateTime.Now,
                ChannelData = JsonConvert.SerializeObject(new {clientActivityId = "1506483656068.11949484894092266.2"})
            };

            return a;
        }
    }

is there any more code in this method, also where are you calling this method from?  I am still unable to reproduce sending a typing activity like below:
ConnectorClient connector = new ConnectorClient(new Uri(message.ServiceUrl));
Activity typing = message.CreateReply();
typing.Type = ActivityTypes.Typing;
typing.Text = null;
await connector.Conversations.ReplyToActivityAsync(typing);

Hi @JasonSowers - So as mentioned earlier the typing activity only messes up when I'm doing the load test following instructions from the BF blog. Under normal situations, it throws no errors and workes seamlessly. So that's kinda odd.
Regarding what else is in that method, the flow is essentially: recieve activity -> check if type is message -> send typing activity -> process message -> send response.
During load testing, if I comment out the send typing bit, I don't get any errors. For the purposes of the load test I wrapped it in a try catch :P
To reporoduce the error, try following the load test instructions at https://blog.botframework.com/2017/06/19/load-testing-a-bot/ and see if returning a typing activity to your sink causes an error.
Regarding the creation of a typing activity altogether, that's odd as the following code returns a typing response on fb, telegram, web chat and direct line
ConnectorClient connector = new ConnectorClient(new Uri(message.ServiceUrl));
Activity typing = message.CreateReply();
typing.Type = ActivityTypes.Typing;
typing.Text = null;
await connector.Conversations.ReplyToActivityAsync(typing);

@DrWala are you getting a 415 error "unsupported media type"?

@JasonSowers I got the 415 when I missed a content type header only.
Regarding the flow, its technically the mock channel receiving the activity I suppose. What is your definition of Bot vs mock channel?

The bot is the bot itself, the mock channel is what receives the message from the bot.

I set up a message sink using a node server. So I would do a direct post to the bot's endpoint (localhost:3979), it would then receive activity -> check if type is message -> send typing activity -> process message -> send response (to message sink).
Given that's the case, then the flow I'm talking about is the former - Bot receive activity -> ... etc.

I really wish I had a better answer for you but I am just unable to reproduce the Unauthorized 401.  Maybe you could put what you have in a repo for us to take a look?

Hi @JasonSowers Give me some time and I will recreate the project I had. Been a busy week, but will  get back to you soon

Sounds good, please @ mention me as I have been working on other projects lately and have not been checking GitHub daily.

@DrWala why do u use https://mybotname.azurewebsites.net/api/messages  if in docs, it's said to use

POST https://smba.trafficmanager.net/apis/v3/conversations/12345/activities
GET https://login.botframework.com/v1/.well-known/openidconfiguration
and as I see many other URLs/steps.

PS. I kind stuck on this stage - I want to send simple AJAX call to Bot API so that API triggers skype channel message. I have either 401 or CORS with MS server, and I don't get why and what to do next.

@JasonSowers My schedule has opened up now, I'll restart my testing of this on Monday. Will keep you updated. I'm really sorry for making you wait on this.
@alundiak The first POST request you typed above is the same one I use to get the token. The second GET request is probably only useful if you are using OpenID to authenticate requests from bot connector to your bot, which I personally think is too much hassle.
Additionally, I'm quite sure https://smba.trafficmanager.net/apis/v3/conversations/${conversationId}/activities is a sample bot url, which can be replaced with any bot url you have.
Lastly, /api/values is probably a custom controller endpoint which @JasonSowers is using to test as a message sink.
If I'm wrong about any of this do let me know :)

Going to close this for inactivity let me know if you are still having issues

Hi @JasonSowers, no issues on my end now. Will reopen if need be.

@DrWala How did you solve the problem with the post api/messages.... I have exactly the same problem trying to use load testing to my bot.... everything runs ok but in the last part i get a 401 status code.


Epic: Testing Improvements

Related Stories, tasks and bugs

[x] #104
[x] #105
[x] #106
[x] #107
[x] #108
[x] #109
[x] #110
[x] #111
[x] #112
[x] #113
[x] #114
[x] #115
[x] #116
[x] #130
[x] #133
[x] #160

Completed


Integrate onetrust cookie conset sdk

To whom is going to work on this:
Please update the value of the data attribute on the page [data-wp-page-cookie] upon users make their choice.

Hi @verlok-cn isn't it solved? if nor should we open a bug or enhancement ticket for this particular attribute instead?

Hey @NCalexiaeche, I see the layer of cookie acceptance on the home of NC-biz, so I guess this has been worked.
However, since #72 has been closed, we need to make sure that when users make a choice by clicking on the cookie layer, the data-wp-page-cookie is updated via JavaScript.
I will create a new ticket so we can close this.


updated meta.json display_text fields

I went through and added some more display_text values and tried to standardize what I had entered along with existing entries. The one table I didn't finish that I worked on was dc_tax because there are some fields that I can't find a good reference for.

Looks good.
@louvis on the tax one, I found this "dataset" on opendata.dc.gov - data dictionary for the integrated tax system: http://opendata.dc.gov/datasets/integrated-tax-system-data-dictionary/data

I filled in some (but not all) of the remaining missing values based on the data dictionary Neal found.  In several cases the label of a field in that dictionary was not an exact match for the way the same field is labeled in our dc_tax table, however.  For example:
The field assessor_name appears labeled as ASR_NAME in the data dictionary.  But based on the field description in the dictionary (i.e., "Name of property assessor"), it's clear they are the same field.
I double checked both the field description in the data dictionary as well as the actual values within our table to make sure that I was matching the correct description to the correct field.
Since I was erring on the side of caution, I did not add a value to the display_text key if the match seemed ambiguous or unclear.


Bump embedchain package version in api_server examples

🐛 Describe the bug
We need to update the embedchain package version here.
https://github.com/embedchain/embedchain/blob/main/examples/api_server/requirements.txt

Hi @taranjeet. Can I pick up this issue and the others mentioned in #621 ?


How to disable Transforming?

Hi
Having some problems with the 3d transformation in google chrome.
The problem appears with sticky content infront of the slider.
i changed the variable in the slick.js:
_.transformsEnabled = false;
and added some css:
.slick-slider *, .slick-slider{
-webkit-transform: none !important;
transform:none !important;
}
Does this lead to some other problems?
And is there a way to disable 3d transformation from "outside" with init option.
or maybe changing the prototype?
a response would be cool (waiting for 9 days)

this is not working for me, i still get the transform :/


Add plugin settings to configure diagnostics options

Description:
As per the current language server implementation, we are compiling the ballerina project (all the modules) on each text change, to compute diagnostics. But for a fairly large project with this might consume a considerable time and will fail even if the module which user is working has no compilation errors. So it would be better if we can provide a plugin option to limit diagnostics for the current module in such contexts.
Steps to reproduce:
Affected Versions:
OS, DB, other environment details and versions:
Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

This was due to the performance impact of language server's internal package instance caching due to the compiler limitations. This issue has been fixed with the latest compiler APIs and the project APIs. Hence we will be closing this issue. Please reopen if further clarification is needed.


bundler: fix bugs

swc_bundler:

Correct lca for circular dependencies.
Handle namespaced imports. (Closes #1109)
Handle namespaced reexports. (Closes #1110)
Handle shorthand properly. (Closes #1111)
Implement import.meta (Closes #1115)
Handle reexport mixed with imports correctly. (Closes #1116)
Handle export default decls in computed-key modules.
Remove all export * from. output. (Closes #1118)
Handle export of class or function declaration in a computed module properly. (Closes #1119)

swc_ecma_transforms:

Do not rename class members. (Closes #1117)

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@kitsonk Can you try again with this pr?

@kdy1 thank you!
Results:

example1.ts working as expected now
example2.ts still failing with a stack overflow
example3.ts working as expected now
example4.ts is dynamic import, and need to validate the config
example5.ts same output as before, which is broken

@kitsonk Oh.. It's my bad.
I'll test files from https://github.com/kitsonk/bundle-examples

BTW, I tried my first issue with this as well (deno bundle<EMAIL_ADDRESS>and it does now emit, but the bundle has issues, I will open another issue for that when I isolate it.

@kitsonk I think I fixed all of them. Can you try again?

@kitsonk I think I fixed all of them. Can you try again?

Ooops... sorry, I missed this.  I am trying now but I am starting to wrap up for my day...

It's okay, I forget things so well.

@kdy1 I have re-tested with this branch.  Thank you for fixing lots of the bugs.  There are still a couple things:

I am still getting a stack-overflow with the example I gave in #1110 on my branch here.

The output for #1118 is still the following for me:
export * as a;

I have also been using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>as bundling tests, which are complex and exercise a lot of scenarios.  I've run it again, and with lots of the other issues fixed, I am seeing a new error (possibly one that existed but I didn't see it because of the other errors).  I will try to get that one to reproduce as well, but there is at least another potential bug out there.

@kitsonk Did you invoked typescript::strip before bundling?
I tested but
export * as a from "./a.ts";

works with typescript::strip

@kdy1 I will take a look again...

As far as the building, you would have to clone deno_lint and deno_doc and update the swc to local builds as well... a little bit painful at the moment.

@kdy1 I've looked again, and yes, the loader does the stripping before bundling.  Our folding though is a bit more complex than the PR you had done, as we have some other things we need to support.  Here is the loader in my PR.  I am wondering if some of the other passes are causing the problems/challenges?

I am wondering if some of the other passes are causing the problems/challenges?

I think stack overflow may not be related to bundler.
Also, I can't guess #1118 is still the issue. export * as a from "./a.ts"; should be removed by typescript::strip, not bundler.

I'll fix remaining issues with a separate pr


Capture the generical error on oasys widget

The two branches are supposed to be equal, but they return different results.
a) "kbh dpi" of branch A, generate an error, and GetBeamlineInfo return some results.
These results are not consistent with what is pecified in "kbh dpi". This behavior is strange.
b)"kbh dpi" of branch A, generate an error, and GetBeamlineInfo, if executed independently, also cast an error, as there is no input signal. This behavior is as expected.
What to do

[ ] Capture ANY error that is generated from wiser widget, so that:
1) A "fake" output data is returned, containing at least the beamline (new feature)
2) The error message is still displayed (as it is now)
3) The execution is interrupted (as it is now)
[ ] Why is it happening a)? Obviously this behavior is not reproducible in an easy way.

I implemented this, can you share a workspace where the wavefront can't be calculated, but the beamline is fine?

To Be Continued


Allow options when using release-it as Node.js module

Hey Lars,
I’m using release-it as part of a personal CLI to deploy a project. The deploy steps include test runs and actual remote command exeution. I use release-it in non-interactive mode to bump the version, commit git changes, tag git release and push the changes.
This PR adds an options object as a parameter to tasks. It allows users to customize the default behavior of release-it when using it as a Node.js module and not from the command line.
I appreciate any feedback if it doesn’t meet your intentions with release-it 😃
Thank you!

Thanks for the PR, @marcuspoehls! When I looked into it, I realized that I've been bitten by this challenge before: the config instance of Config is used in multiple modules. This means that only the config in e.g. tasks.js would use a fresh configuration instance with your passed options (but the other modules would not).
I've solved it in a different way, with no changes necessary on your side in v4.4.0.

Thank you!!


Smoke tests should not use ':latest' Weave images

The Makefile generates images such as weaveworks/weave:latest; the smoke-tests run them.  But if you have not succeeded in building images then docker will download the 'latest' images from DockerHub, thus giving a misleading impression.
I suggest that the makefile and smoke-tests default to a different tag, such as :dev, which is never uploaded to DockerHub.

I just hit this again.

how are you hitting this? "not succeeding in building the images" is an error, so why do things progress beyond that?

In our CircleCI config, the build is specified as a 'test', and CircleCI always runs all tests.
It's unclear from the docs whether moving the build to 'pre' the tests would give the desired effect, or if we should do the build in 'dependencies', or something else.

We had another instance of this at https://circleci.com/gh/weaveworks/weave/6142 where the build did succeed but part of the upload to aws failed, and it went ahead and pulled the latest images and confused everyone.

The earliest indication of the problem is when the test script runs weave version:
# weave version
weave script (unreleased version)
Unable to find image 'weaveworks/weaveexec:latest' locally
latest: Pulling from weaveworks/weaveexec
Digest: sha256:935949603fcc38ed5f1559cc768bd5f74ddddad2835859b3838653f530f9d225
Status: Downloaded newer image for weaveworks/weaveexec:latest
Unable to find weaveworks/weave:latest image.
flag provided but not defined: -test.coverprofile
See '/home/weave/weaveproxy --help'.
Unable to find weaveworks/plugin:latest image.

Maybe we could have weave version return a failure status if it cannot find all components?

I added a check that weaveworks/weave:latest exists in 73d7812dc520b406de1caf639cef321346b2f60c

Also made the setup.sh script fail if a sub-task failed 37f820a168f38fab47cda39023533f9671ce33f8

Is there anything left to do here?

Closing on the basis that the main failure modes are covered.


Introduce 'Copy as a curl command' button to a debug request window

Motivation:

Rarely, I want to copy a debug request to a curl command to put
additional headers to the request. Even if I can copy it from the dev
tools provided by browsers, opening them is annoying.

Modifications:

Introduced a 'Copy as a curl command' button

It copies the converted command to the clipboard, but not intuitive...

Added some methods to support curl export in Transport class

Each three transports has its own MIME type and body format to make
a request in text

Result:

Close #196

For your reference,

This is pretty cool! Just a few comments:

How about renaming the button to Copy as a cURL command and making it copy directly to the clipboard instead of using the right side pane?

When the command is copied to clipboard, we could show some notification using a Snackbar.

Could you handle the case where the request body contains '? You could use heredoc as explained in: https://stackoverflow.com/a/23930212

Okay, I'll change the label and copying it directly w/o touching the panel on the right, and will attempt to use of Snackbar (actually I thought about it yesterday). Also, will take a look at the body part you mentioned as well.
By the way, is cURL right? according to the official repository and website, I think they usually write it down as curl or Curl nowadays?

By the way, is cURL right?

Let's use the official notation, then. :-)

I wonder if there were some regressions when I apply checkstyle. Could you kindly take a look please?

Please, fix the check style error. :-)

I should be familiar w/ ' when I write code in typescript 😅. Sorry!

Nice work, @wooyeong ! Thanks for your patience.

Thank you for your first contribution, @wooyeong ! 👍

Thank you for reviewing this 🙇


tried your code

didn't work on the first try.
did some code changes but i'm new to python so i cannot estimate the impact on the project:
line 60 changed : for model_name in networkx.topological_sort(g):
new version networkx didnt accept reversed=true argument
line 157 & 158 changed :
parser.add_argument('json_schema_file', type=argparse.FileType('r') , help="Path to JSON Schema file to load")
parser.add_argument('-o', '--output-file', type=argparse.FileType('w'), help="Path to file output", default="model.py")
Name: argparse
Version: 1.2.1
Name: networkx
Version: 2.2
example schema.json used :
{
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": { "type": "string" },
"city":           { "type": "string" },
"state":          { "type": "string" }
},
"required": ["street_address", "city", "state"]
}
}
}

requirements specify netwokx==1.9
networkx 2.X is not backward compatible with version 1.X


Transactions Merkle tree creation readability

Please refer to commit message for details.

Force-pushed with commit message update.

See #493


Exchange Online Audit Search

change the main part of the script as a function so we can . load the PS1 (to use only a function) without going through entire Exchange Online Audit Search AP

closed with Pull Request #98


Ignore all Steam messages coming from people who are not on our friends list

This has been bothering me for a while now.
SteamBot does not ignore Steam messages coming from people who are not on our friends list. This way, you can even do a trade. Regular Steam client (partially) ignores these messages.
We already have this so the fix should be fairly straight forward.
cc @BlueRaja @WildCard65 @FrozenHaxor

Hmm. Can you actually initiate a trade with a bot not on your friends list, though?

Yes you can.

That’s a pain. But as you say, it should just be a cause of altering the message handler to not pass steam chats or trade requests on from non friends.
I’m surprised there’s not some form of check on the steam network itself for trading with non friends. Hmm.
From: Michael Scholtz<EMAIL_ADDRESS>Sent: 28 January 2015 09:54
To: Jessecar96/SteamBot
Cc: Bottswana
Subject: Re: [SteamBot] Ignore all Steam messages coming from people who are not on our friends list (#702)
Yes you can.
—
Reply to this email directly or view it on GitHub https://github.com/Jessecar96/SteamBot/issues/702#issuecomment-71807770 .  https://github.com/notifications/beacon/AGlmRGu02jbiIInkqEC_Nmg28KY5mHSNks5nmKlSgaJpZM4DYPNL.gif

Also somehow blocked people count as friends. For example if you block someone and remove them, this won't decrease, which is extremely annoying. I assume this is just another example of the stated above... the wonders of Steam.

@FrozenHaxor I think that issue would be more useful if reported to the SteamKit repo

That's actually not an issue, but that's how Steam works. People on your block list are part of your "global" friends list. You need to check relationship between you and the person. Another example is someone who adds you - this person automatically becomes part of your friends list with EFriendRelationship.RequestRecipient.

Yeah I wouldn't say this is SteamKit's fault. It's just doing it's job passing on the messages it receives from the network; I mean, if it's anyones fault it's the steam network itself.

You need to check relationship between you and the person.
I wrote that code, I wasn't aware of this.  How do we 'check relationship'?

Wow, I don't ever thinked that it's bug, I just used
if (Bot.SteamFriends.GetFriendRelationship(OtherSID) == EFriendRelationship.Friend)
{
...
}

@BlueRaja Which code is "that code"? :smile: You can check the relationship the way @doktokto described.

I dunno everywhere bugs, i tested this bot and workin fine. I wrote strange, key and scrap userhandlers after March 9th, workin all wo/ bugs, errors. In my case i using my bots.


usb phy

HI
Don't merge yet my latest changes around usb_phy,
I need to give it more fixes and test

I fixed it, you can merge


Requests to S3 are malformed / missing bucket name in WebServerHandler Lambda

Taken at face value, it looks like this parameter is missing from a configuration value somewhere in the Next.js app, deployed Lambda, etc. I'm not sure where this comes from yet, or who / what is responsible for supplying it, but it seems like it should be required. Also, it seems at least possible this is just a red herring for something bigger / different, but I'm creating this issue as a starting point.
Here are the steps I took to reproduce this error:

Create new AWS Account
To do this I just created a brand new account in my organization.

Start a brand new NextJS project
npx create-next-app@latest

Note: here are the resulting dep versions:
{
  "name": "nextjs-cdk-test",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@types/node": "20.3.1",
    "@types/react": "18.2.13",
    "@types/react-dom": "18.2.6",
    "autoprefixer": "10.4.14",
    "eslint": "8.43.0",
    "eslint-config-next": "13.4.6",
    "next": "13.4.6",
    "postcss": "8.4.24",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "tailwindcss": "3.3.2",
    "typescript": "5.1.3"
  }
}

Start new CDK project
npx cdk init sample-app —language typescript

Note: here are the resulting dep versions:
{
  "name": "cdk",
  "version": "0.1.0",
  "bin": {
    "cdk": "bin/cdk.js"
  },
  "scripts": {
    "build": "tsc",
    "watch": "tsc -w",
    "test": "jest",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/jest": "^29.5.1",
    "@types/node": "20.1.7",
    "aws-cdk": "2.84.0",
    "cdk-nextjs-standalone": "^3.2.0",
    "esbuild": "^0.17.16",
    "jest": "^29.5.0",
    "ts-jest": "^29.1.0",
    "ts-node": "^10.9.1",
    "typescript": "~5.0.4"
  },
  "dependencies": {
    "aws-cdk-lib": "2.84.0",
    "constructs": "^10.0.0"
  }
}

Move the Next.js app into a sub-directory into the CDK directory called “web”

In root directory, bootstrap CDK
cdk bootstrap aws://XX4312/us-east-2 —profile nextjs-cdk-test-deployer

SUCCESS!!
 ~/S/c/t/**cdk**  …  cdk bootstrap aws://XX4312/us-east-2 —profile nextjs-cdk-test-deployer                                                                                1181ms  Wed Jun 21 12:33:46 2023
 ⏳  Bootstrapping environment aws://XX4312/us-east-2…
Trusted accounts for deployment: (none)
Trusted accounts for lookup: (none)
Using default execution policy of ‘arn:aws:iam::aws:policy/AdministratorAccess’. Pass ‘—cloudformation-execution-policies’ to customize.
**CDKToolkit**: creating CloudFormation changeset…
 ✅  Environment aws://XX4312/us-east-2 bootstrapped.

Follow directions on quickstart

https://github.com/jetbridge/cdk-nextjs
In short, I added the dependencies listed
npm install -D<EMAIL_ADDRESS>cdk-nextjs-standalone
Then modified the sample-app CDK stack as such:
import { Stack, StackProps } from “aws-cdk-lib”;
import { Nextjs } from “cdk-nextjs-standalone”;
import { Construct } from “constructs”;

export class CdkStack extends Stack {
  constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    new Nextjs(this, “Web”, {
      nextjsPath: “./web”, // relative path to nextjs project root
    });
  }
}

Running synth results in failure because no region specified

cdk synth CdkStack —profile nextjs-cdk-test-deployer
...
...
Error: stacks which use EdgeFunctions must have an explicitly set region

Update default cdk stack config with region fixes EdgeFunction issue

I just modified the default (otherwise unmodified) bin/cdk.ts file produced from the cdk init sample-app .. to include a region (and I also added my account number:
#!/usr/bin/env node
import * as cdk from “aws-cdk-lib”;
import { CdkStack } from “../lib/cdk-stack”;

const app = new cdk.App();
new CdkStack(app, “CdkStack”, {
  env: { account: “XX4312”, region: “us-east-2” },
});

Cdk synth worked now

cdk synth CdkStack —profile nextjs-cdk-test-deployer
┌ Building Next.js app ▼ ...
├ Running "npx --yes open-next build" in ./web
Next.js v13.4.6
OpenNext v2.0.0

┌─────────────────────────────────┐
│ OpenNext — Building Next.js app │
└─────────────────────────────────┘

><EMAIL_ADDRESS>build
> next build

- info Creating an optimized production build
- info Compiled successfully
- info Linting and checking validity of types
- info Collecting page data
- info Generating static pages (4/4)
- info Finalizing page optimization

Route (app)                                Size     First Load JS
┌ ○ /                                      0 B                0 B
└ ○ /favicon.ico                           0 B                0 B
+ First Load JS shared by all              77.6 kB
  ├ chunks/769-8ab68f842512379f.js         25.2 kB
  ├ chunks/bce60fc1-49ee79ad31766ac6.js    50.5 kB
  ├ chunks/main-app-c2f0e612a52199d9.js    216 B
  └ chunks/webpack-737972036df45a17.js     1.64 kB

Route (pages)                              Size     First Load JS
─ ○ /404                                   182 B          74.7 kB
+ First Load JS shared by all              74.5 kB
  ├ chunks/framework-8883d1e9be70c3da.js   45 kB
  ├ chunks/main-542a92a81d12d254.js        27.7 kB
  ├ chunks/pages/_app-998b8fceeadee23e.js  195 B
  └ chunks/webpack-737972036df45a17.js     1.64 kB

○  (Static)  automatically rendered as static HTML (uses no initial props)

┌──────────────────────────────┐
│ OpenNext — Generating bundle │
└──────────────────────────────┘

Bundling static assets...
Bundling cache assets...
Bundling server function...
Bundling revalidation function...
Bundling image optimization function...
Bundling warmer function...
+ cd /Users/kevin/Sites/cdk-nextjs-sandbox/test-2/cdk/web/.open-next/server-function
+ zip -ryq1 /var/folders/1b/0m12cbyn1td6lf9_25xr4v5w0000gn/T/nextjs-cdk-build-gUn9Sj/standalone/serverFn.zip .
+ cd /var/folders/1b/0m12cbyn1td6lf9_25xr4v5w0000gn/T/nextjs-cdk-build-gUn9Sj/static
+ zip -ryq1 /var/folders/1b/0m12cbyn1td6lf9_25xr4v5w0000gn/T/nextjs-cdk-build-gUn9Sj/static/assets/assets.zip .
└ Finished preparing NextJS app for deployment
Resources:
  WebBucketE51352C0:
    Type: AWS::S3::Bucket
    Properties:
      Tags:
        - Key: aws-cdk:auto-delete-objects
          Value: "true"
...
...

Trying to deploy resulted in bootstrap error (even though I already bootstrapped?)

I’m not sure why, but when I ran cdk deploy I got an error, even though I already ran cdk bootstrap — profile … - running cdk bootstrap again
cdk bootstrap —profile nextjs-cdk-test-deployer did show that one region was bootstrapped, but not another. So perhaps there is some sort of multi-region (something?) that is required by the Next.js cdk setup? Note below “no changes” for one region but not the other.
...
...
CDKToolkit: creating CloudFormation changeset...

 ✨ hotswap deployment skipped - no changes were detected (use --force to override)

 ✅  Environment aws://XX4312/us-east-2 bootstrapped (no changes).
 ✅  Environment aws://XX4312/us-east-1 bootstrapped.
...
...

Cdk deploy

cdk deploy CdkStack —profile nextjs-cdk-test-deployer
This “worked”, deploy kicked off (prompted to confirm security changes and such, but kicked off as expected).
Do you wish to deploy these changes (y/n)? y
**CdkStack**: deploying… [1/2]
**CdkStack**: creating CloudFormation changeset…

 ✅  CdkStack

✨  Deployment time: 570.86s

Stack ARN:
arn:aws:cloudformation:us-east-2:XX4312:stack/CdkStack/2ea9c7c0-1054-11ee-b947-06023923a9b7

✨  Total time: 581.29s

Login to management console to view domain for CloudFront

I’m not aware of any other way to get the cloud front distribution domain name, so I just logged into the AWS console to get the domain, in my case

Visiting domain in a browser results in Next.js’s 500 error page

Note that the favicon.ico request also resulted in a 500

Visiting the Lambda console, I see multiple Lambdas were created

CloudWatch logs for the “WebServerHandler” show repeated errors

E.g.
2023-06-21T17:04:38.390Z	75882801-8e7c-4100-9c33-6101a6aec3f9	ERROR	{
  clientName: 'S3Client',
  commandName: 'ListObjectsV2Command',
  input: { Bucket: undefined, Prefix: 'ggXh0qs_tsiubcOgG_DEu/index' },
  error: Error: No value provided for input HTTP label: Bucket.
      at _V (/var/task/cache.cjs:15:9782)
      at ase (/var/task/cache.cjs:31:99926)
      at async /var/task/cache.cjs:2:382,
  metadata: undefined
}

The other Lambda logs didn’t seem to have anything that looked like errors

Just incase this is useful to anybody, https://github.com/kevin-mitchell/nextjs-cdk-test is exactly what I deployed (though you may need to enter your account number you're deploying to. I actually can probably remove that property but for now it's there due to copy / pasta).

I was alerted by somebody in a Discord conversation (thanks Jack M!) that this issue popped up for him with the 3.x release of cdk-nextjs-standalone. Sure enough, when I changed
"cdk-nextjs-standalone": "^3.2.0",
to
"cdk-nextjs-standalone": "^2.0.0",
I was able to deploy the Next.js sample app and everything worked... so what changed? I guess that's the next thing to look at.

OK I'm not sure if this is useful or not (it might very well be I'm pulling on the wrong thread here), but
cdk-next calls npx --yes open-next build
open-next then builds a bunch of stuff (where I need to go deeper next), but ultimately the place that the bucket name is used is here: https://github.com/serverless-stack/open-next/blob/45d67314748c0875ad9972203272a3e1328af808/packages/open-next/src/adapters/cache.ts#L81
From what I can tell, that env variable is set outside of open-next because I can't see where it'd be set within the open-next code... Somebody on discord pointed me to https://github.com/serverless-stack/sst/blob/master/packages/sst/src/constructs/NextjsSite.ts#L151. Unfortunately I don't know the intended interaction between NextjsSite and open-next. It's possible NextjsSite is being used somewhere.

@shoelessone I've made progress! so the issue stems from the open-next v2 update that just went out on monday, not from cdk-nextjs-standalone. the reason why cdk-nextjs-standalone v2 works is because that was before they implemented open-next. So the fix for now is to just add this line to  your Nextjs class in your CDK stack.
      buildCommand: 'npx --yes<EMAIL_ADDRESS>build',

In cdk-nextjs-standalone the default build command was npx --yes open-next@latest build so when open-next updated on monday, the next time we built it pulled in those changes, and thats when they implemented the S3Client caching for ISR. Im sure this is something that cdk-nextjs-standalone can support but hasn't implemented yet so for now that S3 bucket is undefined.  By locking the open next version to 1.4 we avoid this issue until cdk-nextjs-standalone is ready to support it

I think we should update CDK-nextjs for the new open-next, not sure what's involved. maybe @khuezy knows

@jlegreid this is awesome, thank you!
I'm new to all of this, but it certainly seems like the correct course should be to fix things so that the latest features of open-next and the latest stable release is supported. I'm actually out away from a computer the next week but will try to keep looking into this when I get back in town. Obviously others might get to it first, which is also great of course :)
Thank you!!

@jlegreid did you ever make any progress on this? I stepped away (vacation, work work, etc) for a while and am just getting back to this.
I'm new to this entire stack (Next.js and SST most significantly, although I'm not a CDK expert either) so it's a sort of a lot to take in all at once, but putting the pieces together it seems like this issue is very much related to https://github.com/jetbridge/cdk-nextjs/issues/119 - it's the update in open-next to support ISR that is causing this issue.
Your fix, which makes sense because it's pre-open-next-v2, doesn't seem to work currently because of this issue: https://github.com/serverless-stack/open-next/pull/159
Honestly I don't understand how the dependencies play together here because it seems like by specifying an older version of open-next we wouldn't have this issue, but when I attempt to build with<EMAIL_ADDRESS>I get
2023-07-26T12:38:04.262Z	undefined	ERROR	Failed to override Next.js require hooks. Error: Cannot find module '/var/task/node_modules/react/jsx-runtime.js'
    at createEsmNotFoundErr (node:internal/modules/cjs/loader:1098:15)
    at finalizeEsmResolution (node:internal/modules/cjs/loader:1091:15)
    at resolveExports (node:internal/modules/cjs/loader:567:14)
    at Module._findPath (node:internal/modules/cjs/loader:636:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
    at /var/task/node_modules/next/dist/server/require-hook.js:113:36
    at Function.resolve (node:internal/modules/cjs/helpers:116:19)
    at ie (file:///var/task/index.mjs:4:7059)
    at F (file:///var/task/index.mjs:4:6670)
    at file:///var/task/index.mjs:4:9932 {
  code: 'MODULE_NOT_FOUND',
  path: '/var/task/node_modules/react/package.json'
}

It really seems like it would be ideal to update this package to work with the current version of open-next, i.e. to support ISR and such. But for now, just fixing the above issue would be nice.

This was resolved in #119. Please re-open if it's still an issue!


WSL stopped working error code - Error: 0x80090006 Invalid Signature.

Windows Version
Microsoft Windows [version 10.0.26257.5000]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
First, Ubuntu was installed, and it stopped working sudenly. I tried to uninstall wsl and reinstall it, but it still does not work running this command :
wsl --install ubuntu
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80090006
Error: 0x80090006 Signature non valide.
Press any key to continue...
Expected Behavior
Distro should be installed
Actual Behavior
I am not able to install any distro, ubuntu, debian or anything else
I extracted the logs files
WslLogs-2024-09-22_05-13-41.zip
Diagnostic Logs
No response

@tlimbert: The logs show that the hyper-V firmware on your Windows build has expired. Can you try to update Windows and see if that solves the issue ?

I just checked, no Windows update is available :/

I have the same problem with the lastest update of Windows 11

WslLogs-2024-10-09_15-08-11.zip
This is my logs file. Can you help me


Expose number of tests in test artifact for other tools to pick up

This allows other tools to find out the number of tests the device will run by inspecting the ELF artifact. This is useful for running tests while benchmarking power usage without the debugger being attached, which would skew the results.

Can you please resolve the conflict in the CHANGELOG? Afterwards you can merge with bors r+.
bors d+

Thanks!
bors r+


returns null when field is empty string on integer, long, and short c…

What changes were proposed in this pull request?
CSV parser changes allowing parsing of numeric fields to fail and return null in such case.
In conjunction with "nullValue" option that may be used elsewhere this allows handling of certain csv sources that may use empty string as indication of null in one column and another specific value indicating null in another.
Currently the option "nullValue" can only be provided once and we can't assume that a data source won't have a single "null" indicator.
How was this patch tested?
The patch was tested using freshly compiled spark version 2.0.1 on a sample data source that has "null" values in 2 columns, one specified as "NA" and set using nullValue and another column with "" indicating no integer value.
Credit - Sargis Dudaklayan and Kuba Tyszko - Zest Finance
Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

This is not opened vs master -- please close this


xrefs/assemble: return 0 decoration fragments when a node has no edges [phab:D548]

Created by schroederc at 2015-10-12 19:27:18:
Fixes #787

shahms accepted this revision at 2015-10-12 19:32:18

schroederc closed via commit 222ad0127357dc26240227d6f794f974624ac2ea at 2015-10-12 19:37:45


⚠ Bofrost.lu has degraded performance

In 28f54da, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1116 ms

Resolved: Bofrost.lu performance has improved in 0a52b3b.


Wide emojis cause incomplete highlighting when hovering

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open a chat
Open the Emoji panel
Observe that certain emojis are extra wide, and when hovered the highlighted styling does not cover the emoji.

Expected Result:
Complete highlighting of the emoji
Actual Result:
Incomplete highlighting of the emoji
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.35-5
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/5802477/059570b2-ee6f-4cfe-904a-0abafac9480d
Expensify/Expensify Issue URL:
Issue reported by: @samh-nl
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1688127392035469
View all open jobs on GitHub

I've fixed the videos now.

However, this is on Windows (Win10) according to the Slack thread, which is an unsupported platform at the moment. Here's the emojis on OSX:

Closing as Windows is not an officially supported platform yet

Can you show me how to reproduce this OSX? I have not been able to see that so far

I am so confused, how do you have different emojis there @samh-nl?. Here's what I'm seeing on OSX 13.3.1, in Chrome (and the same in Safari too):


Questions about the BERT version of span-aste.

Thank you very much for your open source pytorch version of span-aste network code.   I replaced the encoder of LSTM version span-aste with BERT. However, the accuracy, recall and F1 score during training and verification are all 0, and I could not find the error. Do you have a plan to develop the BERT version span-aste? Or could you tell me the way to change the model to BERT encoder?

I have implemented the version of bert, which is not open source yet. For the bert part, you need to consider the issue of sequence alignment, because the wordpiece tokenizer used by bert may be helpful here

Thank you for your reply. I have implemented BERT version span-aste.